UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

119 lines (118 loc) 4.74 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages Amazon S3 Tables Table Bucket Replication configuration. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.s3tables.TableBucketReplication("example", { * tableBucketArn: source.arn, * role: exampleAwsIamRole.arn, * rule: { * destinations: [{ * destinationTableBucketArn: target.arn, * }], * }, * }); * ``` * * ## Import * * Using `pulumi import`, import S3 Tables Table Bucket Replication using the `table_bucket_arn`. For example: * * ```sh * $ pulumi import aws:s3tables/tableBucketReplication:TableBucketReplication example 'arn:aws:s3tables:us-west-2:123456789012:bucket/example-bucket' * ``` */ export declare class TableBucketReplication extends pulumi.CustomResource { /** * Get an existing TableBucketReplication 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TableBucketReplicationState, opts?: pulumi.CustomResourceOptions): TableBucketReplication; /** * Returns true if the given object is an instance of TableBucketReplication. 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 TableBucketReplication; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output<string>; /** * ARN referencing the IAM role assumed by S3 when replicating tables in this bucket. */ readonly role: pulumi.Output<string>; /** * Replication rules. See Rule below for more details. */ readonly rule: pulumi.Output<outputs.s3tables.TableBucketReplicationRule | undefined>; /** * ARN referencing the Table Bucket that owns this replication configuration. */ readonly tableBucketArn: pulumi.Output<string>; readonly versionToken: pulumi.Output<string>; /** * Create a TableBucketReplication 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: TableBucketReplicationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TableBucketReplication resources. */ export interface TableBucketReplicationState { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * ARN referencing the IAM role assumed by S3 when replicating tables in this bucket. */ role?: pulumi.Input<string>; /** * Replication rules. See Rule below for more details. */ rule?: pulumi.Input<inputs.s3tables.TableBucketReplicationRule>; /** * ARN referencing the Table Bucket that owns this replication configuration. */ tableBucketArn?: pulumi.Input<string>; versionToken?: pulumi.Input<string>; } /** * The set of arguments for constructing a TableBucketReplication resource. */ export interface TableBucketReplicationArgs { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * ARN referencing the IAM role assumed by S3 when replicating tables in this bucket. */ role: pulumi.Input<string>; /** * Replication rules. See Rule below for more details. */ rule?: pulumi.Input<inputs.s3tables.TableBucketReplicationRule>; /** * ARN referencing the Table Bucket that owns this replication configuration. */ tableBucketArn: pulumi.Input<string>; }