Table Policy Args
data class TablePolicyArgs(val name: Output<String>? = null, val namespace: Output<String>? = null, val resourcePolicy: Output<String>? = null, val tableBucketArn: Output<String>? = null) : ConvertibleToJava<TablePolicyArgs>
Resource for managing an Amazon S3 Tables Table Policy.
Example Usage
Basic Usage
resources:
exampleTablePolicy:
type: aws:s3tables:TablePolicy
name: example
properties:
resourcePolicy: ${example.json}
name: ${test.name}
namespace: ${test.namespace}
tableBucketArn: ${test.tableBucketArn}
exampleTable:
type: aws:s3tables:Table
name: example
properties:
name: example_table
namespace: ${exampleNamespace}
tableBucketArn: ${exampleNamespace.tableBucketArn}
format: ICEBERG
exampleNamespace:
type: aws:s3tables:Namespace
name: example
properties:
namespace:
- example-namespace
tableBucketArn: ${exampleTableBucket.arn}
exampleTableBucket:
type: aws:s3tables:TableBucket
name: example
properties:
name: example-bucket
variables:
example:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
statements:
- {}
Content copied to clipboard
Import
Using pulumi import
, import S3 Tables Table Policy using the table_bucket_arn
, the value of namespace
, and the value of name
, separated by a semicolon (;
). For example:
$ pulumi import aws:s3tables/tablePolicy:TablePolicy example 'arn:aws:s3tables:us-west-2:123456789012:bucket/example-bucket;example-namespace;example-table'
Content copied to clipboard