AWS Native is in preview. AWS Classic is fully supported.
aws-native.datasync.LocationS3
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource schema for AWS::DataSync::LocationS3
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var locationS3 = new AwsNative.DataSync.LocationS3("locationS3", new()
{
S3BucketArn = "arn:aws:s3:::MyBucket",
S3Config = new AwsNative.DataSync.Inputs.LocationS3s3ConfigArgs
{
BucketAccessRoleArn = "arn:aws:iam::111222333444:role/MyBucketAccessRole",
},
S3StorageClass = AwsNative.DataSync.LocationS3S3StorageClass.Standard,
Subdirectory = "/MyFolder",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewLocationS3(ctx, "locationS3", &datasync.LocationS3Args{
S3BucketArn: pulumi.String("arn:aws:s3:::MyBucket"),
S3Config: &datasync.LocationS3s3ConfigArgs{
BucketAccessRoleArn: pulumi.String("arn:aws:iam::111222333444:role/MyBucketAccessRole"),
},
S3StorageClass: datasync.LocationS3S3StorageClassStandard,
Subdirectory: pulumi.String("/MyFolder"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
location_s3 = aws_native.datasync.LocationS3("locationS3",
s3_bucket_arn="arn:aws:s3:::MyBucket",
s3_config=aws_native.datasync.LocationS3s3ConfigArgs(
bucket_access_role_arn="arn:aws:iam::111222333444:role/MyBucketAccessRole",
),
s3_storage_class=aws_native.datasync.LocationS3S3StorageClass.STANDARD,
subdirectory="/MyFolder")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const locationS3 = new aws_native.datasync.LocationS3("locationS3", {
s3BucketArn: "arn:aws:s3:::MyBucket",
s3Config: {
bucketAccessRoleArn: "arn:aws:iam::111222333444:role/MyBucketAccessRole",
},
s3StorageClass: aws_native.datasync.LocationS3S3StorageClass.Standard,
subdirectory: "/MyFolder",
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var locationS3 = new AwsNative.DataSync.LocationS3("locationS3", new()
{
S3BucketArn = "arn:aws:s3:::MyBucket",
S3Config = new AwsNative.DataSync.Inputs.LocationS3s3ConfigArgs
{
BucketAccessRoleArn = "arn:aws:iam::111222333444:role/MyBucketAccessRole",
},
S3StorageClass = AwsNative.DataSync.LocationS3S3StorageClass.Standard,
Subdirectory = "/MyFolder",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewLocationS3(ctx, "locationS3", &datasync.LocationS3Args{
S3BucketArn: pulumi.String("arn:aws:s3:::MyBucket"),
S3Config: &datasync.LocationS3s3ConfigArgs{
BucketAccessRoleArn: pulumi.String("arn:aws:iam::111222333444:role/MyBucketAccessRole"),
},
S3StorageClass: datasync.LocationS3S3StorageClassStandard,
Subdirectory: pulumi.String("/MyFolder"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
location_s3 = aws_native.datasync.LocationS3("locationS3",
s3_bucket_arn="arn:aws:s3:::MyBucket",
s3_config=aws_native.datasync.LocationS3s3ConfigArgs(
bucket_access_role_arn="arn:aws:iam::111222333444:role/MyBucketAccessRole",
),
s3_storage_class=aws_native.datasync.LocationS3S3StorageClass.STANDARD,
subdirectory="/MyFolder")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const locationS3 = new aws_native.datasync.LocationS3("locationS3", {
s3BucketArn: "arn:aws:s3:::MyBucket",
s3Config: {
bucketAccessRoleArn: "arn:aws:iam::111222333444:role/MyBucketAccessRole",
},
s3StorageClass: aws_native.datasync.LocationS3S3StorageClass.Standard,
subdirectory: "/MyFolder",
});
Coming soon!
Create LocationS3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LocationS3(name: string, args: LocationS3Args, opts?: CustomResourceOptions);
@overload
def LocationS3(resource_name: str,
args: LocationS3Args,
opts: Optional[ResourceOptions] = None)
@overload
def LocationS3(resource_name: str,
opts: Optional[ResourceOptions] = None,
s3_config: Optional[LocationS3s3ConfigArgs] = None,
s3_bucket_arn: Optional[str] = None,
s3_storage_class: Optional[LocationS3S3StorageClass] = None,
subdirectory: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewLocationS3(ctx *Context, name string, args LocationS3Args, opts ...ResourceOption) (*LocationS3, error)
public LocationS3(string name, LocationS3Args args, CustomResourceOptions? opts = null)
public LocationS3(String name, LocationS3Args args)
public LocationS3(String name, LocationS3Args args, CustomResourceOptions options)
type: aws-native:datasync:LocationS3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LocationS3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LocationS3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LocationS3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocationS3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocationS3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LocationS3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LocationS3 resource accepts the following input properties:
- S3Config
Pulumi.
Aws Native. Data Sync. Inputs. Location S3s3Config The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- S3Bucket
Arn string - The Amazon Resource Name (ARN) of the Amazon S3 bucket.
- S3Storage
Class Pulumi.Aws Native. Data Sync. Location S3S3Storage Class - The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
- Subdirectory string
- A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- S3Config
Location
S3s3Config Args The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- S3Bucket
Arn string - The Amazon Resource Name (ARN) of the Amazon S3 bucket.
- S3Storage
Class LocationS3S3Storage Class - The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
- Subdirectory string
- A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- Tag
Args - An array of key-value pairs to apply to this resource.
- s3Config
Location
S3s3Config The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- s3Bucket
Arn String - The Amazon Resource Name (ARN) of the Amazon S3 bucket.
- s3Storage
Class LocationS3S3Storage Class - The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
- subdirectory String
- A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- s3Config
Location
S3s3Config The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- s3Bucket
Arn string - The Amazon Resource Name (ARN) of the Amazon S3 bucket.
- s3Storage
Class LocationS3S3Storage Class - The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
- subdirectory string
- A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- Tag[]
- An array of key-value pairs to apply to this resource.
- s3_
config LocationS3s3Config Args The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- s3_
bucket_ strarn - The Amazon Resource Name (ARN) of the Amazon S3 bucket.
- s3_
storage_ Locationclass S3S3Storage Class - The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
- subdirectory str
- A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- s3Config Property Map
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- s3Bucket
Arn String - The Amazon Resource Name (ARN) of the Amazon S3 bucket.
- s3Storage
Class "STANDARD" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "GLACIER_INSTANT_RETRIEVAL" | "DEEP_ARCHIVE" - The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
- subdirectory String
- A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LocationS3 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location
Arn string - The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
- Location
Uri string - The URL of the S3 location that was described.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location
Arn string - The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
- Location
Uri string - The URL of the S3 location that was described.
- id String
- The provider-assigned unique ID for this managed resource.
- location
Arn String - The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
- location
Uri String - The URL of the S3 location that was described.
- id string
- The provider-assigned unique ID for this managed resource.
- location
Arn string - The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
- location
Uri string - The URL of the S3 location that was described.
- id str
- The provider-assigned unique ID for this managed resource.
- location_
arn str - The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
- location_
uri str - The URL of the S3 location that was described.
- id String
- The provider-assigned unique ID for this managed resource.
- location
Arn String - The Amazon Resource Name (ARN) of the Amazon S3 bucket location.
- location
Uri String - The URL of the S3 location that was described.
Supporting Types
LocationS3S3StorageClass, LocationS3S3StorageClassArgs
- Standard
- STANDARD
- Standard
Ia - STANDARD_IA
- Onezone
Ia - ONEZONE_IA
- Intelligent
Tiering - INTELLIGENT_TIERING
- Glacier
- GLACIER
- Glacier
Instant Retrieval - GLACIER_INSTANT_RETRIEVAL
- Deep
Archive - DEEP_ARCHIVE
- Location
S3S3Storage Class Standard - STANDARD
- Location
S3S3Storage Class Standard Ia - STANDARD_IA
- Location
S3S3Storage Class Onezone Ia - ONEZONE_IA
- Location
S3S3Storage Class Intelligent Tiering - INTELLIGENT_TIERING
- Location
S3S3Storage Class Glacier - GLACIER
- Location
S3S3Storage Class Glacier Instant Retrieval - GLACIER_INSTANT_RETRIEVAL
- Location
S3S3Storage Class Deep Archive - DEEP_ARCHIVE
- Standard
- STANDARD
- Standard
Ia - STANDARD_IA
- Onezone
Ia - ONEZONE_IA
- Intelligent
Tiering - INTELLIGENT_TIERING
- Glacier
- GLACIER
- Glacier
Instant Retrieval - GLACIER_INSTANT_RETRIEVAL
- Deep
Archive - DEEP_ARCHIVE
- Standard
- STANDARD
- Standard
Ia - STANDARD_IA
- Onezone
Ia - ONEZONE_IA
- Intelligent
Tiering - INTELLIGENT_TIERING
- Glacier
- GLACIER
- Glacier
Instant Retrieval - GLACIER_INSTANT_RETRIEVAL
- Deep
Archive - DEEP_ARCHIVE
- STANDARD
- STANDARD
- STANDARD_IA
- STANDARD_IA
- ONEZONE_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
- INTELLIGENT_TIERING
- GLACIER
- GLACIER
- GLACIER_INSTANT_RETRIEVAL
- GLACIER_INSTANT_RETRIEVAL
- DEEP_ARCHIVE
- DEEP_ARCHIVE
- "STANDARD"
- STANDARD
- "STANDARD_IA"
- STANDARD_IA
- "ONEZONE_IA"
- ONEZONE_IA
- "INTELLIGENT_TIERING"
- INTELLIGENT_TIERING
- "GLACIER"
- GLACIER
- "GLACIER_INSTANT_RETRIEVAL"
- GLACIER_INSTANT_RETRIEVAL
- "DEEP_ARCHIVE"
- DEEP_ARCHIVE
LocationS3s3Config, LocationS3s3ConfigArgs
- Bucket
Access stringRole Arn - The ARN of the IAM role of the Amazon S3 bucket.
- Bucket
Access stringRole Arn - The ARN of the IAM role of the Amazon S3 bucket.
- bucket
Access StringRole Arn - The ARN of the IAM role of the Amazon S3 bucket.
- bucket
Access stringRole Arn - The ARN of the IAM role of the Amazon S3 bucket.
- bucket_
access_ strrole_ arn - The ARN of the IAM role of the Amazon S3 bucket.
- bucket
Access StringRole Arn - The ARN of the IAM role of the Amazon S3 bucket.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.