import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages Amazon S3 Metadata for a bucket. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.s3.BucketMetadataConfiguration("example", { * metadataConfiguration: { * inventoryTableConfiguration: { * configurationState: "ENABLED", * }, * journalTableConfiguration: { * recordExpiration: { * days: 7, * expiration: "ENABLED", * }, * }, * }, * bucket: exampleAwsS3Bucket.bucket, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `bucket` (String) S3 bucket name. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * **Using `pulumi import` to import** S3 bucket metadata configuration using the `bucket`. For example: * * ```sh * $ pulumi import aws:s3/bucketMetadataConfiguration:BucketMetadataConfiguration example bucket-name * ``` */ export declare class BucketMetadataConfiguration extends pulumi.CustomResource { /** * Get an existing BucketMetadataConfiguration 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, state?: BucketMetadataConfigurationState, opts?: pulumi.CustomResourceOptions): BucketMetadataConfiguration; /** * Returns true if the given object is an instance of BucketMetadataConfiguration. 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 BucketMetadataConfiguration; /** * General purpose bucket that you want to create the metadata configuration for. */ readonly bucket: pulumi.Output; /** * Account ID of the expected bucket owner. * * @deprecated This attribute will be removed in a future verion of the provider. */ readonly expectedBucketOwner: pulumi.Output; /** * Metadata configuration. See `metadataConfiguration` Block for details. * * The following arguments are optional: */ readonly metadataConfiguration: pulumi.Output; /** * 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; readonly timeouts: pulumi.Output; /** * Create a BucketMetadataConfiguration 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: BucketMetadataConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BucketMetadataConfiguration resources. */ export interface BucketMetadataConfigurationState { /** * General purpose bucket that you want to create the metadata configuration for. */ bucket?: pulumi.Input; /** * Account ID of the expected bucket owner. * * @deprecated This attribute will be removed in a future verion of the provider. */ expectedBucketOwner?: pulumi.Input; /** * Metadata configuration. See `metadataConfiguration` Block for details. * * The following arguments are optional: */ metadataConfiguration?: pulumi.Input; /** * 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; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a BucketMetadataConfiguration resource. */ export interface BucketMetadataConfigurationArgs { /** * General purpose bucket that you want to create the metadata configuration for. */ bucket: pulumi.Input; /** * Account ID of the expected bucket owner. * * @deprecated This attribute will be removed in a future verion of the provider. */ expectedBucketOwner?: pulumi.Input; /** * Metadata configuration. See `metadataConfiguration` Block for details. * * The following arguments are optional: */ metadataConfiguration: pulumi.Input; /** * 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; timeouts?: pulumi.Input; } //# sourceMappingURL=bucketMetadataConfiguration.d.ts.map