diff --git a/.changes/2.1582.0.json b/.changes/2.1582.0.json new file mode 100644 index 0000000000..7a9e477898 --- /dev/null +++ b/.changes/2.1582.0.json @@ -0,0 +1,27 @@ +[ + { + "type": "feature", + "category": "AccessAnalyzer", + "description": "This release adds support for policy validation and external access findings for DynamoDB tables and streams. IAM Access Analyzer helps you author functional and secure resource-based policies and identify cross-account access. Updated service API, documentation, and paginators." + }, + { + "type": "feature", + "category": "Connect", + "description": "This release updates the *InstanceStorageConfig APIs to support a new ResourceType: REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. Use this resource type to enable streaming for real-time analysis of chat contacts and to associate a Kinesis stream where real-time analysis chat segments will be published." + }, + { + "type": "feature", + "category": "DynamoDB", + "description": "This release introduces 3 new APIs ('GetResourcePolicy', 'PutResourcePolicy' and 'DeleteResourcePolicy') and modifies the existing 'CreateTable' API for the resource-based policy support. It also modifies several APIs to accept a 'TableArn' for the 'TableName' parameter." + }, + { + "type": "feature", + "category": "ManagedBlockchainQuery", + "description": "AMB Query: update GetTransaction to include transactionId as input" + }, + { + "type": "feature", + "category": "SavingsPlans", + "description": "Introducing the Savings Plans Return feature enabling customers to return their Savings Plans within 7 days of purchase." + } +] \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 467aa38d2a..b8656e7114 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,14 @@ # Changelog for AWS SDK for JavaScript - + +## 2.1582.0 +* feature: AccessAnalyzer: This release adds support for policy validation and external access findings for DynamoDB tables and streams. IAM Access Analyzer helps you author functional and secure resource-based policies and identify cross-account access. Updated service API, documentation, and paginators. +* feature: Connect: This release updates the *InstanceStorageConfig APIs to support a new ResourceType: REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. Use this resource type to enable streaming for real-time analysis of chat contacts and to associate a Kinesis stream where real-time analysis chat segments will be published. +* feature: DynamoDB: This release introduces 3 new APIs ('GetResourcePolicy', 'PutResourcePolicy' and 'DeleteResourcePolicy') and modifies the existing 'CreateTable' API for the resource-based policy support. It also modifies several APIs to accept a 'TableArn' for the 'TableName' parameter. +* feature: ManagedBlockchainQuery: AMB Query: update GetTransaction to include transactionId as input +* feature: SavingsPlans: Introducing the Savings Plans Return feature enabling customers to return their Savings Plans within 7 days of purchase. + ## 2.1581.0 * feature: CloudWatchLogs: Update LogSamples field in Anomaly model to be a list of LogEvent * feature: EC2: This release adds the new DescribeMacHosts API operation for getting information about EC2 Mac Dedicated Hosts. Users can now see the latest macOS versions that their underlying Apple Mac can support without needing to be updated. diff --git a/README.md b/README.md index 3dd8f30194..38aae1c9cc 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ require('aws-sdk/lib/maintenance_mode_message').suppress = true; To use the SDK in the browser, simply add the following script tag to your HTML pages: - + You can also build a custom browser SDK with your specified set of AWS services. This can allow you to reduce the SDK's size, specify different API versions of diff --git a/apis/accessanalyzer-2019-11-01.min.json b/apis/accessanalyzer-2019-11-01.min.json index 2c75d69372..2bc8c9a0fc 100644 --- a/apis/accessanalyzer-2019-11-01.min.json +++ b/apis/accessanalyzer-2019-11-01.min.json @@ -195,19 +195,19 @@ "members": { "ruleName": {}, "filter": { - "shape": "S2t" + "shape": "S2x" } } } }, "tags": { - "shape": "S2w" + "shape": "S30" }, "clientToken": { "idempotencyToken": true }, "configuration": { - "shape": "S2x" + "shape": "S31" } } }, @@ -239,7 +239,7 @@ }, "ruleName": {}, "filter": { - "shape": "S2t" + "shape": "S2x" }, "clientToken": { "idempotencyToken": true @@ -348,11 +348,11 @@ "shape": "So" }, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "status": {}, "statusReason": { - "shape": "S38" + "shape": "S3c" } } } @@ -400,19 +400,19 @@ "resourceArn": {}, "resourceType": {}, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "analyzedAt": { - "shape": "S36" + "shape": "S3a" }, "updatedAt": { - "shape": "S36" + "shape": "S3a" }, "isPublic": { "type": "boolean" }, "actions": { - "shape": "S3f" + "shape": "S3j" }, "sharedVia": { "type": "list", @@ -451,7 +451,7 @@ ], "members": { "analyzer": { - "shape": "S3k" + "shape": "S3o" } } } @@ -486,7 +486,7 @@ ], "members": { "archiveRule": { - "shape": "S3q" + "shape": "S3u" } } } @@ -532,10 +532,10 @@ "members": { "id": {}, "principal": { - "shape": "S3v" + "shape": "S3z" }, "action": { - "shape": "S3f" + "shape": "S3j" }, "resource": {}, "isPublic": { @@ -543,22 +543,22 @@ }, "resourceType": {}, "condition": { - "shape": "S3w" + "shape": "S40" }, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "analyzedAt": { - "shape": "S36" + "shape": "S3a" }, "updatedAt": { - "shape": "S36" + "shape": "S3a" }, "status": {}, "resourceOwnerAccount": {}, "error": {}, "sources": { - "shape": "S3x" + "shape": "S41" } } } @@ -611,10 +611,10 @@ ], "members": { "analyzedAt": { - "shape": "S36" + "shape": "S3a" }, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "error": {}, "id": {}, @@ -624,7 +624,7 @@ "resourceOwnerAccount": {}, "status": {}, "updatedAt": { - "shape": "S36" + "shape": "S3a" }, "findingDetails": { "type": "list", @@ -638,19 +638,19 @@ ], "members": { "action": { - "shape": "S3f" + "shape": "S3j" }, "condition": { - "shape": "S3w" + "shape": "S40" }, "isPublic": { "type": "boolean" }, "principal": { - "shape": "S3v" + "shape": "S3z" }, "sources": { - "shape": "S3x" + "shape": "S41" } } }, @@ -670,14 +670,14 @@ "members": { "action": {}, "lastAccessed": { - "shape": "S36" + "shape": "S3a" } } } }, "serviceNamespace": {}, "lastAccessed": { - "shape": "S36" + "shape": "S3a" } } }, @@ -689,7 +689,7 @@ "members": { "accessKeyId": {}, "lastAccessed": { - "shape": "S36" + "shape": "S3a" } } }, @@ -697,7 +697,7 @@ "type": "structure", "members": { "lastAccessed": { - "shape": "S36" + "shape": "S3a" } } }, @@ -705,7 +705,7 @@ "type": "structure", "members": { "lastAccessed": { - "shape": "S36" + "shape": "S3a" } } } @@ -763,10 +763,10 @@ "jobId": {}, "status": {}, "startedOn": { - "shape": "S36" + "shape": "S3a" }, "completedOn": { - "shape": "S36" + "shape": "S3a" }, "jobError": { "type": "structure", @@ -815,7 +815,7 @@ "members": { "cloudTrailArn": {}, "regions": { - "shape": "S4r" + "shape": "S4v" }, "allRegions": { "type": "boolean" @@ -824,10 +824,10 @@ } }, "startTime": { - "shape": "S36" + "shape": "S3a" }, "endTime": { - "shape": "S36" + "shape": "S3a" } } } @@ -868,7 +868,7 @@ }, "analyzerArn": {}, "filter": { - "shape": "S2t" + "shape": "S2x" }, "nextToken": {}, "maxResults": { @@ -899,13 +899,13 @@ "existingFindingId": {}, "existingFindingStatus": {}, "principal": { - "shape": "S3v" + "shape": "S3z" }, "action": { - "shape": "S3f" + "shape": "S3j" }, "condition": { - "shape": "S3w" + "shape": "S40" }, "resource": {}, "isPublic": { @@ -913,14 +913,14 @@ }, "resourceType": {}, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "changeType": {}, "status": {}, "resourceOwnerAccount": {}, "error": {}, "sources": { - "shape": "S3x" + "shape": "S41" } } } @@ -976,11 +976,11 @@ "id": {}, "analyzerArn": {}, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "status": {}, "statusReason": { - "shape": "S38" + "shape": "S3c" } } } @@ -1067,7 +1067,7 @@ "analyzers": { "type": "list", "member": { - "shape": "S3k" + "shape": "S3o" } }, "nextToken": {} @@ -1110,7 +1110,7 @@ "archiveRules": { "type": "list", "member": { - "shape": "S3q" + "shape": "S3u" } }, "nextToken": {} @@ -1130,10 +1130,10 @@ "members": { "analyzerArn": {}, "filter": { - "shape": "S2t" + "shape": "S2x" }, "sort": { - "shape": "S5f" + "shape": "S5j" }, "nextToken": {}, "maxResults": { @@ -1164,10 +1164,10 @@ "members": { "id": {}, "principal": { - "shape": "S3v" + "shape": "S3z" }, "action": { - "shape": "S3f" + "shape": "S3j" }, "resource": {}, "isPublic": { @@ -1175,22 +1175,22 @@ }, "resourceType": {}, "condition": { - "shape": "S3w" + "shape": "S40" }, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "analyzedAt": { - "shape": "S36" + "shape": "S3a" }, "updatedAt": { - "shape": "S36" + "shape": "S3a" }, "status": {}, "resourceOwnerAccount": {}, "error": {}, "sources": { - "shape": "S3x" + "shape": "S41" } } } @@ -1212,14 +1212,14 @@ "members": { "analyzerArn": {}, "filter": { - "shape": "S2t" + "shape": "S2x" }, "maxResults": { "type": "integer" }, "nextToken": {}, "sort": { - "shape": "S5f" + "shape": "S5j" } } }, @@ -1244,10 +1244,10 @@ ], "members": { "analyzedAt": { - "shape": "S36" + "shape": "S3a" }, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "error": {}, "id": {}, @@ -1256,7 +1256,7 @@ "resourceOwnerAccount": {}, "status": {}, "updatedAt": { - "shape": "S36" + "shape": "S3a" }, "findingType": {} } @@ -1311,10 +1311,10 @@ "principalArn": {}, "status": {}, "startedOn": { - "shape": "S36" + "shape": "S3a" }, "completedOn": { - "shape": "S36" + "shape": "S3a" } } } @@ -1345,7 +1345,7 @@ "type": "structure", "members": { "tags": { - "shape": "S2w" + "shape": "S30" } } } @@ -1389,7 +1389,7 @@ "members": { "cloudTrailArn": {}, "regions": { - "shape": "S4r" + "shape": "S4v" }, "allRegions": { "type": "boolean" @@ -1399,10 +1399,10 @@ }, "accessRole": {}, "startTime": { - "shape": "S36" + "shape": "S3a" }, "endTime": { - "shape": "S36" + "shape": "S3a" } } }, @@ -1457,7 +1457,7 @@ "locationName": "resourceArn" }, "tags": { - "shape": "S2w" + "shape": "S30" } } }, @@ -1521,7 +1521,7 @@ "locationName": "ruleName" }, "filter": { - "shape": "S2t" + "shape": "S2x" }, "clientToken": { "idempotencyToken": true @@ -1652,10 +1652,10 @@ ], "members": { "start": { - "shape": "S6t" + "shape": "S6x" }, "end": { - "shape": "S6t" + "shape": "S6x" } } } @@ -1893,6 +1893,18 @@ "members": { "bucketPolicy": {} } + }, + "dynamodbStream": { + "type": "structure", + "members": { + "streamPolicy": {} + } + }, + "dynamodbTable": { + "type": "structure", + "members": { + "tablePolicy": {} + } } }, "union": true @@ -1918,20 +1930,20 @@ } } }, - "S2t": { + "S2x": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "eq": { - "shape": "S2v" + "shape": "S2z" }, "neq": { - "shape": "S2v" + "shape": "S2z" }, "contains": { - "shape": "S2v" + "shape": "S2z" }, "exists": { "type": "boolean" @@ -1939,16 +1951,16 @@ } } }, - "S2v": { + "S2z": { "type": "list", "member": {} }, - "S2w": { + "S30": { "type": "map", "key": {}, "value": {} }, - "S2x": { + "S31": { "type": "structure", "members": { "unusedAccess": { @@ -1962,11 +1974,11 @@ }, "union": true }, - "S36": { + "S3a": { "type": "timestamp", "timestampFormat": "iso8601" }, - "S38": { + "S3c": { "type": "structure", "required": [ "code" @@ -1975,11 +1987,11 @@ "code": {} } }, - "S3f": { + "S3j": { "type": "list", "member": {} }, - "S3k": { + "S3o": { "type": "structure", "required": [ "arn", @@ -1993,14 +2005,14 @@ "name": {}, "type": {}, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "lastResourceAnalyzed": {}, "lastResourceAnalyzedAt": { - "shape": "S36" + "shape": "S3a" }, "tags": { - "shape": "S2w" + "shape": "S30" }, "status": {}, "statusReason": { @@ -2013,11 +2025,11 @@ } }, "configuration": { - "shape": "S2x" + "shape": "S31" } } }, - "S3q": { + "S3u": { "type": "structure", "required": [ "ruleName", @@ -2028,27 +2040,27 @@ "members": { "ruleName": {}, "filter": { - "shape": "S2t" + "shape": "S2x" }, "createdAt": { - "shape": "S36" + "shape": "S3a" }, "updatedAt": { - "shape": "S36" + "shape": "S3a" } } }, - "S3v": { + "S3z": { "type": "map", "key": {}, "value": {} }, - "S3w": { + "S40": { "type": "map", "key": {}, "value": {} }, - "S3x": { + "S41": { "type": "list", "member": { "type": "structure", @@ -2067,18 +2079,18 @@ } } }, - "S4r": { + "S4v": { "type": "list", "member": {} }, - "S5f": { + "S5j": { "type": "structure", "members": { "attributeName": {}, "orderBy": {} } }, - "S6t": { + "S6x": { "type": "structure", "required": [ "line", diff --git a/apis/accessanalyzer-2019-11-01.normal.json b/apis/accessanalyzer-2019-11-01.normal.json index 1c4dfb2750..d89a0ceaa7 100644 --- a/apis/accessanalyzer-2019-11-01.normal.json +++ b/apis/accessanalyzer-2019-11-01.normal.json @@ -1769,6 +1769,14 @@ "s3ExpressDirectoryBucket": { "shape": "S3ExpressDirectoryBucketConfiguration", "documentation": "
The access control configuration is for an Amazon S3 directory bucket.
" + }, + "dynamodbStream": { + "shape": "DynamodbStreamConfiguration", + "documentation": "The access control configuration is for a DynamoDB stream.
" + }, + "dynamodbTable": { + "shape": "DynamodbTableConfiguration", + "documentation": "The access control configuration is for a DynamoDB table or index.
" } }, "documentation": "Access control configuration structures for your resource. You specify the configuration as a type-value pair. You can specify only one type of access control configuration.
", @@ -1968,6 +1976,32 @@ }, "documentation": "Deletes an archive rule.
" }, + "DynamodbStreamConfiguration": { + "type": "structure", + "members": { + "streamPolicy": { + "shape": "DynamodbStreamPolicy", + "documentation": "The proposed resource policy defining who can access or manage the DynamoDB stream.
" + } + }, + "documentation": "The proposed access control configuration for a DynamoDB stream. You can propose a configuration for a new DynamoDB stream or an existing DynamoDB stream that you own by specifying the policy for the DynamoDB stream. For more information, see PutResourcePolicy.
If the configuration is for an existing DynamoDB stream and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the stream.
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB stream without a policy.
To propose deletion of an existing DynamoDB stream policy, you can specify an empty string for the DynamoDB policy.
The proposed resource policy defining who can access or manage the DynamoDB table.
" + } + }, + "documentation": "The proposed access control configuration for a DynamoDB table or index. You can propose a configuration for a new DynamoDB table or index or an existing DynamoDB table or index that you own by specifying the policy for the DynamoDB table or index. For more information, see PutResourcePolicy.
If the configuration is for an existing DynamoDB table or index and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the table or index.
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB table without a policy.
To propose deletion of an existing DynamoDB table or index policy, you can specify an empty string for the DynamoDB policy.
The type of webhook filter. There are six webhook filter types: EVENT
, ACTOR_ACCOUNT_ID
, HEAD_REF
, BASE_REF
, FILE_PATH
, and COMMIT_MESSAGE
.
EVENT
A webhook event triggers a build when the provided pattern
matches one of six event types: PUSH
, PULL_REQUEST_CREATED
, PULL_REQUEST_UPDATED
, PULL_REQUEST_CLOSED
, PULL_REQUEST_REOPENED
, and PULL_REQUEST_MERGED
. The EVENT
patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED
filters all push, pull request created, and pull request updated events.
The PULL_REQUEST_REOPENED
works with GitHub and GitHub Enterprise only.
ACTOR_ACCOUNT_ID
A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression pattern
.
HEAD_REF
A webhook event triggers a build when the head reference matches the regular expression pattern
. For example, refs/heads/branch-name
and refs/tags/tag-name
.
Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.
BASE_REF
A webhook event triggers a build when the base reference matches the regular expression pattern
. For example, refs/heads/branch-name
.
Works with pull request events only.
FILE_PATH
A webhook triggers a build when the path of a changed file matches the regular expression pattern
.
Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
COMMIT_MESSAGE
A webhook triggers a build when the head commit message matches the regular expression pattern
.
Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
The type of webhook filter. There are eight webhook filter types: EVENT
, ACTOR_ACCOUNT_ID
, HEAD_REF
, BASE_REF
, FILE_PATH
, COMMIT_MESSAGE
, TAG_NAME
, and RELEASE_NAME
.
EVENT
A webhook event triggers a build when the provided pattern
matches one of eight event types: PUSH
, PULL_REQUEST_CREATED
, PULL_REQUEST_UPDATED
, PULL_REQUEST_CLOSED
, PULL_REQUEST_REOPENED
, PULL_REQUEST_MERGED
, RELEASED
, and PRERELEASED
. The EVENT
patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED
filters all push, pull request created, and pull request updated events.
The PULL_REQUEST_REOPENED
works with GitHub and GitHub Enterprise only. The RELEASED
and PRERELEASED
work with GitHub only.
ACTOR_ACCOUNT_ID
A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression pattern
.
HEAD_REF
A webhook event triggers a build when the head reference matches the regular expression pattern
. For example, refs/heads/branch-name
and refs/tags/tag-name
.
Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.
BASE_REF
A webhook event triggers a build when the base reference matches the regular expression pattern
. For example, refs/heads/branch-name
.
Works with pull request events only.
FILE_PATH
A webhook triggers a build when the path of a changed file matches the regular expression pattern
.
Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
COMMIT_MESSAGE
A webhook triggers a build when the head commit message matches the regular expression pattern
.
Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
TAG_NAME
A webhook triggers a build when the tag name of the release matches the regular expression pattern
.
Works with RELEASED
and PRERELEASED
events only.
RELEASE_NAME
A webhook triggers a build when the release name matches the regular expression pattern
.
Works with RELEASED
and PRERELEASED
events only.
A valid resource type.
" + "documentation": "A valid resource type. To enable streaming for real-time analysis of contacts, use the following types:
For chat contacts, use REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS
.
For voice contacts, use REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS
.
REAL_TIME_CONTACT_ANALYSIS_SEGMENTS
is deprecated, but it is still supported and will apply only to VOICE channel contacts. Use REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS
for voice contacts moving forward.
If you have previously associated a stream with REAL_TIME_CONTACT_ANALYSIS_SEGMENTS
, no action is needed to update the stream to REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS
.
Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.
In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues
parameter.
Unless you specify conditions, the DeleteItem
is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.
Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted.
", "endpointdiscovery": {} }, + "DeleteResourcePolicy": { + "name": "DeleteResourcePolicy", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "DeleteResourcePolicyInput" + }, + "output": { + "shape": "DeleteResourcePolicyOutput" + }, + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerError" + }, + { + "shape": "PolicyNotFoundException" + }, + { + "shape": "ResourceInUseException" + }, + { + "shape": "LimitExceededException" + } + ], + "documentation": "Deletes the resource-based policy attached to the resource, which can be a table or stream.
DeleteResourcePolicy
is an idempotent operation; running it multiple times on the same resource doesn't result in an error response, unless you specify an ExpectedRevisionId
, which will then return a PolicyNotFoundException
.
To make sure that you don't inadvertently lock yourself out of your own resources, the root principal in your Amazon Web Services account can perform DeleteResourcePolicy
requests, even if your resource-based policy explicitly denies the root principal's access.
DeleteResourcePolicy
is an asynchronous operation. If you issue a GetResourcePolicy
request immediately after running the DeleteResourcePolicy
request, DynamoDB might still return the deleted policy. This is because the policy for your resource might not have been deleted yet. Wait for a few seconds, and then try the GetResourcePolicy
request again.
The GetItem
operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem
does not return any data and there will be no Item
element in the response.
GetItem
provides an eventually consistent read by default. If your application requires a strongly consistent read, set ConsistentRead
to true
. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
GetResourcePolicy
follows an eventually consistent model. The following list describes the outcomes when you issue the GetResourcePolicy
request immediately after issuing another request:
If you issue a GetResourcePolicy
request immediately after a PutResourcePolicy
request, DynamoDB might return a PolicyNotFoundException
.
If you issue a GetResourcePolicy
request immediately after a DeleteResourcePolicy
request, DynamoDB might return the policy that was present before the deletion request.
If you issue a GetResourcePolicy
request immediately after a CreateTable
request, which includes a resource-based policy, DynamoDB might return a ResourceNotFoundException
or a PolicyNotFoundException
.
Because GetResourcePolicy
uses an eventually consistent query, the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then retry the GetResourcePolicy
request.
After a GetResourcePolicy
request returns a policy created using the PutResourcePolicy
request, you can assume the policy will start getting applied in the authorization of requests to the resource. Because this process is eventually consistent, it will take some time to apply the policy to all requests to a resource. Policies that you attach while creating a table using the CreateTable
request will always be applied to all requests for that table.
Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as the new item already exists in the specified table, the new item completely replaces the existing item. You can perform a conditional put operation (add a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values. You can return the item's attribute values in the same operation, using the ReturnValues
parameter.
When you add an item, the primary key attributes are the only required attributes.
Empty String and Binary attribute values are allowed. Attribute values of type String and Binary must have a length greater than zero if the attribute is used as a key attribute for a table or index. Set type attributes cannot be empty.
Invalid Requests with empty values will be rejected with a ValidationException
exception.
To prevent a new item from replacing an existing item, use a conditional expression that contains the attribute_not_exists
function with the name of the attribute being used as the partition key for the table. Since every record must contain that attribute, the attribute_not_exists
function will only succeed if no matching item exists.
For more information about PutItem
, see Working with Items in the Amazon DynamoDB Developer Guide.
Attaches a resource-based policy document to the resource, which can be a table or stream. When you attach a resource-based policy using this API, the policy application is eventually consistent .
PutResourcePolicy
is an idempotent operation; running it multiple times on the same resource using the same policy document will return the same revision ID. If you specify an ExpectedRevisionId
which doesn't match the current policy's RevisionId
, the PolicyNotFoundException
will be returned.
PutResourcePolicy
is an asynchronous operation. If you issue a GetResourcePolicy
request immediately after a PutResourcePolicy
request, DynamoDB might return your previous policy, if there was one, or return the PolicyNotFoundException
. This is because GetResourcePolicy
uses an eventually consistent query, and the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then try the GetResourcePolicy
request again.
Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.
This operation only applies to Version 2019.11.21 (Current) of global tables.
You can only perform one of the following operations at once:
Modify the provisioned throughput settings of the table.
Remove a global secondary index from the table.
Create a new global secondary index on the table. After the index begins backfilling, you can use UpdateTable
to perform other operations.
UpdateTable
is an asynchronous operation; while it's executing, the table status changes from ACTIVE
to UPDATING
. While it's UPDATING
, you can't issue another UpdateTable
request on the base table nor any replicas. When the table returns to the ACTIVE
state, the UpdateTable
operation is complete.
Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.
This operation only applies to Version 2019.11.21 (Current) of global tables.
You can only perform one of the following operations at once:
Modify the provisioned throughput settings of the table.
Remove a global secondary index from the table.
Create a new global secondary index on the table. After the index begins backfilling, you can use UpdateTable
to perform other operations.
UpdateTable
is an asynchronous operation; while it's executing, the table status changes from ACTIVE
to UPDATING
. While it's UPDATING
, you can't issue another UpdateTable
request. When the table returns to the ACTIVE
state, the UpdateTable
operation is complete.
A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem
request.
Each element in the map of items to retrieve consists of the following:
ConsistentRead
- If true
, a strongly consistent read is used; if false
(the default), an eventually consistent read is used.
ExpressionAttributeNames
- One or more substitution tokens for attribute names in the ProjectionExpression
parameter. The following are some use cases for using ExpressionAttributeNames
:
To access an attribute whose name conflicts with a DynamoDB reserved word.
To create a placeholder for repeating occurrences of an attribute name in an expression.
To prevent special characters in an attribute name from being misinterpreted in an expression.
Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:
Percentile
The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames
:
{\"#P\":\"Percentile\"}
You could then use this substitution in an expression, as in this example:
#P = :val
Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.
For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
Keys
- An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value.
ProjectionExpression
- A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.
If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result.
For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
AttributesToGet
- This is a legacy parameter. Use ProjectionExpression
instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
A map of one or more table names or table ARNs and, for each table, a map that describes one or more items to retrieve from that table. Each table name or ARN can be used only once per BatchGetItem
request.
Each element in the map of items to retrieve consists of the following:
ConsistentRead
- If true
, a strongly consistent read is used; if false
(the default), an eventually consistent read is used.
ExpressionAttributeNames
- One or more substitution tokens for attribute names in the ProjectionExpression
parameter. The following are some use cases for using ExpressionAttributeNames
:
To access an attribute whose name conflicts with a DynamoDB reserved word.
To create a placeholder for repeating occurrences of an attribute name in an expression.
To prevent special characters in an attribute name from being misinterpreted in an expression.
Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:
Percentile
The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames
:
{\"#P\":\"Percentile\"}
You could then use this substitution in an expression, as in this example:
#P = :val
Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.
For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
Keys
- An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value.
ProjectionExpression
- A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.
If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result.
For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
AttributesToGet
- This is a legacy parameter. Use ProjectionExpression
instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
A map of table name to a list of items. Each object in Responses
consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
A map of table name or table ARN to a list of items. Each object in Responses
consists of a table name or ARN, along with a map of attribute data consisting of the data type and attribute value.
A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest
or PutRequest
). Each element in the map consists of the following:
DeleteRequest
- Perform a DeleteItem
operation on the specified item. The item to be deleted is identified by a Key
subelement:
Key
- A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
PutRequest
- Perform a PutItem
operation on the specified item. The item to be put is identified by an Item
subelement:
Item
- A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values are rejected with a ValidationException
exception.
If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
A map of one or more table names or table ARNs and, for each table, a list of operations to be performed (DeleteRequest
or PutRequest
). Each element in the map consists of the following:
DeleteRequest
- Perform a DeleteItem
operation on the specified item. The item to be deleted is identified by a Key
subelement:
Key
- A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
PutRequest
- Perform a PutItem
operation on the specified item. The item to be put is identified by an Item
subelement:
Item
- A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values are rejected with a ValidationException
exception.
If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
A map of tables and requests against those tables that were not processed. The UnprocessedItems
value is in the same form as RequestItems
, so you can provide this value directly to a subsequent BatchWriteItem
operation. For more information, see RequestItems
in the Request Parameters section.
Each UnprocessedItems
entry consists of a table name and, for that table, a list of operations to perform (DeleteRequest
or PutRequest
).
DeleteRequest
- Perform a DeleteItem
operation on the specified item. The item to be deleted is identified by a Key
subelement:
Key
- A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value.
PutRequest
- Perform a PutItem
operation on the specified item. The item to be put is identified by an Item
subelement:
Item
- A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException
exception.
If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
If there are no unprocessed items remaining, the response contains an empty UnprocessedItems
map.
A map of tables and requests against those tables that were not processed. The UnprocessedItems
value is in the same form as RequestItems
, so you can provide this value directly to a subsequent BatchWriteItem
operation. For more information, see RequestItems
in the Request Parameters section.
Each UnprocessedItems
entry consists of a table name or table ARN and, for that table, a list of operations to perform (DeleteRequest
or PutRequest
).
DeleteRequest
- Perform a DeleteItem
operation on the specified item. The item to be deleted is identified by a Key
subelement:
Key
- A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value.
PutRequest
- Perform a PutItem
operation on the specified item. The item to be put is identified by an Item
subelement:
Item
- A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException
exception.
If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
If there are no unprocessed items remaining, the response contains an empty UnprocessedItems
map.
The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.
" }, "TableName": { - "shape": "TableName", - "documentation": "Name of the table for the check item request.
" + "shape": "TableArn", + "documentation": "Name of the table for the check item request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "ConditionExpression": { "shape": "ConditionExpression", @@ -2324,6 +2414,9 @@ "OR" ] }, + "ConfirmRemoveSelfResourceAccess": { + "type": "boolean" + }, "ConsistentRead": { "type": "boolean" }, @@ -2331,8 +2424,8 @@ "type": "structure", "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table that was affected by the operation.
" + "shape": "TableArn", + "documentation": "The name of the table that was affected by the operation. If you had specified the Amazon Resource Name (ARN) of a table in the input, you'll see the table ARN in the response.
" }, "CapacityUnits": { "shape": "ConsumedCapacityUnits", @@ -2453,8 +2546,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table.
" + "shape": "TableArn", + "documentation": "The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "BackupName": { "shape": "BackupName", @@ -2579,8 +2672,8 @@ "documentation": "An array of attributes that describe the key schema for the table and indexes.
" }, "TableName": { - "shape": "TableName", - "documentation": "The name of the table to create.
" + "shape": "TableArn", + "documentation": "The name of the table to create. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "KeySchema": { "shape": "KeySchema", @@ -2621,6 +2714,10 @@ "DeletionProtectionEnabled": { "shape": "DeletionProtectionEnabled", "documentation": "Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
" + }, + "ResourcePolicy": { + "shape": "ResourcePolicy", + "documentation": "An Amazon Web Services resource-based policy document in JSON format that will be attached to the table.
When you attach a resource-based policy while creating a table, the policy creation is strongly consistent.
The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. You can’t request an increase for this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.
" } }, "documentation": "Represents the input of a CreateTable
operation.
The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.
" }, "TableName": { - "shape": "TableName", - "documentation": "Name of the table in which the item to be deleted resides.
" + "shape": "TableArn", + "documentation": "Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "ConditionExpression": { "shape": "ConditionExpression", @@ -2748,8 +2845,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table from which to delete the item.
" + "shape": "TableArn", + "documentation": "The name of the table from which to delete the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "Key": { "shape": "Key", @@ -2850,6 +2947,31 @@ }, "documentation": "Represents a request to perform a DeleteItem
operation on an item.
The Amazon Resource Name (ARN) of the DynamoDB resource from which the policy will be removed. The resources you can specify include tables and streams. If you remove the policy of a table, it will also remove the permissions for the table's indexes defined in that policy document. This is because index permissions are defined in the table's policy.
" + }, + "ExpectedRevisionId": { + "shape": "PolicyRevisionId", + "documentation": "A string value that you can use to conditionally delete your policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, the request will fail and return a PolicyNotFoundException
.
A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
This value will be empty if you make a request against a resource without a policy.
" + } + } + }, "DeleteTableInput": { "type": "structure", "required": [ @@ -2857,8 +2979,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table to delete.
" + "shape": "TableArn", + "documentation": "The name of the table to delete. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" } }, "documentation": "Represents the input of a DeleteTable
operation.
Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.
" + "shape": "TableArn", + "documentation": "Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.
You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" } } }, @@ -2925,8 +3047,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table to describe.
" + "shape": "TableArn", + "documentation": "The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "IndexName": { "shape": "IndexName", @@ -3077,8 +3199,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table being described.
" + "shape": "TableArn", + "documentation": "The name of the table being described. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" } } }, @@ -3129,8 +3251,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table to describe.
" + "shape": "TableArn", + "documentation": "The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" } }, "documentation": "Represents the input of a DescribeTable
operation.
The name of the table.
" + "shape": "TableArn", + "documentation": "The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" } } }, @@ -3173,8 +3295,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table to be described.
" + "shape": "TableArn", + "documentation": "The name of the table to be described. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" } } }, @@ -3662,8 +3784,8 @@ "documentation": "A map of attribute names to AttributeValue
objects that specifies the primary key of the item to retrieve.
The name of the table from which to retrieve the specified item.
" + "shape": "TableArn", + "documentation": "The name of the table from which to retrieve the specified item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "ProjectionExpression": { "shape": "ProjectionExpression", @@ -3684,8 +3806,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table containing the requested item.
" + "shape": "TableArn", + "documentation": "The name of the table containing the requested item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "Key": { "shape": "Key", @@ -3727,6 +3849,31 @@ }, "documentation": "Represents the output of a GetItem
operation.
The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy is attached. The resources you can specify include tables and streams.
" + } + } + }, + "GetResourcePolicyOutput": { + "type": "structure", + "members": { + "Policy": { + "shape": "ResourcePolicy", + "documentation": "The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
" + }, + "RevisionId": { + "shape": "PolicyRevisionId", + "documentation": "A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
" + } + } + }, "GlobalSecondaryIndex": { "type": "structure", "required": [ @@ -4268,7 +4415,7 @@ "ItemCollectionMetricsPerTable": { "type": "map", "key": { - "shape": "TableName" + "shape": "TableArn" }, "value": { "shape": "ItemCollectionMetricsMultiple" @@ -4449,8 +4596,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the DynamoDB table.
" + "shape": "TableArn", + "documentation": "The name of the DynamoDB table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "StreamArn": { "shape": "StreamArn", @@ -4496,8 +4643,8 @@ "type": "structure", "members": { "TableName": { - "shape": "TableName", - "documentation": "The backups from the table specified by TableName
are listed.
Lists the backups from the table specified in TableName
. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
The name of the table.
" + "shape": "TableArn", + "documentation": "The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "NextToken": { "shape": "NextTokenString", @@ -4957,6 +5104,11 @@ "DISABLED" ] }, + "PolicyRevisionId": { + "type": "string", + "max": 255, + "min": 1 + }, "PositiveIntegerObject": { "type": "integer", "min": 1 @@ -5067,8 +5219,8 @@ "documentation": "A map of attribute name to attribute values, representing the primary key of the item to be written by PutItem
. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
Name of the table in which to write the item.
" + "shape": "TableArn", + "documentation": "Name of the table in which to write the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "ConditionExpression": { "shape": "ConditionExpression", @@ -5097,8 +5249,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table to contain the item.
" + "shape": "TableArn", + "documentation": "The name of the table to contain the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "Item": { "shape": "PutItemInputAttributeMap", @@ -5182,6 +5334,40 @@ }, "documentation": "Represents a request to perform a PutItem
operation on an item.
The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached. The resources you can specify include tables and streams.
You can control index permissions using the base table's policy. To specify the same permission level for your table and its indexes, you can provide both the table and index Amazon Resource Name (ARN)s in the Resource
field of a given Statement
in your policy document. Alternatively, to specify different permissions for your table, indexes, or both, you can define multiple Statement
fields in your policy document.
An Amazon Web Services resource-based policy document in JSON format.
The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.
" + }, + "ExpectedRevisionId": { + "shape": "PolicyRevisionId", + "documentation": "A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException
.
To conditionally put a policy when no policy exists for the resource, specify NO_POLICY
for the revision ID.
Set this parameter to true
to confirm that you want to remove your permissions to change the policy of this resource in the future.
A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
" + } + } + }, "QueryInput": { "type": "structure", "required": [ @@ -5189,8 +5375,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table containing the requested items.
" + "shape": "TableArn", + "documentation": "The name of the table containing the requested items. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "IndexName": { "shape": "IndexName", @@ -5719,6 +5905,9 @@ "max": 1283, "min": 1 }, + "ResourcePolicy": { + "type": "string" + }, "RestoreInProgress": { "type": "boolean" }, @@ -6005,8 +6194,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table containing the requested items; or, if you provide IndexName
, the name of the table to which that index belongs.
The name of the table containing the requested items or if you provide IndexName
, the name of the table to which that index belongs.
You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "IndexName": { "shape": "IndexName", @@ -6246,7 +6435,9 @@ } }, "TableArn": { - "type": "string" + "type": "string", + "max": 1024, + "min": 1 }, "TableAutoScalingDescription": { "type": "structure", @@ -6716,8 +6907,8 @@ "documentation": "An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
" }, "TableName": { - "shape": "TableName", - "documentation": "Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
The name of the table.
" + "shape": "TableArn", + "documentation": "The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "PointInTimeRecoverySpecification": { "shape": "PointInTimeRecoverySpecification", @@ -6772,8 +6963,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table.
" + "shape": "TableArn", + "documentation": "The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "IndexName": { "shape": "IndexName", @@ -6902,8 +7093,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table containing the item to update.
" + "shape": "TableArn", + "documentation": "The name of the table containing the item to update. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "Key": { "shape": "Key", @@ -6991,12 +7182,12 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The table name for the Kinesis streaming destination input.
" + "shape": "TableArn", + "documentation": "The table name for the Kinesis streaming destination input. You can also provide the ARN of the table in this parameter.
" }, "StreamArn": { "shape": "StreamArn", - "documentation": "The ARN for the Kinesis stream input.
" + "documentation": "The Amazon Resource Name (ARN) for the Kinesis stream input.
" }, "UpdateKinesisStreamingConfiguration": { "shape": "UpdateKinesisStreamingConfiguration", @@ -7065,8 +7256,8 @@ "documentation": "An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions
must include the key element(s) of the new index.
The name of the table to be updated.
" + "shape": "TableArn", + "documentation": "The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "BillingMode": { "shape": "BillingMode", @@ -7124,8 +7315,8 @@ "documentation": "Represents the auto scaling settings of the global secondary indexes of the replica to be updated.
" }, "TableName": { - "shape": "TableName", - "documentation": "The name of the global table to be updated.
" + "shape": "TableArn", + "documentation": "The name of the global table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "ProvisionedWriteCapacityAutoScalingUpdate": { "shape": "AutoScalingSettingsUpdate" @@ -7153,8 +7344,8 @@ ], "members": { "TableName": { - "shape": "TableName", - "documentation": "The name of the table to be configured.
" + "shape": "TableArn", + "documentation": "The name of the table to be configured. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
" }, "TimeToLiveSpecification": { "shape": "TimeToLiveSpecification", diff --git a/apis/managedblockchain-query-2023-05-04.min.json b/apis/managedblockchain-query-2023-05-04.min.json index 5f3679addf..31d3f6c27b 100644 --- a/apis/managedblockchain-query-2023-05-04.min.json +++ b/apis/managedblockchain-query-2023-05-04.min.json @@ -200,11 +200,11 @@ "input": { "type": "structure", "required": [ - "transactionHash", "network" ], "members": { "transactionHash": {}, + "transactionId": {}, "network": {} } }, @@ -364,7 +364,7 @@ } }, "confirmationStatusFilter": { - "shape": "S1b" + "shape": "S1c" }, "sort": { "type": "structure", @@ -386,7 +386,7 @@ ], "members": { "events": { - "shape": "S1i" + "shape": "S1j" }, "nextToken": {} } @@ -491,7 +491,7 @@ ], "members": { "events": { - "shape": "S1i" + "shape": "S1j" }, "nextToken": {} } @@ -529,7 +529,7 @@ "type": "integer" }, "confirmationStatusFilter": { - "shape": "S1b" + "shape": "S1c" } } }, @@ -550,6 +550,7 @@ ], "members": { "transactionHash": {}, + "transactionId": {}, "network": {}, "transactionTimestamp": { "type": "timestamp" @@ -603,7 +604,7 @@ "contractAddress": {} } }, - "S1b": { + "S1c": { "type": "structure", "required": [ "include" @@ -615,7 +616,7 @@ } } }, - "S1i": { + "S1j": { "type": "list", "member": { "type": "structure", diff --git a/apis/managedblockchain-query-2023-05-04.normal.json b/apis/managedblockchain-query-2023-05-04.normal.json index ff38af88ea..2ef30b0453 100644 --- a/apis/managedblockchain-query-2023-05-04.normal.json +++ b/apis/managedblockchain-query-2023-05-04.normal.json @@ -702,7 +702,6 @@ "GetTransactionInput": { "type": "structure", "required": [ - "transactionHash", "network" ], "members": { @@ -710,6 +709,10 @@ "shape": "QueryTransactionHash", "documentation": "The hash of a transaction. It is generated when a transaction is created.
" }, + "transactionId": { + "shape": "QueryTransactionId", + "documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
transactionId
is only supported on the Bitcoin networks.
The blockchain network where the transaction occurred.
" @@ -1406,6 +1409,10 @@ "shape": "QueryTransactionHash", "documentation": "The hash of a transaction. It is generated when a transaction is created.
" }, + "transactionId": { + "shape": "QueryTransactionId", + "documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
" + }, "network": { "shape": "QueryNetwork", "documentation": "The blockchain network where the transaction occurred.
" diff --git a/apis/savingsplans-2019-06-28.min.json b/apis/savingsplans-2019-06-28.min.json index 5221978d07..4ec14f56af 100644 --- a/apis/savingsplans-2019-06-28.min.json +++ b/apis/savingsplans-2019-06-28.min.json @@ -193,7 +193,8 @@ }, "tags": { "shape": "S6" - } + }, + "returnableUntil": {} } } }, @@ -416,6 +417,29 @@ } } }, + "ReturnSavingsPlan": { + "http": { + "requestUri": "/ReturnSavingsPlan" + }, + "input": { + "type": "structure", + "required": [ + "savingsPlanId" + ], + "members": { + "savingsPlanId": {}, + "clientToken": { + "idempotencyToken": true + } + } + }, + "output": { + "type": "structure", + "members": { + "savingsPlanId": {} + } + } + }, "TagResource": { "http": { "requestUri": "/TagResource" diff --git a/apis/savingsplans-2019-06-28.normal.json b/apis/savingsplans-2019-06-28.normal.json index d633335519..feebfae737 100644 --- a/apis/savingsplans-2019-06-28.normal.json +++ b/apis/savingsplans-2019-06-28.normal.json @@ -89,7 +89,7 @@ "shape": "ValidationException" } ], - "documentation": "Describes the specified Savings Plans rates.
" + "documentation": "Describes the rates for the specified Savings Plan.
" }, "DescribeSavingsPlans": { "name": "DescribeSavingsPlans", @@ -133,7 +133,7 @@ "shape": "InternalServerException" } ], - "documentation": "Describes the specified Savings Plans offering rates.
" + "documentation": "Describes the offering rates for the specified Savings Plans.
" }, "DescribeSavingsPlansOfferings": { "name": "DescribeSavingsPlansOfferings", @@ -155,7 +155,7 @@ "shape": "InternalServerException" } ], - "documentation": "Describes the specified Savings Plans offerings.
" + "documentation": "Describes the offerings for the specified Savings Plans.
" }, "ListTagsForResource": { "name": "ListTagsForResource", @@ -182,6 +182,34 @@ ], "documentation": "Lists the tags for the specified resource.
" }, + "ReturnSavingsPlan": { + "name": "ReturnSavingsPlan", + "http": { + "method": "POST", + "requestUri": "/ReturnSavingsPlan" + }, + "input": { + "shape": "ReturnSavingsPlanRequest" + }, + "output": { + "shape": "ReturnSavingsPlanResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "documentation": "Returns the specified Savings Plan.
" + }, "TagResource": { "name": "TagResource", "http": { @@ -256,19 +284,19 @@ }, "commitment": { "shape": "Amount", - "documentation": "The hourly commitment, in USD. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.
" + "documentation": "The hourly commitment, in the same currency of the savingsPlanOfferingId
. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is supported only if the payment option is Partial Upfront
.
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is only supported if the payment option is Partial Upfront
.
The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
" + "documentation": "The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
" }, "clientToken": { "shape": "ClientToken", - "documentation": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
", + "documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
", "idempotencyToken": true }, "tags": { @@ -351,11 +379,11 @@ }, "searchResults": { "shape": "SavingsPlanRateList", - "documentation": "Information about the Savings Plans rates.
" + "documentation": "Information about the Savings Plan rates.
" }, "nextToken": { "shape": "PaginationToken", - "documentation": "The token to use to retrieve the next page of results. This value is null when there are no more results to return.
" + "documentation": "The token to use to retrieve the next page of results. This value is null when there are no more results to return.
" } } }, @@ -376,7 +404,7 @@ }, "products": { "shape": "SavingsPlanProductTypeList", - "documentation": "The AWS products.
" + "documentation": "The Amazon Web Services products.
" }, "serviceCodes": { "shape": "SavingsPlanRateServiceCodeList", @@ -388,7 +416,7 @@ }, "operations": { "shape": "SavingsPlanRateOperationList", - "documentation": "The specific AWS operation for the line item in the billing report.
" + "documentation": "The specific Amazon Web Services operation for the line item in the billing report.
" }, "filters": { "shape": "SavingsPlanOfferingRateFiltersList", @@ -434,11 +462,11 @@ }, "planTypes": { "shape": "SavingsPlanTypeList", - "documentation": "The plan type.
" + "documentation": "The plan types.
" }, "durations": { "shape": "DurationsList", - "documentation": "The durations, in seconds.
" + "documentation": "The duration, in seconds.
" }, "currencies": { "shape": "CurrencyList", @@ -458,7 +486,7 @@ }, "operations": { "shape": "SavingsPlanOperationList", - "documentation": "The specific AWS operation for the line item in the billing report.
" + "documentation": "The specific Amazon Web Services operation for the line item in the billing report.
" }, "filters": { "shape": "SavingsPlanOfferingFiltersList", @@ -508,7 +536,7 @@ }, "states": { "shape": "SavingsPlanStateList", - "documentation": "The states.
" + "documentation": "The current states of the Savings Plans.
" }, "filters": { "shape": "SavingsPlanFilterList", @@ -623,6 +651,32 @@ "Region": { "type": "string" }, + "ReturnSavingsPlanRequest": { + "type": "structure", + "required": [ + "savingsPlanId" + ], + "members": { + "savingsPlanId": { + "shape": "SavingsPlanId", + "documentation": "The ID of the Savings Plan.
" + }, + "clientToken": { + "shape": "ClientToken", + "documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
", + "idempotencyToken": true + } + } + }, + "ReturnSavingsPlanResponse": { + "type": "structure", + "members": { + "savingsPlanId": { + "shape": "SavingsPlanId", + "documentation": "The ID of the Savings Plan.
" + } + } + }, "SavingsPlan": { "type": "structure", "members": { @@ -652,11 +706,11 @@ }, "state": { "shape": "SavingsPlanState", - "documentation": "The state.
" + "documentation": "The current state.
" }, "region": { "shape": "Region", - "documentation": "The AWS Region.
" + "documentation": "The Amazon Web Services Region.
" }, "ec2InstanceFamily": { "shape": "EC2InstanceFamily", @@ -680,7 +734,7 @@ }, "commitment": { "shape": "Amount", - "documentation": "The hourly commitment, in USD.
" + "documentation": "The hourly commitment amount in the specified currency.
" }, "upfrontPaymentAmount": { "shape": "Amount", @@ -697,6 +751,10 @@ "tags": { "shape": "TagMap", "documentation": "One or more tags.
" + }, + "returnableUntil": { + "shape": "String", + "documentation": "The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
" } }, "documentation": "Information about a Savings Plan.
" @@ -734,7 +792,7 @@ "documentation": "The filter value.
" } }, - "documentation": "Information about a filter.
" + "documentation": "Information about a Savings Plan filter.
" }, "SavingsPlanFilterList": { "type": "list", @@ -798,7 +856,7 @@ }, "operation": { "shape": "SavingsPlanOperation", - "documentation": "The specific AWS operation for the line item in the billing report.
" + "documentation": "The specific Amazon Web Services operation for the line item in the billing report.
" }, "properties": { "shape": "SavingsPlanOfferingPropertyList", @@ -826,7 +884,7 @@ "documentation": "The filter values.
" } }, - "documentation": "Information about a filter.
" + "documentation": "Information about a Savings Plan offering filter.
" }, "SavingsPlanOfferingFiltersList": { "type": "list", @@ -849,7 +907,7 @@ "documentation": "The property value.
" } }, - "documentation": "Information about a property.
" + "documentation": "Information about a Savings Plan offering property.
" }, "SavingsPlanOfferingPropertyKey": { "type": "string", @@ -893,7 +951,7 @@ }, "operation": { "shape": "SavingsPlanRateOperation", - "documentation": "The specific AWS operation for the line item in the billing report.
" + "documentation": "The specific Amazon Web Services operation for the line item in the billing report.
" }, "properties": { "shape": "SavingsPlanOfferingRatePropertyList", @@ -914,7 +972,7 @@ "documentation": "The filter values.
" } }, - "documentation": "Information about a filter.
" + "documentation": "Information about a Savings Plan offering rate filter.
" }, "SavingsPlanOfferingRateFiltersList": { "type": "list", @@ -934,7 +992,7 @@ "documentation": "The property value.
" } }, - "documentation": "Information about a property.
" + "documentation": "Information about a Savings Plan offering rate property.
" }, "SavingsPlanOfferingRatePropertyList": { "type": "list", @@ -1023,7 +1081,7 @@ }, "operation": { "shape": "SavingsPlanRateOperation", - "documentation": "The specific AWS operation for the line item in the billing report.
" + "documentation": "The specific Amazon Web Services operation for the line item in the billing report.
" }, "properties": { "shape": "SavingsPlanRatePropertyList", @@ -1044,7 +1102,7 @@ "documentation": "The filter values.
" } }, - "documentation": "Information about a filter.
" + "documentation": "Information about a Savings Plan rate filter.
" }, "SavingsPlanRateFilterAttribute": { "type": "string", @@ -1108,7 +1166,7 @@ "documentation": "The property value.
" } }, - "documentation": "Information about a property.
" + "documentation": "Information about a Savings Plan rate property.
" }, "SavingsPlanRatePropertyKey": { "type": "string", @@ -1180,7 +1238,9 @@ "active", "retired", "queued", - "queued-deleted" + "queued-deleted", + "pending-return", + "returned" ] }, "SavingsPlanStateList": { @@ -1312,5 +1372,5 @@ "members": {} } }, - "documentation": "Savings Plans are a pricing model that offer significant savings on AWS usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For more information, see the AWS Savings Plans User Guide.
" + "documentation": "Savings Plans are a pricing model that offer significant savings on Amazon Web Services usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage per hour, in the specified currency, for a term of one or three years, and receive a lower price for that usage. For more information, see the Amazon Web Services Savings Plans User Guide.
" } \ No newline at end of file diff --git a/clients/accessanalyzer.d.ts b/clients/accessanalyzer.d.ts index 8ebd2e1ec7..0b1dd616fe 100644 --- a/clients/accessanalyzer.d.ts +++ b/clients/accessanalyzer.d.ts @@ -710,6 +710,14 @@ declare namespace AccessAnalyzer { * The access control configuration is for an Amazon S3 directory bucket. */ s3ExpressDirectoryBucket?: S3ExpressDirectoryBucketConfiguration; + /** + * The access control configuration is for a DynamoDB stream. + */ + dynamodbStream?: DynamodbStreamConfiguration; + /** + * The access control configuration is for a DynamoDB table or index. + */ + dynamodbTable?: DynamodbTableConfiguration; } export type ConfigurationsMap = {[key: string]: Configuration}; export type ConfigurationsMapKey = string; @@ -825,6 +833,20 @@ declare namespace AccessAnalyzer { */ clientToken?: String; } + export interface DynamodbStreamConfiguration { + /** + * The proposed resource policy defining who can access or manage the DynamoDB stream. + */ + streamPolicy?: DynamodbStreamPolicy; + } + export type DynamodbStreamPolicy = string; + export interface DynamodbTableConfiguration { + /** + * The proposed resource policy defining who can access or manage the DynamoDB table. + */ + tablePolicy?: DynamodbTablePolicy; + } + export type DynamodbTablePolicy = string; export type EbsGroup = string; export type EbsGroupList = EbsGroup[]; export interface EbsSnapshotConfiguration { @@ -1776,7 +1798,7 @@ declare namespace AccessAnalyzer { export type ReasonSummaryList = ReasonSummary[]; export type RegionList = String[]; export type ResourceArn = string; - export type ResourceType = "AWS::S3::Bucket"|"AWS::IAM::Role"|"AWS::SQS::Queue"|"AWS::Lambda::Function"|"AWS::Lambda::LayerVersion"|"AWS::KMS::Key"|"AWS::SecretsManager::Secret"|"AWS::EFS::FileSystem"|"AWS::EC2::Snapshot"|"AWS::ECR::Repository"|"AWS::RDS::DBSnapshot"|"AWS::RDS::DBClusterSnapshot"|"AWS::SNS::Topic"|"AWS::S3Express::DirectoryBucket"|string; + export type ResourceType = "AWS::S3::Bucket"|"AWS::IAM::Role"|"AWS::SQS::Queue"|"AWS::Lambda::Function"|"AWS::Lambda::LayerVersion"|"AWS::KMS::Key"|"AWS::SecretsManager::Secret"|"AWS::EFS::FileSystem"|"AWS::EC2::Snapshot"|"AWS::ECR::Repository"|"AWS::RDS::DBSnapshot"|"AWS::RDS::DBClusterSnapshot"|"AWS::SNS::Topic"|"AWS::S3Express::DirectoryBucket"|"AWS::DynamoDB::Table"|"AWS::DynamoDB::Stream"|string; export type RetiringPrincipal = string; export type RoleArn = string; export interface S3AccessPointConfiguration { @@ -2141,7 +2163,7 @@ declare namespace AccessAnalyzer { */ validatePolicyResourceType?: ValidatePolicyResourceType; } - export type ValidatePolicyResourceType = "AWS::S3::Bucket"|"AWS::S3::AccessPoint"|"AWS::S3::MultiRegionAccessPoint"|"AWS::S3ObjectLambda::AccessPoint"|"AWS::IAM::AssumeRolePolicyDocument"|string; + export type ValidatePolicyResourceType = "AWS::S3::Bucket"|"AWS::S3::AccessPoint"|"AWS::S3::MultiRegionAccessPoint"|"AWS::S3ObjectLambda::AccessPoint"|"AWS::IAM::AssumeRolePolicyDocument"|"AWS::DynamoDB::Table"|string; export interface ValidatePolicyResponse { /** * The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks. diff --git a/clients/codebuild.d.ts b/clients/codebuild.d.ts index 07bc5f8179..88744750e8 100644 --- a/clients/codebuild.d.ts +++ b/clients/codebuild.d.ts @@ -3239,7 +3239,7 @@ declare namespace CodeBuild { export type WebhookBuildType = "BUILD"|"BUILD_BATCH"|string; export interface WebhookFilter { /** - * The type of webhook filter. There are six webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, and COMMIT_MESSAGE. EVENT A webhook event triggers a build when the provided pattern matches one of six event types: PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_CLOSED, PULL_REQUEST_REOPENED, and PULL_REQUEST_MERGED. The EVENT patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull request created, and pull request updated events. The PULL_REQUEST_REOPENED works with GitHub and GitHub Enterprise only. ACTOR_ACCOUNT_ID A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression pattern. HEAD_REF A webhook event triggers a build when the head reference matches the regular expression pattern. For example, refs/heads/branch-name and refs/tags/tag-name. Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. BASE_REF A webhook event triggers a build when the base reference matches the regular expression pattern. For example, refs/heads/branch-name. Works with pull request events only. FILE_PATH A webhook triggers a build when the path of a changed file matches the regular expression pattern. Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. COMMIT_MESSAGE A webhook triggers a build when the head commit message matches the regular expression pattern. Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. + * The type of webhook filter. There are eight webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, COMMIT_MESSAGE, TAG_NAME, and RELEASE_NAME. EVENT A webhook event triggers a build when the provided pattern matches one of eight event types: PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_CLOSED, PULL_REQUEST_REOPENED, PULL_REQUEST_MERGED, RELEASED, and PRERELEASED. The EVENT patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull request created, and pull request updated events. The PULL_REQUEST_REOPENED works with GitHub and GitHub Enterprise only. The RELEASED and PRERELEASED work with GitHub only. ACTOR_ACCOUNT_ID A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression pattern. HEAD_REF A webhook event triggers a build when the head reference matches the regular expression pattern. For example, refs/heads/branch-name and refs/tags/tag-name. Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. BASE_REF A webhook event triggers a build when the base reference matches the regular expression pattern. For example, refs/heads/branch-name. Works with pull request events only. FILE_PATH A webhook triggers a build when the path of a changed file matches the regular expression pattern. Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. COMMIT_MESSAGE A webhook triggers a build when the head commit message matches the regular expression pattern. Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. TAG_NAME A webhook triggers a build when the tag name of the release matches the regular expression pattern. Works with RELEASED and PRERELEASED events only. RELEASE_NAME A webhook triggers a build when the release name matches the regular expression pattern. Works with RELEASED and PRERELEASED events only. */ type: WebhookFilterType; /** diff --git a/clients/connect.d.ts b/clients/connect.d.ts index a4bb69ff22..c35ab94b00 100644 --- a/clients/connect.d.ts +++ b/clients/connect.d.ts @@ -2318,7 +2318,7 @@ declare namespace Connect { */ InstanceId: InstanceId; /** - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the following types: For chat contacts, use REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. For voice contacts, use REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is still supported and will apply only to VOICE channel contacts. Use REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts moving forward. If you have previously associated a stream with REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to update the stream to REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. */ ResourceType: InstanceStorageResourceType; /** @@ -6490,7 +6490,7 @@ declare namespace Connect { KinesisFirehoseConfig?: KinesisFirehoseConfig; } export type InstanceStorageConfigs = InstanceStorageConfig[]; - export type InstanceStorageResourceType = "CHAT_TRANSCRIPTS"|"CALL_RECORDINGS"|"SCHEDULED_REPORTS"|"MEDIA_STREAMS"|"CONTACT_TRACE_RECORDS"|"AGENT_EVENTS"|"REAL_TIME_CONTACT_ANALYSIS_SEGMENTS"|"ATTACHMENTS"|"CONTACT_EVALUATIONS"|"SCREEN_RECORDINGS"|string; + export type InstanceStorageResourceType = "CHAT_TRANSCRIPTS"|"CALL_RECORDINGS"|"SCHEDULED_REPORTS"|"MEDIA_STREAMS"|"CONTACT_TRACE_RECORDS"|"AGENT_EVENTS"|"REAL_TIME_CONTACT_ANALYSIS_SEGMENTS"|"ATTACHMENTS"|"CONTACT_EVALUATIONS"|"SCREEN_RECORDINGS"|"REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS"|"REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS"|string; export interface InstanceSummary { /** * The identifier of the instance. diff --git a/clients/dynamodb.d.ts b/clients/dynamodb.d.ts index 3ec4f10520..170bd7c110 100644 --- a/clients/dynamodb.d.ts +++ b/clients/dynamodb.d.ts @@ -78,6 +78,14 @@ declare class DynamoDB extends DynamoDBCustomizations { * Deletes a single item in a table by primary key. You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value. In addition to deleting an item, you can also return the item's attribute values in the same operation, using the ReturnValues parameter. Unless you specify conditions, the DeleteItem is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response. Conditional deletes are useful for deleting items only if specific conditions are met. If those conditions are met, DynamoDB performs the delete. Otherwise, the item is not deleted. */ deleteItem(callback?: (err: AWSError, data: DynamoDB.Types.DeleteItemOutput) => void): Request>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:s-1,y=a?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,o=m):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?l/u:l*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=m?(n=0,o=m):o+c>=1?(n=(t*u-1)*Math.pow(2,i),o+=c):(n=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&n,d+=y,n/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=y,o/=256,p-=8);e[r+d-y]|=128*b}},{}],443:[function(e,t,r){var a={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},{}],444:[function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var s=0;s G((f-r)/g)&&i("overflow"),r+=(p-t)*g,t=p,u=0;u =0?(c=b.substr(0,S),l=b.substr(S+1)):(c=b,l=""),d=decodeURIComponent(c),y=decodeURIComponent(l),a(o,d)?i(o[d])?o[d].push(y):o[d]=[o[d],y]:o[d]=y}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],448:[function(e,t,r){"use strict";function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a >1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:s-1,y=a?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(n=isNaN(t)?1:0,o=m):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+c>=1?l/u:l*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=m?(n=0,o=m):o+c>=1?(n=(t*u-1)*Math.pow(2,i),o+=c):(n=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&n,d+=y,n/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=y,o/=256,p-=8);e[r+d-y]|=128*b}},{}],443:[function(e,t,r){var a={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},{}],444:[function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var s=0;s G((f-r)/g)&&i("overflow"),r+=(p-t)*g,t=p,u=0;u =0?(c=b.substr(0,S),l=b.substr(S+1)):(c=b,l=""),d=decodeURIComponent(c),y=decodeURIComponent(l),a(o,d)?i(o[d])?o[d].push(y):o[d]=[o[d],y]:o[d]=y}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],448:[function(e,t,r){"use strict";function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a=55296&&t<=56319&&i65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function c(e,t,r){var a=0;for(e=r?G(e/R):e>>1,e+=G(e/t);e>L*k>>1;a+=T)e=G(e/L);return G(a+(L+1)*e/(e+A))}function l(e){var t,r,a,s,o,n,m,l,d,y,b=[],S=e.length,g=0,h=v,I=D;for(r=e.lastIndexOf(x),r<0&&(r=0),a=0;a=S&&i("invalid-input"),l=p(e.charCodeAt(s++)),(l>=T||l>G((f-g)/n))&&i("overflow"),g+=l*n,d=m<=I?C:m>=I+k?k:m-I,!(l=t&&bf&&i("overflow"),b==t){for(l=r,d=T;y=d<=o?C:d>=o+k?k:d-o,!(l=0&&delete e.httpRequest.headers["Content-Length"]}function i(e){var t=new l,r=e.service.api.operations[e.operation].input;if(r.payload){var a={},i=r.members[r.payload];a=e.params[r.payload],"structure"===i.type?(e.httpRequest.body=t.build(a||{},i),s(e)):void 0!==a&&(e.httpRequest.body=a,("binary"===i.type||i.isStreaming)&&s(e,!0))}else e.httpRequest.body=t.build(e.params,r),s(e)}function s(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}function o(e){m.buildRequest(e),y.indexOf(e.httpRequest.method)<0&&i(e)}function n(e){c.extractError(e)}function u(e){m.extractData(e);var t,r=e.request,a=r.service.api.operations[r.operation],i=r.service.api.operations[r.operation].output||{};a.hasEventOutput;if(i.payload){var s=i.members[i.payload],o=e.httpResponse.body;if(s.isEventStream)t=new d,e.data[payload]=p.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new d;e.data[i.payload]=t.parse(o,s)}else"binary"===s.type||s.isStreaming?e.data[i.payload]=o:e.data[i.payload]=s.toType(o)}else{var n=e.data;c.extractData(e),e.data=p.merge(n,e.data)}}var p=e("../util"),m=e("./rest"),c=e("./json"),l=e("../json/builder"),d=e("../json/parser"),y=["GET","HEAD","DELETE"];t.exports={buildRequest:o,extractError:n,extractData:u,unsetContentLength:a}},{"../json/builder":374,"../json/parser":375,"../util":428,"./json":386,"./rest":388}],390:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,a=e.params,i=t.payload;if(i){var s=t.members[i];if(void 0===(a=a[i]))return;if("structure"===s.type){var o=s.name;e.httpRequest.body=r.toXML(a,s,o,!0)}else e.httpRequest.body=a}else e.httpRequest.body=r.toXML(a,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function i(e){p.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&a(e)}function s(e){p.extractError(e);var t;try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function o(e){p.extractData(e);var t,r=e.request,a=e.httpResponse.body,i=r.service.api.operations[r.operation],s=i.output,o=(i.hasEventOutput,s.payload);if(o){var m=s.members[o];m.isEventStream?(t=new n.XML.Parser,e.data[o]=u.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,m)):"structure"===m.type?(t=new n.XML.Parser,e.data[o]=t.parse(a.toString(),m)):"binary"===m.type||m.isStreaming?e.data[o]=a:e.data[o]=m.toType(a)}else if(a.length>0){t=new n.XML.Parser;var c=t.parse(a.toString(),s);u.update(e.data,c)}}var n=e("../core"),u=e("../util"),p=e("./rest");t.exports={buildRequest:i,extractError:s,extractData:o}},{"../core":350,"../util":428,"./rest":388}],391:[function(e,t,r){function a(){}function i(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,a){p.each(r.members,function(r,s){var o=t[r];if(null!==o&&void 0!==o){var n=i(s);n=e?e+"."+n:n,u(n,o,s,a)}})}function o(e,t,r,a){var i=1;p.each(t,function(t,s){var o=r.flattened?".":".entry.",n=o+i+++".",p=n+(r.key.name||"key"),m=n+(r.value.name||"value");u(e+p,t,r.key,a),u(e+m,s,r.value,a)})}function n(e,t,r,a){var s=r.member||{};if(0===t.length)return void a.call(this,e,null);p.arrayEach(t,function(t,o){var n="."+(o+1);if("ec2"===r.api.protocol)n+="";else if(r.flattened){if(s.name){var p=e.split(".");p.pop(),p.push(i(s)),e=p.join(".")}}else n="."+(s.name?s.name:"member")+n;u(e+n,t,s,a)})}function u(e,t,r,a){null!==t&&void 0!==t&&("structure"===r.type?s(e,t,r,a):"list"===r.type?n(e,t,r,a):"map"===r.type?o(e,t,r,a):a(e,r.toWireFormat(t).toString()))}var p=e("../util");a.prototype.serialize=function(e,t,r){s("",e,t,r)},t.exports=a},{"../util":428}],392:[function(e,t,r){var a=e("../core"),i=null,s={signatureVersion:"v4",signingName:"rds-db",operations:{}},o={region:"string",hostname:"string",port:"number",username:"string"};a.RDS.Signer=a.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){if(0===e.indexOf("https://"))return e.substring("https://".length)},getAuthToken:function(e,t){"function"==typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"==typeof t;e=a.util.merge(this.options,e);var n=this.validateAuthTokenOptions(e);if(!0!==n){if(o)return t(n,null);throw n}var u={region:e.region,endpoint:new a.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),i=new a.Service(u),i.api=s;var p=i.makeRequest();if(this.modifyRequestForAuthToken(p,e),!o){var m=p.presign(900);return this.convertUrlToAuthToken(m)}p.presign(900,function(e,a){a&&(a=r.convertUrlToAuthToken(a)),t(e,a)})},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=a.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";e=e||{};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||a.util.error(new Error,{code:"InvalidParameter",message:t})}})},{"../core":350}],393:[function(e,t,r){t.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},{}],394:[function(e,t,r){function a(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))}function i(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)}function s(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}t.exports={isFipsRegion:a,isGlobalRegion:i,getRealRegion:s}},{}],395:[function(e,t,r){function a(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function i(e){var t=e.config.region,r=a(t),i=e.api.endpointPrefix;return[[t,i],[r,i],[t,"*"],[r,"*"],["*",i],[t,"internal-*"],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function s(e,t){u.each(t,function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))})}function o(e){for(var t=i(e),r=e.config.useFipsEndpoint,a=e.config.useDualstackEndpoint,o=0;o=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),s.alloc(+e)}function S(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(a)return K(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return q(this,t,r);case"base64":return D(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function h(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function I(e,t,r,a,i){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,a)),s.isBuffer(t))return 0===t.length?-1:N(e,t,r,a,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):N(e,[t],r,a,i);throw new TypeError("val must be string, number or Buffer")}function N(e,t,r,a,i){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,n=e.length,u=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,n/=2,u/=2,r/=2}var p;if(i){var m=-1;for(p=r;p>>8*(a?i:1-i)}function B(e,t,r,a){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(a?i:3-i)&255}function U(e,t,r,a,i,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,a,i){return i||U(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,r,a,23,4),r+4}function F(e,t,r,a,i){return i||U(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,r,a,52,8),r+8}function O(e){if(e=V(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){t=t||1/0;for(var r,a=e.length,i=null,s=[],o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function j(e){for(var t=[],r=0;r=55296&&t<=56319&&i65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function p(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:T}function m(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function c(e,t,r){var a=0;for(e=r?G(e/R):e>>1,e+=G(e/t);e>L*k>>1;a+=T)e=G(e/L);return G(a+(L+1)*e/(e+A))}function l(e){var t,r,a,s,o,n,m,l,d,y,b=[],S=e.length,g=0,h=v,I=D;for(r=e.lastIndexOf(x),r<0&&(r=0),a=0;a=S&&i("invalid-input"),l=p(e.charCodeAt(s++)),(l>=T||l>G((f-g)/n))&&i("overflow"),g+=l*n,d=m<=I?C:m>=I+k?k:m-I,!(l=t&&bf&&i("overflow"),b==t){for(l=r,d=T;y=d<=o?C:d>=o+k?k:d-o,!(l