Class ResourceDataSync
Provides a SSM resource data sync.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var hogeBucket = new Aws.S3.Bucket("hogeBucket", new Aws.S3.BucketArgs
{
Region = "us-east-1",
});
var hogeBucketPolicy = new Aws.S3.BucketPolicy("hogeBucketPolicy", new Aws.S3.BucketPolicyArgs
{
Bucket = hogeBucket.BucketName,
Policy = @"{
""Version"": ""2012-10-17"",
""Statement"": [
{
""Sid"": ""SSMBucketPermissionsCheck"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": ""ssm.amazonaws.com""
},
""Action"": ""s3:GetBucketAcl"",
""Resource"": ""arn:aws:s3:::tf-test-bucket-1234""
},
{
""Sid"": "" SSMBucketDelivery"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": ""ssm.amazonaws.com""
},
""Action"": ""s3:PutObject"",
""Resource"": [""arn:aws:s3:::tf-test-bucket-1234/*""],
""Condition"": {
""StringEquals"": {
""s3:x-amz-acl"": ""bucket-owner-full-control""
}
}
}
]
}
",
});
var foo = new Aws.Ssm.ResourceDataSync("foo", new Aws.Ssm.ResourceDataSyncArgs
{
S3Destination = new Aws.Ssm.Inputs.ResourceDataSyncS3DestinationArgs
{
BucketName = hogeBucket.BucketName,
Region = hogeBucket.Region,
},
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ssm
Assembly: Pulumi.Aws.dll
Syntax
public class ResourceDataSync : CustomResource
Constructors
View SourceResourceDataSync(String, ResourceDataSyncArgs, CustomResourceOptions)
Create a ResourceDataSync resource with the given unique name, arguments, and options.
Declaration
public ResourceDataSync(string name, ResourceDataSyncArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ResourceDataSyncArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceName
Name for the configuration.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
S3Destination
Amazon S3 configuration details for the sync.
Declaration
public Output<ResourceDataSyncS3Destination> S3Destination { get; }
Property Value
| Type | Description |
|---|---|
| Output<ResourceDataSyncS3Destination> |
Methods
View SourceGet(String, Input<String>, ResourceDataSyncState, CustomResourceOptions)
Get an existing ResourceDataSync resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ResourceDataSync Get(string name, Input<string> id, ResourceDataSyncState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ResourceDataSyncState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ResourceDataSync |