lib/aws-sdk-glue/client.rb in aws-sdk-glue-1.62.0 vs lib/aws-sdk-glue/client.rb in aws-sdk-glue-1.63.0

- old
+ new

@@ -886,10 +886,11 @@ # resp.partitions[0].storage_descriptor.skewed_info.skewed_column_value_location_maps["ColumnValuesString"] #=> String # resp.partitions[0].storage_descriptor.stored_as_sub_directories #=> Boolean # resp.partitions[0].parameters #=> Hash # resp.partitions[0].parameters["KeyString"] #=> String # resp.partitions[0].last_analyzed_time #=> Time + # resp.partitions[0].catalog_id #=> String # resp.unprocessed_keys #=> Array # resp.unprocessed_keys[0].values #=> Array # resp.unprocessed_keys[0].values[0] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetPartition AWS API Documentation @@ -1473,10 +1474,14 @@ # data_lake_principal_identifier: "DataLakePrincipalString", # }, # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS # }, # ], + # target_database: { + # catalog_id: "CatalogIdString", + # database_name: "NameString", + # }, # }, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateDatabase AWS API Documentation # @@ -2372,10 +2377,15 @@ # view_expanded_text: "ViewTextString", # table_type: "TableTypeString", # parameters: { # "KeyString" => "ParametersMapValue", # }, + # target_table: { + # catalog_id: "CatalogIdString", + # database_name: "NameString", + # name: "NameString", + # }, # }, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateTable AWS API Documentation # @@ -2891,16 +2901,21 @@ # Deletes a specified policy. # # @option params [String] :policy_hash_condition # The hash value returned when this policy was set. # + # @option params [String] :resource_arn + # The ARN of the AWS Glue resource for the resource policy to be + # deleted. + # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.delete_resource_policy({ # policy_hash_condition: "HashString", + # resource_arn: "GlueResourceArn", # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy AWS API Documentation # # @overload delete_resource_policy(params = {}) @@ -3798,10 +3813,13 @@ # resp.database.create_time #=> Time # resp.database.create_table_default_permissions #=> Array # resp.database.create_table_default_permissions[0].principal.data_lake_principal_identifier #=> String # resp.database.create_table_default_permissions[0].permissions #=> Array # resp.database.create_table_default_permissions[0].permissions[0] #=> String, one of "ALL", "SELECT", "ALTER", "DROP", "DELETE", "INSERT", "CREATE_DATABASE", "CREATE_TABLE", "DATA_LOCATION_ACCESS" + # resp.database.target_database.catalog_id #=> String + # resp.database.target_database.database_name #=> String + # resp.database.catalog_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabase AWS API Documentation # # @overload get_database(params = {}) # @param [Hash] params ({}) @@ -3820,10 +3838,20 @@ # A continuation token, if this is a continuation call. # # @option params [Integer] :max_results # The maximum number of databases to return in one response. # + # @option params [String] :resource_share_type + # Allows you to specify that you want to list the databases shared with + # your account. The allowable values are `FOREIGN` or `ALL`. + # + # * If set to `FOREIGN`, will list the databases shared with your + # account. + # + # * If set to `ALL`, will list the databases shared with your account, + # as well as the databases in yor local account. + # # @return [Types::GetDatabasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetDatabasesResponse#database_list #database_list} => Array<Types::Database> # * {Types::GetDatabasesResponse#next_token #next_token} => String # @@ -3833,10 +3861,11 @@ # # resp = client.get_databases({ # catalog_id: "CatalogIdString", # next_token: "Token", # max_results: 1, + # resource_share_type: "FOREIGN", # accepts FOREIGN, ALL # }) # # @example Response structure # # resp.database_list #=> Array @@ -3848,10 +3877,13 @@ # resp.database_list[0].create_time #=> Time # resp.database_list[0].create_table_default_permissions #=> Array # resp.database_list[0].create_table_default_permissions[0].principal.data_lake_principal_identifier #=> String # resp.database_list[0].create_table_default_permissions[0].permissions #=> Array # resp.database_list[0].create_table_default_permissions[0].permissions[0] #=> String, one of "ALL", "SELECT", "ALTER", "DROP", "DELETE", "INSERT", "CREATE_DATABASE", "CREATE_TABLE", "DATA_LOCATION_ACCESS" + # resp.database_list[0].target_database.catalog_id #=> String + # resp.database_list[0].target_database.database_name #=> String + # resp.database_list[0].catalog_id #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabases AWS API Documentation # # @overload get_databases(params = {}) @@ -4780,10 +4812,11 @@ # resp.partition.storage_descriptor.skewed_info.skewed_column_value_location_maps["ColumnValuesString"] #=> String # resp.partition.storage_descriptor.stored_as_sub_directories #=> Boolean # resp.partition.parameters #=> Hash # resp.partition.parameters["KeyString"] #=> String # resp.partition.last_analyzed_time #=> Time + # resp.partition.catalog_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartition AWS API Documentation # # @overload get_partition(params = {}) # @param [Hash] params ({}) @@ -4968,10 +5001,11 @@ # resp.partitions[0].storage_descriptor.skewed_info.skewed_column_value_location_maps["ColumnValuesString"] #=> String # resp.partitions[0].storage_descriptor.stored_as_sub_directories #=> Boolean # resp.partitions[0].parameters #=> Hash # resp.partitions[0].parameters["KeyString"] #=> String # resp.partitions[0].last_analyzed_time #=> Time + # resp.partitions[0].catalog_id #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartitions AWS API Documentation # # @overload get_partitions(params = {}) @@ -5064,19 +5098,73 @@ def get_plan(params = {}, options = {}) req = build_request(:get_plan, params) req.send_request(options) end + # Retrieves the security configurations for the resource policies set on + # individual resources, and also the account-level policy. + # + # @option params [String] :next_token + # A continuation token, if this is a continuation request. + # + # @option params [Integer] :max_results + # The maximum size of a list to return. + # + # @return [Types::GetResourcePoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetResourcePoliciesResponse#get_resource_policies_response_list #get_resource_policies_response_list} => Array<Types::GluePolicy> + # * {Types::GetResourcePoliciesResponse#next_token #next_token} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_resource_policies({ + # next_token: "Token", + # max_results: 1, + # }) + # + # @example Response structure + # + # resp.get_resource_policies_response_list #=> Array + # resp.get_resource_policies_response_list[0].policy_in_json #=> String + # resp.get_resource_policies_response_list[0].policy_hash #=> String + # resp.get_resource_policies_response_list[0].create_time #=> Time + # resp.get_resource_policies_response_list[0].update_time #=> Time + # resp.next_token #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicies AWS API Documentation + # + # @overload get_resource_policies(params = {}) + # @param [Hash] params ({}) + def get_resource_policies(params = {}, options = {}) + req = build_request(:get_resource_policies, params) + req.send_request(options) + end + # Retrieves a specified resource policy. # + # @option params [String] :resource_arn + # The ARN of the AWS Glue resource for the resource policy to be + # retrieved. For more information about AWS Glue resource ARNs, see the + # [AWS Glue ARN string pattern][1] + # + # + # + # [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id + # # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetResourcePolicyResponse#policy_in_json #policy_in_json} => String # * {Types::GetResourcePolicyResponse#policy_hash #policy_hash} => String # * {Types::GetResourcePolicyResponse#create_time #create_time} => Time # * {Types::GetResourcePolicyResponse#update_time #update_time} => Time # + # @example Request syntax with placeholder values + # + # resp = client.get_resource_policy({ + # resource_arn: "GlueResourceArn", + # }) + # # @example Response structure # # resp.policy_in_json #=> String # resp.policy_hash #=> String # resp.create_time #=> Time @@ -5250,10 +5338,14 @@ # resp.table.table_type #=> String # resp.table.parameters #=> Hash # resp.table.parameters["KeyString"] #=> String # resp.table.created_by #=> String # resp.table.is_registered_with_lake_formation #=> Boolean + # resp.table.target_table.catalog_id #=> String + # resp.table.target_table.database_name #=> String + # resp.table.target_table.name #=> String + # resp.table.catalog_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTable AWS API Documentation # # @overload get_table(params = {}) # @param [Hash] params ({}) @@ -5344,10 +5436,14 @@ # resp.table_version.table.table_type #=> String # resp.table_version.table.parameters #=> Hash # resp.table_version.table.parameters["KeyString"] #=> String # resp.table_version.table.created_by #=> String # resp.table_version.table.is_registered_with_lake_formation #=> Boolean + # resp.table_version.table.target_table.catalog_id #=> String + # resp.table_version.table.target_table.database_name #=> String + # resp.table_version.table.target_table.name #=> String + # resp.table_version.table.catalog_id #=> String # resp.table_version.version_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersion AWS API Documentation # # @overload get_table_version(params = {}) @@ -5447,10 +5543,14 @@ # resp.table_versions[0].table.table_type #=> String # resp.table_versions[0].table.parameters #=> Hash # resp.table_versions[0].table.parameters["KeyString"] #=> String # resp.table_versions[0].table.created_by #=> String # resp.table_versions[0].table.is_registered_with_lake_formation #=> Boolean + # resp.table_versions[0].table.target_table.catalog_id #=> String + # resp.table_versions[0].table.target_table.database_name #=> String + # resp.table_versions[0].table.target_table.name #=> String + # resp.table_versions[0].table.catalog_id #=> String # resp.table_versions[0].version_id #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersions AWS API Documentation # @@ -5551,10 +5651,14 @@ # resp.table_list[0].table_type #=> String # resp.table_list[0].parameters #=> Hash # resp.table_list[0].parameters["KeyString"] #=> String # resp.table_list[0].created_by #=> String # resp.table_list[0].is_registered_with_lake_formation #=> Boolean + # resp.table_list[0].target_table.catalog_id #=> String + # resp.table_list[0].target_table.database_name #=> String + # resp.table_list[0].target_table.name #=> String + # resp.table_list[0].catalog_id #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTables AWS API Documentation # # @overload get_tables(params = {}) @@ -5740,10 +5844,11 @@ # resp.user_defined_function.owner_type #=> String, one of "USER", "ROLE", "GROUP" # resp.user_defined_function.create_time #=> Time # resp.user_defined_function.resource_uris #=> Array # resp.user_defined_function.resource_uris[0].resource_type #=> String, one of "JAR", "FILE", "ARCHIVE" # resp.user_defined_function.resource_uris[0].uri #=> String + # resp.user_defined_function.catalog_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunction AWS API Documentation # # @overload get_user_defined_function(params = {}) # @param [Hash] params ({}) @@ -5800,10 +5905,11 @@ # resp.user_defined_functions[0].owner_type #=> String, one of "USER", "ROLE", "GROUP" # resp.user_defined_functions[0].create_time #=> Time # resp.user_defined_functions[0].resource_uris #=> Array # resp.user_defined_functions[0].resource_uris[0].resource_type #=> String, one of "JAR", "FILE", "ARCHIVE" # resp.user_defined_functions[0].resource_uris[0].uri #=> String + # resp.user_defined_functions[0].catalog_id #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunctions AWS API Documentation # # @overload get_user_defined_functions(params = {}) @@ -6634,10 +6740,19 @@ # Sets the Data Catalog resource policy for access control. # # @option params [required, String] :policy_in_json # Contains the policy document to set, in JSON format. # + # @option params [String] :resource_arn + # The ARN of the AWS Glue resource for the resource policy to be set. + # For more information about AWS Glue resource ARNs, see the [AWS Glue + # ARN string pattern][1] + # + # + # + # [1]: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id + # # @option params [String] :policy_hash_condition # The hash value returned when the previous policy was set using # `PutResourcePolicy`. Its purpose is to prevent concurrent # modifications of a policy. Do not use this parameter if no previous # policy has been set. @@ -6646,20 +6761,33 @@ # A value of `MUST_EXIST` is used to update a policy. A value of # `NOT_EXIST` is used to create a new policy. If a value of `NONE` or a # null value is used, the call will not depend on the existence of a # policy. # + # @option params [String] :enable_hybrid + # Allows you to specify if you want to use both resource-level and + # account/catalog-level resource policies. A resource-level policy is a + # policy attached to an individual resource such as a database or a + # table. + # + # The default value of `NO` indicates that resource-level policies + # cannot co-exist with an account-level policy. A value of `YES` means + # the use of both resource-level and account/catalog-level resource + # policies is allowed. + # # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::PutResourcePolicyResponse#policy_hash #policy_hash} => String # # @example Request syntax with placeholder values # # resp = client.put_resource_policy({ # policy_in_json: "PolicyJsonString", # required + # resource_arn: "GlueResourceArn", # policy_hash_condition: "HashString", # policy_exists_condition: "MUST_EXIST", # accepts MUST_EXIST, NOT_EXIST, NONE + # enable_hybrid: "TRUE", # accepts TRUE, FALSE # }) # # @example Response structure # # resp.policy_hash #=> String @@ -6780,10 +6908,20 @@ # ascending or descending order. # # @option params [Integer] :max_results # The maximum number of tables to return in a single response. # + # @option params [String] :resource_share_type + # Allows you to specify that you want to search the tables shared with + # your account. The allowable values are `FOREIGN` or `ALL`. + # + # * If set to `FOREIGN`, will search the tables shared with your + # account. + # + # * If set to `ALL`, will search the tables shared with your account, as + # well as the tables in yor local account. + # # @return [Types::SearchTablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::SearchTablesResponse#next_token #next_token} => String # * {Types::SearchTablesResponse#table_list #table_list} => Array<Types::Table> # @@ -6807,10 +6945,11 @@ # field_name: "ValueString", # sort: "ASC", # accepts ASC, DESC # }, # ], # max_results: 1, + # resource_share_type: "FOREIGN", # accepts FOREIGN, ALL # }) # # @example Response structure # # resp.next_token #=> String @@ -6864,10 +7003,14 @@ # resp.table_list[0].table_type #=> String # resp.table_list[0].parameters #=> Hash # resp.table_list[0].parameters["KeyString"] #=> String # resp.table_list[0].created_by #=> String # resp.table_list[0].is_registered_with_lake_formation #=> Boolean + # resp.table_list[0].target_table.catalog_id #=> String + # resp.table_list[0].target_table.database_name #=> String + # resp.table_list[0].target_table.name #=> String + # resp.table_list[0].catalog_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SearchTables AWS API Documentation # # @overload search_tables(params = {}) # @param [Hash] params ({}) @@ -8024,10 +8167,14 @@ # data_lake_principal_identifier: "DataLakePrincipalString", # }, # permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS # }, # ], + # target_database: { + # catalog_id: "CatalogIdString", + # database_name: "NameString", + # }, # }, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateDatabase AWS API Documentation # @@ -8469,10 +8616,15 @@ # view_expanded_text: "ViewTextString", # table_type: "TableTypeString", # parameters: { # "KeyString" => "ParametersMapValue", # }, + # target_table: { + # catalog_id: "CatalogIdString", + # database_name: "NameString", + # name: "NameString", + # }, # }, # skip_archive: false, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateTable AWS API Documentation @@ -8665,10 +8817,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-glue' - context[:gem_version] = '1.62.0' + context[:gem_version] = '1.63.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated