Skip to content

Creates a new table policy or replaces an existing table policy for a table

Description

Creates a new table policy or replaces an existing table policy for a table. For more information, see Adding a table policy in the Amazon Simple Storage Service User Guide.

Permissions

You must have the s3tables:PutTablePolicy permission to use this operation.

Usage

s3tables_put_table_policy(tableBucketARN, namespace, name,
  resourcePolicy)

Arguments

  • tableBucketARN

    [required] The Amazon Resource Name (ARN) of the table bucket that contains the table.

  • namespace

    [required] The namespace associated with the table.

  • name

    [required] The name of the table.

  • resourcePolicy

    [required] The JSON that defines the policy.

Value

An empty list.

Request syntax

svc$put_table_policy(
  tableBucketARN = "string",
  namespace = "string",
  name = "string",
  resourcePolicy = "string"
)