Skip to content

Commit

Permalink
Updated API models and rebuilt service gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Ruby authored and Nobody committed Jun 24, 2022
1 parent 1b4f65a commit bcec4ff
Show file tree
Hide file tree
Showing 17 changed files with 591 additions and 51 deletions.
93 changes: 93 additions & 0 deletions apis/glue/2017-03-31/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,20 @@
{"shape":"OperationTimeoutException"}
]
},
"ListCrawls":{
"name":"ListCrawls",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"ListCrawlsRequest"},
"output":{"shape":"ListCrawlsResponse"},
"errors":[
{"shape":"EntityNotFoundException"},
{"shape":"OperationTimeoutException"},
{"shape":"InvalidInputException"}
]
},
"ListCustomEntityTypes":{
"name":"ListCustomEntityTypes",
"http":{
Expand Down Expand Up @@ -4191,6 +4205,7 @@
"LogStream":{"shape":"LogStream"}
}
},
"CrawlId":{"type":"string"},
"CrawlList":{
"type":"list",
"member":{"shape":"Crawl"}
Expand Down Expand Up @@ -4231,6 +4246,34 @@
}
},
"CrawlerConfiguration":{"type":"string"},
"CrawlerHistory":{
"type":"structure",
"members":{
"CrawlId":{"shape":"CrawlId"},
"State":{"shape":"CrawlerHistoryState"},
"StartTime":{"shape":"Timestamp"},
"EndTime":{"shape":"Timestamp"},
"Summary":{"shape":"NameString"},
"ErrorMessage":{"shape":"DescriptionString"},
"LogGroup":{"shape":"LogGroup"},
"LogStream":{"shape":"LogStream"},
"MessagePrefix":{"shape":"MessagePrefix"},
"DPUHour":{"shape":"NonNegativeDouble"}
}
},
"CrawlerHistoryList":{
"type":"list",
"member":{"shape":"CrawlerHistory"}
},
"CrawlerHistoryState":{
"type":"string",
"enum":[
"RUNNING",
"COMPLETED",
"FAILED",
"STOPPED"
]
},
"CrawlerLineageSettings":{
"type":"string",
"enum":[
Expand Down Expand Up @@ -4316,6 +4359,18 @@
"DeltaTargets":{"shape":"DeltaTargetList"}
}
},
"CrawlsFilter":{
"type":"structure",
"members":{
"FieldName":{"shape":"FieldName"},
"FilterOperator":{"shape":"FilterOperator"},
"FieldValue":{"shape":"GenericString"}
}
},
"CrawlsFilterList":{
"type":"list",
"member":{"shape":"CrawlsFilter"}
},
"CreateBlueprintRequest":{
"type":"structure",
"required":[
Expand Down Expand Up @@ -5720,6 +5775,16 @@
"type":"string",
"pattern":"[\\s\\S]*"
},
"FieldName":{
"type":"string",
"enum":[
"CRAWL_ID",
"STATE",
"START_TIME",
"END_TIME",
"DPU_HOUR"
]
},
"FieldType":{"type":"string"},
"FillMissingValues":{
"type":"structure",
Expand Down Expand Up @@ -5785,6 +5850,17 @@
"ISNULL"
]
},
"FilterOperator":{
"type":"string",
"enum":[
"GT",
"GE",
"LT",
"LE",
"EQ",
"NE"
]
},
"FilterString":{
"type":"string",
"max":2048,
Expand Down Expand Up @@ -7689,6 +7765,23 @@
"NextToken":{"shape":"Token"}
}
},
"ListCrawlsRequest":{
"type":"structure",
"required":["CrawlerName"],
"members":{
"CrawlerName":{"shape":"NameString"},
"MaxResults":{"shape":"PageSize"},
"Filters":{"shape":"CrawlsFilterList"},
"NextToken":{"shape":"Token"}
}
},
"ListCrawlsResponse":{
"type":"structure",
"members":{
"Crawls":{"shape":"CrawlerHistoryList"},
"NextToken":{"shape":"Token"}
}
},
"ListCustomEntityTypesRequest":{
"type":"structure",
"members":{
Expand Down
82 changes: 77 additions & 5 deletions apis/glue/2017-03-31/docs-2.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions apis/rds-data/2018-08-01/docs-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"version": "2.0",
"service": "<p><fullname>Amazon RDS Data Service</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work with the Data Service API.</p> <p>For more information about the Data Service API, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html\">Using the Data API</a> in the <i>Amazon Aurora User Guide</i>.</p></p>",
"operations": {
"BatchExecuteStatement": "<p>Runs a batch SQL statement over an array of data.</p> <p>You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.</p> <important> <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter, changes that result from the call are committed automatically.</p> </important>",
"BatchExecuteStatement": "<p>Runs a batch SQL statement over an array of data.</p> <p>You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.</p> <important> <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter, changes that result from the call are committed automatically.</p> <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and the size of each parameter set.</p> <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p> </important>",
"BeginTransaction": "<p>Starts a SQL transaction.</p> <pre><code> &lt;important&gt; &lt;p&gt;A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.&lt;/p&gt; &lt;p&gt;A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.&lt;/p&gt; &lt;p&gt;DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate &lt;code&gt;ExecuteStatement&lt;/code&gt; call with &lt;code&gt;continueAfterTimeout&lt;/code&gt; enabled.&lt;/p&gt; &lt;/important&gt; </code></pre>",
"CommitTransaction": "<p>Ends a SQL transaction started with the <code>BeginTransaction</code> operation and commits the changes.</p>",
"ExecuteSql": "<p>Runs one or more SQL statements.</p> <important> <p>This operation is deprecated. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation.</p> </important>",
"ExecuteStatement": "<p>Runs a SQL statement against a database.</p> <important> <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter, changes that result from the call are committed automatically.</p> </important> <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>",
"ExecuteStatement": "<p>Runs a SQL statement against a database.</p> <important> <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter, changes that result from the call are committed automatically.</p> <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p> </important>",
"RollbackTransaction": "<p>Performs a rollback of a transaction. Rolling back a transaction cancels its changes.</p>"
},
"shapes": {
Expand All @@ -19,15 +19,15 @@
"base": null,
"refs": {
"BatchExecuteStatementRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>",
"BatchExecuteStatementRequest$secretArn": "<p>The name or ARN of the secret that enables access to the DB cluster.</p>",
"BatchExecuteStatementRequest$secretArn": "<p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.</p> <p>For information about creating the secret, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html\">Create a database secret</a>.</p>",
"BeginTransactionRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>",
"BeginTransactionRequest$secretArn": "<p>The name or ARN of the secret that enables access to the DB cluster.</p>",
"CommitTransactionRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>",
"CommitTransactionRequest$secretArn": "<p>The name or ARN of the secret that enables access to the DB cluster.</p>",
"ExecuteSqlRequest$awsSecretStoreArn": "<p>The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster.</p>",
"ExecuteSqlRequest$awsSecretStoreArn": "<p>The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.</p> <p>For information about creating the secret, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html\">Create a database secret</a>.</p>",
"ExecuteSqlRequest$dbClusterOrInstanceArn": "<p>The ARN of the Aurora Serverless DB cluster.</p>",
"ExecuteStatementRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>",
"ExecuteStatementRequest$secretArn": "<p>The name or ARN of the secret that enables access to the DB cluster.</p>",
"ExecuteStatementRequest$secretArn": "<p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.</p> <p>For information about creating the secret, see <a href=\"https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html\">Create a database secret</a>.</p>",
"RollbackTransactionRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>",
"RollbackTransactionRequest$secretArn": "<p>The name or ARN of the secret that enables access to the DB cluster.</p>"
}
Expand Down Expand Up @@ -390,7 +390,7 @@
"SqlStatement": {
"base": null,
"refs": {
"BatchExecuteStatementRequest$sql": "<p>The SQL statement to run.</p>",
"BatchExecuteStatementRequest$sql": "<p>The SQL statement to run. Don't include a semicolon (;) at the end of the SQL statement.</p>",
"ExecuteSqlRequest$sqlStatements": "<p>One or more SQL statements to run on the DB cluster.</p> <p>You can separate SQL statements from each other with a semicolon (;). Any valid SQL statement is permitted, including data definition, data manipulation, and commit statements. </p>",
"ExecuteStatementRequest$sql": "<p>The SQL statement to run.</p>"
}
Expand Down
5 changes: 5 additions & 0 deletions gems/aws-partitions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Unreleased Changes
------------------

1.601.0 (2022-06-24)
------------------

* Feature - Updated the partitions source data the determines the AWS service regions and endpoints.

1.600.0 (2022-06-17)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-partitions/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.600.0
1.601.0
15 changes: 0 additions & 15 deletions gems/aws-partitions/partitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9815,21 +9815,6 @@
}
}
},
"redshift-serverless" : {
"endpoints" : {
"ap-northeast-1" : { },
"ap-northeast-2" : { },
"ap-southeast-1" : { },
"ap-southeast-2" : { },
"eu-central-1" : { },
"eu-north-1" : { },
"eu-west-1" : { },
"eu-west-2" : { },
"us-east-1" : { },
"us-east-2" : { },
"us-west-2" : { }
}
},
"rekognition" : {
"endpoints" : {
"ap-northeast-1" : { },
Expand Down
5 changes: 5 additions & 0 deletions gems/aws-sdk-glue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Unreleased Changes
------------------

1.113.0 (2022-06-24)
------------------

* Feature - This release enables the new ListCrawls API for viewing the AWS Glue Crawler run history.

1.112.0 (2022-05-17)
------------------

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-glue/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.112.0
1.113.0
2 changes: 1 addition & 1 deletion gems/aws-sdk-glue/lib/aws-sdk-glue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
# @!group service
module Aws::Glue

GEM_VERSION = '1.112.0'
GEM_VERSION = '1.113.0'

end
82 changes: 79 additions & 3 deletions gems/aws-sdk-glue/lib/aws-sdk-glue/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ def create_connection(params = {}, options = {})
# Specifies data lineage configuration settings for the crawler.
#
# @option params [Types::LakeFormationConfiguration] :lake_formation_configuration
# Specifies AWS Lake Formation configuration settings for the crawler.
# Specifies Lake Formation configuration settings for the crawler.
#
# @option params [String] :configuration
# Crawler configuration information. This versioned JSON string allows
Expand Down Expand Up @@ -10918,6 +10918,82 @@ def list_crawlers(params = {}, options = {})
req.send_request(options)
end

# Returns all the crawls of a specified crawler. Returns only the crawls
# that have occurred since the launch date of the crawler history
# feature, and only retains up to 12 months of crawls. Older crawls will
# not be returned.
#
# You may use this API to:
#
# * Retrive all the crawls of a specified crawler.
#
# * Retrieve all the crawls of a specified crawler within a limited
# count.
#
# * Retrieve all the crawls of a specified crawler in a specific time
# range.
#
# * Retrieve all the crawls of a specified crawler with a particular
# state, crawl ID, or DPU hour value.
#
# @option params [required, String] :crawler_name
# The name of the crawler whose runs you want to retrieve.
#
# @option params [Integer] :max_results
# The maximum number of results to return. The default is 20, and
# maximum is 100.
#
# @option params [Array<Types::CrawlsFilter>] :filters
# Filters the crawls by the criteria you specify in a list of
# `CrawlsFilter` objects.
#
# @option params [String] :next_token
# A continuation token, if this is a continuation call.
#
# @return [Types::ListCrawlsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListCrawlsResponse#crawls #crawls} => Array&lt;Types::CrawlerHistory&gt;
# * {Types::ListCrawlsResponse#next_token #next_token} => String
#
# @example Request syntax with placeholder values
#
# resp = client.list_crawls({
# crawler_name: "NameString", # required
# max_results: 1,
# filters: [
# {
# field_name: "CRAWL_ID", # accepts CRAWL_ID, STATE, START_TIME, END_TIME, DPU_HOUR
# filter_operator: "GT", # accepts GT, GE, LT, LE, EQ, NE
# field_value: "GenericString",
# },
# ],
# next_token: "Token",
# })
#
# @example Response structure
#
# resp.crawls #=> Array
# resp.crawls[0].crawl_id #=> String
# resp.crawls[0].state #=> String, one of "RUNNING", "COMPLETED", "FAILED", "STOPPED"
# resp.crawls[0].start_time #=> Time
# resp.crawls[0].end_time #=> Time
# resp.crawls[0].summary #=> String
# resp.crawls[0].error_message #=> String
# resp.crawls[0].log_group #=> String
# resp.crawls[0].log_stream #=> String
# resp.crawls[0].message_prefix #=> String
# resp.crawls[0].dpu_hour #=> Float
# resp.next_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListCrawls AWS API Documentation
#
# @overload list_crawls(params = {})
# @param [Hash] params ({})
def list_crawls(params = {}, options = {})
req = build_request(:list_crawls, params)
req.send_request(options)
end

# Lists all the custom patterns that have been created.
#
# @option params [String] :next_token
Expand Down Expand Up @@ -13327,7 +13403,7 @@ def update_connection(params = {}, options = {})
# Specifies data lineage configuration settings for the crawler.
#
# @option params [Types::LakeFormationConfiguration] :lake_formation_configuration
# Specifies AWS Lake Formation configuration settings for the crawler.
# Specifies Lake Formation configuration settings for the crawler.
#
# @option params [String] :configuration
# Crawler configuration information. This versioned JSON string allows
Expand Down Expand Up @@ -14974,7 +15050,7 @@ def build_request(operation_name, params = {})
params: params,
config: config)
context[:gem_name] = 'aws-sdk-glue'
context[:gem_version] = '1.112.0'
context[:gem_version] = '1.113.0'
Seahorse::Client::Request.new(handlers, context)
end

Expand Down
Loading

0 comments on commit bcec4ff

Please sign in to comment.