TablePolicyArgs

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:
- {}

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'

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, namespace: Output<String>? = null, resourcePolicy: Output<String>? = null, tableBucketArn: Output<String>? = null)

Properties

Link copied to clipboard
val name: Output<String>? = null

Name of the table. Must be between 1 and 255 characters in length. Can consist of lowercase letters, numbers, and underscores, and must begin and end with a lowercase letter or number.

Link copied to clipboard
val namespace: Output<String>? = null

Name of the namespace for this table. Must be between 1 and 255 characters in length. Can consist of lowercase letters, numbers, and underscores, and must begin and end with a lowercase letter or number.

Link copied to clipboard
val resourcePolicy: Output<String>? = null

Amazon Web Services resource-based policy document in JSON format.

Link copied to clipboard
val tableBucketArn: Output<String>? = null

ARN referencing the Table Bucket that contains this Namespace.

Functions

Link copied to clipboard
open override fun toJava(): TablePolicyArgs