Class: Aws::S3Tables::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::S3Tables::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb
Overview
An API client for S3Tables. To construct a client, you need to configure a :region and :credentials.
client = Aws::S3Tables::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_namespace(params = {}) ⇒ Types::CreateNamespaceResponse
Creates a namespace.
-
#create_table(params = {}) ⇒ Types::CreateTableResponse
Creates a new table associated with the given namespace in a table bucket.
-
#create_table_bucket(params = {}) ⇒ Types::CreateTableBucketResponse
Creates a table bucket.
-
#delete_namespace(params = {}) ⇒ Struct
Deletes a namespace.
-
#delete_table(params = {}) ⇒ Struct
Deletes a table.
-
#delete_table_bucket(params = {}) ⇒ Struct
Deletes a table bucket.
-
#delete_table_bucket_encryption(params = {}) ⇒ Struct
Deletes the encryption configuration for a table bucket.
-
#delete_table_bucket_policy(params = {}) ⇒ Struct
Deletes a table bucket policy.
-
#delete_table_policy(params = {}) ⇒ Struct
Deletes a table policy.
-
#get_namespace(params = {}) ⇒ Types::GetNamespaceResponse
Gets details about a namespace.
-
#get_table(params = {}) ⇒ Types::GetTableResponse
Gets details about a table.
-
#get_table_bucket(params = {}) ⇒ Types::GetTableBucketResponse
Gets details on a table bucket.
-
#get_table_bucket_encryption(params = {}) ⇒ Types::GetTableBucketEncryptionResponse
Gets the encryption configuration for a table bucket.
-
#get_table_bucket_maintenance_configuration(params = {}) ⇒ Types::GetTableBucketMaintenanceConfigurationResponse
Gets details about a maintenance configuration for a given table bucket.
-
#get_table_bucket_policy(params = {}) ⇒ Types::GetTableBucketPolicyResponse
Gets details about a table bucket policy.
-
#get_table_encryption(params = {}) ⇒ Types::GetTableEncryptionResponse
Gets the encryption configuration for a table.
-
#get_table_maintenance_configuration(params = {}) ⇒ Types::GetTableMaintenanceConfigurationResponse
Gets details about the maintenance configuration of a table.
-
#get_table_maintenance_job_status(params = {}) ⇒ Types::GetTableMaintenanceJobStatusResponse
Gets the status of a maintenance job for a table.
-
#get_table_metadata_location(params = {}) ⇒ Types::GetTableMetadataLocationResponse
Gets the location of the table metadata.
-
#get_table_policy(params = {}) ⇒ Types::GetTablePolicyResponse
Gets details about a table policy.
-
#list_namespaces(params = {}) ⇒ Types::ListNamespacesResponse
Lists the namespaces within a table bucket.
-
#list_table_buckets(params = {}) ⇒ Types::ListTableBucketsResponse
Lists table buckets for your account.
-
#list_tables(params = {}) ⇒ Types::ListTablesResponse
List tables in the given table bucket.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all of the tags applied to a specified Amazon S3 Tables resource.
-
#put_table_bucket_encryption(params = {}) ⇒ Struct
Sets the encryption configuration for a table bucket.
-
#put_table_bucket_maintenance_configuration(params = {}) ⇒ Struct
Creates a new maintenance configuration or replaces an existing maintenance configuration for a table bucket.
-
#put_table_bucket_policy(params = {}) ⇒ Struct
Creates a new table bucket policy or replaces an existing table bucket policy for a table bucket.
-
#put_table_maintenance_configuration(params = {}) ⇒ Struct
Creates a new maintenance configuration or replaces an existing maintenance configuration for a table.
-
#put_table_policy(params = {}) ⇒ Struct
Creates a new table policy or replaces an existing table policy for a table.
-
#rename_table(params = {}) ⇒ Struct
Renames a table or a namespace.
-
#tag_resource(params = {}) ⇒ Struct
Applies one or more user-defined tags to an Amazon S3 Tables resource or updates existing tags.
-
#untag_resource(params = {}) ⇒ Struct
Removes the specified user-defined tags from an Amazon S3 Tables resource.
-
#update_table_metadata_location(params = {}) ⇒ Types::UpdateTableMetadataLocationResponse
Updates the metadata location for a table.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#create_namespace(params = {}) ⇒ Types::CreateNamespaceResponse
Creates a namespace. A namespace is a logical grouping of tables within your table bucket, which you can use to organize tables. For more information, see Create a namespace in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:CreateNamespacepermission to use this operation.
522 523 524 525 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 522 def create_namespace(params = {}, = {}) req = build_request(:create_namespace, params) req.send_request() end |
#create_table(params = {}) ⇒ Types::CreateTableResponse
Creates a new table associated with the given namespace in a table bucket. For more information, see Creating an Amazon S3 table in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:CreateTablepermission to use this operation.If you use this operation with the optional
metadatarequest parameter you must have thes3tables:PutTableDatapermission.If you use this operation with the optional
encryptionConfigurationrequest parameter you must have thes3tables:PutTableEncryptionpermission.You must have the
s3tables:TagResourcepermission in addition tos3tables:CreateTablepermission to create a table with tags.
Additionally, If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption.
647 648 649 650 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 647 def create_table(params = {}, = {}) req = build_request(:create_table, params) req.send_request() end |
#create_table_bucket(params = {}) ⇒ Types::CreateTableBucketResponse
Creates a table bucket. For more information, see Creating a table bucket in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:CreateTableBucketpermission to use this operation.If you use this operation with the optional
encryptionConfigurationparameter you must have thes3tables:PutTableBucketEncryptionpermission.You must have the
s3tables:TagResourcepermission in addition tos3tables:CreateTableBucketpermission to create a table bucket with tags.
723 724 725 726 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 723 def create_table_bucket(params = {}, = {}) req = build_request(:create_table_bucket, params) req.send_request() end |
#delete_namespace(params = {}) ⇒ Struct
Deletes a namespace. For more information, see Delete a namespace in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:DeleteNamespacepermission to use this operation.
760 761 762 763 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 760 def delete_namespace(params = {}, = {}) req = build_request(:delete_namespace, params) req.send_request() end |
#delete_table(params = {}) ⇒ Struct
Deletes a table. For more information, see Deleting an Amazon S3 table in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:DeleteTablepermission to use this operation.
805 806 807 808 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 805 def delete_table(params = {}, = {}) req = build_request(:delete_table, params) req.send_request() end |
#delete_table_bucket(params = {}) ⇒ Struct
Deletes a table bucket. For more information, see Deleting a table bucket in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:DeleteTableBucketpermission to use this operation.
837 838 839 840 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 837 def delete_table_bucket(params = {}, = {}) req = build_request(:delete_table_bucket, params) req.send_request() end |
#delete_table_bucket_encryption(params = {}) ⇒ Struct
Deletes the encryption configuration for a table bucket.
- Permissions
You must have the
s3tables:DeleteTableBucketEncryptionpermission to use this operation.
864 865 866 867 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 864 def delete_table_bucket_encryption(params = {}, = {}) req = build_request(:delete_table_bucket_encryption, params) req.send_request() end |
#delete_table_bucket_policy(params = {}) ⇒ Struct
Deletes a table bucket policy. For more information, see Deleting a table bucket policy in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:DeleteTableBucketPolicypermission to use this operation.
897 898 899 900 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 897 def delete_table_bucket_policy(params = {}, = {}) req = build_request(:delete_table_bucket_policy, params) req.send_request() end |
#delete_table_policy(params = {}) ⇒ Struct
Deletes a table policy. For more information, see Deleting a table policy in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:DeleteTablePolicypermission to use this operation.
938 939 940 941 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 938 def delete_table_policy(params = {}, = {}) req = build_request(:delete_table_policy, params) req.send_request() end |
#get_namespace(params = {}) ⇒ Types::GetNamespaceResponse
Gets details about a namespace. For more information, see Table namespaces in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetNamespacepermission to use this operation.
991 992 993 994 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 991 def get_namespace(params = {}, = {}) req = build_request(:get_namespace, params) req.send_request() end |
#get_table(params = {}) ⇒ Types::GetTableResponse
Gets details about a table. For more information, see S3 Tables in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTablepermission to use this operation.
1073 1074 1075 1076 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1073 def get_table(params = {}, = {}) req = build_request(:get_table, params) req.send_request() end |
#get_table_bucket(params = {}) ⇒ Types::GetTableBucketResponse
Gets details on a table bucket. For more information, see Viewing details about an Amazon S3 table bucket in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTableBucketpermission to use this operation.
1122 1123 1124 1125 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1122 def get_table_bucket(params = {}, = {}) req = build_request(:get_table_bucket, params) req.send_request() end |
#get_table_bucket_encryption(params = {}) ⇒ Types::GetTableBucketEncryptionResponse
Gets the encryption configuration for a table bucket.
- Permissions
You must have the
s3tables:GetTableBucketEncryptionpermission to use this operation.
1156 1157 1158 1159 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1156 def get_table_bucket_encryption(params = {}, = {}) req = build_request(:get_table_bucket_encryption, params) req.send_request() end |
#get_table_bucket_maintenance_configuration(params = {}) ⇒ Types::GetTableBucketMaintenanceConfigurationResponse
Gets details about a maintenance configuration for a given table bucket. For more information, see Amazon S3 table bucket maintenance in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTableBucketMaintenanceConfigurationpermission to use this operation.
1201 1202 1203 1204 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1201 def get_table_bucket_maintenance_configuration(params = {}, = {}) req = build_request(:get_table_bucket_maintenance_configuration, params) req.send_request() end |
#get_table_bucket_policy(params = {}) ⇒ Types::GetTableBucketPolicyResponse
Gets details about a table bucket policy. For more information, see Viewing a table bucket policy in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTableBucketPolicypermission to use this operation.
1240 1241 1242 1243 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1240 def get_table_bucket_policy(params = {}, = {}) req = build_request(:get_table_bucket_policy, params) req.send_request() end |
#get_table_encryption(params = {}) ⇒ Types::GetTableEncryptionResponse
Gets the encryption configuration for a table.
- Permissions
You must have the
s3tables:GetTableEncryptionpermission to use this operation.
1283 1284 1285 1286 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1283 def get_table_encryption(params = {}, = {}) req = build_request(:get_table_encryption, params) req.send_request() end |
#get_table_maintenance_configuration(params = {}) ⇒ Types::GetTableMaintenanceConfigurationResponse
Gets details about the maintenance configuration of a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTableMaintenanceConfigurationpermission to use this operation.You must have the
s3tables:GetTableDatapermission to use set the compaction strategy tosortorzorder.
1339 1340 1341 1342 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1339 def get_table_maintenance_configuration(params = {}, = {}) req = build_request(:get_table_maintenance_configuration, params) req.send_request() end |
#get_table_maintenance_job_status(params = {}) ⇒ Types::GetTableMaintenanceJobStatusResponse
Gets the status of a maintenance job for a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTableMaintenanceJobStatuspermission to use this operation.
1392 1393 1394 1395 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1392 def get_table_maintenance_job_status(params = {}, = {}) req = build_request(:get_table_maintenance_job_status, params) req.send_request() end |
#get_table_metadata_location(params = {}) ⇒ Types::GetTableMetadataLocationResponse
Gets the location of the table metadata.
- Permissions
You must have the
s3tables:GetTableMetadataLocationpermission to use this operation.
1437 1438 1439 1440 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1437 def (params = {}, = {}) req = build_request(:get_table_metadata_location, params) req.send_request() end |
#get_table_policy(params = {}) ⇒ Types::GetTablePolicyResponse
Gets details about a table policy. For more information, see Viewing a table policy in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:GetTablePolicypermission to use this operation.
1484 1485 1486 1487 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1484 def get_table_policy(params = {}, = {}) req = build_request(:get_table_policy, params) req.send_request() end |
#list_namespaces(params = {}) ⇒ Types::ListNamespacesResponse
Lists the namespaces within a table bucket. For more information, see Table namespaces in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:ListNamespacespermission to use this operation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1549 1550 1551 1552 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1549 def list_namespaces(params = {}, = {}) req = build_request(:list_namespaces, params) req.send_request() end |
#list_table_buckets(params = {}) ⇒ Types::ListTableBucketsResponse
Lists table buckets for your account. For more information, see S3 Table buckets in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:ListTableBucketspermission to use this operation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1612 1613 1614 1615 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1612 def list_table_buckets(params = {}, = {}) req = build_request(:list_table_buckets, params) req.send_request() end |
#list_tables(params = {}) ⇒ Types::ListTablesResponse
List tables in the given table bucket. For more information, see S3 Tables in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:ListTablespermission to use this operation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1682 1683 1684 1685 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1682 def list_tables(params = {}, = {}) req = build_request(:list_tables, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all of the tags applied to a specified Amazon S3 Tables resource. Each tag is a label consisting of a key and value pair. Tags can help you organize, track costs for, and control access to resources.
- Permissions
For tables and table buckets, you must have the
s3tables:ListTagsForResourcepermission to use this operation.
1735 1736 1737 1738 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1735 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_table_bucket_encryption(params = {}) ⇒ Struct
Sets the encryption configuration for a table bucket.
- Permissions
You must have the
s3tables:PutTableBucketEncryptionpermission to use this operation.If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption in the Amazon Simple Storage Service User Guide.
1780 1781 1782 1783 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1780 def put_table_bucket_encryption(params = {}, = {}) req = build_request(:put_table_bucket_encryption, params) req.send_request() end |
#put_table_bucket_maintenance_configuration(params = {}) ⇒ Struct
Creates a new maintenance configuration or replaces an existing maintenance configuration for a table bucket. For more information, see Amazon S3 table bucket maintenance in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:PutTableBucketMaintenanceConfigurationpermission to use this operation.
1832 1833 1834 1835 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1832 def put_table_bucket_maintenance_configuration(params = {}, = {}) req = build_request(:put_table_bucket_maintenance_configuration, params) req.send_request() end |
#put_table_bucket_policy(params = {}) ⇒ Struct
Creates a new table bucket policy or replaces an existing table bucket policy for a table bucket. For more information, see Adding a table bucket policy in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:PutTableBucketPolicypermission to use this operation.
1869 1870 1871 1872 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1869 def put_table_bucket_policy(params = {}, = {}) req = build_request(:put_table_bucket_policy, params) req.send_request() end |
#put_table_maintenance_configuration(params = {}) ⇒ Struct
Creates a new maintenance configuration or replaces an existing maintenance configuration for a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:PutTableMaintenanceConfigurationpermission to use this operation.
1932 1933 1934 1935 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1932 def put_table_maintenance_configuration(params = {}, = {}) req = build_request(:put_table_maintenance_configuration, params) req.send_request() end |
#put_table_policy(params = {}) ⇒ Struct
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:PutTablePolicypermission to use this operation.
1978 1979 1980 1981 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 1978 def put_table_policy(params = {}, = {}) req = build_request(:put_table_policy, params) req.send_request() end |
#rename_table(params = {}) ⇒ Struct
Renames a table or a namespace. For more information, see S3 Tables in the Amazon Simple Storage Service User Guide.
- Permissions
You must have the
s3tables:RenameTablepermission to use this operation.
2030 2031 2032 2033 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 2030 def rename_table(params = {}, = {}) req = build_request(:rename_table, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Applies one or more user-defined tags to an Amazon S3 Tables resource or updates existing tags. Each tag is a label consisting of a key and value pair. Tags can help you organize, track costs for, and control access to your resources. You can add up to 50 tags for each S3 resource.
- Permissions
For tables and table buckets, you must have the
s3tables:TagResourcepermission to use this operation.
2089 2090 2091 2092 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 2089 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes the specified user-defined tags from an Amazon S3 Tables resource. You can pass one or more tag keys.
- Permissions
For tables and table buckets, you must have the
s3tables:UntagResourcepermission to use this operation.
2143 2144 2145 2146 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 2143 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_table_metadata_location(params = {}) ⇒ Types::UpdateTableMetadataLocationResponse
Updates the metadata location for a table. The metadata location of a
table must be an S3 URI that begins with the table's warehouse
location. The metadata location for an Apache Iceberg table must end
with .metadata.json, or if the metadata file is Gzip-compressed,
.metadata.json.gz.
- Permissions
You must have the
s3tables:UpdateTableMetadataLocationpermission to use this operation.
2205 2206 2207 2208 |
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/client.rb', line 2205 def (params = {}, = {}) req = build_request(:update_table_metadata_location, params) req.send_request() end |