diff --git a/.changes/2.1480.0.json b/.changes/2.1480.0.json new file mode 100644 index 0000000000..91a9b03be9 --- /dev/null +++ b/.changes/2.1480.0.json @@ -0,0 +1,37 @@ +[ + { + "type": "feature", + "category": "CodePipeline", + "description": "Add ability to trigger pipelines from git tags, define variables at pipeline level and new pipeline type V2." + }, + { + "type": "feature", + "category": "EC2", + "description": "This release updates the documentation for InstanceInterruptionBehavior and HibernationOptionsRequest to more accurately describe the behavior of these two parameters when using Spot hibernation." + }, + { + "type": "feature", + "category": "EKS", + "description": "Added support for Cluster Subnet and Security Group mutability." + }, + { + "type": "feature", + "category": "IAM", + "description": "Add the partitional endpoint for IAM in iso-f." + }, + { + "type": "feature", + "category": "MigrationHubConfig", + "description": "This release introduces DeleteHomeRegionControl API that customers can use to delete the Migration Hub Home Region configuration" + }, + { + "type": "feature", + "category": "MigrationHubStrategy", + "description": "This release introduces multi-data-source feature in Migration Hub Strategy Recommendations. This feature now supports vCenter as a data source to fetch inventory in addition to ADS and Import from file workflow that is currently supported with MHSR collector." + }, + { + "type": "feature", + "category": "OpenSearchServerless", + "description": "This release includes the following new APIs: CreateLifecyclePolicy, UpdateLifecyclePolicy, BatchGetLifecyclePolicy, DeleteLifecyclePolicy, ListLifecyclePolicies and BatchGetEffectiveLifecyclePolicy to support the data lifecycle management feature." + } +] \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 57c875b580..34aafbb60b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,16 @@ # Changelog for AWS SDK for JavaScript - + +## 2.1480.0 +* feature: CodePipeline: Add ability to trigger pipelines from git tags, define variables at pipeline level and new pipeline type V2. +* feature: EC2: This release updates the documentation for InstanceInterruptionBehavior and HibernationOptionsRequest to more accurately describe the behavior of these two parameters when using Spot hibernation. +* feature: EKS: Added support for Cluster Subnet and Security Group mutability. +* feature: IAM: Add the partitional endpoint for IAM in iso-f. +* feature: MigrationHubConfig: This release introduces DeleteHomeRegionControl API that customers can use to delete the Migration Hub Home Region configuration +* feature: MigrationHubStrategy: This release introduces multi-data-source feature in Migration Hub Strategy Recommendations. This feature now supports vCenter as a data source to fetch inventory in addition to ADS and Import from file workflow that is currently supported with MHSR collector. +* feature: OpenSearchServerless: This release includes the following new APIs: CreateLifecyclePolicy, UpdateLifecyclePolicy, BatchGetLifecyclePolicy, DeleteLifecyclePolicy, ListLifecyclePolicies and BatchGetEffectiveLifecyclePolicy to support the data lifecycle management feature. + ## 2.1479.0 * feature: MarketplaceCommerceAnalytics: The StartSupportDataExport operation has been deprecated as part of the Product Support Connection deprecation. As of December 2022, Product Support Connection is no longer supported. * feature: NetworkManager: This release adds API support for Tunnel-less Connect (NoEncap Protocol) for AWS Cloud WAN diff --git a/README.md b/README.md index eaaf0b11a3..70031e8e78 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,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/codepipeline-2015-07-09.min.json b/apis/codepipeline-2015-07-09.min.json index 7231ef345d..87525b7b13 100644 --- a/apis/codepipeline-2015-07-09.min.json +++ b/apis/codepipeline-2015-07-09.min.json @@ -231,7 +231,7 @@ "type": "structure", "members": { "actionType": { - "shape": "S29" + "shape": "S2o" } } } @@ -254,7 +254,7 @@ "members": { "id": {}, "data": { - "shape": "S31" + "shape": "S3g" }, "accountId": {} } @@ -339,6 +339,19 @@ "revisionUrl": {} } } + }, + "trigger": { + "shape": "S4e" + }, + "variables": { + "type": "list", + "member": { + "type": "structure", + "members": { + "name": {}, + "resolvedValue": {} + } + } } } } @@ -369,7 +382,7 @@ "members": { "stageName": {}, "inboundExecution": { - "shape": "S43" + "shape": "S4o" }, "inboundTransitionState": { "type": "structure", @@ -391,7 +404,7 @@ "members": { "actionName": {}, "currentRevision": { - "shape": "S4b" + "shape": "S4w" }, "latestExecution": { "type": "structure", @@ -424,7 +437,7 @@ } }, "latestExecution": { - "shape": "S43" + "shape": "S4o" } } } @@ -464,19 +477,19 @@ "shape": "Sw" }, "actionConfiguration": { - "shape": "S32" + "shape": "S3h" }, "pipelineContext": { - "shape": "S33" + "shape": "S3i" }, "inputArtifacts": { - "shape": "S39" + "shape": "S3o" }, "outputArtifacts": { - "shape": "S39" + "shape": "S3o" }, "artifactCredentials": { - "shape": "S3h" + "shape": "S3w" }, "continuationToken": {}, "encryptionKey": { @@ -549,7 +562,7 @@ "roleArn": {}, "region": {}, "inputArtifacts": { - "shape": "S50" + "shape": "S5k" }, "namespace": {} } @@ -558,7 +571,7 @@ "type": "structure", "members": { "outputArtifacts": { - "shape": "S50" + "shape": "S5k" }, "executionResult": { "type": "structure", @@ -569,7 +582,7 @@ } }, "outputVariables": { - "shape": "S59" + "shape": "S5t" } } } @@ -651,11 +664,7 @@ } }, "trigger": { - "type": "structure", - "members": { - "triggerType": {}, - "triggerDetail": {} - } + "shape": "S4e" }, "stopTrigger": { "type": "structure", @@ -692,6 +701,7 @@ "version": { "type": "integer" }, + "pipelineType": {}, "created": { "type": "timestamp" }, @@ -745,7 +755,7 @@ "webhooks": { "type": "list", "member": { - "shape": "S61" + "shape": "S6i" } }, "NextToken": {} @@ -782,7 +792,7 @@ "members": { "id": {}, "data": { - "shape": "S31" + "shape": "S3g" }, "nonce": {}, "accountId": {} @@ -837,7 +847,7 @@ "stageName": {}, "actionName": {}, "actionRevision": { - "shape": "S4b" + "shape": "S4w" } } }, @@ -898,7 +908,7 @@ "members": { "jobId": {}, "failureDetails": { - "shape": "S71" + "shape": "S7i" } } } @@ -912,14 +922,14 @@ "members": { "jobId": {}, "currentRevision": { - "shape": "S74" + "shape": "S7l" }, "continuationToken": {}, "executionDetails": { - "shape": "S76" + "shape": "S7n" }, "outputVariables": { - "shape": "S59" + "shape": "S5t" } } } @@ -936,7 +946,7 @@ "jobId": {}, "clientToken": {}, "failureDetails": { - "shape": "S71" + "shape": "S7i" } } } @@ -952,11 +962,11 @@ "jobId": {}, "clientToken": {}, "currentRevision": { - "shape": "S74" + "shape": "S7l" }, "continuationToken": {}, "executionDetails": { - "shape": "S76" + "shape": "S7n" } } } @@ -969,7 +979,7 @@ ], "members": { "webhook": { - "shape": "S62" + "shape": "S6j" }, "tags": { "shape": "Sq" @@ -980,7 +990,7 @@ "type": "structure", "members": { "webhook": { - "shape": "S61" + "shape": "S6i" } } } @@ -1028,6 +1038,20 @@ ], "members": { "name": {}, + "variables": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "name", + "value" + ], + "members": { + "name": {}, + "value": {} + } + } + }, "clientRequestToken": { "idempotencyToken": true } @@ -1110,7 +1134,7 @@ ], "members": { "actionType": { - "shape": "S29" + "shape": "S2o" } } } @@ -1343,6 +1367,62 @@ }, "version": { "type": "integer" + }, + "pipelineType": {}, + "triggers": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "providerType", + "gitConfiguration" + ], + "members": { + "providerType": {}, + "gitConfiguration": { + "type": "structure", + "required": [ + "sourceActionName" + ], + "members": { + "sourceActionName": {}, + "push": { + "type": "list", + "member": { + "type": "structure", + "members": { + "tags": { + "type": "structure", + "members": { + "includes": { + "shape": "S22" + }, + "excludes": { + "shape": "S22" + } + } + } + } + } + } + } + } + } + } + }, + "variables": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "name" + ], + "members": { + "name": {}, + "defaultValue": {}, + "description": {} + } + } } } }, @@ -1376,7 +1456,11 @@ "key": {}, "value": {} }, - "S29": { + "S22": { + "type": "list", + "member": {} + }, + "S2o": { "type": "structure", "required": [ "executor", @@ -1443,10 +1527,10 @@ } }, "inputArtifactDetails": { - "shape": "S2o" + "shape": "S33" }, "outputArtifactDetails": { - "shape": "S2o" + "shape": "S33" }, "permissions": { "type": "structure", @@ -1499,7 +1583,7 @@ } } }, - "S2o": { + "S33": { "type": "structure", "required": [ "minimumCount", @@ -1514,26 +1598,26 @@ } } }, - "S31": { + "S3g": { "type": "structure", "members": { "actionTypeId": { "shape": "Sw" }, "actionConfiguration": { - "shape": "S32" + "shape": "S3h" }, "pipelineContext": { - "shape": "S33" + "shape": "S3i" }, "inputArtifacts": { - "shape": "S39" + "shape": "S3o" }, "outputArtifacts": { - "shape": "S39" + "shape": "S3o" }, "artifactCredentials": { - "shape": "S3h" + "shape": "S3w" }, "continuationToken": {}, "encryptionKey": { @@ -1541,7 +1625,7 @@ } } }, - "S32": { + "S3h": { "type": "structure", "members": { "configuration": { @@ -1549,7 +1633,7 @@ } } }, - "S33": { + "S3i": { "type": "structure", "members": { "pipelineName": {}, @@ -1570,7 +1654,7 @@ "pipelineExecutionId": {} } }, - "S39": { + "S3o": { "type": "list", "member": { "type": "structure", @@ -1597,7 +1681,7 @@ } } }, - "S3h": { + "S3w": { "type": "structure", "required": [ "accessKeyId", @@ -1620,7 +1704,14 @@ }, "sensitive": true }, - "S43": { + "S4e": { + "type": "structure", + "members": { + "triggerType": {}, + "triggerDetail": {} + } + }, + "S4o": { "type": "structure", "required": [ "pipelineExecutionId", @@ -1631,7 +1722,7 @@ "status": {} } }, - "S4b": { + "S4w": { "type": "structure", "required": [ "revisionId", @@ -1646,7 +1737,7 @@ } } }, - "S50": { + "S5k": { "type": "list", "member": { "type": "structure", @@ -1662,12 +1753,12 @@ } } }, - "S59": { + "S5t": { "type": "map", "key": {}, "value": {} }, - "S61": { + "S6i": { "type": "structure", "required": [ "definition", @@ -1675,7 +1766,7 @@ ], "members": { "definition": { - "shape": "S62" + "shape": "S6j" }, "url": {}, "errorMessage": {}, @@ -1689,7 +1780,7 @@ } } }, - "S62": { + "S6j": { "type": "structure", "required": [ "name", @@ -1726,7 +1817,7 @@ } } }, - "S71": { + "S7i": { "type": "structure", "required": [ "type", @@ -1738,7 +1829,7 @@ "externalExecutionId": {} } }, - "S74": { + "S7l": { "type": "structure", "required": [ "revision", @@ -1753,7 +1844,7 @@ "revisionSummary": {} } }, - "S76": { + "S7n": { "type": "structure", "members": { "summary": {}, diff --git a/apis/codepipeline-2015-07-09.normal.json b/apis/codepipeline-2015-07-09.normal.json index 167e140157..1b7e44ae43 100644 --- a/apis/codepipeline-2015-07-09.normal.json +++ b/apis/codepipeline-2015-07-09.normal.json @@ -2712,6 +2712,68 @@ }, "documentation": "
Represents the output of a GetThirdPartyJobDetails
action.
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.
You can only specify one trigger configuration per source action.
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
Git tags is the only supported event type.
A type of trigger configuration for Git-based source actions.
You can specify the Git configuration trigger type for all third-party Git-based source actions that are supported by the CodeStarSourceConnection
action type.
The field that contains the details for the Git tags trigger configuration.
" + } + }, + "documentation": "The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.
" + }, + "GitPushFilterList": { + "type": "list", + "member": { + "shape": "GitPushFilter" + }, + "max": 1, + "min": 1 + }, + "GitTagFilterCriteria": { + "type": "structure", + "members": { + "includes": { + "shape": "GitTagPatternList", + "documentation": "The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.
" + }, + "excludes": { + "shape": "GitTagPatternList", + "documentation": "The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.
" + } + }, + "documentation": "The Git tags specified as filter criteria for whether a Git tag repository event will start the pipeline.
" + }, + "GitTagNamePattern": { + "type": "string", + "max": 255, + "min": 1 + }, + "GitTagPatternList": { + "type": "list", + "member": { + "shape": "GitTagNamePattern" + }, + "max": 8, + "min": 1 + }, "InputArtifact": { "type": "structure", "required": [ @@ -3270,6 +3332,18 @@ "version": { "shape": "PipelineVersion", "documentation": "The version number of the pipeline. A new pipeline always has a version number of 1. This number is incremented when a pipeline is updated.
" + }, + "pipelineType": { + "shape": "PipelineType", + "documentation": "CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.
V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.
Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.
For information about pricing for CodePipeline, see Pricing.
For information about which type of pipeline to choose, see What type of pipeline is right for me?.
" + }, + "triggers": { + "shape": "PipelineTriggerDeclarationList", + "documentation": "The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.
When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\\-_]+
.
Represents the structure of actions and stages to be performed in the pipeline.
" @@ -3300,6 +3374,13 @@ "artifactRevisions": { "shape": "ArtifactRevisionList", "documentation": "A list of ArtifactRevision
objects included in a pipeline execution.
A list of pipeline variables used for the pipeline execution.
" } }, "documentation": "Represents information about an execution of a pipeline.
" @@ -3414,6 +3495,10 @@ "shape": "PipelineVersion", "documentation": "The version number of the pipeline.
" }, + "pipelineType": { + "shape": "PipelineType", + "documentation": "CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.
V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.
V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.
Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.
For information about pricing for CodePipeline, see Pricing.
For information about which type of pipeline to choose, see What type of pipeline is right for me?.
" + }, "created": { "shape": "Timestamp", "documentation": "The date and time the pipeline was created, in timestamp format.
" @@ -3425,6 +3510,116 @@ }, "documentation": "Returns a summary of a pipeline.
" }, + "PipelineTriggerDeclaration": { + "type": "structure", + "required": [ + "providerType", + "gitConfiguration" + ], + "members": { + "providerType": { + "shape": "PipelineTriggerProviderType", + "documentation": "The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
" + }, + "gitConfiguration": { + "shape": "GitConfiguration", + "documentation": "Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
" + } + }, + "documentation": "Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.
This is only supported for the CodeStarSourceConnection
action type.
When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
The name of a pipeline-level variable.
" + }, + "value": { + "shape": "PipelineVariableValue", + "documentation": "The value of a pipeline-level variable.
" + } + }, + "documentation": "A pipeline-level variable used for a pipeline execution.
" + }, + "PipelineVariableDeclaration": { + "type": "structure", + "required": [ + "name" + ], + "members": { + "name": { + "shape": "PipelineVariableName", + "documentation": "The name of a pipeline-level variable.
" + }, + "defaultValue": { + "shape": "PipelineVariableValue", + "documentation": "The value of a pipeline-level variable.
" + }, + "description": { + "shape": "PipelineVariableDescription", + "documentation": "The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
" + } + }, + "documentation": "A variable declared at the pipeline level.
" + }, + "PipelineVariableDeclarationList": { + "type": "list", + "member": { + "shape": "PipelineVariableDeclaration" + }, + "max": 50 + }, + "PipelineVariableDescription": { + "type": "string", + "max": 200, + "min": 0, + "pattern": ".*" + }, + "PipelineVariableList": { + "type": "list", + "member": { + "shape": "PipelineVariable" + }, + "max": 50, + "min": 1 + }, + "PipelineVariableName": { + "type": "string", + "max": 128, + "min": 1, + "pattern": "[A-Za-z0-9@\\-_]+" + }, + "PipelineVariableValue": { + "type": "string", + "max": 1000, + "min": 1, + "pattern": ".*" + }, "PipelineVersion": { "type": "integer", "min": 1 @@ -3756,6 +3951,26 @@ "shape": "String" } }, + "ResolvedPipelineVariable": { + "type": "structure", + "members": { + "name": { + "shape": "String", + "documentation": "The name of a pipeline-level variable.
" + }, + "resolvedValue": { + "shape": "String", + "documentation": "The resolved value of a pipeline-level variable.
" + } + }, + "documentation": "A pipeline-level variable used for a pipeline execution.
" + }, + "ResolvedPipelineVariableList": { + "type": "list", + "member": { + "shape": "ResolvedPipelineVariable" + } + }, "ResourceArn": { "type": "string", "pattern": "arn:aws(-[\\w]+)*:codepipeline:.+:[0-9]{12}:.+" @@ -4044,6 +4259,10 @@ "shape": "PipelineName", "documentation": "The name of the pipeline to start.
" }, + "variables": { + "shape": "PipelineVariableList", + "documentation": "A list that overrides pipeline variables for a pipeline execution that's being started. Variable names must match [A-Za-z0-9@\\-_]+
, and the values can be anything except an empty string.
The system-generated unique ID used to identify a unique execution request.
", @@ -4296,7 +4515,8 @@ "PollForSourceChanges", "Webhook", "CloudWatchEvent", - "PutActionRevision" + "PutActionRevision", + "WebhookV2" ] }, "UntagResourceInput": { diff --git a/apis/ec2-2016-11-15.normal.json b/apis/ec2-2016-11-15.normal.json index 9a7a76a613..2c24ca09f3 100644 --- a/apis/ec2-2016-11-15.normal.json +++ b/apis/ec2-2016-11-15.normal.json @@ -25453,7 +25453,7 @@ "members": { "Filters": { "shape": "FilterList", - "documentation": "The filters.
availability-zone
- The Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example, m3.medium
).
product-description
- The product description for the Spot price (Linux/UNIX
| Red Hat Enterprise Linux
| SUSE Linux
| Windows
| Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (Amazon VPC)
| SUSE Linux (Amazon VPC)
| Windows (Amazon VPC)
).
spot-price
- The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).
timestamp
- The time stamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
The filters.
availability-zone
- The Availability Zone for which prices should be returned.
instance-type
- The type of instance (for example, m3.medium
).
product-description
- The product description for the Spot price (Linux/UNIX
| Red Hat Enterprise Linux
| SUSE Linux
| Windows
| Linux/UNIX (Amazon VPC)
| Red Hat Enterprise Linux (Amazon VPC)
| SUSE Linux (Amazon VPC)
| Windows (Amazon VPC)
).
spot-price
- The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).
timestamp
- The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (*
and ?
). Greater than or less than comparison is not supported.
Set to true
to enable your instance for hibernation.
Default: false
Set to true
to enable your instance for hibernation.
For Spot Instances, if you set Configured
to true
, either omit the InstanceInterruptionBehavior
parameter (for SpotMarketOptions
), or set it to hibernate
. When Configured
is true:
If you omit InstanceInterruptionBehavior
, it defaults to hibernate
.
If you set InstanceInterruptionBehavior
to a value other than hibernate
, you'll get an error.
Default: false
Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
" @@ -55269,7 +55269,7 @@ }, "InstanceInterruptionBehavior": { "shape": "InstanceInterruptionBehavior", - "documentation": "The behavior when a Spot Instance is interrupted. The default is terminate
.
The behavior when a Spot Instance is interrupted.
If Configured
(for HibernationOptions
) is set to true
, the InstanceInterruptionBehavior
parameter is automatically set to hibernate
. If you set it to stop
or terminate
, you'll get an error.
If Configured
(for HibernationOptions
) is set to false
or null
, the InstanceInterruptionBehavior
parameter is automatically set to terminate
. You can also set it to stop
or hibernate
.
For more information, see Interruption behavior in the Amazon EC2 User Guide.
" } }, "documentation": "The options for Spot Instances.
" diff --git a/apis/eks-2017-11-01.normal.json b/apis/eks-2017-11-01.normal.json index d57ecc5dea..4a234edb5c 100644 --- a/apis/eks-2017-11-01.normal.json +++ b/apis/eks-2017-11-01.normal.json @@ -1543,7 +1543,20 @@ "ConfigurationConflict", "InternalFailure", "ResourceLimitExceeded", - "ResourceNotFound" + "ResourceNotFound", + "IamRoleNotFound", + "VpcNotFound", + "InsufficientFreeAddresses", + "Ec2ServiceNotSubscribed", + "Ec2SubnetNotFound", + "Ec2SecurityGroupNotFound", + "KmsGrantRevoked", + "KmsKeyNotFound", + "KmsKeyMarkedForDeletion", + "KmsKeyDisabled", + "StsRegionalEndpointDisabled", + "UnsupportedVersion", + "Other" ] }, "ClusterIssueList": { @@ -3878,7 +3891,10 @@ "ServiceAccountRoleArn", "ResolveConflicts", "MaxUnavailable", - "MaxUnavailablePercentage" + "MaxUnavailablePercentage", + "ConfigurationValues", + "SecurityGroups", + "Subnets" ] }, "UpdateParams": { @@ -3920,7 +3936,8 @@ "AssociateIdentityProviderConfig", "DisassociateIdentityProviderConfig", "AssociateEncryptionConfig", - "AddonUpdate" + "AddonUpdate", + "VpcConfigUpdate" ] }, "VpcConfigRequest": { diff --git a/apis/migrationhub-config-2019-06-30.min.json b/apis/migrationhub-config-2019-06-30.min.json index 0aacb148e5..8491f92752 100644 --- a/apis/migrationhub-config-2019-06-30.min.json +++ b/apis/migrationhub-config-2019-06-30.min.json @@ -39,6 +39,21 @@ } } }, + "DeleteHomeRegionControl": { + "input": { + "type": "structure", + "required": [ + "ControlId" + ], + "members": { + "ControlId": {} + } + }, + "output": { + "type": "structure", + "members": {} + } + }, "DescribeHomeRegionControls": { "input": { "type": "structure", diff --git a/apis/migrationhub-config-2019-06-30.normal.json b/apis/migrationhub-config-2019-06-30.normal.json index 292f893b70..6dbd34531f 100644 --- a/apis/migrationhub-config-2019-06-30.normal.json +++ b/apis/migrationhub-config-2019-06-30.normal.json @@ -47,6 +47,37 @@ ], "documentation": "This API sets up the home region for the calling account only.
" }, + "DeleteHomeRegionControl": { + "name": "DeleteHomeRegionControl", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "DeleteHomeRegionControlRequest" + }, + "output": { + "shape": "DeleteHomeRegionControlResult" + }, + "errors": [ + { + "shape": "InternalServerError" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "InvalidInputException" + } + ], + "documentation": "This operation deletes the home region configuration for the calling account. The operation does not delete discovery or migration tracking data in the home region.
" + }, "DescribeHomeRegionControls": { "name": "DescribeHomeRegionControls", "http": { @@ -147,6 +178,22 @@ } } }, + "DeleteHomeRegionControlRequest": { + "type": "structure", + "required": [ + "ControlId" + ], + "members": { + "ControlId": { + "shape": "ControlId", + "documentation": "A unique identifier that's generated for each home region control. It's always a string that begins with \"hrc-\" followed by 12 lowercase letters and numbers.
" + } + } + }, + "DeleteHomeRegionControlResult": { + "type": "structure", + "members": {} + }, "DescribeHomeRegionControlsMaxResults": { "type": "integer", "box": true, diff --git a/apis/migrationhubstrategy-2020-02-19.min.json b/apis/migrationhubstrategy-2020-02-19.min.json index 72859df204..9d106d1e59 100644 --- a/apis/migrationhubstrategy-2020-02-19.min.json +++ b/apis/migrationhubstrategy-2020-02-19.min.json @@ -438,6 +438,40 @@ } } }, + "ListAnalyzableServers": { + "http": { + "requestUri": "/list-analyzable-servers", + "responseCode": 200 + }, + "input": { + "type": "structure", + "members": { + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "sort": {} + } + }, + "output": { + "type": "structure", + "members": { + "analyzableServers": { + "type": "list", + "member": { + "type": "structure", + "members": { + "hostname": {}, + "ipAddress": {}, + "source": {}, + "vmId": {} + } + } + }, + "nextToken": {} + } + } + }, "ListApplicationComponents": { "http": { "requestUri": "/list-applicationcomponents", @@ -449,7 +483,7 @@ "applicationComponentCriteria": {}, "filterValue": {}, "groupIdFilter": { - "shape": "S44" + "shape": "S49" }, "maxResults": { "type": "integer" @@ -629,7 +663,7 @@ "members": { "filterValue": {}, "groupIdFilter": { - "shape": "S44" + "shape": "S49" }, "maxResults": { "type": "integer" @@ -685,6 +719,7 @@ "input": { "type": "structure", "members": { + "assessmentDataSourceType": {}, "assessmentTargets": { "shape": "S1m" }, @@ -715,7 +750,7 @@ "S3Bucket": {}, "dataSourceType": {}, "groupId": { - "shape": "S44" + "shape": "S49" }, "name": {}, "s3bucketForReportData": {}, @@ -738,7 +773,7 @@ "type": "structure", "members": { "groupIdFilter": { - "shape": "S44" + "shape": "S49" }, "outputFormat": {} } @@ -803,7 +838,7 @@ } }, "strategyOption": { - "shape": "S5o" + "shape": "S5t" } } }, @@ -825,7 +860,7 @@ "members": { "serverId": {}, "strategyOption": { - "shape": "S5o" + "shape": "S5t" } } }, @@ -1188,7 +1223,7 @@ } } }, - "S44": { + "S49": { "type": "list", "member": { "type": "structure", @@ -1198,7 +1233,7 @@ } } }, - "S5o": { + "S5t": { "type": "structure", "members": { "isPreferred": { diff --git a/apis/migrationhubstrategy-2020-02-19.normal.json b/apis/migrationhubstrategy-2020-02-19.normal.json index ef578e2983..c342af0793 100644 --- a/apis/migrationhubstrategy-2020-02-19.normal.json +++ b/apis/migrationhubstrategy-2020-02-19.normal.json @@ -305,6 +305,35 @@ ], "documentation": "Retrieves recommended strategies and tools for the specified server.
" }, + "ListAnalyzableServers": { + "name": "ListAnalyzableServers", + "http": { + "method": "POST", + "requestUri": "/list-analyzable-servers", + "responseCode": 200 + }, + "input": { + "shape": "ListAnalyzableServersRequest" + }, + "output": { + "shape": "ListAnalyzableServersResponse" + }, + "errors": [ + { + "shape": "AccessDeniedException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "InternalServerException" + } + ], + "documentation": "Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.
" + }, "ListApplicationComponents": { "name": "ListApplicationComponents", "http": { @@ -659,6 +688,34 @@ "BINARY_ANALYSIS" ] }, + "AnalyzableServerSummary": { + "type": "structure", + "members": { + "hostname": { + "shape": "String", + "documentation": "The host name of the analyzable server.
" + }, + "ipAddress": { + "shape": "String", + "documentation": "The ip address of the analyzable server.
" + }, + "source": { + "shape": "String", + "documentation": "The data source of the analyzable server.
" + }, + "vmId": { + "shape": "String", + "documentation": "The virtual machine id of the analyzable server.
" + } + }, + "documentation": "Summary information about an analyzable server.
" + }, + "AnalyzableServerSummaryList": { + "type": "list", + "member": { + "shape": "AnalyzableServerSummary" + } + }, "AnalyzerNameUnion": { "type": "structure", "members": { @@ -967,6 +1024,14 @@ }, "documentation": "Application preferences that you specify.
" }, + "AssessmentDataSourceType": { + "type": "string", + "enum": [ + "StrategyRecommendationsApplicationDataCollector", + "ManualImport", + "ApplicationDiscoveryService" + ] + }, "AssessmentStatus": { "type": "string", "enum": [ @@ -1306,7 +1371,8 @@ "enum": [ "ApplicationDiscoveryService", "MPA", - "Import" + "Import", + "StrategyRecommendationsApplicationDataCollector" ] }, "DatabaseConfigDetail": { @@ -1853,6 +1919,38 @@ "min": 0, "pattern": ".*" }, + "ListAnalyzableServersRequest": { + "type": "structure", + "members": { + "maxResults": { + "shape": "MaxResult", + "documentation": "The maximum number of items to include in the response. The maximum value is 100.
" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.
" + }, + "sort": { + "shape": "SortOrder", + "documentation": "Specifies whether to sort by ascending (ASC) or descending (DESC) order.
" + } + }, + "documentation": "Represents input for ListAnalyzableServers operation.
" + }, + "ListAnalyzableServersResponse": { + "type": "structure", + "members": { + "analyzableServers": { + "shape": "AnalyzableServerSummaryList", + "documentation": "The list of analyzable servers with summary information about each server.
" + }, + "nextToken": { + "shape": "NextToken", + "documentation": "The token you use to retrieve the next set of results, or null if there are no more results.
" + } + }, + "documentation": "Represents output for ListAnalyzableServers operation.
" + }, "ListAntipatternSeveritySummary": { "type": "list", "member": { @@ -2771,6 +2869,10 @@ "StartAssessmentRequest": { "type": "structure", "members": { + "assessmentDataSourceType": { + "shape": "AssessmentDataSourceType", + "documentation": "The data source type of an assessment to be started.
" + }, "assessmentTargets": { "shape": "AssessmentTargets", "documentation": "List of criteria for assessment.
" diff --git a/apis/migrationhubstrategy-2020-02-19.paginators.json b/apis/migrationhubstrategy-2020-02-19.paginators.json index 5f446456d5..e2422f1820 100644 --- a/apis/migrationhubstrategy-2020-02-19.paginators.json +++ b/apis/migrationhubstrategy-2020-02-19.paginators.json @@ -6,6 +6,12 @@ "limit_key": "maxResults", "result_key": "associatedApplications" }, + "ListAnalyzableServers": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "analyzableServers" + }, "ListApplicationComponents": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/apis/opensearchserverless-2021-11-01.min.json b/apis/opensearchserverless-2021-11-01.min.json index f740e28f07..d9b4d39854 100644 --- a/apis/opensearchserverless-2021-11-01.min.json +++ b/apis/opensearchserverless-2021-11-01.min.json @@ -68,6 +68,110 @@ } } }, + "BatchGetEffectiveLifecyclePolicy": { + "input": { + "type": "structure", + "required": [ + "resourceIdentifiers" + ], + "members": { + "resourceIdentifiers": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "resource", + "type" + ], + "members": { + "resource": {}, + "type": {} + } + } + } + } + }, + "output": { + "type": "structure", + "members": { + "effectiveLifecyclePolicyDetails": { + "type": "list", + "member": { + "type": "structure", + "members": { + "noMinRetentionPeriod": { + "type": "boolean" + }, + "policyName": {}, + "resource": {}, + "resourceType": {}, + "retentionPeriod": {}, + "type": {} + } + } + }, + "effectiveLifecyclePolicyErrorDetails": { + "type": "list", + "member": { + "type": "structure", + "members": { + "errorCode": {}, + "errorMessage": {}, + "resource": {}, + "type": {} + } + } + } + } + } + }, + "BatchGetLifecyclePolicy": { + "input": { + "type": "structure", + "required": [ + "identifiers" + ], + "members": { + "identifiers": { + "type": "list", + "member": { + "type": "structure", + "required": [ + "name", + "type" + ], + "members": { + "name": {}, + "type": {} + } + } + } + } + }, + "output": { + "type": "structure", + "members": { + "lifecyclePolicyDetails": { + "type": "list", + "member": { + "shape": "Sy" + } + }, + "lifecyclePolicyErrorDetails": { + "type": "list", + "member": { + "type": "structure", + "members": { + "errorCode": {}, + "errorMessage": {}, + "name": {}, + "type": {} + } + } + } + } + } + }, "BatchGetVpcEndpoint": { "input": { "type": "structure", @@ -95,11 +199,11 @@ "id": {}, "name": {}, "securityGroupIds": { - "shape": "Sm" + "shape": "S1b" }, "status": {}, "subnetIds": { - "shape": "Sp" + "shape": "S1e" }, "vpcId": {} } @@ -141,7 +245,7 @@ "type": "structure", "members": { "accessPolicyDetail": { - "shape": "S11" + "shape": "S1o" } } }, @@ -160,7 +264,7 @@ "description": {}, "name": {}, "tags": { - "shape": "S16" + "shape": "S1r" }, "type": {} } @@ -190,6 +294,34 @@ }, "idempotent": true }, + "CreateLifecyclePolicy": { + "input": { + "type": "structure", + "required": [ + "name", + "policy", + "type" + ], + "members": { + "clientToken": { + "idempotencyToken": true + }, + "description": {}, + "name": {}, + "policy": {}, + "type": {} + } + }, + "output": { + "type": "structure", + "members": { + "lifecyclePolicyDetail": { + "shape": "Sy" + } + } + }, + "idempotent": true + }, "CreateSecurityConfig": { "input": { "type": "structure", @@ -204,7 +336,7 @@ "description": {}, "name": {}, "samlOptions": { - "shape": "S1f" + "shape": "S22" }, "type": {} } @@ -213,7 +345,7 @@ "type": "structure", "members": { "securityConfigDetail": { - "shape": "S1m" + "shape": "S29" } } }, @@ -241,7 +373,7 @@ "type": "structure", "members": { "securityPolicyDetail": { - "shape": "S1r" + "shape": "S2e" } } }, @@ -261,10 +393,10 @@ }, "name": {}, "securityGroupIds": { - "shape": "Sm" + "shape": "S1b" }, "subnetIds": { - "shape": "Sp" + "shape": "S1e" }, "vpcId": {} } @@ -333,6 +465,27 @@ }, "idempotent": true }, + "DeleteLifecyclePolicy": { + "input": { + "type": "structure", + "required": [ + "name", + "type" + ], + "members": { + "clientToken": { + "idempotencyToken": true + }, + "name": {}, + "type": {} + } + }, + "output": { + "type": "structure", + "members": {} + }, + "idempotent": true + }, "DeleteSecurityConfig": { "input": { "type": "structure", @@ -417,7 +570,7 @@ "type": "structure", "members": { "accessPolicyDetail": { - "shape": "S11" + "shape": "S1o" } } } @@ -431,7 +584,7 @@ "type": "structure", "members": { "accountSettingsDetail": { - "shape": "S2b" + "shape": "S30" } } } @@ -452,6 +605,14 @@ } } }, + "LifecyclePolicyStats": { + "type": "structure", + "members": { + "RetentionPolicyCount": { + "type": "long" + } + } + }, "SecurityConfigStats": { "type": "structure", "members": { @@ -491,7 +652,7 @@ "type": "structure", "members": { "securityConfigDetail": { - "shape": "S1m" + "shape": "S29" } } } @@ -512,7 +673,7 @@ "type": "structure", "members": { "securityPolicyDetail": { - "shape": "S1r" + "shape": "S2e" } } } @@ -596,6 +757,49 @@ } } }, + "ListLifecyclePolicies": { + "input": { + "type": "structure", + "required": [ + "type" + ], + "members": { + "maxResults": { + "type": "integer" + }, + "nextToken": {}, + "resources": { + "type": "list", + "member": {} + }, + "type": {} + } + }, + "output": { + "type": "structure", + "members": { + "lifecyclePolicySummaries": { + "type": "list", + "member": { + "type": "structure", + "members": { + "createdDate": { + "type": "long" + }, + "description": {}, + "lastModifiedDate": { + "type": "long" + }, + "name": {}, + "policyVersion": {}, + "type": {} + } + } + }, + "nextToken": {} + } + } + }, "ListSecurityConfigs": { "input": { "type": "structure", @@ -692,7 +896,7 @@ "type": "structure", "members": { "tags": { - "shape": "S16" + "shape": "S1r" } } } @@ -741,7 +945,7 @@ "members": { "resourceArn": {}, "tags": { - "shape": "S16" + "shape": "S1r" } } }, @@ -793,7 +997,7 @@ "type": "structure", "members": { "accessPolicyDetail": { - "shape": "S11" + "shape": "S1o" } } }, @@ -804,7 +1008,7 @@ "type": "structure", "members": { "capacityLimits": { - "shape": "S2c" + "shape": "S31" } } }, @@ -812,7 +1016,7 @@ "type": "structure", "members": { "accountSettingsDetail": { - "shape": "S2b" + "shape": "S30" } } } @@ -855,6 +1059,35 @@ }, "idempotent": true }, + "UpdateLifecyclePolicy": { + "input": { + "type": "structure", + "required": [ + "name", + "policyVersion", + "type" + ], + "members": { + "clientToken": { + "idempotencyToken": true + }, + "description": {}, + "name": {}, + "policy": {}, + "policyVersion": {}, + "type": {} + } + }, + "output": { + "type": "structure", + "members": { + "lifecyclePolicyDetail": { + "shape": "Sy" + } + } + }, + "idempotent": true + }, "UpdateSecurityConfig": { "input": { "type": "structure", @@ -870,7 +1103,7 @@ "description": {}, "id": {}, "samlOptions": { - "shape": "S1f" + "shape": "S22" } } }, @@ -878,7 +1111,7 @@ "type": "structure", "members": { "securityConfigDetail": { - "shape": "S1m" + "shape": "S29" } } }, @@ -907,7 +1140,7 @@ "type": "structure", "members": { "securityPolicyDetail": { - "shape": "S1r" + "shape": "S2e" } } }, @@ -921,20 +1154,20 @@ ], "members": { "addSecurityGroupIds": { - "shape": "Sm" + "shape": "S1b" }, "addSubnetIds": { - "shape": "Sp" + "shape": "S1e" }, "clientToken": { "idempotencyToken": true }, "id": {}, "removeSecurityGroupIds": { - "shape": "Sm" + "shape": "S1b" }, "removeSubnetIds": { - "shape": "Sp" + "shape": "S1e" } } }, @@ -950,11 +1183,11 @@ }, "name": {}, "securityGroupIds": { - "shape": "Sm" + "shape": "S1b" }, "status": {}, "subnetIds": { - "shape": "Sp" + "shape": "S1e" } } } @@ -964,15 +1197,38 @@ } }, "shapes": { - "Sm": { + "Sy": { + "type": "structure", + "members": { + "createdDate": { + "type": "long" + }, + "description": {}, + "lastModifiedDate": { + "type": "long" + }, + "name": {}, + "policy": { + "shape": "S10" + }, + "policyVersion": {}, + "type": {} + } + }, + "S10": { + "type": "structure", + "members": {}, + "document": true + }, + "S1b": { "type": "list", "member": {} }, - "Sp": { + "S1e": { "type": "list", "member": {} }, - "S11": { + "S1o": { "type": "structure", "members": { "createdDate": { @@ -984,18 +1240,13 @@ }, "name": {}, "policy": { - "shape": "S12" + "shape": "S10" }, "policyVersion": {}, "type": {} } }, - "S12": { - "type": "structure", - "members": {}, - "document": true - }, - "S16": { + "S1r": { "type": "list", "member": { "type": "structure", @@ -1009,7 +1260,7 @@ } } }, - "S1f": { + "S22": { "type": "structure", "required": [ "metadata" @@ -1023,7 +1274,7 @@ "userAttribute": {} } }, - "S1m": { + "S29": { "type": "structure", "members": { "configVersion": {}, @@ -1036,12 +1287,12 @@ "type": "long" }, "samlOptions": { - "shape": "S1f" + "shape": "S22" }, "type": {} } }, - "S1r": { + "S2e": { "type": "structure", "members": { "createdDate": { @@ -1053,21 +1304,21 @@ }, "name": {}, "policy": { - "shape": "S12" + "shape": "S10" }, "policyVersion": {}, "type": {} } }, - "S2b": { + "S30": { "type": "structure", "members": { "capacityLimits": { - "shape": "S2c" + "shape": "S31" } } }, - "S2c": { + "S31": { "type": "structure", "members": { "maxIndexingCapacityInOCU": { diff --git a/apis/opensearchserverless-2021-11-01.normal.json b/apis/opensearchserverless-2021-11-01.normal.json index 7c2e5d8ff0..cc772b9bfd 100644 --- a/apis/opensearchserverless-2021-11-01.normal.json +++ b/apis/opensearchserverless-2021-11-01.normal.json @@ -35,6 +35,50 @@ ], "documentation": "Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
" }, + "BatchGetEffectiveLifecyclePolicy": { + "name": "BatchGetEffectiveLifecyclePolicy", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "BatchGetEffectiveLifecyclePolicyRequest" + }, + "output": { + "shape": "BatchGetEffectiveLifecyclePolicyResponse" + }, + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "documentation": "Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.
" + }, + "BatchGetLifecyclePolicy": { + "name": "BatchGetLifecyclePolicy", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "BatchGetLifecyclePolicyRequest" + }, + "output": { + "shape": "BatchGetLifecyclePolicyResponse" + }, + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "documentation": "Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
" + }, "BatchGetVpcEndpoint": { "name": "BatchGetVpcEndpoint", "http": { @@ -118,6 +162,35 @@ "documentation": "Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
", "idempotent": true }, + "CreateLifecyclePolicy": { + "name": "CreateLifecyclePolicy", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "CreateLifecyclePolicyRequest" + }, + "output": { + "shape": "CreateLifecyclePolicyResponse" + }, + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "documentation": "Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
", + "idempotent": true + }, "CreateSecurityConfig": { "name": "CreateSecurityConfig", "http": { @@ -263,6 +336,35 @@ "documentation": "Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
", "idempotent": true }, + "DeleteLifecyclePolicy": { + "name": "DeleteLifecyclePolicy", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "DeleteLifecyclePolicyRequest" + }, + "output": { + "shape": "DeleteLifecyclePolicyResponse" + }, + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ValidationException" + } + ], + "documentation": "Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.
", + "idempotent": true + }, "DeleteSecurityConfig": { "name": "DeleteSecurityConfig", "http": { @@ -510,6 +612,28 @@ ], "documentation": "Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Make sure to include an empty request body {} if you don't include any collection filters in the request.
Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.
" + }, "ListSecurityConfigs": { "name": "ListSecurityConfigs", "http": { @@ -737,6 +861,38 @@ "documentation": "Updates an OpenSearch Serverless collection.
", "idempotent": true }, + "UpdateLifecyclePolicy": { + "name": "UpdateLifecyclePolicy", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "UpdateLifecyclePolicyRequest" + }, + "output": { + "shape": "UpdateLifecyclePolicyResponse" + }, + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "documentation": "Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
", + "idempotent": true + }, "UpdateSecurityConfig": { "name": "UpdateSecurityConfig", "http": { @@ -901,7 +1057,7 @@ }, "type": { "shape": "AccessPolicyType", - "documentation": "The type of access policy. Currently the only available type is data
.
The type of access policy. Currently, the only available type is data
.
A summary of the data access policy.
" @@ -952,6 +1108,56 @@ } } }, + "BatchGetEffectiveLifecyclePolicyRequest": { + "type": "structure", + "required": [ + "resourceIdentifiers" + ], + "members": { + "resourceIdentifiers": { + "shape": "LifecyclePolicyResourceIdentifiers", + "documentation": "The unique identifiers of policy types and resource names.
" + } + } + }, + "BatchGetEffectiveLifecyclePolicyResponse": { + "type": "structure", + "members": { + "effectiveLifecyclePolicyDetails": { + "shape": "EffectiveLifecyclePolicyDetails", + "documentation": "A list of lifecycle policies applied to the OpenSearch Serverless indexes.
" + }, + "effectiveLifecyclePolicyErrorDetails": { + "shape": "EffectiveLifecyclePolicyErrorDetails", + "documentation": "A list of resources for which retrieval failed.
" + } + } + }, + "BatchGetLifecyclePolicyRequest": { + "type": "structure", + "required": [ + "identifiers" + ], + "members": { + "identifiers": { + "shape": "LifecyclePolicyIdentifiers", + "documentation": "The unique identifiers of policy types and policy names.
" + } + } + }, + "BatchGetLifecyclePolicyResponse": { + "type": "structure", + "members": { + "lifecyclePolicyDetails": { + "shape": "LifecyclePolicyDetails", + "documentation": "A list of lifecycle policies matched to the input policy name and policy type.
" + }, + "lifecyclePolicyErrorDetails": { + "shape": "LifecyclePolicyErrorDetails", + "documentation": "A list of lifecycle policy names and policy types for which retrieval failed.
" + } + } + }, "BatchGetVpcEndpointRequest": { "type": "structure", "required": [ @@ -977,6 +1183,10 @@ } } }, + "Boolean": { + "type": "boolean", + "box": true + }, "CapacityLimits": { "type": "structure", "members": { @@ -1092,7 +1302,7 @@ "documentation": "The current status of the collection.
" } }, - "documentation": "List of filter keys that you can use for LIST, UPDATE, and DELETE requests to OpenSearch Serverless collections.
" + "documentation": "A list of filter keys that you can use for LIST, UPDATE, and DELETE requests to OpenSearch Serverless collections.
" }, "CollectionId": { "type": "string", @@ -1303,6 +1513,46 @@ } } }, + "CreateLifecyclePolicyRequest": { + "type": "structure", + "required": [ + "name", + "policy", + "type" + ], + "members": { + "clientToken": { + "shape": "ClientToken", + "documentation": "A unique, case-sensitive identifier to ensure idempotency of the request.
", + "idempotencyToken": true + }, + "description": { + "shape": "PolicyDescription", + "documentation": "A description of the lifecycle policy.
" + }, + "name": { + "shape": "PolicyName", + "documentation": "The name of the lifecycle policy.
" + }, + "policy": { + "shape": "PolicyDocument", + "documentation": "The JSON policy document to use as the content for the lifecycle policy.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + } + }, + "CreateLifecyclePolicyResponse": { + "type": "structure", + "members": { + "lifecyclePolicyDetail": { + "shape": "LifecyclePolicyDetail", + "documentation": "Details about the created lifecycle policy.
" + } + } + }, "CreateSecurityConfigRequest": { "type": "structure", "required": [ @@ -1510,6 +1760,32 @@ } } }, + "DeleteLifecyclePolicyRequest": { + "type": "structure", + "required": [ + "name", + "type" + ], + "members": { + "clientToken": { + "shape": "ClientToken", + "documentation": "Unique, case-sensitive identifier to ensure idempotency of the request.
", + "idempotencyToken": true + }, + "name": { + "shape": "PolicyName", + "documentation": "The name of the policy to delete.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + } + }, + "DeleteLifecyclePolicyResponse": { + "type": "structure", + "members": {} + }, "DeleteSecurityConfigRequest": { "type": "structure", "required": [ @@ -1606,6 +1882,70 @@ "members": {}, "document": true }, + "EffectiveLifecyclePolicyDetail": { + "type": "structure", + "members": { + "noMinRetentionPeriod": { + "shape": "Boolean", + "documentation": "The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
The name of the lifecycle policy.
" + }, + "resource": { + "shape": "Resource", + "documentation": "The name of the OpenSearch Serverless index resource.
" + }, + "resourceType": { + "shape": "ResourceType", + "documentation": "The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "Error information for an OpenSearch Serverless request.
" + }, + "EffectiveLifecyclePolicyDetails": { + "type": "list", + "member": { + "shape": "EffectiveLifecyclePolicyDetail" + } + }, + "EffectiveLifecyclePolicyErrorDetail": { + "type": "structure", + "members": { + "errorCode": { + "shape": "String", + "documentation": "The error code for the request.
" + }, + "errorMessage": { + "shape": "String", + "documentation": "A description of the error. For example, The specified Index resource is not found
.
The name of OpenSearch Serverless index resource.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "Error information for an OpenSearch Serverless request.
" + }, + "EffectiveLifecyclePolicyErrorDetails": { + "type": "list", + "member": { + "shape": "EffectiveLifecyclePolicyErrorDetail" + } + }, "GetAccessPolicyRequest": { "type": "structure", "required": [ @@ -1619,7 +1959,7 @@ }, "type": { "shape": "AccessPolicyType", - "documentation": "Tye type of policy. Currently the only supported value is data
.
Tye type of policy. Currently, the only supported value is data
.
Information about the data access policies in your account.
" }, + "LifecyclePolicyStats": { + "shape": "LifecyclePolicyStats", + "documentation": "Information about the lifecycle policies in your account.
" + }, "SecurityConfigStats": { "shape": "SecurityConfigStats", "documentation": "Information about the security configurations in your account.
" @@ -1722,6 +2066,181 @@ "box": true, "min": 2 }, + "LifecyclePolicyDetail": { + "type": "structure", + "members": { + "createdDate": { + "shape": "Long", + "documentation": "The date the lifecycle policy was created.
" + }, + "description": { + "shape": "PolicyDescription", + "documentation": "The description of the lifecycle policy.
" + }, + "lastModifiedDate": { + "shape": "Long", + "documentation": "The timestamp of when the lifecycle policy was last modified.
" + }, + "name": { + "shape": "PolicyName", + "documentation": "The name of the lifecycle policy.
" + }, + "policy": { + "shape": "Document", + "documentation": "The JSON policy document without any whitespaces.
" + }, + "policyVersion": { + "shape": "PolicyVersion", + "documentation": "The version of the lifecycle policy.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "Details about an OpenSearch Serverless lifecycle policy.
" + }, + "LifecyclePolicyDetails": { + "type": "list", + "member": { + "shape": "LifecyclePolicyDetail" + } + }, + "LifecyclePolicyErrorDetail": { + "type": "structure", + "members": { + "errorCode": { + "shape": "String", + "documentation": "The error code for the request. For example, NOT_FOUND
.
A description of the error. For example, The specified Lifecycle Policy is not found
.
The name of the lifecycle policy.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "Error information for an OpenSearch Serverless request.
" + }, + "LifecyclePolicyErrorDetails": { + "type": "list", + "member": { + "shape": "LifecyclePolicyErrorDetail" + } + }, + "LifecyclePolicyIdentifier": { + "type": "structure", + "required": [ + "name", + "type" + ], + "members": { + "name": { + "shape": "PolicyName", + "documentation": "The name of the lifecycle policy.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "The unique identifiers of policy types and policy names.
" + }, + "LifecyclePolicyIdentifiers": { + "type": "list", + "member": { + "shape": "LifecyclePolicyIdentifier" + }, + "max": 40, + "min": 1 + }, + "LifecyclePolicyResourceIdentifier": { + "type": "structure", + "required": [ + "resource", + "type" + ], + "members": { + "resource": { + "shape": "ResourceName", + "documentation": "The name of the OpenSearch Serverless ilndex resource.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "The unique identifiers of policy types and resource names.
" + }, + "LifecyclePolicyResourceIdentifiers": { + "type": "list", + "member": { + "shape": "LifecyclePolicyResourceIdentifier" + }, + "max": 100, + "min": 1 + }, + "LifecyclePolicyStats": { + "type": "structure", + "members": { + "RetentionPolicyCount": { + "shape": "Long", + "documentation": "The number of retention lifecycle policies in the current account.
" + } + }, + "documentation": "Statistics for an OpenSearch Serverless lifecycle policy.
" + }, + "LifecyclePolicySummaries": { + "type": "list", + "member": { + "shape": "LifecyclePolicySummary" + } + }, + "LifecyclePolicySummary": { + "type": "structure", + "members": { + "createdDate": { + "shape": "Long", + "documentation": "The Epoch time when the lifecycle policy was created.
" + }, + "description": { + "shape": "PolicyDescription", + "documentation": "The description of the lifecycle policy.
" + }, + "lastModifiedDate": { + "shape": "Long", + "documentation": "The date and time when the lifecycle policy was last modified.
" + }, + "name": { + "shape": "PolicyName", + "documentation": "The name of the lifecycle policy.
" + }, + "policyVersion": { + "shape": "PolicyVersion", + "documentation": "The version of the lifecycle policy.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + }, + "documentation": "A summary of the lifecycle policy.
" + }, + "LifecyclePolicyType": { + "type": "string", + "enum": [ + "retention" + ] + }, + "LifecycleResource": { + "type": "string" + }, "ListAccessPoliciesRequest": { "type": "structure", "required": [ @@ -1778,7 +2297,7 @@ "members": { "collectionFilters": { "shape": "CollectionFilters", - "documentation": "List of filter names and values that you can use for requests.
" + "documentation": "A list of filter names and values that you can use for requests.
" }, "maxResults": { "shape": "ListCollectionsRequestMaxResultsInteger", @@ -1809,6 +2328,57 @@ } } }, + "ListLifecyclePoliciesRequest": { + "type": "structure", + "required": [ + "type" + ], + "members": { + "maxResults": { + "shape": "ListLifecyclePoliciesRequestMaxResultsInteger", + "documentation": "An optional parameter that specifies the maximum number of results to return. You can use use nextToken
to get the next page of results. The default is 10.
If your initial ListLifecyclePolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListLifecyclePolicies
operations, which returns results in the next page.
Resource filters that policies can apply to. Currently, the only supported resource type is index
.
The type of lifecycle policy.
" + } + } + }, + "ListLifecyclePoliciesRequestMaxResultsInteger": { + "type": "integer", + "box": true, + "max": 100, + "min": 1 + }, + "ListLifecyclePoliciesRequestResourcesList": { + "type": "list", + "member": { + "shape": "LifecycleResource" + }, + "max": 1000, + "min": 1 + }, + "ListLifecyclePoliciesResponse": { + "type": "structure", + "members": { + "lifecyclePolicySummaries": { + "shape": "LifecyclePolicySummaries", + "documentation": "Details about the requested lifecycle policies.
" + }, + "nextToken": { + "shape": "String", + "documentation": "When nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
A unique, case-sensitive identifier to ensure idempotency of the request.
", + "idempotencyToken": true + }, + "description": { + "shape": "PolicyDescription", + "documentation": "A description of the lifecycle policy.
" + }, + "name": { + "shape": "PolicyName", + "documentation": "The name of the policy.
" + }, + "policy": { + "shape": "PolicyDocument", + "documentation": "The JSON policy document to use as the content for the lifecycle policy.
" + }, + "policyVersion": { + "shape": "PolicyVersion", + "documentation": "The version of the policy being updated.
" + }, + "type": { + "shape": "LifecyclePolicyType", + "documentation": "The type of lifecycle policy.
" + } + } + }, + "UpdateLifecyclePolicyResponse": { + "type": "structure", + "members": { + "lifecyclePolicyDetail": { + "shape": "LifecyclePolicyDetail", + "documentation": "Details about the updated lifecycle policy.
" + } + } + }, "UpdateSecurityConfigRequest": { "type": "structure", "required": [ diff --git a/apis/opensearchserverless-2021-11-01.paginators.json b/apis/opensearchserverless-2021-11-01.paginators.json index 3eddbddb65..ac3b638b76 100644 --- a/apis/opensearchserverless-2021-11-01.paginators.json +++ b/apis/opensearchserverless-2021-11-01.paginators.json @@ -10,6 +10,11 @@ "output_token": "nextToken", "limit_key": "maxResults" }, + "ListLifecyclePolicies": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, "ListSecurityConfigs": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/clients/codepipeline.d.ts b/clients/codepipeline.d.ts index c6e1a4df85..9405679226 100644 --- a/clients/codepipeline.d.ts +++ b/clients/codepipeline.d.ts @@ -1322,6 +1322,35 @@ declare namespace CodePipeline { */ jobDetails?: ThirdPartyJobDetails; } + export interface GitConfiguration { + /** + * The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only. You can only specify one trigger configuration per source action. + */ + sourceActionName: ActionName; + /** + * The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. Git tags is the only supported event type. + */ + push?: GitPushFilterList; + } + export interface GitPushFilter { + /** + * The field that contains the details for the Git tags trigger configuration. + */ + tags?: GitTagFilterCriteria; + } + export type GitPushFilterList = GitPushFilter[]; + export interface GitTagFilterCriteria { + /** + * The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline. + */ + includes?: GitTagPatternList; + /** + * The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline. + */ + excludes?: GitTagPatternList; + } + export type GitTagNamePattern = string; + export type GitTagPatternList = GitTagNamePattern[]; export interface InputArtifact { /** * The name of the artifact to be worked on (for example, "My App"). Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions. @@ -1660,6 +1689,18 @@ declare namespace CodePipeline { * The version number of the pipeline. A new pipeline always has a version number of 1. This number is incremented when a pipeline is updated. */ version?: PipelineVersion; + /** + * CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications. V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters. V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration. Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs. For information about pricing for CodePipeline, see Pricing. For information about which type of pipeline to choose, see What type of pipeline is right for me?. + */ + pipelineType?: PipelineType; + /** + * The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline. When a trigger configuration is specified, default change detection for repository and branch commits is disabled. + */ + triggers?: PipelineTriggerDeclarationList; + /** + * A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+. + */ + variables?: PipelineVariableDeclarationList; } export interface PipelineExecution { /** @@ -1686,6 +1727,11 @@ declare namespace CodePipeline { * A list of ArtifactRevision objects included in a pipeline execution. */ artifactRevisions?: ArtifactRevisionList; + trigger?: ExecutionTrigger; + /** + * A list of pipeline variables used for the pipeline execution. + */ + variables?: ResolvedPipelineVariableList; } export type PipelineExecutionId = string; export type PipelineExecutionStatus = "Cancelled"|"InProgress"|"Stopped"|"Stopping"|"Succeeded"|"Superseded"|"Failed"|string; @@ -1751,6 +1797,10 @@ declare namespace CodePipeline { * The version number of the pipeline. */ version?: PipelineVersion; + /** + * CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications. V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters. V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration. Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs. For information about pricing for CodePipeline, see Pricing. For information about which type of pipeline to choose, see What type of pipeline is right for me?. + */ + pipelineType?: PipelineType; /** * The date and time the pipeline was created, in timestamp format. */ @@ -1760,6 +1810,48 @@ declare namespace CodePipeline { */ updated?: Timestamp; } + export interface PipelineTriggerDeclaration { + /** + * The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration. + */ + providerType: PipelineTriggerProviderType; + /** + * Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags. + */ + gitConfiguration: GitConfiguration; + } + export type PipelineTriggerDeclarationList = PipelineTriggerDeclaration[]; + export type PipelineTriggerProviderType = "CodeStarSourceConnection"|string; + export type PipelineType = "V1"|"V2"|string; + export interface PipelineVariable { + /** + * The name of a pipeline-level variable. + */ + name: PipelineVariableName; + /** + * The value of a pipeline-level variable. + */ + value: PipelineVariableValue; + } + export interface PipelineVariableDeclaration { + /** + * The name of a pipeline-level variable. + */ + name: PipelineVariableName; + /** + * The value of a pipeline-level variable. + */ + defaultValue?: PipelineVariableValue; + /** + * The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes. + */ + description?: PipelineVariableDescription; + } + export type PipelineVariableDeclarationList = PipelineVariableDeclaration[]; + export type PipelineVariableDescription = string; + export type PipelineVariableList = PipelineVariable[]; + export type PipelineVariableName = string; + export type PipelineVariableValue = string; export type PipelineVersion = number; export type PolicyStatementsTemplate = string; export interface PollForJobsInput { @@ -1951,6 +2043,17 @@ declare namespace CodePipeline { export interface RegisterWebhookWithThirdPartyOutput { } export type ResolvedActionConfigurationMap = {[key: string]: String}; + export interface ResolvedPipelineVariable { + /** + * The name of a pipeline-level variable. + */ + name?: String; + /** + * The resolved value of a pipeline-level variable. + */ + resolvedValue?: String; + } + export type ResolvedPipelineVariableList = ResolvedPipelineVariable[]; export type ResourceArn = string; export interface RetryStageExecutionInput { /** @@ -2087,6 +2190,10 @@ declare namespace CodePipeline { * The name of the pipeline to start. */ name: PipelineName; + /** + * A list that overrides pipeline variables for a pipeline execution that's being started. Variable names must match [A-Za-z0-9@\-_]+, and the values can be anything except an empty string. + */ + variables?: PipelineVariableList; /** * The system-generated unique ID used to identify a unique execution request. */ @@ -2237,7 +2344,7 @@ declare namespace CodePipeline { disabledReason?: DisabledReason; } export type TriggerDetail = string; - export type TriggerType = "CreatePipeline"|"StartPipelineExecution"|"PollForSourceChanges"|"Webhook"|"CloudWatchEvent"|"PutActionRevision"|string; + export type TriggerType = "CreatePipeline"|"StartPipelineExecution"|"PollForSourceChanges"|"Webhook"|"CloudWatchEvent"|"PutActionRevision"|"WebhookV2"|string; export interface UntagResourceInput { /** * The Amazon Resource Name (ARN) of the resource to remove tags from. diff --git a/clients/ec2.d.ts b/clients/ec2.d.ts index eb9c1aa524..b6aa11a58c 100644 --- a/clients/ec2.d.ts +++ b/clients/ec2.d.ts @@ -16431,7 +16431,7 @@ declare namespace EC2 { } export interface DescribeSpotPriceHistoryRequest { /** - * The filters. availability-zone - The Availability Zone for which prices should be returned. instance-type - The type of instance (for example, m3.medium). product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)). spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported). timestamp - The time stamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported. + * The filters. availability-zone - The Availability Zone for which prices should be returned. instance-type - The type of instance (for example, m3.medium). product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)). spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported). timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported. */ Filters?: FilterList; /** @@ -21962,7 +21962,7 @@ declare namespace EC2 { } export interface HibernationOptionsRequest { /** - * Set to true to enable your instance for hibernation. Default: false + * Set to true to enable your instance for hibernation. For Spot Instances, if you set Configured to true, either omit the InstanceInterruptionBehavior parameter (for SpotMarketOptions ), or set it to hibernate. When Configured is true: If you omit InstanceInterruptionBehavior, it defaults to hibernate. If you set InstanceInterruptionBehavior to a value other than hibernate, you'll get an error. Default: false */ Configured?: Boolean; } @@ -34779,7 +34779,7 @@ declare namespace EC2 { */ ValidUntil?: DateTime; /** - * The behavior when a Spot Instance is interrupted. The default is terminate. + * The behavior when a Spot Instance is interrupted. If Configured (for HibernationOptions ) is set to true, the InstanceInterruptionBehavior parameter is automatically set to hibernate. If you set it to stop or terminate, you'll get an error. If Configured (for HibernationOptions ) is set to false or null, the InstanceInterruptionBehavior parameter is automatically set to terminate. You can also set it to stop or hibernate. For more information, see Interruption behavior in the Amazon EC2 User Guide. */ InstanceInterruptionBehavior?: InstanceInterruptionBehavior; } diff --git a/clients/eks.d.ts b/clients/eks.d.ts index 7915921690..42bfb956f8 100644 --- a/clients/eks.d.ts +++ b/clients/eks.d.ts @@ -648,7 +648,7 @@ declare namespace EKS { */ resourceIds?: StringList; } - export type ClusterIssueCode = "AccessDenied"|"ClusterUnreachable"|"ConfigurationConflict"|"InternalFailure"|"ResourceLimitExceeded"|"ResourceNotFound"|string; + export type ClusterIssueCode = "AccessDenied"|"ClusterUnreachable"|"ConfigurationConflict"|"InternalFailure"|"ResourceLimitExceeded"|"ResourceNotFound"|"IamRoleNotFound"|"VpcNotFound"|"InsufficientFreeAddresses"|"Ec2ServiceNotSubscribed"|"Ec2SubnetNotFound"|"Ec2SecurityGroupNotFound"|"KmsGrantRevoked"|"KmsKeyNotFound"|"KmsKeyMarkedForDeletion"|"KmsKeyDisabled"|"StsRegionalEndpointDisabled"|"UnsupportedVersion"|"Other"|string; export type ClusterIssueList = ClusterIssue[]; export type ClusterName = string; export type ClusterStatus = "CREATING"|"ACTIVE"|"DELETING"|"FAILED"|"UPDATING"|"PENDING"|string; @@ -2041,7 +2041,7 @@ declare namespace EKS { */ value?: String; } - export type UpdateParamType = "Version"|"PlatformVersion"|"EndpointPrivateAccess"|"EndpointPublicAccess"|"ClusterLogging"|"DesiredSize"|"LabelsToAdd"|"LabelsToRemove"|"TaintsToAdd"|"TaintsToRemove"|"MaxSize"|"MinSize"|"ReleaseVersion"|"PublicAccessCidrs"|"LaunchTemplateName"|"LaunchTemplateVersion"|"IdentityProviderConfig"|"EncryptionConfig"|"AddonVersion"|"ServiceAccountRoleArn"|"ResolveConflicts"|"MaxUnavailable"|"MaxUnavailablePercentage"|string; + export type UpdateParamType = "Version"|"PlatformVersion"|"EndpointPrivateAccess"|"EndpointPublicAccess"|"ClusterLogging"|"DesiredSize"|"LabelsToAdd"|"LabelsToRemove"|"TaintsToAdd"|"TaintsToRemove"|"MaxSize"|"MinSize"|"ReleaseVersion"|"PublicAccessCidrs"|"LaunchTemplateName"|"LaunchTemplateVersion"|"IdentityProviderConfig"|"EncryptionConfig"|"AddonVersion"|"ServiceAccountRoleArn"|"ResolveConflicts"|"MaxUnavailable"|"MaxUnavailablePercentage"|"ConfigurationValues"|"SecurityGroups"|"Subnets"|string; export type UpdateParams = UpdateParam[]; export type UpdateStatus = "InProgress"|"Failed"|"Cancelled"|"Successful"|string; export interface UpdateTaintsPayload { @@ -2054,7 +2054,7 @@ declare namespace EKS { */ removeTaints?: taintsList; } - export type UpdateType = "VersionUpdate"|"EndpointAccessUpdate"|"LoggingUpdate"|"ConfigUpdate"|"AssociateIdentityProviderConfig"|"DisassociateIdentityProviderConfig"|"AssociateEncryptionConfig"|"AddonUpdate"|string; + export type UpdateType = "VersionUpdate"|"EndpointAccessUpdate"|"LoggingUpdate"|"ConfigUpdate"|"AssociateIdentityProviderConfig"|"DisassociateIdentityProviderConfig"|"AssociateEncryptionConfig"|"AddonUpdate"|"VpcConfigUpdate"|string; export interface VpcConfigRequest { /** * Specify subnets for your Amazon EKS nodes. Amazon EKS creates cross-account elastic network interfaces in these subnets to allow communication between your nodes and the Kubernetes control plane. diff --git a/clients/migrationhubconfig.d.ts b/clients/migrationhubconfig.d.ts index d66b34c08b..095ca4ec87 100644 --- a/clients/migrationhubconfig.d.ts +++ b/clients/migrationhubconfig.d.ts @@ -19,6 +19,14 @@ declare class MigrationHubConfig extends Service { * This API sets up the home region for the calling account only. */ createHomeRegionControl(callback?: (err: AWSError, data: MigrationHubConfig.Types.CreateHomeRegionControlResult) => 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 =0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(P[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),a=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw a.name="ParserError",a}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,a,i=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),a={type:"KeyValuePair",name:t,value:r},i.push(a),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var n,u,p,m,c,l,d,y,b;switch(e.type){case"Field":return null!==o&&r(o)?(l=o[e.name],void 0===l?null:l):null;case"Subexpression":for(p=this.visit(e.children[0],o),b=1;b 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 =0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(P[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),a=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw a.name="ParserError",a}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,a,i=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),a={type:"KeyValuePair",name:t,value:r},i.push(a),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},c.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var n,u,p,m,c,l,d,y,b;switch(e.type){case"Field":return null!==o&&r(o)?(l=o[e.name],void 0===l?null:l):null;case"Subexpression":for(p=this.visit(e.children[0],o),b=1;b 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(P),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 x(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 W(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(P),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