1. Packages
  2. AWS
  3. API Docs
  4. s3
  5. BucketMetadataConfiguration
AWS v7.3.1 published on Wednesday, Aug 6, 2025 by Pulumi

aws.s3.BucketMetadataConfiguration

Explore with Pulumi AI

aws logo
AWS v7.3.1 published on Wednesday, Aug 6, 2025 by Pulumi

    Manages Amazon S3 Metadata for a bucket.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.s3.BucketMetadataConfiguration("example", {
        bucket: exampleAwsS3Bucket.bucket,
        metadataConfiguration: {
            inventoryTableConfiguration: {
                configurationState: "ENABLED",
            },
            journalTableConfiguration: {
                recordExpiration: {
                    days: 7,
                    expiration: "ENABLED",
                },
            },
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.s3.BucketMetadataConfiguration("example",
        bucket=example_aws_s3_bucket["bucket"],
        metadata_configuration={
            "inventory_table_configuration": {
                "configuration_state": "ENABLED",
            },
            "journal_table_configuration": {
                "record_expiration": {
                    "days": 7,
                    "expiration": "ENABLED",
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := s3.NewBucketMetadataConfiguration(ctx, "example", &s3.BucketMetadataConfigurationArgs{
    			Bucket: pulumi.Any(exampleAwsS3Bucket.Bucket),
    			MetadataConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationArgs{
    				InventoryTableConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs{
    					ConfigurationState: pulumi.String("ENABLED"),
    				},
    				JournalTableConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs{
    					RecordExpiration: &s3.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs{
    						Days:       pulumi.Int(7),
    						Expiration: pulumi.String("ENABLED"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.S3.BucketMetadataConfiguration("example", new()
        {
            Bucket = exampleAwsS3Bucket.Bucket,
            MetadataConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationArgs
            {
                InventoryTableConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs
                {
                    ConfigurationState = "ENABLED",
                },
                JournalTableConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs
                {
                    RecordExpiration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs
                    {
                        Days = 7,
                        Expiration = "ENABLED",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.s3.BucketMetadataConfiguration;
    import com.pulumi.aws.s3.BucketMetadataConfigurationArgs;
    import com.pulumi.aws.s3.inputs.BucketMetadataConfigurationMetadataConfigurationArgs;
    import com.pulumi.aws.s3.inputs.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs;
    import com.pulumi.aws.s3.inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs;
    import com.pulumi.aws.s3.inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new BucketMetadataConfiguration("example", BucketMetadataConfigurationArgs.builder()
                .bucket(exampleAwsS3Bucket.bucket())
                .metadataConfiguration(BucketMetadataConfigurationMetadataConfigurationArgs.builder()
                    .inventoryTableConfiguration(BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs.builder()
                        .configurationState("ENABLED")
                        .build())
                    .journalTableConfiguration(BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs.builder()
                        .recordExpiration(BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs.builder()
                            .days(7)
                            .expiration("ENABLED")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:s3:BucketMetadataConfiguration
        properties:
          bucket: ${exampleAwsS3Bucket.bucket}
          metadataConfiguration:
            inventoryTableConfiguration:
              configurationState: ENABLED
            journalTableConfiguration:
              recordExpiration:
                days: 7
                expiration: ENABLED
    

    Create BucketMetadataConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BucketMetadataConfiguration(name: string, args: BucketMetadataConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def BucketMetadataConfiguration(resource_name: str,
                                    args: BucketMetadataConfigurationArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def BucketMetadataConfiguration(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    bucket: Optional[str] = None,
                                    expected_bucket_owner: Optional[str] = None,
                                    metadata_configuration: Optional[BucketMetadataConfigurationMetadataConfigurationArgs] = None,
                                    region: Optional[str] = None,
                                    timeouts: Optional[BucketMetadataConfigurationTimeoutsArgs] = None)
    func NewBucketMetadataConfiguration(ctx *Context, name string, args BucketMetadataConfigurationArgs, opts ...ResourceOption) (*BucketMetadataConfiguration, error)
    public BucketMetadataConfiguration(string name, BucketMetadataConfigurationArgs args, CustomResourceOptions? opts = null)
    public BucketMetadataConfiguration(String name, BucketMetadataConfigurationArgs args)
    public BucketMetadataConfiguration(String name, BucketMetadataConfigurationArgs args, CustomResourceOptions options)
    
    type: aws:s3:BucketMetadataConfiguration
    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 BucketMetadataConfigurationArgs
    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 BucketMetadataConfigurationArgs
    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 BucketMetadataConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BucketMetadataConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BucketMetadataConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var bucketMetadataConfigurationResource = new Aws.S3.BucketMetadataConfiguration("bucketMetadataConfigurationResource", new()
    {
        Bucket = "string",
        ExpectedBucketOwner = "string",
        MetadataConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationArgs
        {
            Destinations = new[]
            {
                new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationDestinationArgs
                {
                    TableBucketArn = "string",
                    TableBucketType = "string",
                    TableNamespace = "string",
                },
            },
            InventoryTableConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs
            {
                ConfigurationState = "string",
                EncryptionConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfigurationArgs
                {
                    SseAlgorithm = "string",
                    KmsKeyArn = "string",
                },
                TableArn = "string",
                TableName = "string",
            },
            JournalTableConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs
            {
                EncryptionConfiguration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfigurationArgs
                {
                    SseAlgorithm = "string",
                    KmsKeyArn = "string",
                },
                RecordExpiration = new Aws.S3.Inputs.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs
                {
                    Expiration = "string",
                    Days = 0,
                },
                TableArn = "string",
                TableName = "string",
            },
        },
        Region = "string",
        Timeouts = new Aws.S3.Inputs.BucketMetadataConfigurationTimeoutsArgs
        {
            Create = "string",
        },
    });
    
    example, err := s3.NewBucketMetadataConfiguration(ctx, "bucketMetadataConfigurationResource", &s3.BucketMetadataConfigurationArgs{
    	Bucket:              pulumi.String("string"),
    	ExpectedBucketOwner: pulumi.String("string"),
    	MetadataConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationArgs{
    		Destinations: s3.BucketMetadataConfigurationMetadataConfigurationDestinationArray{
    			&s3.BucketMetadataConfigurationMetadataConfigurationDestinationArgs{
    				TableBucketArn:  pulumi.String("string"),
    				TableBucketType: pulumi.String("string"),
    				TableNamespace:  pulumi.String("string"),
    			},
    		},
    		InventoryTableConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs{
    			ConfigurationState: pulumi.String("string"),
    			EncryptionConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfigurationArgs{
    				SseAlgorithm: pulumi.String("string"),
    				KmsKeyArn:    pulumi.String("string"),
    			},
    			TableArn:  pulumi.String("string"),
    			TableName: pulumi.String("string"),
    		},
    		JournalTableConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs{
    			EncryptionConfiguration: &s3.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfigurationArgs{
    				SseAlgorithm: pulumi.String("string"),
    				KmsKeyArn:    pulumi.String("string"),
    			},
    			RecordExpiration: &s3.BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs{
    				Expiration: pulumi.String("string"),
    				Days:       pulumi.Int(0),
    			},
    			TableArn:  pulumi.String("string"),
    			TableName: pulumi.String("string"),
    		},
    	},
    	Region: pulumi.String("string"),
    	Timeouts: &s3.BucketMetadataConfigurationTimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    })
    
    var bucketMetadataConfigurationResource = new BucketMetadataConfiguration("bucketMetadataConfigurationResource", BucketMetadataConfigurationArgs.builder()
        .bucket("string")
        .expectedBucketOwner("string")
        .metadataConfiguration(BucketMetadataConfigurationMetadataConfigurationArgs.builder()
            .destinations(BucketMetadataConfigurationMetadataConfigurationDestinationArgs.builder()
                .tableBucketArn("string")
                .tableBucketType("string")
                .tableNamespace("string")
                .build())
            .inventoryTableConfiguration(BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs.builder()
                .configurationState("string")
                .encryptionConfiguration(BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfigurationArgs.builder()
                    .sseAlgorithm("string")
                    .kmsKeyArn("string")
                    .build())
                .tableArn("string")
                .tableName("string")
                .build())
            .journalTableConfiguration(BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs.builder()
                .encryptionConfiguration(BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfigurationArgs.builder()
                    .sseAlgorithm("string")
                    .kmsKeyArn("string")
                    .build())
                .recordExpiration(BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs.builder()
                    .expiration("string")
                    .days(0)
                    .build())
                .tableArn("string")
                .tableName("string")
                .build())
            .build())
        .region("string")
        .timeouts(BucketMetadataConfigurationTimeoutsArgs.builder()
            .create("string")
            .build())
        .build());
    
    bucket_metadata_configuration_resource = aws.s3.BucketMetadataConfiguration("bucketMetadataConfigurationResource",
        bucket="string",
        expected_bucket_owner="string",
        metadata_configuration={
            "destinations": [{
                "table_bucket_arn": "string",
                "table_bucket_type": "string",
                "table_namespace": "string",
            }],
            "inventory_table_configuration": {
                "configuration_state": "string",
                "encryption_configuration": {
                    "sse_algorithm": "string",
                    "kms_key_arn": "string",
                },
                "table_arn": "string",
                "table_name": "string",
            },
            "journal_table_configuration": {
                "encryption_configuration": {
                    "sse_algorithm": "string",
                    "kms_key_arn": "string",
                },
                "record_expiration": {
                    "expiration": "string",
                    "days": 0,
                },
                "table_arn": "string",
                "table_name": "string",
            },
        },
        region="string",
        timeouts={
            "create": "string",
        })
    
    const bucketMetadataConfigurationResource = new aws.s3.BucketMetadataConfiguration("bucketMetadataConfigurationResource", {
        bucket: "string",
        expectedBucketOwner: "string",
        metadataConfiguration: {
            destinations: [{
                tableBucketArn: "string",
                tableBucketType: "string",
                tableNamespace: "string",
            }],
            inventoryTableConfiguration: {
                configurationState: "string",
                encryptionConfiguration: {
                    sseAlgorithm: "string",
                    kmsKeyArn: "string",
                },
                tableArn: "string",
                tableName: "string",
            },
            journalTableConfiguration: {
                encryptionConfiguration: {
                    sseAlgorithm: "string",
                    kmsKeyArn: "string",
                },
                recordExpiration: {
                    expiration: "string",
                    days: 0,
                },
                tableArn: "string",
                tableName: "string",
            },
        },
        region: "string",
        timeouts: {
            create: "string",
        },
    });
    
    type: aws:s3:BucketMetadataConfiguration
    properties:
        bucket: string
        expectedBucketOwner: string
        metadataConfiguration:
            destinations:
                - tableBucketArn: string
                  tableBucketType: string
                  tableNamespace: string
            inventoryTableConfiguration:
                configurationState: string
                encryptionConfiguration:
                    kmsKeyArn: string
                    sseAlgorithm: string
                tableArn: string
                tableName: string
            journalTableConfiguration:
                encryptionConfiguration:
                    kmsKeyArn: string
                    sseAlgorithm: string
                recordExpiration:
                    days: 0
                    expiration: string
                tableArn: string
                tableName: string
        region: string
        timeouts:
            create: string
    

    BucketMetadataConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The BucketMetadataConfiguration resource accepts the following input properties:

    Bucket string
    General purpose bucket that you want to create the metadata configuration for.
    ExpectedBucketOwner string
    MetadataConfiguration BucketMetadataConfigurationMetadataConfiguration

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts BucketMetadataConfigurationTimeouts
    Bucket string
    General purpose bucket that you want to create the metadata configuration for.
    ExpectedBucketOwner string
    MetadataConfiguration BucketMetadataConfigurationMetadataConfigurationArgs

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts BucketMetadataConfigurationTimeoutsArgs
    bucket String
    General purpose bucket that you want to create the metadata configuration for.
    expectedBucketOwner String
    metadataConfiguration BucketMetadataConfigurationMetadataConfiguration

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts BucketMetadataConfigurationTimeouts
    bucket string
    General purpose bucket that you want to create the metadata configuration for.
    expectedBucketOwner string
    metadataConfiguration BucketMetadataConfigurationMetadataConfiguration

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts BucketMetadataConfigurationTimeouts
    bucket str
    General purpose bucket that you want to create the metadata configuration for.
    expected_bucket_owner str
    metadata_configuration BucketMetadataConfigurationMetadataConfigurationArgs

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts BucketMetadataConfigurationTimeoutsArgs
    bucket String
    General purpose bucket that you want to create the metadata configuration for.
    expectedBucketOwner String
    metadataConfiguration Property Map

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BucketMetadataConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BucketMetadataConfiguration Resource

    Get an existing BucketMetadataConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BucketMetadataConfigurationState, opts?: CustomResourceOptions): BucketMetadataConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            expected_bucket_owner: Optional[str] = None,
            metadata_configuration: Optional[BucketMetadataConfigurationMetadataConfigurationArgs] = None,
            region: Optional[str] = None,
            timeouts: Optional[BucketMetadataConfigurationTimeoutsArgs] = None) -> BucketMetadataConfiguration
    func GetBucketMetadataConfiguration(ctx *Context, name string, id IDInput, state *BucketMetadataConfigurationState, opts ...ResourceOption) (*BucketMetadataConfiguration, error)
    public static BucketMetadataConfiguration Get(string name, Input<string> id, BucketMetadataConfigurationState? state, CustomResourceOptions? opts = null)
    public static BucketMetadataConfiguration get(String name, Output<String> id, BucketMetadataConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: aws:s3:BucketMetadataConfiguration    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Bucket string
    General purpose bucket that you want to create the metadata configuration for.
    ExpectedBucketOwner string
    MetadataConfiguration BucketMetadataConfigurationMetadataConfiguration

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts BucketMetadataConfigurationTimeouts
    Bucket string
    General purpose bucket that you want to create the metadata configuration for.
    ExpectedBucketOwner string
    MetadataConfiguration BucketMetadataConfigurationMetadataConfigurationArgs

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Timeouts BucketMetadataConfigurationTimeoutsArgs
    bucket String
    General purpose bucket that you want to create the metadata configuration for.
    expectedBucketOwner String
    metadataConfiguration BucketMetadataConfigurationMetadataConfiguration

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts BucketMetadataConfigurationTimeouts
    bucket string
    General purpose bucket that you want to create the metadata configuration for.
    expectedBucketOwner string
    metadataConfiguration BucketMetadataConfigurationMetadataConfiguration

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts BucketMetadataConfigurationTimeouts
    bucket str
    General purpose bucket that you want to create the metadata configuration for.
    expected_bucket_owner str
    metadata_configuration BucketMetadataConfigurationMetadataConfigurationArgs

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts BucketMetadataConfigurationTimeoutsArgs
    bucket String
    General purpose bucket that you want to create the metadata configuration for.
    expectedBucketOwner String
    metadataConfiguration Property Map

    Metadata configuration. See metadata_configuration Block for details.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    timeouts Property Map

    Supporting Types

    BucketMetadataConfigurationMetadataConfiguration, BucketMetadataConfigurationMetadataConfigurationArgs

    Destinations List<BucketMetadataConfigurationMetadataConfigurationDestination>
    Destination information for the S3 Metadata configuration.
    InventoryTableConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration
    Inventory table configuration. See inventory_table_configuration Block for details.
    JournalTableConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration
    Journal table configuration. See journal_table_configuration Block for details.
    Destinations []BucketMetadataConfigurationMetadataConfigurationDestination
    Destination information for the S3 Metadata configuration.
    InventoryTableConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration
    Inventory table configuration. See inventory_table_configuration Block for details.
    JournalTableConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration
    Journal table configuration. See journal_table_configuration Block for details.
    destinations List<BucketMetadataConfigurationMetadataConfigurationDestination>
    Destination information for the S3 Metadata configuration.
    inventoryTableConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration
    Inventory table configuration. See inventory_table_configuration Block for details.
    journalTableConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration
    Journal table configuration. See journal_table_configuration Block for details.
    destinations BucketMetadataConfigurationMetadataConfigurationDestination[]
    Destination information for the S3 Metadata configuration.
    inventoryTableConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration
    Inventory table configuration. See inventory_table_configuration Block for details.
    journalTableConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration
    Journal table configuration. See journal_table_configuration Block for details.
    destinations Sequence[BucketMetadataConfigurationMetadataConfigurationDestination]
    Destination information for the S3 Metadata configuration.
    inventory_table_configuration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration
    Inventory table configuration. See inventory_table_configuration Block for details.
    journal_table_configuration BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration
    Journal table configuration. See journal_table_configuration Block for details.
    destinations List<Property Map>
    Destination information for the S3 Metadata configuration.
    inventoryTableConfiguration Property Map
    Inventory table configuration. See inventory_table_configuration Block for details.
    journalTableConfiguration Property Map
    Journal table configuration. See journal_table_configuration Block for details.

    BucketMetadataConfigurationMetadataConfigurationDestination, BucketMetadataConfigurationMetadataConfigurationDestinationArgs

    TableBucketArn string
    ARN of the table bucket where the metadata configuration is stored.
    TableBucketType string
    Type of the table bucket where the metadata configuration is stored.
    TableNamespace string
    Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
    TableBucketArn string
    ARN of the table bucket where the metadata configuration is stored.
    TableBucketType string
    Type of the table bucket where the metadata configuration is stored.
    TableNamespace string
    Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
    tableBucketArn String
    ARN of the table bucket where the metadata configuration is stored.
    tableBucketType String
    Type of the table bucket where the metadata configuration is stored.
    tableNamespace String
    Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
    tableBucketArn string
    ARN of the table bucket where the metadata configuration is stored.
    tableBucketType string
    Type of the table bucket where the metadata configuration is stored.
    tableNamespace string
    Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
    table_bucket_arn str
    ARN of the table bucket where the metadata configuration is stored.
    table_bucket_type str
    Type of the table bucket where the metadata configuration is stored.
    table_namespace str
    Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
    tableBucketArn String
    ARN of the table bucket where the metadata configuration is stored.
    tableBucketType String
    Type of the table bucket where the metadata configuration is stored.
    tableNamespace String
    Namespace in the table bucket where the metadata tables for the metadata configuration are stored.

    BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration, BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs

    ConfigurationState string
    Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED.
    EncryptionConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration
    Encryption configuration for the inventory table. See encryption_configuration Block for details.
    TableArn string
    Inventory table ARN.
    TableName string
    Inventory table name.
    ConfigurationState string
    Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED.
    EncryptionConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration
    Encryption configuration for the inventory table. See encryption_configuration Block for details.
    TableArn string
    Inventory table ARN.
    TableName string
    Inventory table name.
    configurationState String
    Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED.
    encryptionConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration
    Encryption configuration for the inventory table. See encryption_configuration Block for details.
    tableArn String
    Inventory table ARN.
    tableName String
    Inventory table name.
    configurationState string
    Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED.
    encryptionConfiguration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration
    Encryption configuration for the inventory table. See encryption_configuration Block for details.
    tableArn string
    Inventory table ARN.
    tableName string
    Inventory table name.
    configuration_state str
    Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED.
    encryption_configuration BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration
    Encryption configuration for the inventory table. See encryption_configuration Block for details.
    table_arn str
    Inventory table ARN.
    table_name str
    Inventory table name.
    configurationState String
    Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values: ENABLED, DISABLED.
    encryptionConfiguration Property Map
    Encryption configuration for the inventory table. See encryption_configuration Block for details.
    tableArn String
    Inventory table ARN.
    tableName String
    Inventory table name.

    BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration, BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfigurationArgs

    SseAlgorithm string
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    KmsKeyArn string
    KMS key ARN when sse_algorithm is aws:kms.
    SseAlgorithm string
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    KmsKeyArn string
    KMS key ARN when sse_algorithm is aws:kms.
    sseAlgorithm String
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kmsKeyArn String
    KMS key ARN when sse_algorithm is aws:kms.
    sseAlgorithm string
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kmsKeyArn string
    KMS key ARN when sse_algorithm is aws:kms.
    sse_algorithm str
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kms_key_arn str
    KMS key ARN when sse_algorithm is aws:kms.
    sseAlgorithm String
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kmsKeyArn String
    KMS key ARN when sse_algorithm is aws:kms.

    BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration, BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs

    EncryptionConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration
    Encryption configuration for the journal table. See encryption_configuration Block for details.
    RecordExpiration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpiration
    Journal table record expiration settings. See record_expiration Block for details.
    TableArn string
    Journal table ARN.
    TableName string
    Journal table name.
    EncryptionConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration
    Encryption configuration for the journal table. See encryption_configuration Block for details.
    RecordExpiration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpiration
    Journal table record expiration settings. See record_expiration Block for details.
    TableArn string
    Journal table ARN.
    TableName string
    Journal table name.
    encryptionConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration
    Encryption configuration for the journal table. See encryption_configuration Block for details.
    recordExpiration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpiration
    Journal table record expiration settings. See record_expiration Block for details.
    tableArn String
    Journal table ARN.
    tableName String
    Journal table name.
    encryptionConfiguration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration
    Encryption configuration for the journal table. See encryption_configuration Block for details.
    recordExpiration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpiration
    Journal table record expiration settings. See record_expiration Block for details.
    tableArn string
    Journal table ARN.
    tableName string
    Journal table name.
    encryption_configuration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration
    Encryption configuration for the journal table. See encryption_configuration Block for details.
    record_expiration BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpiration
    Journal table record expiration settings. See record_expiration Block for details.
    table_arn str
    Journal table ARN.
    table_name str
    Journal table name.
    encryptionConfiguration Property Map
    Encryption configuration for the journal table. See encryption_configuration Block for details.
    recordExpiration Property Map
    Journal table record expiration settings. See record_expiration Block for details.
    tableArn String
    Journal table ARN.
    tableName String
    Journal table name.

    BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration, BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfigurationArgs

    SseAlgorithm string
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    KmsKeyArn string
    KMS key ARN when sse_algorithm is aws:kms.
    SseAlgorithm string
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    KmsKeyArn string
    KMS key ARN when sse_algorithm is aws:kms.
    sseAlgorithm String
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kmsKeyArn String
    KMS key ARN when sse_algorithm is aws:kms.
    sseAlgorithm string
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kmsKeyArn string
    KMS key ARN when sse_algorithm is aws:kms.
    sse_algorithm str
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kms_key_arn str
    KMS key ARN when sse_algorithm is aws:kms.
    sseAlgorithm String
    Encryption type for the metadata table. Valid values: aws:kms, AES256.
    kmsKeyArn String
    KMS key ARN when sse_algorithm is aws:kms.

    BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpiration, BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationRecordExpirationArgs

    Expiration string
    Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED.
    Days int
    Number of days to retain journal table records.
    Expiration string
    Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED.
    Days int
    Number of days to retain journal table records.
    expiration String
    Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED.
    days Integer
    Number of days to retain journal table records.
    expiration string
    Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED.
    days number
    Number of days to retain journal table records.
    expiration str
    Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED.
    days int
    Number of days to retain journal table records.
    expiration String
    Whether journal table record expiration is enabled or disabled. Valid values: ENABLED, DISABLED.
    days Number
    Number of days to retain journal table records.

    BucketMetadataConfigurationTimeouts, BucketMetadataConfigurationTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, import using the bucket and expected_bucket_owner separated by a comma (,):

    Using pulumi import to import S3 bucket metadata configuration using the bucket or using the bucket and expected_bucket_owner separated by a comma (,). For example:

    If the owner (account ID) of the source bucket is the same account used to configure the Terraform AWS Provider, import using the bucket:

    $ pulumi import aws:s3/bucketMetadataConfiguration:BucketMetadataConfiguration example bucket-name
    

    If the owner (account ID) of the source bucket differs from the account used to configure the Terraform AWS Provider, import using the bucket and expected_bucket_owner separated by a comma (,):

    $ pulumi import aws:s3/bucketMetadataConfiguration:BucketMetadataConfiguration example bucket-name,123456789012
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.3.1 published on Wednesday, Aug 6, 2025 by Pulumi