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 Nov 8, 2023
1 parent 3674c38 commit f5a0876
Show file tree
Hide file tree
Showing 11 changed files with 1,503 additions and 224 deletions.
14 changes: 2 additions & 12 deletions codegen/sdk-codegen/aws-models/connect.json
Original file line number Diff line number Diff line change
Expand Up @@ -2072,17 +2072,6 @@
"expect": {
"error": "Invalid Configuration: Missing Region"
}
},
{
"documentation": "Partition doesn't support DualStack",
"expect": {
"error": "DualStack is enabled but this partition does not support DualStack"
},
"params": {
"Region": "us-isob-east-1",
"UseFIPS": false,
"UseDualStack": true
}
}
],
"version": "1.0"
Expand Down Expand Up @@ -25226,7 +25215,8 @@
"InstanceId": {
"target": "com.amazonaws.connect#InstanceId",
"traits": {
"smithy.api#documentation": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>\n <note>\n <p>InstanceID is a required field. The \"Required: No\" below is incorrect.</p>\n </note>"
"smithy.api#documentation": "<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>\n <note>\n <p>InstanceID is a required field. The \"Required: No\" below is incorrect.</p>\n </note>",
"smithy.api#required": {}
}
},
"NextToken": {
Expand Down
37 changes: 36 additions & 1 deletion codegen/sdk-codegen/aws-models/connectcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Creates a related item (comments, tasks, and contacts) and associates it with a\n case.</p>\n <note>\n <p>A Related Item is a resource that is associated with a case. It may or may not have an\n external identifier linking it to an external resource (for example, a\n <code>contactArn</code>). All Related Items have their own internal identifier, the\n <code>relatedItemArn</code>. Examples of related items include <code>comments</code> and\n <code>contacts</code>.</p>\n </note>",
"smithy.api#documentation": "<p>Creates a related item (comments, tasks, and contacts) and associates it with a\n case.</p>\n <note>\n <ul>\n <li> \n <p>A Related Item is a resource that is associated with a case. It may or may not have an\n external identifier linking it to an external resource (for example, a\n <code>contactArn</code>). All Related Items have their own internal identifier, the\n <code>relatedItemArn</code>. Examples of related items include <code>comments</code> and\n <code>contacts</code>.</p>\n </li>\n <li>\n <p>If you provide a value for <code>performedBy.userArn</code> you must also have \n <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html\">DescribeUser</a>\n permission on the ARN of the user that you provide.</p>\n </li>\n </ul>\n \n </note>",
"smithy.api#http": {
"uri": "/domains/{domainId}/cases/{caseId}/related-items/",
"method": "POST"
Expand Down Expand Up @@ -1684,6 +1684,12 @@
"smithy.api#documentation": "<p>The content of a related item to be created.</p>",
"smithy.api#required": {}
}
},
"performedBy": {
"target": "com.amazonaws.connectcases#UserUnion",
"traits": {
"smithy.api#documentation": "<p>Represents the creator of the related item.</p>"
}
}
}
},
Expand Down Expand Up @@ -4372,6 +4378,12 @@
"traits": {
"smithy.api#documentation": "<p>A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.</p>"
}
},
"performedBy": {
"target": "com.amazonaws.connectcases#UserUnion",
"traits": {
"smithy.api#documentation": "<p>Represents the creator of the related item.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -5062,6 +5074,29 @@
"type": "structure",
"members": {}
},
"com.amazonaws.connectcases#UserArn": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 500
}
}
},
"com.amazonaws.connectcases#UserUnion": {
"type": "union",
"members": {
"userArn": {
"target": "com.amazonaws.connectcases#UserArn",
"traits": {
"smithy.api#documentation": "<p>Represents the Amazon Connect ARN of the user.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Represents the identity of the person who performed the action.</p>"
}
},
"com.amazonaws.connectcases#ValidationException": {
"type": "structure",
"members": {
Expand Down
4 changes: 2 additions & 2 deletions codegen/sdk-codegen/aws-models/datasync.json
Original file line number Diff line number Diff line change
Expand Up @@ -6728,10 +6728,10 @@
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"min": 0,
"max": 200
},
"smithy.api#pattern": "^.+$"
"smithy.api#pattern": "^.*$"
}
},
"com.amazonaws.datasync#ObjectStorageBucketName": {
Expand Down
409 changes: 407 additions & 2 deletions codegen/sdk-codegen/aws-models/guardduty.json

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions codegen/sdk-codegen/aws-models/lambda.json
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@
"EphemeralStorage": {
"target": "com.amazonaws.lambda#EphemeralStorage",
"traits": {
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole\n number between 512 and 10,240 MB.</p>"
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole\n number between 512 and 10,240 MB. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage\">Configuring ephemeral storage (console)</a>.</p>"
}
},
"SnapStart": {
Expand Down Expand Up @@ -3855,7 +3855,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but it can be any\n whole number between 512 and 10,240 MB.</p>"
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole\n number between 512 and 10,240 MB. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage\">Configuring ephemeral storage (console)</a>.</p>"
}
},
"com.amazonaws.lambda#EphemeralStorageSize": {
Expand Down Expand Up @@ -4452,7 +4452,7 @@
"EphemeralStorage": {
"target": "com.amazonaws.lambda#EphemeralStorage",
"traits": {
"smithy.api#documentation": "<p>The size of the functions <code>/tmp</code> directory in MB. The default value is 512, but it can be any\n whole number between 512 and 10,240 MB.</p>"
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole\n number between 512 and 10,240 MB. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage\">Configuring ephemeral storage (console)</a>.</p>"
}
},
"SnapStart": {
Expand Down Expand Up @@ -6455,7 +6455,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or\n asynchronously. To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>.</p>\n <p>For <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html\">synchronous invocation</a>,\n details about the function response, including errors, are included in the response body and headers. For either\n invocation type, you can find more information in the <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html\">execution log</a> and <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html\">trace</a>.</p>\n <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type,\n client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an\n error, Lambda executes the function up to two more times. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html\">Error handling and automatic retries in\n Lambda</a>.</p>\n <p>For <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html\">asynchronous invocation</a>,\n Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity\n to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple\n times, even if no error occurs. To retain events that were not processed, configure your function with a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq\">dead-letter queue</a>.</p>\n <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that\n prevent your function from executing, such as permissions errors, <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html\">quota</a> errors, or issues with your function's code and\n configuration. For example, Lambda returns <code>TooManyRequestsException</code> if running the\n function would cause you to exceed a concurrency limit at either the account level\n (<code>ConcurrentInvocationLimitExceeded</code>) or function level\n (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p>\n <p>For functions with a long timeout, your client might disconnect during synchronous invocation while it waits\n for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long\n connections with timeout or keep-alive settings.</p>\n <p>This operation requires permission for the <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html\">lambda:InvokeFunction</a> action. For details on how to set up\n permissions for cross-account invocations, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke\">Granting function\n access to other accounts</a>.</p>",
"smithy.api#documentation": "<p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or\n asynchronously. By default, Lambda invokes your function synchronously (i.e. the<code>InvocationType</code>\n is <code>RequestResponse</code>). To invoke a function asynchronously, set <code>InvocationType</code> to\n <code>Event</code>. Lambda passes the <code>ClientContext</code> object to your function for\n synchronous invocations only.</p>\n <p>For <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html\">synchronous invocation</a>,\n details about the function response, including errors, are included in the response body and headers. For either\n invocation type, you can find more information in the <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html\">execution log</a> and <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html\">trace</a>.</p>\n <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type,\n client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an\n error, Lambda executes the function up to two more times. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html\">Error handling and automatic retries in\n Lambda</a>.</p>\n <p>For <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html\">asynchronous invocation</a>,\n Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity\n to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple\n times, even if no error occurs. To retain events that were not processed, configure your function with a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq\">dead-letter queue</a>.</p>\n <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that\n prevent your function from executing, such as permissions errors, <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html\">quota</a> errors, or issues with your function's code and\n configuration. For example, Lambda returns <code>TooManyRequestsException</code> if running the\n function would cause you to exceed a concurrency limit at either the account level\n (<code>ConcurrentInvocationLimitExceeded</code>) or function level\n (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p>\n <p>For functions with a long timeout, your client might disconnect during synchronous invocation while it waits\n for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long\n connections with timeout or keep-alive settings.</p>\n <p>This operation requires permission for the <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html\">lambda:InvokeFunction</a> action. For details on how to set up\n permissions for cross-account invocations, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke\">Granting function\n access to other accounts</a>.</p>",
"smithy.api#http": {
"method": "POST",
"uri": "/2015-03-31/functions/{FunctionName}/invocations",
Expand Down Expand Up @@ -6490,7 +6490,7 @@
],
"traits": {
"smithy.api#deprecated": {},
"smithy.api#documentation": "<important>\n <p>For asynchronous function invocation, use <a>Invoke</a>.</p>\n </important>\n <p>Invokes a function asynchronously.</p>",
"smithy.api#documentation": "<important>\n <p>For asynchronous function invocation, use <a>Invoke</a>.</p>\n </important>\n <p>Invokes a function asynchronously.</p>\n <note>\n <p>If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not \n propagated to the function, even if X-Ray active tracing is turned on.</p>\n </note>",
"smithy.api#http": {
"method": "POST",
"uri": "/2014-11-13/functions/{FunctionName}/invoke-async",
Expand Down Expand Up @@ -9952,6 +9952,12 @@
"traits": {
"smithy.api#enumValue": "python3.11"
}
},
"nodejs20x": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "nodejs20.x"
}
}
}
},
Expand Down Expand Up @@ -11472,7 +11478,7 @@
"EphemeralStorage": {
"target": "com.amazonaws.lambda#EphemeralStorage",
"traits": {
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole\n number between 512 and 10,240 MB.</p>"
"smithy.api#documentation": "<p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole\n number between 512 and 10,240 MB. For more information, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage\">Configuring ephemeral storage (console)</a>.</p>"
}
},
"SnapStart": {
Expand Down
12 changes: 12 additions & 0 deletions codegen/sdk-codegen/aws-models/lex-models-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,12 @@
"traits": {
"smithy.api#required": {}
}
},
"selectiveLoggingEnabled": {
"target": "com.amazonaws.lexmodelsv2#BoxedBoolean",
"traits": {
"smithy.api#documentation": "<p>The option to enable selective conversation log capture for audio.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -20476,6 +20482,12 @@
"traits": {
"smithy.api#required": {}
}
},
"selectiveLoggingEnabled": {
"target": "com.amazonaws.lexmodelsv2#BoxedBoolean",
"traits": {
"smithy.api#documentation": "<p>The option to enable selective conversation log capture for text.</p>"
}
}
},
"traits": {
Expand Down
Loading

0 comments on commit f5a0876

Please sign in to comment.