Skip to content

Commit 04d46e1

Browse files
author
AWS
committed
AWS Glue Update: Adding support to update multiple partitions of a table in a single request
1 parent c45c43b commit 04d46e1

File tree

2 files changed

+101
-2
lines changed

2 files changed

+101
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Glue",
4+
"description": "Adding support to update multiple partitions of a table in a single request"
5+
}

services/glue/src/main/resources/codegen-resources/service-2.json

Lines changed: 96 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,23 @@
200200
],
201201
"documentation":"<p>Stops one or more job runs for a specified job definition.</p>"
202202
},
203+
"BatchUpdatePartition":{
204+
"name":"BatchUpdatePartition",
205+
"http":{
206+
"method":"POST",
207+
"requestUri":"/"
208+
},
209+
"input":{"shape":"BatchUpdatePartitionRequest"},
210+
"output":{"shape":"BatchUpdatePartitionResponse"},
211+
"errors":[
212+
{"shape":"InvalidInputException"},
213+
{"shape":"EntityNotFoundException"},
214+
{"shape":"OperationTimeoutException"},
215+
{"shape":"InternalServiceException"},
216+
{"shape":"GlueEncryptionException"}
217+
],
218+
"documentation":"<p>Updates one or more partitions in a batch operation.</p>"
219+
},
203220
"CancelMLTaskRun":{
204221
"name":"CancelMLTaskRun",
205222
"http":{
@@ -2677,6 +2694,83 @@
26772694
"type":"list",
26782695
"member":{"shape":"BatchStopJobRunSuccessfulSubmission"}
26792696
},
2697+
"BatchUpdatePartitionFailureEntry":{
2698+
"type":"structure",
2699+
"members":{
2700+
"PartitionValueList":{
2701+
"shape":"BoundedPartitionValueList",
2702+
"documentation":"<p>A list of values defining the partitions.</p>"
2703+
},
2704+
"ErrorDetail":{
2705+
"shape":"ErrorDetail",
2706+
"documentation":"<p>The details about the batch update partition error.</p>"
2707+
}
2708+
},
2709+
"documentation":"<p>Contains information about a batch update partition error.</p>"
2710+
},
2711+
"BatchUpdatePartitionFailureList":{
2712+
"type":"list",
2713+
"member":{"shape":"BatchUpdatePartitionFailureEntry"}
2714+
},
2715+
"BatchUpdatePartitionRequest":{
2716+
"type":"structure",
2717+
"required":[
2718+
"DatabaseName",
2719+
"TableName",
2720+
"Entries"
2721+
],
2722+
"members":{
2723+
"CatalogId":{
2724+
"shape":"CatalogIdString",
2725+
"documentation":"<p>The ID of the catalog in which the partition is to be updated. Currently, this should be the AWS account ID.</p>"
2726+
},
2727+
"DatabaseName":{
2728+
"shape":"NameString",
2729+
"documentation":"<p>The name of the metadata database in which the partition is to be updated.</p>"
2730+
},
2731+
"TableName":{
2732+
"shape":"NameString",
2733+
"documentation":"<p>The name of the metadata table in which the partition is to be updated.</p>"
2734+
},
2735+
"Entries":{
2736+
"shape":"BatchUpdatePartitionRequestEntryList",
2737+
"documentation":"<p>A list of up to 100 <code>BatchUpdatePartitionRequestEntry</code> objects to update.</p>"
2738+
}
2739+
}
2740+
},
2741+
"BatchUpdatePartitionRequestEntry":{
2742+
"type":"structure",
2743+
"required":[
2744+
"PartitionValueList",
2745+
"PartitionInput"
2746+
],
2747+
"members":{
2748+
"PartitionValueList":{
2749+
"shape":"BoundedPartitionValueList",
2750+
"documentation":"<p>A list of values defining the partitions.</p>"
2751+
},
2752+
"PartitionInput":{
2753+
"shape":"PartitionInput",
2754+
"documentation":"<p>The structure used to update a partition.</p>"
2755+
}
2756+
},
2757+
"documentation":"<p>A structure that contains the values and structure used to update a partition.</p>"
2758+
},
2759+
"BatchUpdatePartitionRequestEntryList":{
2760+
"type":"list",
2761+
"member":{"shape":"BatchUpdatePartitionRequestEntry"},
2762+
"max":100,
2763+
"min":1
2764+
},
2765+
"BatchUpdatePartitionResponse":{
2766+
"type":"structure",
2767+
"members":{
2768+
"Errors":{
2769+
"shape":"BatchUpdatePartitionFailureList",
2770+
"documentation":"<p>The errors encountered when trying to update the requested partitions. A list of <code>BatchUpdatePartitionFailureEntry</code> objects.</p>"
2771+
}
2772+
}
2773+
},
26802774
"BinaryColumnStatisticsData":{
26812775
"type":"structure",
26822776
"required":[
@@ -3281,7 +3375,7 @@
32813375
},
32823376
"ConnectionProperties":{
32833377
"shape":"ConnectionProperties",
3284-
"documentation":"<p>These key-value pairs define parameters for the connection:</p> <ul> <li> <p> <code>HOST</code> - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host.</p> </li> <li> <p> <code>PORT</code> - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections.</p> </li> <li> <p> <code>USER_NAME</code> - The name under which to log in to the database. The value string for <code>USER_NAME</code> is \"<code>USERNAME</code>\".</p> </li> <li> <p> <code>PASSWORD</code> - A password, if one is used, for the user name.</p> </li> <li> <p> <code>ENCRYPTED_PASSWORD</code> - When you enable connection password protection by setting <code>ConnectionPasswordEncryption</code> in the Data Catalog encryption settings, this field stores the encrypted password.</p> </li> <li> <p> <code>JDBC_DRIVER_JAR_URI</code> - The Amazon Simple Storage Service (Amazon S3) path of the JAR file that contains the JDBC driver to use.</p> </li> <li> <p> <code>JDBC_DRIVER_CLASS_NAME</code> - The class name of the JDBC driver to use.</p> </li> <li> <p> <code>JDBC_ENGINE</code> - The name of the JDBC engine to use.</p> </li> <li> <p> <code>JDBC_ENGINE_VERSION</code> - The version of the JDBC engine to use.</p> </li> <li> <p> <code>CONFIG_FILES</code> - (Reserved for future use.)</p> </li> <li> <p> <code>INSTANCE_ID</code> - The instance ID to use.</p> </li> <li> <p> <code>JDBC_CONNECTION_URL</code> - The URL for connecting to a JDBC data source.</p> </li> <li> <p> <code>JDBC_ENFORCE_SSL</code> - A Boolean string (true, false) specifying whether Secure Sockets Layer (SSL) with hostname matching is enforced for the JDBC connection on the client. The default is false.</p> </li> <li> <p> <code>CUSTOM_JDBC_CERT</code> - An Amazon S3 location specifying the customer's root certificate. AWS Glue uses this root certificate to validate the customer’s certificate when connecting to the customer database. AWS Glue only handles X.509 certificates. The certificate provided must be DER-encoded and supplied in Base64 encoding PEM format.</p> </li> <li> <p> <code>SKIP_CUSTOM_JDBC_CERT_VALIDATION</code> - By default, this is <code>false</code>. AWS Glue validates the Signature algorithm and Subject Public Key Algorithm for the customer certificate. The only permitted algorithms for the Signature algorithm are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject Public Key Algorithm, the key length must be at least 2048. You can set the value of this property to <code>true</code> to skip AWS Glue’s validation of the customer certificate.</p> </li> <li> <p> <code>CUSTOM_JDBC_CERT_STRING</code> - A custom JDBC certificate string which is used for domain match or distinguished name match to prevent a man-in-the-middle attack. In Oracle database, this is used as the <code>SSL_SERVER_CERT_DN</code>; in Microsoft SQL Server, this is used as the <code>hostNameInCertificate</code>.</p> </li> <li> <p> <code>CONNECTION_URL</code> - The URL for connecting to a general (non-JDBC) data source.</p> </li> <li> <p> <code>KAFKA_BOOTSTRAP_SERVERS</code> - A comma-separated list of host and port pairs that are the addresses of the Apache Kafka brokers in a Kafka cluster to which a Kafka client will connect to and bootstrap itself.</p> </li> </ul>"
3378+
"documentation":"<p>These key-value pairs define parameters for the connection:</p> <ul> <li> <p> <code>HOST</code> - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host.</p> </li> <li> <p> <code>PORT</code> - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections.</p> </li> <li> <p> <code>USER_NAME</code> - The name under which to log in to the database. The value string for <code>USER_NAME</code> is \"<code>USERNAME</code>\".</p> </li> <li> <p> <code>PASSWORD</code> - A password, if one is used, for the user name.</p> </li> <li> <p> <code>ENCRYPTED_PASSWORD</code> - When you enable connection password protection by setting <code>ConnectionPasswordEncryption</code> in the Data Catalog encryption settings, this field stores the encrypted password.</p> </li> <li> <p> <code>JDBC_DRIVER_JAR_URI</code> - The Amazon Simple Storage Service (Amazon S3) path of the JAR file that contains the JDBC driver to use.</p> </li> <li> <p> <code>JDBC_DRIVER_CLASS_NAME</code> - The class name of the JDBC driver to use.</p> </li> <li> <p> <code>JDBC_ENGINE</code> - The name of the JDBC engine to use.</p> </li> <li> <p> <code>JDBC_ENGINE_VERSION</code> - The version of the JDBC engine to use.</p> </li> <li> <p> <code>CONFIG_FILES</code> - (Reserved for future use.)</p> </li> <li> <p> <code>INSTANCE_ID</code> - The instance ID to use.</p> </li> <li> <p> <code>JDBC_CONNECTION_URL</code> - The URL for connecting to a JDBC data source.</p> </li> <li> <p> <code>JDBC_ENFORCE_SSL</code> - A Boolean string (true, false) specifying whether Secure Sockets Layer (SSL) with hostname matching is enforced for the JDBC connection on the client. The default is false.</p> </li> <li> <p> <code>CUSTOM_JDBC_CERT</code> - An Amazon S3 location specifying the customer's root certificate. AWS Glue uses this root certificate to validate the customer’s certificate when connecting to the customer database. AWS Glue only handles X.509 certificates. The certificate provided must be DER-encoded and supplied in Base64 encoding PEM format.</p> </li> <li> <p> <code>SKIP_CUSTOM_JDBC_CERT_VALIDATION</code> - By default, this is <code>false</code>. AWS Glue validates the Signature algorithm and Subject Public Key Algorithm for the customer certificate. The only permitted algorithms for the Signature algorithm are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject Public Key Algorithm, the key length must be at least 2048. You can set the value of this property to <code>true</code> to skip AWS Glue’s validation of the customer certificate.</p> </li> <li> <p> <code>CUSTOM_JDBC_CERT_STRING</code> - A custom JDBC certificate string which is used for domain match or distinguished name match to prevent a man-in-the-middle attack. In Oracle database, this is used as the <code>SSL_SERVER_CERT_DN</code>; in Microsoft SQL Server, this is used as the <code>hostNameInCertificate</code>.</p> </li> <li> <p> <code>CONNECTION_URL</code> - The URL for connecting to a general (non-JDBC) data source.</p> </li> <li> <p> <code>KAFKA_BOOTSTRAP_SERVERS</code> - A comma-separated list of host and port pairs that are the addresses of the Apache Kafka brokers in a Kafka cluster to which a Kafka client will connect to and bootstrap itself.</p> </li> <li> <p> <code>KAFKA_SSL_ENABLED</code> - Whether to enable or disable SSL on an Apache Kafka connection. Default value is \"true\".</p> </li> <li> <p> <code>KAFKA_CUSTOM_CERT</code> - The Amazon S3 URL for the private CA cert file (.pem format). The default is an empty string.</p> </li> <li> <p> <code>KAFKA_SKIP_CUSTOM_CERT_VALIDATION</code> - Whether to skip the validation of the CA cert file or not. AWS Glue validates for three algorithms: SHA256withRSA, SHA384withRSA and SHA512withRSA. Default value is \"false\".</p> </li> </ul>"
32853379
},
32863380
"PhysicalConnectionRequirements":{
32873381
"shape":"PhysicalConnectionRequirements",
@@ -3320,7 +3414,7 @@
33203414
},
33213415
"ConnectionType":{
33223416
"shape":"ConnectionType",
3323-
"documentation":"<p>The type of the connection. Currently, these types are supported:</p> <ul> <li> <p> <code>JDBC</code> - Designates a connection to a database through Java Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates a connection to an Apache Kafka streaming platform.</p> </li> <li> <p> <code>MONGODB</code> - Designates a connection to a MongoDB document database.</p> </li> </ul> <p>SFTP is not supported.</p>"
3417+
"documentation":"<p>The type of the connection. Currently, these types are supported:</p> <ul> <li> <p> <code>JDBC</code> - Designates a connection to a database through Java Database Connectivity (JDBC).</p> </li> <li> <p> <code>KAFKA</code> - Designates a connection to an Apache Kafka streaming platform.</p> </li> <li> <p> <code>MONGODB</code> - Designates a connection to a MongoDB document database.</p> </li> <li> <p> <code>NETWORK</code> - Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC).</p> </li> </ul> <p>SFTP is not supported.</p>"
33243418
},
33253419
"MatchCriteria":{
33263420
"shape":"MatchCriteria",

0 commit comments

Comments
 (0)