UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

272 lines (271 loc) • 9.47 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource Type definition for AWS::SSM::ResourceDataSync * * ## Example Usage * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncToDestination", * s3Destination: { * bucketName: "test-bucket", * bucketRegion: "us-east-2", * syncFormat: "JsonSerDe", * bucketPrefix: "cfn", * kmsKeyArn: "kmsKeyARN", * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncToDestination", * s3Destination: { * bucketName: "test-bucket", * bucketRegion: "us-east-2", * syncFormat: "JsonSerDe", * bucketPrefix: "cfn", * kmsKeyArn: "kmsKeyARN", * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncFromSource", * syncSource: { * sourceType: "SingleAccountMultiRegions", * sourceRegions: [ * "us-east-1", * "us-west-1", * "us-west-2", * ], * includeFutureRegions: false, * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncFromSource", * syncSource: { * sourceType: "SingleAccountMultiRegions", * sourceRegions: [ * "us-east-1", * "us-west-1", * "us-west-2", * ], * includeFutureRegions: false, * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncFromSource", * syncSource: { * sourceType: "AwsOrganizations", * awsOrganizationsSource: { * organizationSourceType: "EntireOrganization", * }, * sourceRegions: ["us-west-1"], * includeFutureRegions: false, * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncFromSource", * syncSource: { * sourceType: "AwsOrganizations", * awsOrganizationsSource: { * organizationSourceType: "EntireOrganization", * }, * sourceRegions: ["us-west-1"], * includeFutureRegions: false, * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncFromSource", * syncSource: { * sourceType: "AwsOrganizations", * awsOrganizationsSource: { * organizationSourceType: "OrganizationalUnits", * organizationalUnits: ["ou-12345"], * }, * sourceRegions: ["us-west-1"], * includeFutureRegions: false, * }, * }); * * ``` * ### Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws_native from "@pulumi/aws-native"; * * const basicResourceDataSync = new aws_native.ssm.ResourceDataSync("basicResourceDataSync", { * syncName: "test-sync", * syncType: "SyncFromSource", * syncSource: { * sourceType: "AwsOrganizations", * awsOrganizationsSource: { * organizationSourceType: "OrganizationalUnits", * organizationalUnits: ["ou-12345"], * }, * sourceRegions: ["us-west-1"], * includeFutureRegions: false, * }, * }); * * ``` */ export declare class ResourceDataSync extends pulumi.CustomResource { /** * Get an existing ResourceDataSync resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ResourceDataSync; /** * Returns true if the given object is an instance of ResourceDataSync. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ResourceDataSync; /** * The name of the S3 bucket where the aggregated data is stored. */ readonly bucketName: pulumi.Output<string | undefined>; /** * An Amazon S3 prefix for the bucket. */ readonly bucketPrefix: pulumi.Output<string | undefined>; /** * The AWS Region with the S3 bucket targeted by the resource data sync. */ readonly bucketRegion: pulumi.Output<string | undefined>; /** * The Amazon Resource Name (ARN) of an encryption key for a destination in Amazon S3 . You can use a KMS key to encrypt inventory data in Amazon S3 . You must specify a key that exist in the same AWS Region as the destination Amazon S3 bucket. */ readonly kmsKeyArn: pulumi.Output<string | undefined>; /** * Configuration information for the target S3 bucket. */ readonly s3Destination: pulumi.Output<outputs.ssm.ResourceDataSyncS3Destination | undefined>; /** * A supported sync format. The following format is currently supported: JsonSerDe */ readonly syncFormat: pulumi.Output<string | undefined>; /** * A name for the resource data sync. */ readonly syncName: pulumi.Output<string>; /** * Information about the source where the data was synchronized. */ readonly syncSource: pulumi.Output<outputs.ssm.ResourceDataSyncSyncSource | undefined>; /** * The type of resource data sync. If `SyncType` is `SyncToDestination` , then the resource data sync synchronizes data to an S3 bucket. If the `SyncType` is `SyncFromSource` then the resource data sync synchronizes data from AWS Organizations or from multiple AWS Regions . */ readonly syncType: pulumi.Output<string | undefined>; /** * Create a ResourceDataSync resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ResourceDataSyncArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a ResourceDataSync resource. */ export interface ResourceDataSyncArgs { /** * The name of the S3 bucket where the aggregated data is stored. */ bucketName?: pulumi.Input<string>; /** * An Amazon S3 prefix for the bucket. */ bucketPrefix?: pulumi.Input<string>; /** * The AWS Region with the S3 bucket targeted by the resource data sync. */ bucketRegion?: pulumi.Input<string>; /** * The Amazon Resource Name (ARN) of an encryption key for a destination in Amazon S3 . You can use a KMS key to encrypt inventory data in Amazon S3 . You must specify a key that exist in the same AWS Region as the destination Amazon S3 bucket. */ kmsKeyArn?: pulumi.Input<string>; /** * Configuration information for the target S3 bucket. */ s3Destination?: pulumi.Input<inputs.ssm.ResourceDataSyncS3DestinationArgs>; /** * A supported sync format. The following format is currently supported: JsonSerDe */ syncFormat?: pulumi.Input<string>; /** * A name for the resource data sync. */ syncName?: pulumi.Input<string>; /** * Information about the source where the data was synchronized. */ syncSource?: pulumi.Input<inputs.ssm.ResourceDataSyncSyncSourceArgs>; /** * The type of resource data sync. If `SyncType` is `SyncToDestination` , then the resource data sync synchronizes data to an S3 bucket. If the `SyncType` is `SyncFromSource` then the resource data sync synchronizes data from AWS Organizations or from multiple AWS Regions . */ syncType?: pulumi.Input<string>; }