Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Jun 30, 2022
1 parent 3d809f4 commit cbf4363
Show file tree
Hide file tree
Showing 9 changed files with 1,029 additions and 91 deletions.
142 changes: 140 additions & 2 deletions codegen/sdk-codegen/aws-models/athena.json
Expand Up @@ -66,6 +66,9 @@
{
"target": "com.amazonaws.athena#BatchGetNamedQuery"
},
{
"target": "com.amazonaws.athena#BatchGetPreparedStatement"
},
{
"target": "com.amazonaws.athena#BatchGetQueryExecution"
},
Expand Down Expand Up @@ -260,6 +263,62 @@
}
}
},
"com.amazonaws.athena#BatchGetPreparedStatement": {
"type": "operation",
"input": {
"target": "com.amazonaws.athena#BatchGetPreparedStatementInput"
},
"output": {
"target": "com.amazonaws.athena#BatchGetPreparedStatementOutput"
},
"errors": [
{
"target": "com.amazonaws.athena#InternalServerException"
},
{
"target": "com.amazonaws.athena#InvalidRequestException"
}
],
"traits": {
"smithy.api#documentation": "<p>Returns the details of a single prepared statement or a list of up to 256 prepared statements for the array of prepared statement names that you provide. Requires you to have access to the workgroup to which the prepared statements belong. If a prepared statement cannot be retrieved for the name specified, the statement is listed in <code>UnprocessedPreparedStatementNames</code>.</p>"
}
},
"com.amazonaws.athena#BatchGetPreparedStatementInput": {
"type": "structure",
"members": {
"PreparedStatementNames": {
"target": "com.amazonaws.athena#PreparedStatementNameList",
"traits": {
"smithy.api#documentation": "<p>A list of prepared statement names to return.</p>",
"smithy.api#required": {}
}
},
"WorkGroup": {
"target": "com.amazonaws.athena#WorkGroupName",
"traits": {
"smithy.api#documentation": "<p>The name of the workgroup to which the prepared statements belong.</p>",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.athena#BatchGetPreparedStatementOutput": {
"type": "structure",
"members": {
"PreparedStatements": {
"target": "com.amazonaws.athena#PreparedStatementDetailsList",
"traits": {
"smithy.api#documentation": "<p>The list of prepared statements returned.</p>"
}
},
"UnprocessedPreparedStatementNames": {
"target": "com.amazonaws.athena#UnprocessedPreparedStatementNameList",
"traits": {
"smithy.api#documentation": "<p>A list of one or more prepared statements that were requested but could not be returned.</p>"
}
}
}
},
"com.amazonaws.athena#BatchGetQueryExecution": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -1138,6 +1197,26 @@
}
}
},
"com.amazonaws.athena#ExecutionParameter": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1024
}
}
},
"com.amazonaws.athena#ExecutionParameters": {
"type": "list",
"member": {
"target": "com.amazonaws.athena#ExecutionParameter"
},
"traits": {
"smithy.api#length": {
"min": 1
}
}
},
"com.amazonaws.athena#ExpressionString": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -1872,7 +1951,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Lists the prepared statements in the specfied workgroup.</p>",
"smithy.api#documentation": "<p>Lists the prepared statements in the specified workgroup.</p>",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
Expand Down Expand Up @@ -2457,6 +2536,18 @@
"smithy.api#documentation": "<p>A prepared SQL statement for use with Athena.</p>"
}
},
"com.amazonaws.athena#PreparedStatementDetailsList": {
"type": "list",
"member": {
"target": "com.amazonaws.athena#PreparedStatement"
}
},
"com.amazonaws.athena#PreparedStatementNameList": {
"type": "list",
"member": {
"target": "com.amazonaws.athena#StatementName"
}
},
"com.amazonaws.athena#PreparedStatementSummary": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2545,6 +2636,12 @@
"traits": {
"smithy.api#documentation": "<p>The engine version that executed the query.</p>"
}
},
"ExecutionParameters": {
"target": "com.amazonaws.athena#ExecutionParameters",
"traits": {
"smithy.api#documentation": "<p>A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2723,7 +2820,10 @@
"target": "com.amazonaws.athena#ErrorMessage"
},
"ResourceName": {
"target": "com.amazonaws.athena#AmazonResourceName"
"target": "com.amazonaws.athena#AmazonResourceName",
"traits": {
"smithy.api#documentation": "<p>The name of the Amazon resource.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2942,6 +3042,12 @@
"traits": {
"smithy.api#documentation": "<p>The name of the workgroup in which the query is being started.</p>"
}
},
"ExecutionParameters": {
"target": "com.amazonaws.athena#ExecutionParameters",
"traits": {
"smithy.api#documentation": "<p>A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur.</p>"
}
}
}
},
Expand Down Expand Up @@ -3269,6 +3375,38 @@
"target": "com.amazonaws.athena#UnprocessedNamedQueryId"
}
},
"com.amazonaws.athena#UnprocessedPreparedStatementName": {
"type": "structure",
"members": {
"StatementName": {
"target": "com.amazonaws.athena#StatementName",
"traits": {
"smithy.api#documentation": "<p>The name of a prepared statement that could not be returned due to an error.</p>"
}
},
"ErrorCode": {
"target": "com.amazonaws.athena#ErrorCode",
"traits": {
"smithy.api#documentation": "<p>The error code returned when the request for the prepared statement failed.</p>"
}
},
"ErrorMessage": {
"target": "com.amazonaws.athena#ErrorMessage",
"traits": {
"smithy.api#documentation": "<p>The error message containing the reason why the prepared statement could not be returned.\n The following error messages are possible:</p>\n <ul>\n <li>\n <p>\n <code>INVALID_INPUT</code> - The name of the prepared statement that was\n provided is not valid (for example, the name is too long).</p>\n </li>\n <li>\n <p>\n <code>STATEMENT_NOT_FOUND</code> - A prepared statement with the name provided\n could not be found.</p>\n </li>\n <li>\n <p>\n <code>UNAUTHORIZED</code> - The requester does not have permission to access\n the workgroup that contains the prepared statement.</p>\n </li>\n </ul>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The name of a prepared statement that could not be returned.</p>"
}
},
"com.amazonaws.athena#UnprocessedPreparedStatementNameList": {
"type": "list",
"member": {
"target": "com.amazonaws.athena#UnprocessedPreparedStatementName"
}
},
"com.amazonaws.athena#UnprocessedQueryExecutionId": {
"type": "structure",
"members": {
Expand Down
28 changes: 25 additions & 3 deletions codegen/sdk-codegen/aws-models/customer-profiles.json
Expand Up @@ -89,7 +89,7 @@
"KeyName": {
"target": "com.amazonaws.customerprofiles#name",
"traits": {
"smithy.api#documentation": "<p>A searchable identifier of a customer profile.</p>",
"smithy.api#documentation": "<p>A searchable identifier of a customer profile. The predefined keys you can use\n include: _account, _profileId, _assetId, _caseId, _orderId, _fullName, _phone,\n _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, _salesforceContactId,\n _salesforceAssetId, _zendeskUserId, _zendeskExternalId, _zendeskTicketId,\n _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, _shopifyCustomerId,\n _shopifyOrderId.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -375,6 +375,12 @@
"traits": {
"smithy.api#documentation": "<p>How the auto-merging process should resolve conflicts between different profiles. For\n example, if Profile A and Profile B have the same <code>FirstName</code> and\n <code>LastName</code> (and that is the matching criteria), which\n <code>EmailAddress</code> should be used? </p>"
}
},
"MinAllowedConfidenceScoreForMerging": {
"target": "com.amazonaws.customerprofiles#Double0To1",
"traits": {
"smithy.api#documentation": "<p>A number between 0 and 1 that represents the minimum confidence score required for\n profiles within a matching group to be merged during the auto-merge process. A higher\n score means higher similarity required to merge profiles. </p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -1652,6 +1658,16 @@
"smithy.api#box": {}
}
},
"com.amazonaws.customerprofiles#Double0To1": {
"type": "double",
"traits": {
"smithy.api#box": {},
"smithy.api#range": {
"min": 0.0,
"max": 1.0
}
}
},
"com.amazonaws.customerprofiles#ExportingConfig": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2002,6 +2018,12 @@
"smithy.api#documentation": "<p>How the auto-merging process should resolve conflicts between different profiles.</p>",
"smithy.api#required": {}
}
},
"MinAllowedConfidenceScoreForMerging": {
"target": "com.amazonaws.customerprofiles#Double0To1",
"traits": {
"smithy.api#documentation": "<p>Minimum confidence score required for profiles within a matching group to be merged during the auto-merge process.</p>"
}
}
}
},
Expand Down Expand Up @@ -4219,7 +4241,7 @@
"ConfidenceScore": {
"target": "com.amazonaws.customerprofiles#Double",
"traits": {
"smithy.api#documentation": "<p>A number between 0 and 1 that represents the confidence level of assigning profiles to a\n matching group. A score of 1 likely indicates an exact match.</p>"
"smithy.api#documentation": "<p>A number between 0 and 1, where a higher score means higher similarity.\n Examining match confidence scores lets you distinguish between groups of similar records in which\n the system is highly confident (which you may decide to merge), groups of similar records about\n which the system is uncertain (which you may decide to have reviewed by a human),\n and groups of similar records that the system deems to be unlikely (which you may decide to reject).\n Given confidence scores vary as per the data input, it should not be used an absolute\n measure of matching quality.</p>"
}
}
},
Expand Down Expand Up @@ -5033,7 +5055,7 @@
"TemplateId": {
"target": "com.amazonaws.customerprofiles#name",
"traits": {
"smithy.api#documentation": "<p>A unique identifier for the object template.</p>"
"smithy.api#documentation": "<p>A unique identifier for the object template. For some attributes in the request, the\n service will use the default value from the object template when TemplateId is present. If\n these attributes are present in the request, the service may return a <code>BadRequestException</code>. \n These attributes include: AllowProfileCreation, SourceLastUpdatedTimestampFormat, \n Fields, and Keys. For example, if AllowProfileCreation is set to true when TemplateId is set, the service\n may return a <code>BadRequestException</code>.</p>"
}
},
"ExpirationDays": {
Expand Down
12 changes: 12 additions & 0 deletions codegen/sdk-codegen/aws-models/emr.json
Expand Up @@ -212,6 +212,12 @@
"smithy.api#documentation": "<p> A list of <a>StepConfig</a> to be executed by the job flow. </p>",
"smithy.api#required": {}
}
},
"ExecutionRoleArn": {
"target": "com.amazonaws.emr#ArnType",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The\n runtime role can be a cross-account IAM role. The runtime role ARN is a combination of\n account ID, role name, and role type using the following format:\n <code>arn:partition:service:region:account:resource</code>. </p>\n <p>For example, <code>arn:aws:iam::1234567890:role/ReadOnly</code> is a correctly formatted\n runtime role ARN.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -7289,6 +7295,12 @@
"traits": {
"smithy.api#documentation": "<p>The current execution status details of the cluster step.</p>"
}
},
"ExecutionRoleArn": {
"target": "com.amazonaws.emr#OptionalArnType",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The\n runtime role can be a cross-account IAM role. The runtime role ARN is a combination of\n account ID, role name, and role type using the following format:\n <code>arn:partition:service:region:account:resource</code>. </p>\n <p>For example, <code>arn:aws:iam::1234567890:role/ReadOnly</code> is a correctly formatted\n runtime role ARN.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit cbf4363

Please sign in to comment.