aws.s3.BucketMetadataConfiguration
Explore with Pulumi AI
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.
- Expected
Bucket stringOwner - Metadata
Configuration BucketMetadata Configuration Metadata Configuration 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
Bucket
Metadata Configuration Timeouts
- Bucket string
- General purpose bucket that you want to create the metadata configuration for.
- Expected
Bucket stringOwner - Metadata
Configuration BucketMetadata Configuration Metadata Configuration Args 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
Bucket
Metadata Configuration Timeouts Args
- bucket String
- General purpose bucket that you want to create the metadata configuration for.
- expected
Bucket StringOwner - metadata
Configuration BucketMetadata Configuration Metadata Configuration 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
Bucket
Metadata Configuration Timeouts
- bucket string
- General purpose bucket that you want to create the metadata configuration for.
- expected
Bucket stringOwner - metadata
Configuration BucketMetadata Configuration Metadata Configuration 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
Bucket
Metadata Configuration Timeouts
- bucket str
- General purpose bucket that you want to create the metadata configuration for.
- expected_
bucket_ strowner - metadata_
configuration BucketMetadata Configuration Metadata Configuration Args 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
Bucket
Metadata Configuration Timeouts Args
- bucket String
- General purpose bucket that you want to create the metadata configuration for.
- expected
Bucket StringOwner - metadata
Configuration 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.
- Bucket string
- General purpose bucket that you want to create the metadata configuration for.
- Expected
Bucket stringOwner - Metadata
Configuration BucketMetadata Configuration Metadata Configuration 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
Bucket
Metadata Configuration Timeouts
- Bucket string
- General purpose bucket that you want to create the metadata configuration for.
- Expected
Bucket stringOwner - Metadata
Configuration BucketMetadata Configuration Metadata Configuration Args 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
Bucket
Metadata Configuration Timeouts Args
- bucket String
- General purpose bucket that you want to create the metadata configuration for.
- expected
Bucket StringOwner - metadata
Configuration BucketMetadata Configuration Metadata Configuration 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
Bucket
Metadata Configuration Timeouts
- bucket string
- General purpose bucket that you want to create the metadata configuration for.
- expected
Bucket stringOwner - metadata
Configuration BucketMetadata Configuration Metadata Configuration 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
Bucket
Metadata Configuration Timeouts
- bucket str
- General purpose bucket that you want to create the metadata configuration for.
- expected_
bucket_ strowner - metadata_
configuration BucketMetadata Configuration Metadata Configuration Args 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
Bucket
Metadata Configuration Timeouts Args
- bucket String
- General purpose bucket that you want to create the metadata configuration for.
- expected
Bucket StringOwner - metadata
Configuration 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<Bucket
Metadata Configuration Metadata Configuration Destination> - Destination information for the S3 Metadata configuration.
- Inventory
Table BucketConfiguration Metadata Configuration Metadata Configuration Inventory Table Configuration - Inventory table configuration. See
inventory_table_configuration
Block for details. - Journal
Table BucketConfiguration Metadata Configuration Metadata Configuration Journal Table Configuration - Journal table configuration. See
journal_table_configuration
Block for details.
- Destinations
[]Bucket
Metadata Configuration Metadata Configuration Destination - Destination information for the S3 Metadata configuration.
- Inventory
Table BucketConfiguration Metadata Configuration Metadata Configuration Inventory Table Configuration - Inventory table configuration. See
inventory_table_configuration
Block for details. - Journal
Table BucketConfiguration Metadata Configuration Metadata Configuration Journal Table Configuration - Journal table configuration. See
journal_table_configuration
Block for details.
- destinations
List<Bucket
Metadata Configuration Metadata Configuration Destination> - Destination information for the S3 Metadata configuration.
- inventory
Table BucketConfiguration Metadata Configuration Metadata Configuration Inventory Table Configuration - Inventory table configuration. See
inventory_table_configuration
Block for details. - journal
Table BucketConfiguration Metadata Configuration Metadata Configuration Journal Table Configuration - Journal table configuration. See
journal_table_configuration
Block for details.
- destinations
Bucket
Metadata Configuration Metadata Configuration Destination[] - Destination information for the S3 Metadata configuration.
- inventory
Table BucketConfiguration Metadata Configuration Metadata Configuration Inventory Table Configuration - Inventory table configuration. See
inventory_table_configuration
Block for details. - journal
Table BucketConfiguration Metadata Configuration Metadata Configuration Journal Table Configuration - Journal table configuration. See
journal_table_configuration
Block for details.
- destinations
Sequence[Bucket
Metadata Configuration Metadata Configuration Destination] - Destination information for the S3 Metadata configuration.
- inventory_
table_ Bucketconfiguration Metadata Configuration Metadata Configuration Inventory Table Configuration - Inventory table configuration. See
inventory_table_configuration
Block for details. - journal_
table_ Bucketconfiguration Metadata Configuration Metadata Configuration Journal Table Configuration - Journal table configuration. See
journal_table_configuration
Block for details.
- destinations List<Property Map>
- Destination information for the S3 Metadata configuration.
- inventory
Table Property MapConfiguration - Inventory table configuration. See
inventory_table_configuration
Block for details. - journal
Table Property MapConfiguration - Journal table configuration. See
journal_table_configuration
Block for details.
BucketMetadataConfigurationMetadataConfigurationDestination, BucketMetadataConfigurationMetadataConfigurationDestinationArgs
- Table
Bucket stringArn - ARN of the table bucket where the metadata configuration is stored.
- Table
Bucket stringType - Type of the table bucket where the metadata configuration is stored.
- Table
Namespace string - Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
- Table
Bucket stringArn - ARN of the table bucket where the metadata configuration is stored.
- Table
Bucket stringType - Type of the table bucket where the metadata configuration is stored.
- Table
Namespace string - Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
- table
Bucket StringArn - ARN of the table bucket where the metadata configuration is stored.
- table
Bucket StringType - Type of the table bucket where the metadata configuration is stored.
- table
Namespace String - Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
- table
Bucket stringArn - ARN of the table bucket where the metadata configuration is stored.
- table
Bucket stringType - Type of the table bucket where the metadata configuration is stored.
- table
Namespace string - Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
- table_
bucket_ strarn - ARN of the table bucket where the metadata configuration is stored.
- table_
bucket_ strtype - 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.
- table
Bucket StringArn - ARN of the table bucket where the metadata configuration is stored.
- table
Bucket StringType - Type of the table bucket where the metadata configuration is stored.
- table
Namespace String - Namespace in the table bucket where the metadata tables for the metadata configuration are stored.
BucketMetadataConfigurationMetadataConfigurationInventoryTableConfiguration, BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationArgs
- Configuration
State string - Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values:
ENABLED
,DISABLED
. - Encryption
Configuration BucketMetadata Configuration Metadata Configuration Inventory Table Configuration Encryption Configuration - Encryption configuration for the inventory table. See
encryption_configuration
Block for details. - Table
Arn string - Inventory table ARN.
- Table
Name string - Inventory table name.
- Configuration
State string - Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values:
ENABLED
,DISABLED
. - Encryption
Configuration BucketMetadata Configuration Metadata Configuration Inventory Table Configuration Encryption Configuration - Encryption configuration for the inventory table. See
encryption_configuration
Block for details. - Table
Arn string - Inventory table ARN.
- Table
Name string - Inventory table name.
- configuration
State String - Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values:
ENABLED
,DISABLED
. - encryption
Configuration BucketMetadata Configuration Metadata Configuration Inventory Table Configuration Encryption Configuration - Encryption configuration for the inventory table. See
encryption_configuration
Block for details. - table
Arn String - Inventory table ARN.
- table
Name String - Inventory table name.
- configuration
State string - Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values:
ENABLED
,DISABLED
. - encryption
Configuration BucketMetadata Configuration Metadata Configuration Inventory Table Configuration Encryption Configuration - Encryption configuration for the inventory table. See
encryption_configuration
Block for details. - table
Arn string - Inventory table ARN.
- table
Name 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 BucketMetadata Configuration Metadata Configuration Inventory Table Configuration Encryption Configuration - Encryption configuration for the inventory table. See
encryption_configuration
Block for details. - table_
arn str - Inventory table ARN.
- table_
name str - Inventory table name.
- configuration
State String - Configuration state of the inventory table, indicating whether the inventory table is enabled or disabled. Valid values:
ENABLED
,DISABLED
. - encryption
Configuration Property Map - Encryption configuration for the inventory table. See
encryption_configuration
Block for details. - table
Arn String - Inventory table ARN.
- table
Name String - Inventory table name.
BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfiguration, BucketMetadataConfigurationMetadataConfigurationInventoryTableConfigurationEncryptionConfigurationArgs
- Sse
Algorithm string - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - Kms
Key stringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- Sse
Algorithm string - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - Kms
Key stringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse
Algorithm String - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms
Key StringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse
Algorithm string - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms
Key stringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse_
algorithm str - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms_
key_ strarn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse
Algorithm String - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms
Key StringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
BucketMetadataConfigurationMetadataConfigurationJournalTableConfiguration, BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationArgs
- Encryption
Configuration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Encryption Configuration - Encryption configuration for the journal table. See
encryption_configuration
Block for details. - Record
Expiration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Record Expiration - Journal table record expiration settings. See
record_expiration
Block for details. - Table
Arn string - Journal table ARN.
- Table
Name string - Journal table name.
- Encryption
Configuration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Encryption Configuration - Encryption configuration for the journal table. See
encryption_configuration
Block for details. - Record
Expiration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Record Expiration - Journal table record expiration settings. See
record_expiration
Block for details. - Table
Arn string - Journal table ARN.
- Table
Name string - Journal table name.
- encryption
Configuration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Encryption Configuration - Encryption configuration for the journal table. See
encryption_configuration
Block for details. - record
Expiration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Record Expiration - Journal table record expiration settings. See
record_expiration
Block for details. - table
Arn String - Journal table ARN.
- table
Name String - Journal table name.
- encryption
Configuration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Encryption Configuration - Encryption configuration for the journal table. See
encryption_configuration
Block for details. - record
Expiration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Record Expiration - Journal table record expiration settings. See
record_expiration
Block for details. - table
Arn string - Journal table ARN.
- table
Name string - Journal table name.
- encryption_
configuration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Encryption Configuration - Encryption configuration for the journal table. See
encryption_configuration
Block for details. - record_
expiration BucketMetadata Configuration Metadata Configuration Journal Table Configuration Record Expiration - Journal table record expiration settings. See
record_expiration
Block for details. - table_
arn str - Journal table ARN.
- table_
name str - Journal table name.
- encryption
Configuration Property Map - Encryption configuration for the journal table. See
encryption_configuration
Block for details. - record
Expiration Property Map - Journal table record expiration settings. See
record_expiration
Block for details. - table
Arn String - Journal table ARN.
- table
Name String - Journal table name.
BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfiguration, BucketMetadataConfigurationMetadataConfigurationJournalTableConfigurationEncryptionConfigurationArgs
- Sse
Algorithm string - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - Kms
Key stringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- Sse
Algorithm string - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - Kms
Key stringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse
Algorithm String - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms
Key StringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse
Algorithm string - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms
Key stringArn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse_
algorithm str - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms_
key_ strarn - KMS key ARN when
sse_algorithm
isaws:kms
.
- sse
Algorithm String - Encryption type for the metadata table. Valid values:
aws:kms
,AES256
. - kms
Key StringArn - KMS key ARN when
sse_algorithm
isaws: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.