From 9fd7b6404851864cd09e97be19bbc6fd641e241b Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:37:53 -0700 Subject: [PATCH] Release v1.46.3 (2023-10-24) (#5036) Release v1.46.3 (2023-10-24) === ### Service Client Updates * `service/codepipeline`: Updates service API and documentation * Add ability to trigger pipelines from git tags, define variables at pipeline level and new pipeline type V2. * `service/ec2`: Updates service documentation * This release updates the documentation for InstanceInterruptionBehavior and HibernationOptionsRequest to more accurately describe the behavior of these two parameters when using Spot hibernation. * `service/eks`: Updates service API * `service/iam`: Adds new service * Add the partitional endpoint for IAM in iso-f. * `service/migrationhub-config`: Updates service API and documentation * `service/migrationhubstrategy`: Updates service API, documentation, and paginators * `service/opensearchserverless`: Updates service API, documentation, and paginators --- CHANGELOG.md | 15 + aws/endpoints/defaults.go | 39 + aws/version.go | 2 +- .../apis/codepipeline/2015-07-09/api-2.json | 139 +- .../apis/codepipeline/2015-07-09/docs-2.json | 124 +- models/apis/ec2/2016-11-15/docs-2.json | 6 +- models/apis/eks/2017-11-01/api-2.json | 23 +- .../eks/2017-11-01/endpoint-rule-set-1.json | 424 ++-- .../iam/2010-05-08/endpoint-rule-set-1.json | 971 ++++---- .../migrationhub-config/2019-06-30/api-2.json | 28 + .../2019-06-30/docs-2.json | 12 + .../2019-06-30/endpoint-rule-set-1.json | 314 +++ .../2019-06-30/endpoint-tests-1.json | 314 +++ .../2020-02-19/api-2.json | 56 +- .../2020-02-19/docs-2.json | 37 + .../2020-02-19/endpoint-rule-set-1.json | 366 ++- .../2020-02-19/endpoint-tests-1.json | 50 + .../2020-02-19/paginators-1.json | 6 + .../2021-11-01/api-2.json | 546 +++++ .../2021-11-01/docs-2.json | 253 +- .../2021-11-01/endpoint-rule-set-1.json | 64 +- .../2021-11-01/endpoint-tests-1.json | 187 +- .../2021-11-01/paginators-1.json | 5 + models/endpoints/endpoints.json | 27 +- service/codepipeline/api.go | 617 +++++ service/ec2/api.go | 26 +- service/eks/api.go | 68 + service/migrationhubconfig/api.go | 170 ++ .../migrationhubconfigiface/interface.go | 4 + .../api.go | 335 +++ .../interface.go | 7 + service/opensearchserverless/api.go | 2130 +++++++++++++++-- .../opensearchserverlessiface/interface.go | 27 + 33 files changed, 6199 insertions(+), 1193 deletions(-) create mode 100644 models/apis/migrationhub-config/2019-06-30/endpoint-rule-set-1.json create mode 100644 models/apis/migrationhub-config/2019-06-30/endpoint-tests-1.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 6458ce7de49..cd659ca3786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +Release v1.46.3 (2023-10-24) +=== + +### Service Client Updates +* `service/codepipeline`: Updates service API and documentation + * Add ability to trigger pipelines from git tags, define variables at pipeline level and new pipeline type V2. +* `service/ec2`: Updates service documentation + * This release updates the documentation for InstanceInterruptionBehavior and HibernationOptionsRequest to more accurately describe the behavior of these two parameters when using Spot hibernation. +* `service/eks`: Updates service API +* `service/iam`: Adds new service + * Add the partitional endpoint for IAM in iso-f. +* `service/migrationhub-config`: Updates service API and documentation +* `service/migrationhubstrategy`: Updates service API, documentation, and paginators +* `service/opensearchserverless`: Updates service API, documentation, and paginators + Release v1.46.2 (2023-10-23) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 05eb8622952..6c26194f412 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -18208,6 +18208,9 @@ var awsPartition = partition{ endpointKey{ Region: "il-central-1", }: endpoint{}, + endpointKey{ + Region: "me-central-1", + }: endpoint{}, endpointKey{ Region: "me-south-1", }: endpoint{}, @@ -34389,9 +34392,21 @@ var awscnPartition = partition{ endpointKey{ Region: "cn-north-1", }: endpoint{}, + endpointKey{ + Region: "cn-north-1", + Variant: dualStackVariant, + }: endpoint{ + Hostname: "states.cn-north-1.api.amazonwebservices.com.cn", + }, endpointKey{ Region: "cn-northwest-1", }: endpoint{}, + endpointKey{ + Region: "cn-northwest-1", + Variant: dualStackVariant, + }: endpoint{ + Hostname: "states.cn-northwest-1.api.amazonwebservices.com.cn", + }, }, }, "storagegateway": service{ @@ -37313,21 +37328,45 @@ var awsusgovPartition = partition{ endpointKey{ Region: "us-gov-east-1", }: endpoint{}, + endpointKey{ + Region: "us-gov-east-1", + Variant: dualStackVariant, + }: endpoint{ + Hostname: "glue.us-gov-east-1.api.aws", + }, endpointKey{ Region: "us-gov-east-1", Variant: fipsVariant, }: endpoint{ Hostname: "glue-fips.us-gov-east-1.amazonaws.com", }, + endpointKey{ + Region: "us-gov-east-1", + Variant: fipsVariant | dualStackVariant, + }: endpoint{ + Hostname: "glue-fips.us-gov-east-1.api.aws", + }, endpointKey{ Region: "us-gov-west-1", }: endpoint{}, + endpointKey{ + Region: "us-gov-west-1", + Variant: dualStackVariant, + }: endpoint{ + Hostname: "glue.us-gov-west-1.api.aws", + }, endpointKey{ Region: "us-gov-west-1", Variant: fipsVariant, }: endpoint{ Hostname: "glue-fips.us-gov-west-1.amazonaws.com", }, + endpointKey{ + Region: "us-gov-west-1", + Variant: fipsVariant | dualStackVariant, + }: endpoint{ + Hostname: "glue-fips.us-gov-west-1.api.aws", + }, }, }, "greengrass": service{ diff --git a/aws/version.go b/aws/version.go index 9c69d71d877..2a896f2b957 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.46.2" +const SDKVersion = "1.46.3" diff --git a/models/apis/codepipeline/2015-07-09/api-2.json b/models/apis/codepipeline/2015-07-09/api-2.json index 0d6a5a0c240..34c985edaf4 100644 --- a/models/apis/codepipeline/2015-07-09/api-2.json +++ b/models/apis/codepipeline/2015-07-09/api-2.json @@ -1566,6 +1566,44 @@ "jobDetails":{"shape":"ThirdPartyJobDetails"} } }, + "GitConfiguration":{ + "type":"structure", + "required":["sourceActionName"], + "members":{ + "sourceActionName":{"shape":"ActionName"}, + "push":{"shape":"GitPushFilterList"} + } + }, + "GitPushFilter":{ + "type":"structure", + "members":{ + "tags":{"shape":"GitTagFilterCriteria"} + } + }, + "GitPushFilterList":{ + "type":"list", + "member":{"shape":"GitPushFilter"}, + "max":1, + "min":1 + }, + "GitTagFilterCriteria":{ + "type":"structure", + "members":{ + "includes":{"shape":"GitTagPatternList"}, + "excludes":{"shape":"GitTagPatternList"} + } + }, + "GitTagNamePattern":{ + "type":"string", + "max":255, + "min":1 + }, + "GitTagPatternList":{ + "type":"list", + "member":{"shape":"GitTagNamePattern"}, + "max":8, + "min":1 + }, "InputArtifact":{ "type":"structure", "required":["name"], @@ -1987,7 +2025,10 @@ "artifactStore":{"shape":"ArtifactStore"}, "artifactStores":{"shape":"ArtifactStoreMap"}, "stages":{"shape":"PipelineStageDeclarationList"}, - "version":{"shape":"PipelineVersion"} + "version":{"shape":"PipelineVersion"}, + "pipelineType":{"shape":"PipelineType"}, + "triggers":{"shape":"PipelineTriggerDeclarationList"}, + "variables":{"shape":"PipelineVariableDeclarationList"} } }, "PipelineExecution":{ @@ -1998,7 +2039,9 @@ "pipelineExecutionId":{"shape":"PipelineExecutionId"}, "status":{"shape":"PipelineExecutionStatus"}, "statusSummary":{"shape":"PipelineExecutionStatusSummary"}, - "artifactRevisions":{"shape":"ArtifactRevisionList"} + "artifactRevisions":{"shape":"ArtifactRevisionList"}, + "trigger":{"shape":"ExecutionTrigger"}, + "variables":{"shape":"ResolvedPipelineVariableList"} } }, "PipelineExecutionId":{ @@ -2087,10 +2130,87 @@ "members":{ "name":{"shape":"PipelineName"}, "version":{"shape":"PipelineVersion"}, + "pipelineType":{"shape":"PipelineType"}, "created":{"shape":"Timestamp"}, "updated":{"shape":"Timestamp"} } }, + "PipelineTriggerDeclaration":{ + "type":"structure", + "required":[ + "providerType", + "gitConfiguration" + ], + "members":{ + "providerType":{"shape":"PipelineTriggerProviderType"}, + "gitConfiguration":{"shape":"GitConfiguration"} + } + }, + "PipelineTriggerDeclarationList":{ + "type":"list", + "member":{"shape":"PipelineTriggerDeclaration"}, + "max":20 + }, + "PipelineTriggerProviderType":{ + "type":"string", + "enum":["CodeStarSourceConnection"] + }, + "PipelineType":{ + "type":"string", + "enum":[ + "V1", + "V2" + ] + }, + "PipelineVariable":{ + "type":"structure", + "required":[ + "name", + "value" + ], + "members":{ + "name":{"shape":"PipelineVariableName"}, + "value":{"shape":"PipelineVariableValue"} + } + }, + "PipelineVariableDeclaration":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"PipelineVariableName"}, + "defaultValue":{"shape":"PipelineVariableValue"}, + "description":{"shape":"PipelineVariableDescription"} + } + }, + "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 @@ -2290,6 +2410,17 @@ "key":{"shape":"String"}, "value":{"shape":"String"} }, + "ResolvedPipelineVariable":{ + "type":"structure", + "members":{ + "name":{"shape":"String"}, + "resolvedValue":{"shape":"String"} + } + }, + "ResolvedPipelineVariableList":{ + "type":"list", + "member":{"shape":"ResolvedPipelineVariable"} + }, "ResourceArn":{ "type":"string", "pattern":"arn:aws(-[\\w]+)*:codepipeline:.+:[0-9]{12}:.+" @@ -2497,6 +2628,7 @@ "required":["name"], "members":{ "name":{"shape":"PipelineName"}, + "variables":{"shape":"PipelineVariableList"}, "clientRequestToken":{ "shape":"ClientRequestToken", "idempotencyToken":true @@ -2652,7 +2784,8 @@ "PollForSourceChanges", "Webhook", "CloudWatchEvent", - "PutActionRevision" + "PutActionRevision", + "WebhookV2" ] }, "UntagResourceInput":{ diff --git a/models/apis/codepipeline/2015-07-09/docs-2.json b/models/apis/codepipeline/2015-07-09/docs-2.json index 79160b4fb45..b09f0fd06eb 100644 --- a/models/apis/codepipeline/2015-07-09/docs-2.json +++ b/models/apis/codepipeline/2015-07-09/docs-2.json @@ -240,6 +240,7 @@ "ActionDeclaration$name": "

The action declaration's name.

", "ActionExecutionDetail$actionName": "

The name of the action.

", "ActionState$actionName": "

The name of the action.

", + "GitConfiguration$sourceActionName": "

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.

", "PutActionRevisionInput$actionName": "

The name of the action that processes the revision.

", "PutApprovalResultInput$actionName": "

The name of the action for which approval is requested.

", "SourceRevision$actionName": "

The name of the action that processed the revision to the source artifact.

", @@ -763,6 +764,7 @@ "ExecutionTrigger": { "base": "

The interaction or event that started a pipeline execution.

", "refs": { + "PipelineExecution$trigger": null, "PipelineExecutionSummary$trigger": "

The interaction or event that started a pipeline execution, such as automated change detection or a StartPipelineExecution API call.

" } }, @@ -863,6 +865,43 @@ "refs": { } }, + "GitConfiguration": { + "base": "

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.

", + "refs": { + "PipelineTriggerDeclaration$gitConfiguration": "

Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

" + } + }, + "GitPushFilter": { + "base": "

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.

", + "refs": { + "GitPushFilterList$member": null + } + }, + "GitPushFilterList": { + "base": null, + "refs": { + "GitConfiguration$push": "

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.

" + } + }, + "GitTagFilterCriteria": { + "base": "

The Git tags specified as filter criteria for whether a Git tag repository event will start the pipeline.

", + "refs": { + "GitPushFilter$tags": "

The field that contains the details for the Git tags trigger configuration.

" + } + }, + "GitTagNamePattern": { + "base": null, + "refs": { + "GitTagPatternList$member": null + } + }, + "GitTagPatternList": { + "base": null, + "refs": { + "GitTagFilterCriteria$includes": "

The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

", + "GitTagFilterCriteria$excludes": "

The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.

" + } + }, "InputArtifact": { "base": "

Represents information about an artifact to be worked on, such as a test or build artifact.

", "refs": { @@ -1397,6 +1436,75 @@ "PipelineList$member": null } }, + "PipelineTriggerDeclaration": { + "base": "

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.

", + "refs": { + "PipelineTriggerDeclarationList$member": null + } + }, + "PipelineTriggerDeclarationList": { + "base": null, + "refs": { + "PipelineDeclaration$triggers": "

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.

" + } + }, + "PipelineTriggerProviderType": { + "base": null, + "refs": { + "PipelineTriggerDeclaration$providerType": "

The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

" + } + }, + "PipelineType": { + "base": null, + "refs": { + "PipelineDeclaration$pipelineType": "

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.

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?.

", + "PipelineSummary$pipelineType": "

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.

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?.

" + } + }, + "PipelineVariable": { + "base": "

A pipeline-level variable used for a pipeline execution.

", + "refs": { + "PipelineVariableList$member": null + } + }, + "PipelineVariableDeclaration": { + "base": "

A variable declared at the pipeline level.

", + "refs": { + "PipelineVariableDeclarationList$member": null + } + }, + "PipelineVariableDeclarationList": { + "base": null, + "refs": { + "PipelineDeclaration$variables": "

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@\\-_]+.

" + } + }, + "PipelineVariableDescription": { + "base": null, + "refs": { + "PipelineVariableDeclaration$description": "

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.

" + } + }, + "PipelineVariableList": { + "base": null, + "refs": { + "StartPipelineExecutionInput$variables": "

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.

" + } + }, + "PipelineVariableName": { + "base": null, + "refs": { + "PipelineVariable$name": "

The name of a pipeline-level variable.

", + "PipelineVariableDeclaration$name": "

The name of a pipeline-level variable.

" + } + }, + "PipelineVariableValue": { + "base": null, + "refs": { + "PipelineVariable$value": "

The value of a pipeline-level variable.

", + "PipelineVariableDeclaration$defaultValue": "

The value of a pipeline-level variable.

" + } + }, "PipelineVersion": { "base": null, "refs": { @@ -1534,6 +1642,18 @@ "ActionExecutionInput$resolvedConfiguration": "

Configuration data for an action execution with all variable references replaced with their real values for the execution.

" } }, + "ResolvedPipelineVariable": { + "base": "

A pipeline-level variable used for a pipeline execution.

", + "refs": { + "ResolvedPipelineVariableList$member": null + } + }, + "ResolvedPipelineVariableList": { + "base": null, + "refs": { + "PipelineExecution$variables": "

A list of pipeline variables used for the pipeline execution.

" + } + }, "ResourceArn": { "base": null, "refs": { @@ -1780,7 +1900,9 @@ "base": null, "refs": { "ResolvedActionConfigurationMap$key": null, - "ResolvedActionConfigurationMap$value": null + "ResolvedActionConfigurationMap$value": null, + "ResolvedPipelineVariable$name": "

The name of a pipeline-level variable.

", + "ResolvedPipelineVariable$resolvedValue": "

The resolved value of a pipeline-level variable.

" } }, "Tag": { diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 9b57a69ad62..747ea0ce30d 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -2455,7 +2455,7 @@ "GetVpnConnectionDeviceTypesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "GetVpnTunnelReplacementStatusRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "HibernationOptions$Configured": "

If true, your instance is enabled for hibernation; otherwise, it is not enabled for hibernation.

", - "HibernationOptionsRequest$Configured": "

Set to true to enable your instance for hibernation.

Default: false

", + "HibernationOptionsRequest$Configured": "

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:

Default: false

", "Host$MemberOfServiceLinkedResourceGroup": "

Indicates whether the Dedicated Host is in a host resource group. If memberOfServiceLinkedResourceGroup is true, the host is in a host resource group; otherwise, it is not.

", "IdFormat$UseLongIds": "

Indicates whether longer IDs (17-character IDs) are enabled for the resource.

", "Image$Public": "

Indicates whether the image has public launch permissions. The value is true if this image has public launch permissions or false if it has only implicit and explicit launch permissions.

", @@ -9173,7 +9173,7 @@ "DescribeSnapshotTierStatusRequest$Filters": "

The filters.

", "DescribeSnapshotsRequest$Filters": "

The filters.

", "DescribeSpotInstanceRequestsRequest$Filters": "

The filters.

", - "DescribeSpotPriceHistoryRequest$Filters": "

The filters.

", + "DescribeSpotPriceHistoryRequest$Filters": "

The filters.

", "DescribeStoreImageTasksRequest$Filters": "

The filters.

When you specify the ImageIds parameter, any filters that you specify are ignored. To use the filters, you must remove the ImageIds parameter.

", "DescribeSubnetsRequest$Filters": "

The filters.

", "DescribeTagsRequest$Filters": "

The filters.

", @@ -11189,7 +11189,7 @@ "RequestSpotInstancesRequest$InstanceInterruptionBehavior": "

The behavior when a Spot Instance is interrupted. The default is terminate.

", "SpotFleetRequestConfigData$InstanceInterruptionBehavior": "

The behavior when a Spot Instance is interrupted. The default is terminate.

", "SpotInstanceRequest$InstanceInterruptionBehavior": "

The behavior when a Spot Instance is interrupted.

", - "SpotMarketOptions$InstanceInterruptionBehavior": "

The behavior when a Spot Instance is interrupted. The default is terminate.

" + "SpotMarketOptions$InstanceInterruptionBehavior": "

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.

" } }, "InstanceIpv4Prefix": { diff --git a/models/apis/eks/2017-11-01/api-2.json b/models/apis/eks/2017-11-01/api-2.json index 0ce583a56de..6ec64fb0208 100644 --- a/models/apis/eks/2017-11-01/api-2.json +++ b/models/apis/eks/2017-11-01/api-2.json @@ -845,7 +845,20 @@ "ConfigurationConflict", "InternalFailure", "ResourceLimitExceeded", - "ResourceNotFound" + "ResourceNotFound", + "IamRoleNotFound", + "VpcNotFound", + "InsufficientFreeAddresses", + "Ec2ServiceNotSubscribed", + "Ec2SubnetNotFound", + "Ec2SecurityGroupNotFound", + "KmsGrantRevoked", + "KmsKeyNotFound", + "KmsKeyMarkedForDeletion", + "KmsKeyDisabled", + "StsRegionalEndpointDisabled", + "UnsupportedVersion", + "Other" ] }, "ClusterIssueList":{ @@ -2472,7 +2485,10 @@ "ServiceAccountRoleArn", "ResolveConflicts", "MaxUnavailable", - "MaxUnavailablePercentage" + "MaxUnavailablePercentage", + "ConfigurationValues", + "SecurityGroups", + "Subnets" ] }, "UpdateParams":{ @@ -2505,7 +2521,8 @@ "AssociateIdentityProviderConfig", "DisassociateIdentityProviderConfig", "AssociateEncryptionConfig", - "AddonUpdate" + "AddonUpdate", + "VpcConfigUpdate" ] }, "VpcConfigRequest":{ diff --git a/models/apis/eks/2017-11-01/endpoint-rule-set-1.json b/models/apis/eks/2017-11-01/endpoint-rule-set-1.json index 4d1971250c5..101fa1e5175 100644 --- a/models/apis/eks/2017-11-01/endpoint-rule-set-1.json +++ b/models/apis/eks/2017-11-01/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,343 +57,308 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] }, true ] } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "booleanEquals", + "fn": "stringEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "supportsFIPS" + "name" ] - } + }, + "aws" ] } ], - "type": "tree", - "rules": [ + "endpoint": { + "url": "https://fips.eks.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - "aws", - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] - } - ] - } - ], - "endpoint": { - "url": "https://fips.eks.{Region}.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, + "fn": "stringEquals", + "argv": [ { - "conditions": [ + "fn": "getAttr", + "argv": [ { - "fn": "stringEquals", - "argv": [ - "aws-us-gov", - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] - } - ] - } - ], - "endpoint": { - "url": "https://eks.{Region}.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "ref": "PartitionResult" + }, + "name" + ] }, - { - "conditions": [], - "endpoint": { - "url": "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "aws-us-gov" ] } - ] + ], + "endpoint": { + "url": "https://eks.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [], "endpoint": { - "url": "https://eks.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://eks.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/iam/2010-05-08/endpoint-rule-set-1.json b/models/apis/iam/2010-05-08/endpoint-rule-set-1.json index 29693995e32..52cf98d4e0f 100644 --- a/models/apis/iam/2010-05-08/endpoint-rule-set-1.json +++ b/models/apis/iam/2010-05-08/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,650 +57,666 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "stringEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws" + "name" ] }, + "aws" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://iam.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-east-1" - } - ] + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] + } + ], + "endpoint": { + "url": "https://iam.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-east-1" + } + ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws" + "name" ] }, + "aws" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] + "ref": "UseFIPS" }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://iam-fips.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-east-1" - } - ] + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] + } + ], + "endpoint": { + "url": "https://iam-fips.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-east-1" + } + ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-cn" + "name" ] }, + "aws-cn" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.cn-north-1.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "cn-north-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", "argv": [ { - "ref": "UseDualStack" + "ref": "PartitionResult" }, - false - ] - } - ], - "endpoint": { - "url": "https://iam.cn-north-1.amazonaws.com.cn", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "cn-north-1" - } + "name" ] }, - "headers": {} - }, - "type": "endpoint" + "aws-us-gov" + ] }, { - "conditions": [ + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "stringEquals", + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-us-gov" + "name" ] }, + "aws-us-gov" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", "argv": [ { - "ref": "UseFIPS" + "ref": "PartitionResult" }, - false + "name" ] }, + "aws-iso" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.us-iso-east-1.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-iso-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", "argv": [ { - "ref": "UseDualStack" + "ref": "PartitionResult" }, - false - ] - } - ], - "endpoint": { - "url": "https://iam.us-gov.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-gov-west-1" - } + "name" ] }, - "headers": {} - }, - "type": "endpoint" + "aws-iso-b" + ] }, { - "conditions": [ + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.us-isob-east-1.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-isob-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-us-gov" + "name" ] }, + "aws-iso-f" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.us-isof-south-1.csp.hci.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-isof-south-1" } - ], - "endpoint": { - "url": "https://iam.us-gov.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-gov-west-1" - } - ] + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" }, - "headers": {} - }, - "type": "endpoint" + true + ] }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ + true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "name" + "supportsFIPS" ] - }, - "aws-iso" - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://iam.us-iso-east-1.c2s.ic.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-iso-east-1" } ] }, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ + true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "name" + "supportsDualStack" ] - }, - "aws-iso-b" - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false + } ] - }, + } + ], + "rules": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] + "conditions": [], + "endpoint": { + "url": "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ], - "endpoint": { - "url": "https://iam.us-isob-east-1.sc2s.sgov.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-isob-east-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" + "type": "tree" }, { - "conditions": [ + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] + "ref": "UseFIPS" }, + true + ] + } + ], + "rules": [ + { + "conditions": [ { "fn": "booleanEquals", "argv": [ { - "ref": "UseDualStack" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] }, true ] } ], - "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] + "ref": "UseDualStack" }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } + true ] - }, + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [], "endpoint": { - "url": "https://iam.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://iam.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/migrationhub-config/2019-06-30/api-2.json b/models/apis/migrationhub-config/2019-06-30/api-2.json index 55719dccd6d..f066c2a6b16 100644 --- a/models/apis/migrationhub-config/2019-06-30/api-2.json +++ b/models/apis/migrationhub-config/2019-06-30/api-2.json @@ -30,6 +30,22 @@ {"shape":"InvalidInputException"} ] }, + "DeleteHomeRegionControl":{ + "name":"DeleteHomeRegionControl", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteHomeRegionControlRequest"}, + "output":{"shape":"DeleteHomeRegionControlResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidInputException"} + ] + }, "DescribeHomeRegionControls":{ "name":"DescribeHomeRegionControls", "http":{ @@ -95,6 +111,18 @@ "HomeRegionControl":{"shape":"HomeRegionControl"} } }, + "DeleteHomeRegionControlRequest":{ + "type":"structure", + "required":["ControlId"], + "members":{ + "ControlId":{"shape":"ControlId"} + } + }, + "DeleteHomeRegionControlResult":{ + "type":"structure", + "members":{ + } + }, "DescribeHomeRegionControlsMaxResults":{ "type":"integer", "box":true, diff --git a/models/apis/migrationhub-config/2019-06-30/docs-2.json b/models/apis/migrationhub-config/2019-06-30/docs-2.json index 2a1f500ab01..86ebffc4577 100644 --- a/models/apis/migrationhub-config/2019-06-30/docs-2.json +++ b/models/apis/migrationhub-config/2019-06-30/docs-2.json @@ -3,6 +3,7 @@ "service": "

The AWS Migration Hub home region APIs are available specifically for working with your Migration Hub home region. You can use these APIs to determine a home region, as well as to create and work with controls that describe the home region.

For specific API usage, see the sections that follow in this AWS Migration Hub Home Region API reference.

", "operations": { "CreateHomeRegionControl": "

This API sets up the home region for the calling account only.

", + "DeleteHomeRegionControl": "

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": "

This API permits filtering on the ControlId and HomeRegion fields.

", "GetHomeRegion": "

Returns the calling account’s home region, if configured. This API is used by other AWS services to determine the regional endpoint for calling AWS Application Discovery Service and Migration Hub. You must call GetHomeRegion at least once before you call any other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's Migration Hub home region.

" }, @@ -15,6 +16,7 @@ "ControlId": { "base": null, "refs": { + "DeleteHomeRegionControlRequest$ControlId": "

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.

", "DescribeHomeRegionControlsRequest$ControlId": "

The ControlID is a unique identifier string of your HomeRegionControl object.

", "HomeRegionControl$ControlId": "

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.

" } @@ -29,6 +31,16 @@ "refs": { } }, + "DeleteHomeRegionControlRequest": { + "base": null, + "refs": { + } + }, + "DeleteHomeRegionControlResult": { + "base": null, + "refs": { + } + }, "DescribeHomeRegionControlsMaxResults": { "base": null, "refs": { diff --git a/models/apis/migrationhub-config/2019-06-30/endpoint-rule-set-1.json b/models/apis/migrationhub-config/2019-06-30/endpoint-rule-set-1.json new file mode 100644 index 00000000000..f3579877ce5 --- /dev/null +++ b/models/apis/migrationhub-config/2019-06-30/endpoint-rule-set-1.json @@ -0,0 +1,314 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ] +} \ No newline at end of file diff --git a/models/apis/migrationhub-config/2019-06-30/endpoint-tests-1.json b/models/apis/migrationhub-config/2019-06-30/endpoint-tests-1.json new file mode 100644 index 00000000000..3cebde22054 --- /dev/null +++ b/models/apis/migrationhub-config/2019-06-30/endpoint-tests-1.json @@ -0,0 +1,314 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://migrationhub-config.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/migrationhubstrategy/2020-02-19/api-2.json b/models/apis/migrationhubstrategy/2020-02-19/api-2.json index 682308de8cd..f81b997107a 100644 --- a/models/apis/migrationhubstrategy/2020-02-19/api-2.json +++ b/models/apis/migrationhubstrategy/2020-02-19/api-2.json @@ -173,6 +173,22 @@ {"shape":"InternalServerException"} ] }, + "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"} + ] + }, "ListApplicationComponents":{ "name":"ListApplicationComponents", "http":{ @@ -383,6 +399,19 @@ "BINARY_ANALYSIS" ] }, + "AnalyzableServerSummary":{ + "type":"structure", + "members":{ + "hostname":{"shape":"String"}, + "ipAddress":{"shape":"String"}, + "source":{"shape":"String"}, + "vmId":{"shape":"String"} + } + }, + "AnalyzableServerSummaryList":{ + "type":"list", + "member":{"shape":"AnalyzableServerSummary"} + }, "AnalyzerNameUnion":{ "type":"structure", "members":{ @@ -554,6 +583,14 @@ "managementPreference":{"shape":"ManagementPreference"} } }, + "AssessmentDataSourceType":{ + "type":"string", + "enum":[ + "StrategyRecommendationsApplicationDataCollector", + "ManualImport", + "ApplicationDiscoveryService" + ] + }, "AssessmentStatus":{ "type":"string", "enum":[ @@ -757,7 +794,8 @@ "enum":[ "ApplicationDiscoveryService", "MPA", - "Import" + "Import", + "StrategyRecommendationsApplicationDataCollector" ] }, "DatabaseConfigDetail":{ @@ -1117,6 +1155,21 @@ "exception":true, "fault":true }, + "ListAnalyzableServersRequest":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"MaxResult"}, + "nextToken":{"shape":"NextToken"}, + "sort":{"shape":"SortOrder"} + } + }, + "ListAnalyzableServersResponse":{ + "type":"structure", + "members":{ + "analyzableServers":{"shape":"AnalyzableServerSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, "ListAntipatternSeveritySummary":{ "type":"list", "member":{"shape":"AntipatternSeveritySummary"} @@ -1742,6 +1795,7 @@ "StartAssessmentRequest":{ "type":"structure", "members":{ + "assessmentDataSourceType":{"shape":"AssessmentDataSourceType"}, "assessmentTargets":{"shape":"AssessmentTargets"}, "s3bucketForAnalysisData":{"shape":"StartAssessmentRequestS3bucketForAnalysisDataString"}, "s3bucketForReportData":{"shape":"StartAssessmentRequestS3bucketForReportDataString"} diff --git a/models/apis/migrationhubstrategy/2020-02-19/docs-2.json b/models/apis/migrationhubstrategy/2020-02-19/docs-2.json index 25a1283f774..06ef89c6b2f 100644 --- a/models/apis/migrationhubstrategy/2020-02-19/docs-2.json +++ b/models/apis/migrationhubstrategy/2020-02-19/docs-2.json @@ -12,6 +12,7 @@ "GetRecommendationReportDetails": "

Retrieves detailed information about the specified recommendation report.

", "GetServerDetails": "

Retrieves detailed information about a specified server.

", "GetServerStrategies": "

Retrieves recommended strategies and tools for the specified server.

", + "ListAnalyzableServers": "

Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.

", "ListApplicationComponents": "

Retrieves a list of all the application components (processes).

", "ListCollectors": "

Retrieves a list of all the installed collectors.

", "ListImportFileTask": "

Retrieves a list of all the imports performed.

", @@ -42,6 +43,18 @@ "Result$analysisType": "

The error in server analysis.

" } }, + "AnalyzableServerSummary": { + "base": "

Summary information about an analyzable server.

", + "refs": { + "AnalyzableServerSummaryList$member": null + } + }, + "AnalyzableServerSummaryList": { + "base": null, + "refs": { + "ListAnalyzableServersResponse$analyzableServers": "

The list of analyzable servers with summary information about each server.

" + } + }, "AnalyzerNameUnion": { "base": "

The combination of the existing analyzers.

", "refs": { @@ -160,6 +173,12 @@ "PutPortfolioPreferencesRequest$applicationPreferences": "

The transformation preferences for non-database applications.

" } }, + "AssessmentDataSourceType": { + "base": null, + "refs": { + "StartAssessmentRequest$assessmentDataSourceType": "

The data source type of an assessment to be started.

" + } + }, "AssessmentStatus": { "base": null, "refs": { @@ -586,6 +605,16 @@ "refs": { } }, + "ListAnalyzableServersRequest": { + "base": "

Represents input for ListAnalyzableServers operation.

", + "refs": { + } + }, + "ListAnalyzableServersResponse": { + "base": "

Represents output for ListAnalyzableServers operation.

", + "refs": { + } + }, "ListAntipatternSeveritySummary": { "base": null, "refs": { @@ -700,6 +729,7 @@ "base": null, "refs": { "GetServerDetailsRequest$maxResults": "

The maximum number of items to include in the response. The maximum value is 100.

", + "ListAnalyzableServersRequest$maxResults": "

The maximum number of items to include in the response. The maximum value is 100.

", "ListApplicationComponentsRequest$maxResults": "

The maximum number of items to include in the response. The maximum value is 100.

", "ListCollectorsRequest$maxResults": "

The maximum number of items to include in the response. The maximum value is 100.

", "ListServersRequest$maxResults": "

The maximum number of items to include in the response. The maximum value is 100.

" @@ -727,6 +757,8 @@ "base": null, "refs": { "GetServerDetailsRequest$nextToken": "

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.

", + "ListAnalyzableServersRequest$nextToken": "

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.

", + "ListAnalyzableServersResponse$nextToken": "

The token you use to retrieve the next set of results, or null if there are no more results.

", "ListApplicationComponentsRequest$nextToken": "

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.

", "ListApplicationComponentsResponse$nextToken": "

The token you use to retrieve the next set of results, or null if there are no more results.

", "ListCollectorsRequest$nextToken": "

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.

", @@ -1071,6 +1103,7 @@ "SortOrder": { "base": null, "refs": { + "ListAnalyzableServersRequest$sort": "

Specifies whether to sort by ascending (ASC) or descending (DESC) order.

", "ListApplicationComponentsRequest$sort": "

Specifies whether to sort by ascending (ASC) or descending (DESC) order.

", "ListServersRequest$sort": "

Specifies whether to sort by ascending (ASC) or descending (DESC) order.

" } @@ -1228,6 +1261,10 @@ "base": null, "refs": { "AccessDeniedException$message": null, + "AnalyzableServerSummary$hostname": "

The host name of the analyzable server.

", + "AnalyzableServerSummary$ipAddress": "

The ip address of the analyzable server.

", + "AnalyzableServerSummary$source": "

The data source of the analyzable server.

", + "AnalyzableServerSummary$vmId": "

The virtual machine id of the analyzable server.

", "ApplicationComponentDetail$osDriver": "

OS driver.

", "ApplicationComponentDetail$osVersion": "

OS version.

", "AssessmentTarget$name": "

Name of an assessment.

", diff --git a/models/apis/migrationhubstrategy/2020-02-19/endpoint-rule-set-1.json b/models/apis/migrationhubstrategy/2020-02-19/endpoint-rule-set-1.json index 8a244599f52..e8f13ea0346 100644 --- a/models/apis/migrationhubstrategy/2020-02-19/endpoint-rule-set-1.json +++ b/models/apis/migrationhubstrategy/2020-02-19/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,293 +57,258 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] }, true ] } ], - "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [], "endpoint": { - "url": "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/migrationhubstrategy/2020-02-19/endpoint-tests-1.json b/models/apis/migrationhubstrategy/2020-02-19/endpoint-tests-1.json index bca07ef21bd..77e63bb113e 100644 --- a/models/apis/migrationhubstrategy/2020-02-19/endpoint-tests-1.json +++ b/models/apis/migrationhubstrategy/2020-02-19/endpoint-tests-1.json @@ -234,6 +234,17 @@ "UseDualStack": false } }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { @@ -247,6 +258,17 @@ "UseDualStack": false } }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { @@ -260,6 +282,17 @@ "UseDualStack": false } }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { @@ -273,6 +306,17 @@ "UseDualStack": false } }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { @@ -336,6 +380,12 @@ "UseDualStack": true, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/migrationhubstrategy/2020-02-19/paginators-1.json b/models/apis/migrationhubstrategy/2020-02-19/paginators-1.json index 5f446456d51..e2422f1820f 100644 --- a/models/apis/migrationhubstrategy/2020-02-19/paginators-1.json +++ b/models/apis/migrationhubstrategy/2020-02-19/paginators-1.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/models/apis/opensearchserverless/2021-11-01/api-2.json b/models/apis/opensearchserverless/2021-11-01/api-2.json index 7d2c9256f75..ef091abaa94 100644 --- a/models/apis/opensearchserverless/2021-11-01/api-2.json +++ b/models/apis/opensearchserverless/2021-11-01/api-2.json @@ -33,6 +33,48 @@ "shape": "BatchGetCollectionResponse" } }, + "BatchGetEffectiveLifecyclePolicy": { + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "BatchGetEffectiveLifecyclePolicyRequest" + }, + "name": "BatchGetEffectiveLifecyclePolicy", + "output": { + "shape": "BatchGetEffectiveLifecyclePolicyResponse" + } + }, + "BatchGetLifecyclePolicy": { + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "BatchGetLifecyclePolicyRequest" + }, + "name": "BatchGetLifecyclePolicy", + "output": { + "shape": "BatchGetLifecyclePolicyResponse" + } + }, "BatchGetVpcEndpoint": { "errors": [ { @@ -113,6 +155,34 @@ "shape": "CreateCollectionResponse" } }, + "CreateLifecyclePolicy": { + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "idempotent": true, + "input": { + "shape": "CreateLifecyclePolicyRequest" + }, + "name": "CreateLifecyclePolicy", + "output": { + "shape": "CreateLifecyclePolicyResponse" + } + }, "CreateSecurityConfig": { "errors": [ { @@ -253,6 +323,34 @@ "shape": "DeleteCollectionResponse" } }, + "DeleteLifecyclePolicy": { + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "idempotent": true, + "input": { + "shape": "DeleteLifecyclePolicyRequest" + }, + "name": "DeleteLifecyclePolicy", + "output": { + "shape": "DeleteLifecyclePolicyResponse" + } + }, "DeleteSecurityConfig": { "errors": [ { @@ -490,6 +588,27 @@ "shape": "ListCollectionsResponse" } }, + "ListLifecyclePolicies": { + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "ListLifecyclePoliciesRequest" + }, + "name": "ListLifecyclePolicies", + "output": { + "shape": "ListLifecyclePoliciesResponse" + } + }, "ListSecurityConfigs": { "errors": [ { @@ -708,6 +827,37 @@ "shape": "UpdateCollectionResponse" } }, + "UpdateLifecyclePolicy": { + "errors": [ + { + "shape": "InternalServerException" + }, + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "idempotent": true, + "input": { + "shape": "UpdateLifecyclePolicyRequest" + }, + "name": "UpdateLifecyclePolicy", + "output": { + "shape": "UpdateLifecyclePolicyResponse" + } + }, "UpdateSecurityConfig": { "errors": [ { @@ -895,6 +1045,50 @@ }, "type": "structure" }, + "BatchGetEffectiveLifecyclePolicyRequest": { + "members": { + "resourceIdentifiers": { + "shape": "LifecyclePolicyResourceIdentifiers" + } + }, + "required": [ + "resourceIdentifiers" + ], + "type": "structure" + }, + "BatchGetEffectiveLifecyclePolicyResponse": { + "members": { + "effectiveLifecyclePolicyDetails": { + "shape": "EffectiveLifecyclePolicyDetails" + }, + "effectiveLifecyclePolicyErrorDetails": { + "shape": "EffectiveLifecyclePolicyErrorDetails" + } + }, + "type": "structure" + }, + "BatchGetLifecyclePolicyRequest": { + "members": { + "identifiers": { + "shape": "LifecyclePolicyIdentifiers" + } + }, + "required": [ + "identifiers" + ], + "type": "structure" + }, + "BatchGetLifecyclePolicyResponse": { + "members": { + "lifecyclePolicyDetails": { + "shape": "LifecyclePolicyDetails" + }, + "lifecyclePolicyErrorDetails": { + "shape": "LifecyclePolicyErrorDetails" + } + }, + "type": "structure" + }, "BatchGetVpcEndpointRequest": { "members": { "ids": { @@ -917,6 +1111,10 @@ }, "type": "structure" }, + "Boolean": { + "box": true, + "type": "boolean" + }, "CapacityLimits": { "members": { "maxIndexingCapacityInOCU": { @@ -1202,6 +1400,40 @@ }, "type": "structure" }, + "CreateLifecyclePolicyRequest": { + "members": { + "clientToken": { + "idempotencyToken": true, + "shape": "ClientToken" + }, + "description": { + "shape": "PolicyDescription" + }, + "name": { + "shape": "PolicyName" + }, + "policy": { + "shape": "PolicyDocument" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "required": [ + "name", + "policy", + "type" + ], + "type": "structure" + }, + "CreateLifecyclePolicyResponse": { + "members": { + "lifecyclePolicyDetail": { + "shape": "LifecyclePolicyDetail" + } + }, + "type": "structure" + }, "CreateSecurityConfigRequest": { "members": { "clientToken": { @@ -1377,6 +1609,29 @@ }, "type": "structure" }, + "DeleteLifecyclePolicyRequest": { + "members": { + "clientToken": { + "idempotencyToken": true, + "shape": "ClientToken" + }, + "name": { + "shape": "PolicyName" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "required": [ + "name", + "type" + ], + "type": "structure" + }, + "DeleteLifecyclePolicyResponse": { + "members": {}, + "type": "structure" + }, "DeleteSecurityConfigRequest": { "members": { "clientToken": { @@ -1456,6 +1711,58 @@ }, "type": "structure" }, + "EffectiveLifecyclePolicyDetail": { + "members": { + "noMinRetentionPeriod": { + "shape": "Boolean" + }, + "policyName": { + "shape": "PolicyName" + }, + "resource": { + "shape": "Resource" + }, + "resourceType": { + "shape": "ResourceType" + }, + "retentionPeriod": { + "shape": "String" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "type": "structure" + }, + "EffectiveLifecyclePolicyDetails": { + "member": { + "shape": "EffectiveLifecyclePolicyDetail" + }, + "type": "list" + }, + "EffectiveLifecyclePolicyErrorDetail": { + "members": { + "errorCode": { + "shape": "String" + }, + "errorMessage": { + "shape": "String" + }, + "resource": { + "shape": "Resource" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "type": "structure" + }, + "EffectiveLifecyclePolicyErrorDetails": { + "member": { + "shape": "EffectiveLifecyclePolicyErrorDetail" + }, + "type": "list" + }, "GetAccessPolicyRequest": { "members": { "name": { @@ -1500,6 +1807,9 @@ "AccessPolicyStats": { "shape": "AccessPolicyStats" }, + "LifecyclePolicyStats": { + "shape": "LifecyclePolicyStats" + }, "SecurityConfigStats": { "shape": "SecurityConfigStats" }, @@ -1569,6 +1879,150 @@ }, "type": "structure" }, + "LifecyclePolicyDetail": { + "members": { + "createdDate": { + "shape": "Long" + }, + "description": { + "shape": "PolicyDescription" + }, + "lastModifiedDate": { + "shape": "Long" + }, + "name": { + "shape": "PolicyName" + }, + "policyVersion": { + "shape": "PolicyVersion" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "type": "structure" + }, + "LifecyclePolicyDetails": { + "member": { + "shape": "LifecyclePolicyDetail" + }, + "type": "list" + }, + "LifecyclePolicyErrorDetail": { + "members": { + "errorCode": { + "shape": "String" + }, + "errorMessage": { + "shape": "String" + }, + "name": { + "shape": "PolicyName" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "type": "structure" + }, + "LifecyclePolicyErrorDetails": { + "member": { + "shape": "LifecyclePolicyErrorDetail" + }, + "type": "list" + }, + "LifecyclePolicyIdentifier": { + "members": { + "name": { + "shape": "PolicyName" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "required": [ + "name", + "type" + ], + "type": "structure" + }, + "LifecyclePolicyIdentifiers": { + "max": 40, + "member": { + "shape": "LifecyclePolicyIdentifier" + }, + "min": 1, + "type": "list" + }, + "LifecyclePolicyResourceIdentifier": { + "members": { + "resource": { + "shape": "ResourceName" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "required": [ + "resource", + "type" + ], + "type": "structure" + }, + "LifecyclePolicyResourceIdentifiers": { + "max": 100, + "member": { + "shape": "LifecyclePolicyResourceIdentifier" + }, + "min": 1, + "type": "list" + }, + "LifecyclePolicyStats": { + "members": { + "RetentionPolicyCount": { + "shape": "Long" + } + }, + "type": "structure" + }, + "LifecyclePolicySummaries": { + "member": { + "shape": "LifecyclePolicySummary" + }, + "type": "list" + }, + "LifecyclePolicySummary": { + "members": { + "createdDate": { + "shape": "Long" + }, + "description": { + "shape": "PolicyDescription" + }, + "lastModifiedDate": { + "shape": "Long" + }, + "name": { + "shape": "PolicyName" + }, + "policyVersion": { + "shape": "PolicyVersion" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "type": "structure" + }, + "LifecyclePolicyType": { + "enum": [ + "retention" + ], + "type": "string" + }, + "LifecycleResource": { + "type": "string" + }, "ListAccessPoliciesRequest": { "members": { "maxResults": { @@ -1645,6 +2099,51 @@ }, "type": "structure" }, + "ListLifecyclePoliciesRequest": { + "members": { + "maxResults": { + "shape": "ListLifecyclePoliciesRequestMaxResultsInteger" + }, + "nextToken": { + "shape": "String" + }, + "resources": { + "shape": "ListLifecyclePoliciesRequestResourcesList" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "required": [ + "type" + ], + "type": "structure" + }, + "ListLifecyclePoliciesRequestMaxResultsInteger": { + "box": true, + "max": 100, + "min": 1, + "type": "integer" + }, + "ListLifecyclePoliciesRequestResourcesList": { + "max": 1000, + "member": { + "shape": "LifecycleResource" + }, + "min": 1, + "type": "list" + }, + "ListLifecyclePoliciesResponse": { + "members": { + "lifecyclePolicySummaries": { + "shape": "LifecyclePolicySummaries" + }, + "nextToken": { + "shape": "String" + } + }, + "type": "structure" + }, "ListSecurityConfigsRequest": { "members": { "maxResults": { @@ -1816,6 +2315,10 @@ "Resource": { "type": "string" }, + "ResourceName": { + "pattern": "^index/[a-z][a-z0-9-]{3,32}/([a-z;0-9\u0026$%][+.~=\\-_a-z;0-9\u0026$%]*|\\*)$", + "type": "string" + }, "ResourceNotFoundException": { "exception": true, "members": { @@ -1825,6 +2328,12 @@ }, "type": "structure" }, + "ResourceType": { + "enum": [ + "index" + ], + "type": "string" + }, "SamlConfigOptions": { "members": { "groupAttribute": { @@ -2248,6 +2757,43 @@ }, "type": "structure" }, + "UpdateLifecyclePolicyRequest": { + "members": { + "clientToken": { + "idempotencyToken": true, + "shape": "ClientToken" + }, + "description": { + "shape": "PolicyDescription" + }, + "name": { + "shape": "PolicyName" + }, + "policy": { + "shape": "PolicyDocument" + }, + "policyVersion": { + "shape": "PolicyVersion" + }, + "type": { + "shape": "LifecyclePolicyType" + } + }, + "required": [ + "name", + "policyVersion", + "type" + ], + "type": "structure" + }, + "UpdateLifecyclePolicyResponse": { + "members": { + "lifecyclePolicyDetail": { + "shape": "LifecyclePolicyDetail" + } + }, + "type": "structure" + }, "UpdateSecurityConfigRequest": { "members": { "clientToken": { diff --git a/models/apis/opensearchserverless/2021-11-01/docs-2.json b/models/apis/opensearchserverless/2021-11-01/docs-2.json index efb00e97528..26d03f58a55 100644 --- a/models/apis/opensearchserverless/2021-11-01/docs-2.json +++ b/models/apis/opensearchserverless/2021-11-01/docs-2.json @@ -3,14 +3,18 @@ "service": "

Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and security policies.

OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning, configuring, and tuning your OpenSearch clusters. It enables you to easily search and analyze petabytes of data without having to worry about the underlying infrastructure and data management.

To learn more about OpenSearch Serverless, see What is Amazon OpenSearch Serverless?

", "operations": { "BatchGetCollection": "

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": "

Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.

", + "BatchGetLifecyclePolicy": "

Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.

", "BatchGetVpcEndpoint": "

Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

", "CreateAccessPolicy": "

Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.

", "CreateCollection": "

Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

", + "CreateLifecyclePolicy": "

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.

", "CreateSecurityConfig": "

Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.

", "CreateSecurityPolicy": "

Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

", "CreateVpcEndpoint": "

Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

", "DeleteAccessPolicy": "

Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.

", "DeleteCollection": "

Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

", + "DeleteLifecyclePolicy": "

Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.

", "DeleteSecurityConfig": "

Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.

", "DeleteSecurityPolicy": "

Deletes an OpenSearch Serverless security policy.

", "DeleteVpcEndpoint": "

Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

", @@ -21,6 +25,7 @@ "GetSecurityPolicy": "

Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

", "ListAccessPolicies": "

Returns information about a list of OpenSearch Serverless access policies.

", "ListCollections": "

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.

", + "ListLifecyclePolicies": "

Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.

", "ListSecurityConfigs": "

Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.

", "ListSecurityPolicies": "

Returns information about configured OpenSearch Serverless security policies.

", "ListTagsForResource": "

Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.

", @@ -30,6 +35,7 @@ "UpdateAccessPolicy": "

Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.

", "UpdateAccountSettings": "

Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.

", "UpdateCollection": "

Updates an OpenSearch Serverless collection.

", + "UpdateLifecyclePolicy": "

Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.

", "UpdateSecurityConfig": "

Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.

", "UpdateSecurityPolicy": "

Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

", "UpdateVpcEndpoint": "

Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

" @@ -65,10 +71,10 @@ "base": null, "refs": { "AccessPolicyDetail$type": "

The type of access policy.

", - "AccessPolicySummary$type": "

The type of access policy. Currently the only available type is data.

", + "AccessPolicySummary$type": "

The type of access policy. Currently, the only available type is data.

", "CreateAccessPolicyRequest$type": "

The type of policy.

", "DeleteAccessPolicyRequest$type": "

The type of policy.

", - "GetAccessPolicyRequest$type": "

Tye type of policy. Currently the only supported value is data.

", + "GetAccessPolicyRequest$type": "

Tye type of policy. Currently, the only supported value is data.

", "ListAccessPoliciesRequest$type": "

The type of access policy.

", "UpdateAccessPolicyRequest$type": "

The type of policy.

" } @@ -98,6 +104,26 @@ "refs": { } }, + "BatchGetEffectiveLifecyclePolicyRequest": { + "base": null, + "refs": { + } + }, + "BatchGetEffectiveLifecyclePolicyResponse": { + "base": null, + "refs": { + } + }, + "BatchGetLifecyclePolicyRequest": { + "base": null, + "refs": { + } + }, + "BatchGetLifecyclePolicyResponse": { + "base": null, + "refs": { + } + }, "BatchGetVpcEndpointRequest": { "base": null, "refs": { @@ -108,6 +134,12 @@ "refs": { } }, + "Boolean": { + "base": null, + "refs": { + "EffectiveLifecyclePolicyDetail$noMinRetentionPeriod": "

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.

" + } + }, "CapacityLimits": { "base": "

The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.

", "refs": { @@ -120,16 +152,19 @@ "refs": { "CreateAccessPolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "CreateCollectionRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", + "CreateLifecyclePolicyRequest$clientToken": "

A unique, case-sensitive identifier to ensure idempotency of the request.

", "CreateSecurityConfigRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "CreateSecurityPolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "CreateVpcEndpointRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "DeleteAccessPolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "DeleteCollectionRequest$clientToken": "

A unique, case-sensitive identifier to ensure idempotency of the request.

", + "DeleteLifecyclePolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "DeleteSecurityConfigRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "DeleteSecurityPolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "DeleteVpcEndpointRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "UpdateAccessPolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "UpdateCollectionRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", + "UpdateLifecyclePolicyRequest$clientToken": "

A unique, case-sensitive identifier to ensure idempotency of the request.

", "UpdateSecurityConfigRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "UpdateSecurityPolicyRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

", "UpdateVpcEndpointRequest$clientToken": "

Unique, case-sensitive identifier to ensure idempotency of the request.

" @@ -160,9 +195,9 @@ } }, "CollectionFilters": { - "base": "

List of filter keys that you can use for LIST, UPDATE, and DELETE requests to OpenSearch Serverless collections.

", + "base": "

A list of filter keys that you can use for LIST, UPDATE, and DELETE requests to OpenSearch Serverless collections.

", "refs": { - "ListCollectionsRequest$collectionFilters": "

List of filter names and values that you can use for requests.

" + "ListCollectionsRequest$collectionFilters": "

A list of filter names and values that you can use for requests.

" } }, "CollectionId": { @@ -289,6 +324,16 @@ "refs": { } }, + "CreateLifecyclePolicyRequest": { + "base": null, + "refs": { + } + }, + "CreateLifecyclePolicyResponse": { + "base": null, + "refs": { + } + }, "CreateSecurityConfigRequest": { "base": null, "refs": { @@ -351,6 +396,16 @@ "refs": { } }, + "DeleteLifecyclePolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteLifecyclePolicyResponse": { + "base": null, + "refs": { + } + }, "DeleteSecurityConfigRequest": { "base": null, "refs": { @@ -391,9 +446,34 @@ "base": null, "refs": { "AccessPolicyDetail$policy": "

The JSON policy document without any whitespaces.

", + "LifecyclePolicyDetail$policy": "

The JSON policy document without any whitespaces.

", "SecurityPolicyDetail$policy": "

The JSON policy document without any whitespaces.

" } }, + "EffectiveLifecyclePolicyDetail": { + "base": "

Error information for an OpenSearch Serverless request.

", + "refs": { + "EffectiveLifecyclePolicyDetails$member": null + } + }, + "EffectiveLifecyclePolicyDetails": { + "base": null, + "refs": { + "BatchGetEffectiveLifecyclePolicyResponse$effectiveLifecyclePolicyDetails": "

A list of lifecycle policies applied to the OpenSearch Serverless indexes.

" + } + }, + "EffectiveLifecyclePolicyErrorDetail": { + "base": "

Error information for an OpenSearch Serverless request.

", + "refs": { + "EffectiveLifecyclePolicyErrorDetails$member": null + } + }, + "EffectiveLifecyclePolicyErrorDetails": { + "base": null, + "refs": { + "BatchGetEffectiveLifecyclePolicyResponse$effectiveLifecyclePolicyErrorDetails": "

A list of resources for which retrieval failed.

" + } + }, "GetAccessPolicyRequest": { "base": null, "refs": { @@ -455,6 +535,96 @@ "refs": { } }, + "LifecyclePolicyDetail": { + "base": "

Details about an OpenSearch Serverless lifecycle policy.

", + "refs": { + "CreateLifecyclePolicyResponse$lifecyclePolicyDetail": "

Details about the created lifecycle policy.

", + "LifecyclePolicyDetails$member": null, + "UpdateLifecyclePolicyResponse$lifecyclePolicyDetail": "

Details about the updated lifecycle policy.

" + } + }, + "LifecyclePolicyDetails": { + "base": null, + "refs": { + "BatchGetLifecyclePolicyResponse$lifecyclePolicyDetails": "

A list of lifecycle policies matched to the input policy name and policy type.

" + } + }, + "LifecyclePolicyErrorDetail": { + "base": "

Error information for an OpenSearch Serverless request.

", + "refs": { + "LifecyclePolicyErrorDetails$member": null + } + }, + "LifecyclePolicyErrorDetails": { + "base": null, + "refs": { + "BatchGetLifecyclePolicyResponse$lifecyclePolicyErrorDetails": "

A list of lifecycle policy names and policy types for which retrieval failed.

" + } + }, + "LifecyclePolicyIdentifier": { + "base": "

The unique identifiers of policy types and policy names.

", + "refs": { + "LifecyclePolicyIdentifiers$member": null + } + }, + "LifecyclePolicyIdentifiers": { + "base": null, + "refs": { + "BatchGetLifecyclePolicyRequest$identifiers": "

The unique identifiers of policy types and policy names.

" + } + }, + "LifecyclePolicyResourceIdentifier": { + "base": "

The unique identifiers of policy types and resource names.

", + "refs": { + "LifecyclePolicyResourceIdentifiers$member": null + } + }, + "LifecyclePolicyResourceIdentifiers": { + "base": null, + "refs": { + "BatchGetEffectiveLifecyclePolicyRequest$resourceIdentifiers": "

The unique identifiers of policy types and resource names.

" + } + }, + "LifecyclePolicyStats": { + "base": "

Statistics for an OpenSearch Serverless lifecycle policy.

", + "refs": { + "GetPoliciesStatsResponse$LifecyclePolicyStats": "

Information about the lifecycle policies in your account.

" + } + }, + "LifecyclePolicySummaries": { + "base": null, + "refs": { + "ListLifecyclePoliciesResponse$lifecyclePolicySummaries": "

Details about the requested lifecycle policies.

" + } + }, + "LifecyclePolicySummary": { + "base": "

A summary of the lifecycle policy.

", + "refs": { + "LifecyclePolicySummaries$member": null + } + }, + "LifecyclePolicyType": { + "base": null, + "refs": { + "CreateLifecyclePolicyRequest$type": "

The type of lifecycle policy.

", + "DeleteLifecyclePolicyRequest$type": "

The type of lifecycle policy.

", + "EffectiveLifecyclePolicyDetail$type": "

The type of lifecycle policy.

", + "EffectiveLifecyclePolicyErrorDetail$type": "

The type of lifecycle policy.

", + "LifecyclePolicyDetail$type": "

The type of lifecycle policy.

", + "LifecyclePolicyErrorDetail$type": "

The type of lifecycle policy.

", + "LifecyclePolicyIdentifier$type": "

The type of lifecycle policy.

", + "LifecyclePolicyResourceIdentifier$type": "

The type of lifecycle policy.

", + "LifecyclePolicySummary$type": "

The type of lifecycle policy.

", + "ListLifecyclePoliciesRequest$type": "

The type of lifecycle policy.

", + "UpdateLifecyclePolicyRequest$type": "

The type of lifecycle policy.

" + } + }, + "LifecycleResource": { + "base": null, + "refs": { + "ListLifecyclePoliciesRequestResourcesList$member": null + } + }, "ListAccessPoliciesRequest": { "base": null, "refs": { @@ -493,6 +663,28 @@ "refs": { } }, + "ListLifecyclePoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListLifecyclePoliciesRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListLifecyclePoliciesRequest$maxResults": "

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.

" + } + }, + "ListLifecyclePoliciesRequestResourcesList": { + "base": null, + "refs": { + "ListLifecyclePoliciesRequest$resources": "

Resource filters that policies can apply to. Currently, the only supported resource type is index.

" + } + }, + "ListLifecyclePoliciesResponse": { + "base": null, + "refs": { + } + }, "ListSecurityConfigsRequest": { "base": null, "refs": { @@ -570,6 +762,11 @@ "CreateCollectionDetail$createdDate": "

The Epoch time when the collection was created.

", "CreateCollectionDetail$lastModifiedDate": "

The date and time when the collection was last modified.

", "GetPoliciesStatsResponse$TotalPolicyCount": "

The total number of OpenSearch Serverless security policies and configurations in your account.

", + "LifecyclePolicyDetail$createdDate": "

The date the lifecycle policy was created.

", + "LifecyclePolicyDetail$lastModifiedDate": "

The timestamp of when the lifecycle policy was last modified.

", + "LifecyclePolicyStats$RetentionPolicyCount": "

The number of retention lifecycle policies in the current account.

", + "LifecyclePolicySummary$createdDate": "

The Epoch time when the lifecycle policy was created.

", + "LifecyclePolicySummary$lastModifiedDate": "

The date and time when the lifecycle policy was last modified.

", "SecurityConfigDetail$createdDate": "

The date the configuration was created.

", "SecurityConfigDetail$lastModifiedDate": "

The timestamp of when the configuration was last modified.

", "SecurityConfigStats$SamlConfigCount": "

The number of security configurations in the current account.

", @@ -598,10 +795,14 @@ "AccessPolicyDetail$description": "

The description of the policy.

", "AccessPolicySummary$description": "

The description of the access policy.

", "CreateAccessPolicyRequest$description": "

A description of the policy. Typically used to store information about the permissions defined in the policy.

", + "CreateLifecyclePolicyRequest$description": "

A description of the lifecycle policy.

", "CreateSecurityPolicyRequest$description": "

A description of the policy. Typically used to store information about the permissions defined in the policy.

", + "LifecyclePolicyDetail$description": "

The description of the lifecycle policy.

", + "LifecyclePolicySummary$description": "

The description of the lifecycle policy.

", "SecurityPolicyDetail$description": "

The description of the security policy.

", "SecurityPolicySummary$description": "

The description of the security policy.

", "UpdateAccessPolicyRequest$description": "

A description of the policy. Typically used to store information about the permissions defined in the policy.

", + "UpdateLifecyclePolicyRequest$description": "

A description of the lifecycle policy.

", "UpdateSecurityPolicyRequest$description": "

A description of the policy. Typically used to store information about the permissions defined in the policy.

" } }, @@ -609,8 +810,10 @@ "base": null, "refs": { "CreateAccessPolicyRequest$policy": "

The JSON policy document to use as the content for the policy.

", + "CreateLifecyclePolicyRequest$policy": "

The JSON policy document to use as the content for the lifecycle policy.

", "CreateSecurityPolicyRequest$policy": "

The JSON policy document to use as the content for the new policy.

", "UpdateAccessPolicyRequest$policy": "

The JSON policy document to use as the content for the policy.

", + "UpdateLifecyclePolicyRequest$policy": "

The JSON policy document to use as the content for the lifecycle policy.

", "UpdateSecurityPolicyRequest$policy": "

The JSON policy document to use as the content for the new policy.

" } }, @@ -620,14 +823,22 @@ "AccessPolicyDetail$name": "

The name of the policy.

", "AccessPolicySummary$name": "

The name of the access policy.

", "CreateAccessPolicyRequest$name": "

The name of the policy.

", + "CreateLifecyclePolicyRequest$name": "

The name of the lifecycle policy.

", "CreateSecurityPolicyRequest$name": "

The name of the policy.

", "DeleteAccessPolicyRequest$name": "

The name of the policy to delete.

", + "DeleteLifecyclePolicyRequest$name": "

The name of the policy to delete.

", "DeleteSecurityPolicyRequest$name": "

The name of the policy to delete.

", + "EffectiveLifecyclePolicyDetail$policyName": "

The name of the lifecycle policy.

", "GetAccessPolicyRequest$name": "

The name of the access policy.

", "GetSecurityPolicyRequest$name": "

The name of the security policy.

", + "LifecyclePolicyDetail$name": "

The name of the lifecycle policy.

", + "LifecyclePolicyErrorDetail$name": "

The name of the lifecycle policy.

", + "LifecyclePolicyIdentifier$name": "

The name of the lifecycle policy.

", + "LifecyclePolicySummary$name": "

The name of the lifecycle policy.

", "SecurityPolicyDetail$name": "

The name of the policy.

", "SecurityPolicySummary$name": "

The name of the policy.

", "UpdateAccessPolicyRequest$name": "

The name of the policy.

", + "UpdateLifecyclePolicyRequest$name": "

The name of the policy.

", "UpdateSecurityPolicyRequest$name": "

The name of the policy.

" } }, @@ -636,11 +847,14 @@ "refs": { "AccessPolicyDetail$policyVersion": "

The version of the policy.

", "AccessPolicySummary$policyVersion": "

The version of the policy.

", + "LifecyclePolicyDetail$policyVersion": "

The version of the lifecycle policy.

", + "LifecyclePolicySummary$policyVersion": "

The version of the lifecycle policy.

", "SecurityConfigDetail$configVersion": "

The version of the security configuration.

", "SecurityConfigSummary$configVersion": "

The version of the security configuration.

", "SecurityPolicyDetail$policyVersion": "

The version of the policy.

", "SecurityPolicySummary$policyVersion": "

The version of the policy.

", "UpdateAccessPolicyRequest$policyVersion": "

The version of the policy being updated.

", + "UpdateLifecyclePolicyRequest$policyVersion": "

The version of the policy being updated.

", "UpdateSecurityConfigRequest$configVersion": "

The version of the security configuration to be updated. You can find the most recent version of a security configuration using the GetSecurityPolicy command.

", "UpdateSecurityPolicyRequest$policyVersion": "

The version of the policy being updated.

" } @@ -648,15 +862,29 @@ "Resource": { "base": null, "refs": { + "EffectiveLifecyclePolicyDetail$resource": "

The name of the OpenSearch Serverless index resource.

", + "EffectiveLifecyclePolicyErrorDetail$resource": "

The name of OpenSearch Serverless index resource.

", "ListAccessPoliciesRequestResourceList$member": null, "ListSecurityPoliciesRequestResourceList$member": null } }, + "ResourceName": { + "base": null, + "refs": { + "LifecyclePolicyResourceIdentifier$resource": "

The name of the OpenSearch Serverless ilndex resource.

" + } + }, "ResourceNotFoundException": { "base": "

Thrown when accessing or deleting a resource that does not exist.

", "refs": { } }, + "ResourceType": { + "base": null, + "refs": { + "EffectiveLifecyclePolicyDetail$resourceType": "

The type of OpenSearch Serverless resource. Currently, the only supported resource is index.

" + } + }, "SamlConfigOptions": { "base": "

Describes SAML options for an OpenSearch Serverless security configuration in the form of a key-value map.

", "refs": { @@ -796,11 +1024,18 @@ "CreateCollectionDetail$arn": "

The Amazon Resource Name (ARN) of the collection.

", "CreateCollectionDetail$description": "

A description of the collection.

", "CreateCollectionDetail$kmsKeyArn": "

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the collection.

", + "EffectiveLifecyclePolicyDetail$retentionPeriod": "

The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.

", + "EffectiveLifecyclePolicyErrorDetail$errorCode": "

The error code for the request.

", + "EffectiveLifecyclePolicyErrorDetail$errorMessage": "

A description of the error. For example, The specified Index resource is not found.

", "InternalServerException$message": null, + "LifecyclePolicyErrorDetail$errorCode": "

The error code for the request. For example, NOT_FOUND.

", + "LifecyclePolicyErrorDetail$errorMessage": "

A description of the error. For example, The specified Lifecycle Policy is not found.

", "ListAccessPoliciesRequest$nextToken": "

If your initial ListAccessPolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListAccessPolicies operations, which returns results in the next page.

", "ListAccessPoliciesResponse$nextToken": "

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.

", "ListCollectionsRequest$nextToken": "

If your initial ListCollections operation returns a nextToken, you can include the returned nextToken in subsequent ListCollections operations, which returns results in the next page.

", "ListCollectionsResponse$nextToken": "

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.

", + "ListLifecyclePoliciesRequest$nextToken": "

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.

", + "ListLifecyclePoliciesResponse$nextToken": "

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.

", "ListSecurityConfigsRequest$nextToken": "

If your initial ListSecurityConfigs operation returns a nextToken, you can include the returned nextToken in subsequent ListSecurityConfigs operations, which returns results in the next page.

", "ListSecurityConfigsResponse$nextToken": "

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.

", "ListSecurityPoliciesRequest$nextToken": "

If your initial ListSecurityPolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListSecurityPolicies operations, which returns results in the next page.

", @@ -932,6 +1167,16 @@ "refs": { } }, + "UpdateLifecyclePolicyRequest": { + "base": null, + "refs": { + } + }, + "UpdateLifecyclePolicyResponse": { + "base": null, + "refs": { + } + }, "UpdateSecurityConfigRequest": { "base": null, "refs": { diff --git a/models/apis/opensearchserverless/2021-11-01/endpoint-rule-set-1.json b/models/apis/opensearchserverless/2021-11-01/endpoint-rule-set-1.json index 879c877db37..2004d0d38ea 100644 --- a/models/apis/opensearchserverless/2021-11-01/endpoint-rule-set-1.json +++ b/models/apis/opensearchserverless/2021-11-01/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -59,7 +58,6 @@ }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -87,13 +85,14 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -106,7 +105,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -120,7 +118,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -143,7 +140,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -178,11 +174,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -193,16 +187,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -216,14 +213,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -232,15 +227,14 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -251,16 +245,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -274,7 +271,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -294,11 +290,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -309,20 +303,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -333,18 +329,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } - ] + ], + "type": "tree" } ] } \ No newline at end of file diff --git a/models/apis/opensearchserverless/2021-11-01/endpoint-tests-1.json b/models/apis/opensearchserverless/2021-11-01/endpoint-tests-1.json index 394379dc69c..944c804cc57 100644 --- a/models/apis/opensearchserverless/2021-11-01/endpoint-tests-1.json +++ b/models/apis/opensearchserverless/2021-11-01/endpoint-tests-1.json @@ -1,55 +1,55 @@ { "testCases": [ { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://aoss-fips.us-gov-east-1.api.aws" + "url": "https://aoss-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, - "Region": "us-gov-east-1", - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://aoss-fips.us-gov-east-1.amazonaws.com" + "url": "https://aoss-fips.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-gov-east-1", - "UseFIPS": true + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://aoss.us-gov-east-1.api.aws" + "url": "https://aoss.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, - "Region": "us-gov-east-1", - "UseFIPS": false + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://aoss.us-gov-east-1.amazonaws.com" + "url": "https://aoss.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-gov-east-1", - "UseFIPS": false + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { @@ -60,9 +60,9 @@ } }, "params": { - "UseDualStack": true, "Region": "cn-north-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -73,9 +73,9 @@ } }, "params": { - "UseDualStack": false, "Region": "cn-north-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -86,9 +86,9 @@ } }, "params": { - "UseDualStack": true, "Region": "cn-north-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -99,109 +99,109 @@ } }, "params": { - "UseDualStack": false, "Region": "cn-north-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://aoss-fips.us-gov-east-1.api.aws" + } }, "params": { - "UseDualStack": true, - "Region": "us-iso-east-1", - "UseFIPS": true + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://aoss-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://aoss-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-iso-east-1", - "UseFIPS": true + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://aoss.us-gov-east-1.api.aws" + } }, "params": { - "UseDualStack": true, - "Region": "us-iso-east-1", - "UseFIPS": false + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://aoss.us-iso-east-1.c2s.ic.gov" + "url": "https://aoss.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "Region": "us-iso-east-1", - "UseFIPS": false + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://aoss-fips.us-east-1.api.aws" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, - "Region": "us-east-1", - "UseFIPS": true + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://aoss-fips.us-east-1.amazonaws.com" + "url": "https://aoss-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, - "Region": "us-east-1", - "UseFIPS": true + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://aoss.us-east-1.api.aws" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, - "Region": "us-east-1", - "UseFIPS": false + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://aoss.us-east-1.amazonaws.com" + "url": "https://aoss.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, - "Region": "us-east-1", - "UseFIPS": false + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { @@ -210,9 +210,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, "Region": "us-isob-east-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -223,9 +223,9 @@ } }, "params": { - "UseDualStack": false, "Region": "us-isob-east-1", - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -234,9 +234,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, "Region": "us-isob-east-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -247,22 +247,35 @@ } }, "params": { - "UseDualStack": false, "Region": "us-isob-east-1", - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { - "UseDualStack": false, "Region": "us-east-1", "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -272,9 +285,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "Region": "us-east-1", "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -284,11 +297,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "Region": "us-east-1", "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/opensearchserverless/2021-11-01/paginators-1.json b/models/apis/opensearchserverless/2021-11-01/paginators-1.json index 3eddbddb653..ac3b638b76e 100644 --- a/models/apis/opensearchserverless/2021-11-01/paginators-1.json +++ b/models/apis/opensearchserverless/2021-11-01/paginators-1.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/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index aa86d857875..1e0b09f316b 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -10609,6 +10609,7 @@ "hostname" : "license-manager-user-subscriptions-fips.us-west-2.amazonaws.com" }, "il-central-1" : { }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { @@ -20018,8 +20019,18 @@ }, "states" : { "endpoints" : { - "cn-north-1" : { }, - "cn-northwest-1" : { } + "cn-north-1" : { + "variants" : [ { + "hostname" : "states.cn-north-1.api.amazonwebservices.com.cn", + "tags" : [ "dualstack" ] + } ] + }, + "cn-northwest-1" : { + "variants" : [ { + "hostname" : "states.cn-northwest-1.api.amazonwebservices.com.cn", + "tags" : [ "dualstack" ] + } ] + } } }, "storagegateway" : { @@ -22138,12 +22149,24 @@ "variants" : [ { "hostname" : "glue-fips.us-gov-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "glue-fips.us-gov-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "glue.us-gov-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-gov-west-1" : { "variants" : [ { "hostname" : "glue-fips.us-gov-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "glue-fips.us-gov-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "glue.us-gov-west-1.api.aws", + "tags" : [ "dualstack" ] } ] } } diff --git a/service/codepipeline/api.go b/service/codepipeline/api.go index 6ce1d31c48c..d369bef5894 100644 --- a/service/codepipeline/api.go +++ b/service/codepipeline/api.go @@ -9018,6 +9018,198 @@ func (s *GetThirdPartyJobDetailsOutput) SetJobDetails(v *ThirdPartyJobDetails) * return s } +// 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. +type GitConfiguration struct { + _ struct{} `type:"structure"` + + // 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 []*GitPushFilter `locationName:"push" min:"1" type:"list"` + + // 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 is a required field + SourceActionName *string `locationName:"sourceActionName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GitConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GitConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GitConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GitConfiguration"} + if s.Push != nil && len(s.Push) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Push", 1)) + } + if s.SourceActionName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceActionName")) + } + if s.SourceActionName != nil && len(*s.SourceActionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceActionName", 1)) + } + if s.Push != nil { + for i, v := range s.Push { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Push", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPush sets the Push field's value. +func (s *GitConfiguration) SetPush(v []*GitPushFilter) *GitConfiguration { + s.Push = v + return s +} + +// SetSourceActionName sets the SourceActionName field's value. +func (s *GitConfiguration) SetSourceActionName(v string) *GitConfiguration { + s.SourceActionName = &v + return s +} + +// 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. +type GitPushFilter struct { + _ struct{} `type:"structure"` + + // The field that contains the details for the Git tags trigger configuration. + Tags *GitTagFilterCriteria `locationName:"tags" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GitPushFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GitPushFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GitPushFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GitPushFilter"} + if s.Tags != nil { + if err := s.Tags.Validate(); err != nil { + invalidParams.AddNested("Tags", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTags sets the Tags field's value. +func (s *GitPushFilter) SetTags(v *GitTagFilterCriteria) *GitPushFilter { + s.Tags = v + return s +} + +// The Git tags specified as filter criteria for whether a Git tag repository +// event will start the pipeline. +type GitTagFilterCriteria struct { + _ struct{} `type:"structure"` + + // The list of patterns of Git tags that, when pushed, are to be excluded from + // starting the pipeline. + Excludes []*string `locationName:"excludes" min:"1" type:"list"` + + // The list of patterns of Git tags that, when pushed, are to be included as + // criteria that starts the pipeline. + Includes []*string `locationName:"includes" min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GitTagFilterCriteria) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GitTagFilterCriteria) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GitTagFilterCriteria) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GitTagFilterCriteria"} + if s.Excludes != nil && len(s.Excludes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Excludes", 1)) + } + if s.Includes != nil && len(s.Includes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Includes", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExcludes sets the Excludes field's value. +func (s *GitTagFilterCriteria) SetExcludes(v []*string) *GitTagFilterCriteria { + s.Excludes = v + return s +} + +// SetIncludes sets the Includes field's value. +func (s *GitTagFilterCriteria) SetIncludes(v []*string) *GitTagFilterCriteria { + s.Includes = v + return s +} + // Represents information about an artifact to be worked on, such as a test // or build artifact. type InputArtifact struct { @@ -11501,6 +11693,26 @@ type PipelineDeclaration struct { // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // 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 (https://aws.amazon.com/codepipeline/pricing/). + // + // For information about which type of pipeline to choose, see What type of + // pipeline is right for me? (https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html). + PipelineType *string `locationName:"pipelineType" type:"string" enum:"PipelineType"` + // The Amazon Resource Name (ARN) for CodePipeline to use to either perform // actions with no actionRoleArn, or to use to assume roles for actions with // an actionRoleArn. @@ -11513,6 +11725,18 @@ type PipelineDeclaration struct { // Stages is a required field Stages []*StageDeclaration `locationName:"stages" type:"list" required:"true"` + // 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 []*PipelineTriggerDeclaration `locationName:"triggers" type:"list"` + + // 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 []*PipelineVariableDeclaration `locationName:"variables" type:"list"` + // 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 *int64 `locationName:"version" min:"1" type:"integer"` @@ -11579,6 +11803,26 @@ func (s *PipelineDeclaration) Validate() error { } } } + if s.Triggers != nil { + for i, v := range s.Triggers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Variables != nil { + for i, v := range s.Variables { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Variables", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -11604,6 +11848,12 @@ func (s *PipelineDeclaration) SetName(v string) *PipelineDeclaration { return s } +// SetPipelineType sets the PipelineType field's value. +func (s *PipelineDeclaration) SetPipelineType(v string) *PipelineDeclaration { + s.PipelineType = &v + return s +} + // SetRoleArn sets the RoleArn field's value. func (s *PipelineDeclaration) SetRoleArn(v string) *PipelineDeclaration { s.RoleArn = &v @@ -11616,6 +11866,18 @@ func (s *PipelineDeclaration) SetStages(v []*StageDeclaration) *PipelineDeclarat return s } +// SetTriggers sets the Triggers field's value. +func (s *PipelineDeclaration) SetTriggers(v []*PipelineTriggerDeclaration) *PipelineDeclaration { + s.Triggers = v + return s +} + +// SetVariables sets the Variables field's value. +func (s *PipelineDeclaration) SetVariables(v []*PipelineVariableDeclaration) *PipelineDeclaration { + s.Variables = v + return s +} + // SetVersion sets the Version field's value. func (s *PipelineDeclaration) SetVersion(v int64) *PipelineDeclaration { s.Version = &v @@ -11665,6 +11927,12 @@ type PipelineExecution struct { // A summary that contains a description of the pipeline execution status. StatusSummary *string `locationName:"statusSummary" type:"string"` + + // The interaction or event that started a pipeline execution. + Trigger *ExecutionTrigger `locationName:"trigger" type:"structure"` + + // A list of pipeline variables used for the pipeline execution. + Variables []*ResolvedPipelineVariable `locationName:"variables" type:"list"` } // String returns the string representation. @@ -11721,6 +11989,18 @@ func (s *PipelineExecution) SetStatusSummary(v string) *PipelineExecution { return s } +// SetTrigger sets the Trigger field's value. +func (s *PipelineExecution) SetTrigger(v *ExecutionTrigger) *PipelineExecution { + s.Trigger = v + return s +} + +// SetVariables sets the Variables field's value. +func (s *PipelineExecution) SetVariables(v []*ResolvedPipelineVariable) *PipelineExecution { + s.Variables = v + return s +} + // The pipeline execution was specified in an invalid format or cannot be found, // or an execution ID does not belong to the specified pipeline. type PipelineExecutionNotFoundException struct { @@ -12161,6 +12441,26 @@ type PipelineSummary struct { // The name of the pipeline. Name *string `locationName:"name" min:"1" type:"string"` + // 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 (https://aws.amazon.com/codepipeline/pricing/). + // + // For information about which type of pipeline to choose, see What type of + // pipeline is right for me? (https://docs.aws.amazon.com/codepipeline/latest/userguide/pipeline-types-planning.html). + PipelineType *string `locationName:"pipelineType" type:"string" enum:"PipelineType"` + // The date and time of the last update to the pipeline, in timestamp format. Updated *time.Time `locationName:"updated" type:"timestamp"` @@ -12198,6 +12498,12 @@ func (s *PipelineSummary) SetName(v string) *PipelineSummary { return s } +// SetPipelineType sets the PipelineType field's value. +func (s *PipelineSummary) SetPipelineType(v string) *PipelineSummary { + s.PipelineType = &v + return s +} + // SetUpdated sets the Updated field's value. func (s *PipelineSummary) SetUpdated(v time.Time) *PipelineSummary { s.Updated = &v @@ -12210,6 +12516,220 @@ func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary { return s } +// 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. +type PipelineTriggerDeclaration struct { + _ struct{} `type:"structure"` + + // Provides the filter criteria and the source stage for the repository event + // that starts the pipeline, such as Git tags. + // + // GitConfiguration is a required field + GitConfiguration *GitConfiguration `locationName:"gitConfiguration" type:"structure" required:"true"` + + // The source provider for the event, such as connections configured for a repository + // with Git tags, for the specified trigger configuration. + // + // ProviderType is a required field + ProviderType *string `locationName:"providerType" type:"string" required:"true" enum:"PipelineTriggerProviderType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineTriggerDeclaration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineTriggerDeclaration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PipelineTriggerDeclaration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PipelineTriggerDeclaration"} + if s.GitConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("GitConfiguration")) + } + if s.ProviderType == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderType")) + } + if s.GitConfiguration != nil { + if err := s.GitConfiguration.Validate(); err != nil { + invalidParams.AddNested("GitConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGitConfiguration sets the GitConfiguration field's value. +func (s *PipelineTriggerDeclaration) SetGitConfiguration(v *GitConfiguration) *PipelineTriggerDeclaration { + s.GitConfiguration = v + return s +} + +// SetProviderType sets the ProviderType field's value. +func (s *PipelineTriggerDeclaration) SetProviderType(v string) *PipelineTriggerDeclaration { + s.ProviderType = &v + return s +} + +// A pipeline-level variable used for a pipeline execution. +type PipelineVariable struct { + _ struct{} `type:"structure"` + + // The name of a pipeline-level variable. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The value of a pipeline-level variable. + // + // Value is a required field + Value *string `locationName:"value" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineVariable) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineVariable) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PipelineVariable) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PipelineVariable"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *PipelineVariable) SetName(v string) *PipelineVariable { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PipelineVariable) SetValue(v string) *PipelineVariable { + s.Value = &v + return s +} + +// A variable declared at the pipeline level. +type PipelineVariableDeclaration struct { + _ struct{} `type:"structure"` + + // The value of a pipeline-level variable. + DefaultValue *string `locationName:"defaultValue" min:"1" type:"string"` + + // 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 *string `locationName:"description" type:"string"` + + // The name of a pipeline-level variable. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineVariableDeclaration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineVariableDeclaration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PipelineVariableDeclaration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PipelineVariableDeclaration"} + if s.DefaultValue != nil && len(*s.DefaultValue) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DefaultValue", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *PipelineVariableDeclaration) SetDefaultValue(v string) *PipelineVariableDeclaration { + s.DefaultValue = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PipelineVariableDeclaration) SetDescription(v string) *PipelineVariableDeclaration { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *PipelineVariableDeclaration) SetName(v string) *PipelineVariableDeclaration { + s.Name = &v + return s +} + // The pipeline version was specified in an invalid format or cannot be found. type PipelineVersionNotFoundException struct { _ struct{} `type:"structure"` @@ -13473,6 +13993,47 @@ func (s *RequestFailedException) RequestID() string { return s.RespMetadata.RequestID } +// A pipeline-level variable used for a pipeline execution. +type ResolvedPipelineVariable struct { + _ struct{} `type:"structure"` + + // The name of a pipeline-level variable. + Name *string `locationName:"name" type:"string"` + + // The resolved value of a pipeline-level variable. + ResolvedValue *string `locationName:"resolvedValue" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResolvedPipelineVariable) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResolvedPipelineVariable) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ResolvedPipelineVariable) SetName(v string) *ResolvedPipelineVariable { + s.Name = &v + return s +} + +// SetResolvedValue sets the ResolvedValue field's value. +func (s *ResolvedPipelineVariable) SetResolvedValue(v string) *ResolvedPipelineVariable { + s.ResolvedValue = &v + return s +} + // The resource was specified in an invalid format. type ResourceNotFoundException struct { _ struct{} `type:"structure"` @@ -14203,6 +14764,11 @@ type StartPipelineExecutionInput struct { // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // 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 []*PipelineVariable `locationName:"variables" min:"1" type:"list"` } // String returns the string representation. @@ -14235,6 +14801,19 @@ func (s *StartPipelineExecutionInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.Variables != nil && len(s.Variables) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Variables", 1)) + } + if s.Variables != nil { + for i, v := range s.Variables { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Variables", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -14254,6 +14833,12 @@ func (s *StartPipelineExecutionInput) SetName(v string) *StartPipelineExecutionI return s } +// SetVariables sets the Variables field's value. +func (s *StartPipelineExecutionInput) SetVariables(v []*PipelineVariable) *StartPipelineExecutionInput { + s.Variables = v + return s +} + // Represents the output of a StartPipelineExecution action. type StartPipelineExecutionOutput struct { _ struct{} `type:"structure"` @@ -15862,6 +16447,34 @@ func PipelineExecutionStatus_Values() []string { } } +const ( + // PipelineTriggerProviderTypeCodeStarSourceConnection is a PipelineTriggerProviderType enum value + PipelineTriggerProviderTypeCodeStarSourceConnection = "CodeStarSourceConnection" +) + +// PipelineTriggerProviderType_Values returns all elements of the PipelineTriggerProviderType enum +func PipelineTriggerProviderType_Values() []string { + return []string{ + PipelineTriggerProviderTypeCodeStarSourceConnection, + } +} + +const ( + // PipelineTypeV1 is a PipelineType enum value + PipelineTypeV1 = "V1" + + // PipelineTypeV2 is a PipelineType enum value + PipelineTypeV2 = "V2" +) + +// PipelineType_Values returns all elements of the PipelineType enum +func PipelineType_Values() []string { + return []string{ + PipelineTypeV1, + PipelineTypeV2, + } +} + const ( // StageExecutionStatusCancelled is a StageExecutionStatus enum value StageExecutionStatusCancelled = "Cancelled" @@ -15944,6 +16557,9 @@ const ( // TriggerTypePutActionRevision is a TriggerType enum value TriggerTypePutActionRevision = "PutActionRevision" + + // TriggerTypeWebhookV2 is a TriggerType enum value + TriggerTypeWebhookV2 = "WebhookV2" ) // TriggerType_Values returns all elements of the TriggerType enum @@ -15955,6 +16571,7 @@ func TriggerType_Values() []string { TriggerTypeWebhook, TriggerTypeCloudWatchEvent, TriggerTypePutActionRevision, + TriggerTypeWebhookV2, } } diff --git a/service/ec2/api.go b/service/ec2/api.go index e25084e8b3e..2fb826de373 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -103706,8 +103706,8 @@ type DescribeSpotPriceHistoryInput struct { // 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. + // (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 []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // Filters the results by the specified instance types. @@ -126400,6 +126400,15 @@ type HibernationOptionsRequest struct { // 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 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotMarketOptions.html)), + // 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 *bool `type:"boolean"` } @@ -170987,7 +170996,18 @@ type SpotMarketOptions struct { // Deprecated. BlockDurationMinutes *int64 `type:"integer"` - // The behavior when a Spot Instance is interrupted. The default is terminate. + // The behavior when a Spot Instance is interrupted. + // + // If Configured (for HibernationOptions (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html)) + // 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 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html)) + // 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 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interruption-behavior.html) + // in the Amazon EC2 User Guide. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"` // The maximum hourly price that you're willing to pay for a Spot Instance. diff --git a/service/eks/api.go b/service/eks/api.go index 41b36be7be5..fdd08172cc5 100644 --- a/service/eks/api.go +++ b/service/eks/api.go @@ -12874,6 +12874,45 @@ const ( // ClusterIssueCodeResourceNotFound is a ClusterIssueCode enum value ClusterIssueCodeResourceNotFound = "ResourceNotFound" + + // ClusterIssueCodeIamRoleNotFound is a ClusterIssueCode enum value + ClusterIssueCodeIamRoleNotFound = "IamRoleNotFound" + + // ClusterIssueCodeVpcNotFound is a ClusterIssueCode enum value + ClusterIssueCodeVpcNotFound = "VpcNotFound" + + // ClusterIssueCodeInsufficientFreeAddresses is a ClusterIssueCode enum value + ClusterIssueCodeInsufficientFreeAddresses = "InsufficientFreeAddresses" + + // ClusterIssueCodeEc2serviceNotSubscribed is a ClusterIssueCode enum value + ClusterIssueCodeEc2serviceNotSubscribed = "Ec2ServiceNotSubscribed" + + // ClusterIssueCodeEc2subnetNotFound is a ClusterIssueCode enum value + ClusterIssueCodeEc2subnetNotFound = "Ec2SubnetNotFound" + + // ClusterIssueCodeEc2securityGroupNotFound is a ClusterIssueCode enum value + ClusterIssueCodeEc2securityGroupNotFound = "Ec2SecurityGroupNotFound" + + // ClusterIssueCodeKmsGrantRevoked is a ClusterIssueCode enum value + ClusterIssueCodeKmsGrantRevoked = "KmsGrantRevoked" + + // ClusterIssueCodeKmsKeyNotFound is a ClusterIssueCode enum value + ClusterIssueCodeKmsKeyNotFound = "KmsKeyNotFound" + + // ClusterIssueCodeKmsKeyMarkedForDeletion is a ClusterIssueCode enum value + ClusterIssueCodeKmsKeyMarkedForDeletion = "KmsKeyMarkedForDeletion" + + // ClusterIssueCodeKmsKeyDisabled is a ClusterIssueCode enum value + ClusterIssueCodeKmsKeyDisabled = "KmsKeyDisabled" + + // ClusterIssueCodeStsRegionalEndpointDisabled is a ClusterIssueCode enum value + ClusterIssueCodeStsRegionalEndpointDisabled = "StsRegionalEndpointDisabled" + + // ClusterIssueCodeUnsupportedVersion is a ClusterIssueCode enum value + ClusterIssueCodeUnsupportedVersion = "UnsupportedVersion" + + // ClusterIssueCodeOther is a ClusterIssueCode enum value + ClusterIssueCodeOther = "Other" ) // ClusterIssueCode_Values returns all elements of the ClusterIssueCode enum @@ -12885,6 +12924,19 @@ func ClusterIssueCode_Values() []string { ClusterIssueCodeInternalFailure, ClusterIssueCodeResourceLimitExceeded, ClusterIssueCodeResourceNotFound, + ClusterIssueCodeIamRoleNotFound, + ClusterIssueCodeVpcNotFound, + ClusterIssueCodeInsufficientFreeAddresses, + ClusterIssueCodeEc2serviceNotSubscribed, + ClusterIssueCodeEc2subnetNotFound, + ClusterIssueCodeEc2securityGroupNotFound, + ClusterIssueCodeKmsGrantRevoked, + ClusterIssueCodeKmsKeyNotFound, + ClusterIssueCodeKmsKeyMarkedForDeletion, + ClusterIssueCodeKmsKeyDisabled, + ClusterIssueCodeStsRegionalEndpointDisabled, + ClusterIssueCodeUnsupportedVersion, + ClusterIssueCodeOther, } } @@ -13417,6 +13469,15 @@ const ( // UpdateParamTypeMaxUnavailablePercentage is a UpdateParamType enum value UpdateParamTypeMaxUnavailablePercentage = "MaxUnavailablePercentage" + + // UpdateParamTypeConfigurationValues is a UpdateParamType enum value + UpdateParamTypeConfigurationValues = "ConfigurationValues" + + // UpdateParamTypeSecurityGroups is a UpdateParamType enum value + UpdateParamTypeSecurityGroups = "SecurityGroups" + + // UpdateParamTypeSubnets is a UpdateParamType enum value + UpdateParamTypeSubnets = "Subnets" ) // UpdateParamType_Values returns all elements of the UpdateParamType enum @@ -13445,6 +13506,9 @@ func UpdateParamType_Values() []string { UpdateParamTypeResolveConflicts, UpdateParamTypeMaxUnavailable, UpdateParamTypeMaxUnavailablePercentage, + UpdateParamTypeConfigurationValues, + UpdateParamTypeSecurityGroups, + UpdateParamTypeSubnets, } } @@ -13496,6 +13560,9 @@ const ( // UpdateTypeAddonUpdate is a UpdateType enum value UpdateTypeAddonUpdate = "AddonUpdate" + + // UpdateTypeVpcConfigUpdate is a UpdateType enum value + UpdateTypeVpcConfigUpdate = "VpcConfigUpdate" ) // UpdateType_Values returns all elements of the UpdateType enum @@ -13509,5 +13576,6 @@ func UpdateType_Values() []string { UpdateTypeDisassociateIdentityProviderConfig, UpdateTypeAssociateEncryptionConfig, UpdateTypeAddonUpdate, + UpdateTypeVpcConfigUpdate, } } diff --git a/service/migrationhubconfig/api.go b/service/migrationhubconfig/api.go index 339247f283c..793e1f1ba16 100644 --- a/service/migrationhubconfig/api.go +++ b/service/migrationhubconfig/api.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opCreateHomeRegionControl = "CreateHomeRegionControl" @@ -110,6 +111,103 @@ func (c *MigrationHubConfig) CreateHomeRegionControlWithContext(ctx aws.Context, return out, req.Send() } +const opDeleteHomeRegionControl = "DeleteHomeRegionControl" + +// DeleteHomeRegionControlRequest generates a "aws/request.Request" representing the +// client's request for the DeleteHomeRegionControl operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteHomeRegionControl for more information on using the DeleteHomeRegionControl +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteHomeRegionControlRequest method. +// req, resp := client.DeleteHomeRegionControlRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DeleteHomeRegionControl +func (c *MigrationHubConfig) DeleteHomeRegionControlRequest(input *DeleteHomeRegionControlInput) (req *request.Request, output *DeleteHomeRegionControlOutput) { + op := &request.Operation{ + Name: opDeleteHomeRegionControl, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteHomeRegionControlInput{} + } + + output = &DeleteHomeRegionControlOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteHomeRegionControl API operation for AWS Migration Hub Config. +// +// 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Migration Hub Config's +// API operation DeleteHomeRegionControl for usage and error information. +// +// Returned Error Types: +// +// - InternalServerError +// Exception raised when an internal, configuration, or dependency error is +// encountered. +// +// - ServiceUnavailableException +// Exception raised when a request fails due to temporary unavailability of +// the service. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - InvalidInputException +// Exception raised when the provided input violates a policy constraint or +// is entered in the wrong format or data type. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DeleteHomeRegionControl +func (c *MigrationHubConfig) DeleteHomeRegionControl(input *DeleteHomeRegionControlInput) (*DeleteHomeRegionControlOutput, error) { + req, out := c.DeleteHomeRegionControlRequest(input) + return out, req.Send() +} + +// DeleteHomeRegionControlWithContext is the same as DeleteHomeRegionControl with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteHomeRegionControl for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MigrationHubConfig) DeleteHomeRegionControlWithContext(ctx aws.Context, input *DeleteHomeRegionControlInput, opts ...request.Option) (*DeleteHomeRegionControlOutput, error) { + req, out := c.DeleteHomeRegionControlRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeHomeRegionControls = "DescribeHomeRegionControls" // DescribeHomeRegionControlsRequest generates a "aws/request.Request" representing the @@ -534,6 +632,78 @@ func (s *CreateHomeRegionControlOutput) SetHomeRegionControl(v *HomeRegionContro return s } +type DeleteHomeRegionControlInput struct { + _ struct{} `type:"structure"` + + // 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. + // + // ControlId is a required field + ControlId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteHomeRegionControlInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteHomeRegionControlInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteHomeRegionControlInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteHomeRegionControlInput"} + if s.ControlId == nil { + invalidParams.Add(request.NewErrParamRequired("ControlId")) + } + if s.ControlId != nil && len(*s.ControlId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ControlId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetControlId sets the ControlId field's value. +func (s *DeleteHomeRegionControlInput) SetControlId(v string) *DeleteHomeRegionControlInput { + s.ControlId = &v + return s +} + +type DeleteHomeRegionControlOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteHomeRegionControlOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteHomeRegionControlOutput) GoString() string { + return s.String() +} + type DescribeHomeRegionControlsInput struct { _ struct{} `type:"structure"` diff --git a/service/migrationhubconfig/migrationhubconfigiface/interface.go b/service/migrationhubconfig/migrationhubconfigiface/interface.go index 693363c578f..bc5b142bd6f 100644 --- a/service/migrationhubconfig/migrationhubconfigiface/interface.go +++ b/service/migrationhubconfig/migrationhubconfigiface/interface.go @@ -64,6 +64,10 @@ type MigrationHubConfigAPI interface { CreateHomeRegionControlWithContext(aws.Context, *migrationhubconfig.CreateHomeRegionControlInput, ...request.Option) (*migrationhubconfig.CreateHomeRegionControlOutput, error) CreateHomeRegionControlRequest(*migrationhubconfig.CreateHomeRegionControlInput) (*request.Request, *migrationhubconfig.CreateHomeRegionControlOutput) + DeleteHomeRegionControl(*migrationhubconfig.DeleteHomeRegionControlInput) (*migrationhubconfig.DeleteHomeRegionControlOutput, error) + DeleteHomeRegionControlWithContext(aws.Context, *migrationhubconfig.DeleteHomeRegionControlInput, ...request.Option) (*migrationhubconfig.DeleteHomeRegionControlOutput, error) + DeleteHomeRegionControlRequest(*migrationhubconfig.DeleteHomeRegionControlInput) (*request.Request, *migrationhubconfig.DeleteHomeRegionControlOutput) + DescribeHomeRegionControls(*migrationhubconfig.DescribeHomeRegionControlsInput) (*migrationhubconfig.DescribeHomeRegionControlsOutput, error) DescribeHomeRegionControlsWithContext(aws.Context, *migrationhubconfig.DescribeHomeRegionControlsInput, ...request.Option) (*migrationhubconfig.DescribeHomeRegionControlsOutput, error) DescribeHomeRegionControlsRequest(*migrationhubconfig.DescribeHomeRegionControlsInput) (*request.Request, *migrationhubconfig.DescribeHomeRegionControlsOutput) diff --git a/service/migrationhubstrategyrecommendations/api.go b/service/migrationhubstrategyrecommendations/api.go index 90ec9a2301a..60e2a31513d 100644 --- a/service/migrationhubstrategyrecommendations/api.go +++ b/service/migrationhubstrategyrecommendations/api.go @@ -963,6 +963,153 @@ func (c *MigrationHubStrategyRecommendations) GetServerStrategiesWithContext(ctx return out, req.Send() } +const opListAnalyzableServers = "ListAnalyzableServers" + +// ListAnalyzableServersRequest generates a "aws/request.Request" representing the +// client's request for the ListAnalyzableServers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAnalyzableServers for more information on using the ListAnalyzableServers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListAnalyzableServersRequest method. +// req, resp := client.ListAnalyzableServersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/ListAnalyzableServers +func (c *MigrationHubStrategyRecommendations) ListAnalyzableServersRequest(input *ListAnalyzableServersInput) (req *request.Request, output *ListAnalyzableServersOutput) { + op := &request.Operation{ + Name: opListAnalyzableServers, + HTTPMethod: "POST", + HTTPPath: "/list-analyzable-servers", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAnalyzableServersInput{} + } + + output = &ListAnalyzableServersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAnalyzableServers API operation for Migration Hub Strategy Recommendations. +// +// Retrieves a list of all the servers fetched from customer vCenter using Strategy +// Recommendation Collector. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Migration Hub Strategy Recommendations's +// API operation ListAnalyzableServers for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// The user does not have permission to perform the action. Check the AWS Identity +// and Access Management (IAM) policy associated with this user. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - ValidationException +// The request body isn't valid. +// +// - InternalServerException +// The server experienced an internal error. Try again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/ListAnalyzableServers +func (c *MigrationHubStrategyRecommendations) ListAnalyzableServers(input *ListAnalyzableServersInput) (*ListAnalyzableServersOutput, error) { + req, out := c.ListAnalyzableServersRequest(input) + return out, req.Send() +} + +// ListAnalyzableServersWithContext is the same as ListAnalyzableServers with the addition of +// the ability to pass a context and additional request options. +// +// See ListAnalyzableServers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MigrationHubStrategyRecommendations) ListAnalyzableServersWithContext(ctx aws.Context, input *ListAnalyzableServersInput, opts ...request.Option) (*ListAnalyzableServersOutput, error) { + req, out := c.ListAnalyzableServersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAnalyzableServersPages iterates over the pages of a ListAnalyzableServers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAnalyzableServers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAnalyzableServers operation. +// pageNum := 0 +// err := client.ListAnalyzableServersPages(params, +// func(page *migrationhubstrategyrecommendations.ListAnalyzableServersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MigrationHubStrategyRecommendations) ListAnalyzableServersPages(input *ListAnalyzableServersInput, fn func(*ListAnalyzableServersOutput, bool) bool) error { + return c.ListAnalyzableServersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAnalyzableServersPagesWithContext same as ListAnalyzableServersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MigrationHubStrategyRecommendations) ListAnalyzableServersPagesWithContext(ctx aws.Context, input *ListAnalyzableServersInput, fn func(*ListAnalyzableServersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAnalyzableServersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAnalyzableServersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAnalyzableServersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListApplicationComponents = "ListApplicationComponents" // ListApplicationComponentsRequest generates a "aws/request.Request" representing the @@ -2291,6 +2438,65 @@ func (s *AnalysisStatusUnion) SetSrcCodeOrDbAnalysisStatus(v string) *AnalysisSt return s } +// Summary information about an analyzable server. +type AnalyzableServerSummary struct { + _ struct{} `type:"structure"` + + // The host name of the analyzable server. + Hostname *string `locationName:"hostname" type:"string"` + + // The ip address of the analyzable server. + IpAddress *string `locationName:"ipAddress" type:"string"` + + // The data source of the analyzable server. + Source *string `locationName:"source" type:"string"` + + // The virtual machine id of the analyzable server. + VmId *string `locationName:"vmId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnalyzableServerSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnalyzableServerSummary) GoString() string { + return s.String() +} + +// SetHostname sets the Hostname field's value. +func (s *AnalyzableServerSummary) SetHostname(v string) *AnalyzableServerSummary { + s.Hostname = &v + return s +} + +// SetIpAddress sets the IpAddress field's value. +func (s *AnalyzableServerSummary) SetIpAddress(v string) *AnalyzableServerSummary { + s.IpAddress = &v + return s +} + +// SetSource sets the Source field's value. +func (s *AnalyzableServerSummary) SetSource(v string) *AnalyzableServerSummary { + s.Source = &v + return s +} + +// SetVmId sets the VmId field's value. +func (s *AnalyzableServerSummary) SetVmId(v string) *AnalyzableServerSummary { + s.VmId = &v + return s +} + // The combination of the existing analyzers. type AnalyzerNameUnion struct { _ struct{} `type:"structure"` @@ -5107,6 +5313,102 @@ func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } +// Represents input for ListAnalyzableServers operation. +type ListAnalyzableServersInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to include in the response. The maximum value + // is 100. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // 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. + NextToken *string `locationName:"nextToken" type:"string"` + + // Specifies whether to sort by ascending (ASC) or descending (DESC) order. + Sort *string `locationName:"sort" type:"string" enum:"SortOrder"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnalyzableServersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnalyzableServersInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAnalyzableServersInput) SetMaxResults(v int64) *ListAnalyzableServersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAnalyzableServersInput) SetNextToken(v string) *ListAnalyzableServersInput { + s.NextToken = &v + return s +} + +// SetSort sets the Sort field's value. +func (s *ListAnalyzableServersInput) SetSort(v string) *ListAnalyzableServersInput { + s.Sort = &v + return s +} + +// Represents output for ListAnalyzableServers operation. +type ListAnalyzableServersOutput struct { + _ struct{} `type:"structure"` + + // The list of analyzable servers with summary information about each server. + AnalyzableServers []*AnalyzableServerSummary `locationName:"analyzableServers" type:"list"` + + // The token you use to retrieve the next set of results, or null if there are + // no more results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnalyzableServersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnalyzableServersOutput) GoString() string { + return s.String() +} + +// SetAnalyzableServers sets the AnalyzableServers field's value. +func (s *ListAnalyzableServersOutput) SetAnalyzableServers(v []*AnalyzableServerSummary) *ListAnalyzableServersOutput { + s.AnalyzableServers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAnalyzableServersOutput) SetNextToken(v string) *ListAnalyzableServersOutput { + s.NextToken = &v + return s +} + type ListApplicationComponentsInput struct { _ struct{} `type:"structure"` @@ -6975,6 +7277,9 @@ func (s *SourceCodeRepository) SetVersionControlType(v string) *SourceCodeReposi type StartAssessmentInput struct { _ struct{} `type:"structure"` + // The data source type of an assessment to be started. + AssessmentDataSourceType *string `locationName:"assessmentDataSourceType" type:"string" enum:"AssessmentDataSourceType"` + // List of criteria for assessment. AssessmentTargets []*AssessmentTarget `locationName:"assessmentTargets" type:"list"` @@ -7025,6 +7330,12 @@ func (s *StartAssessmentInput) Validate() error { return nil } +// SetAssessmentDataSourceType sets the AssessmentDataSourceType field's value. +func (s *StartAssessmentInput) SetAssessmentDataSourceType(v string) *StartAssessmentInput { + s.AssessmentDataSourceType = &v + return s +} + // SetAssessmentTargets sets the AssessmentTargets field's value. func (s *StartAssessmentInput) SetAssessmentTargets(v []*AssessmentTarget) *StartAssessmentInput { s.AssessmentTargets = v @@ -8230,6 +8541,26 @@ func ApplicationMode_Values() []string { } } +const ( + // AssessmentDataSourceTypeStrategyRecommendationsApplicationDataCollector is a AssessmentDataSourceType enum value + AssessmentDataSourceTypeStrategyRecommendationsApplicationDataCollector = "StrategyRecommendationsApplicationDataCollector" + + // AssessmentDataSourceTypeManualImport is a AssessmentDataSourceType enum value + AssessmentDataSourceTypeManualImport = "ManualImport" + + // AssessmentDataSourceTypeApplicationDiscoveryService is a AssessmentDataSourceType enum value + AssessmentDataSourceTypeApplicationDiscoveryService = "ApplicationDiscoveryService" +) + +// AssessmentDataSourceType_Values returns all elements of the AssessmentDataSourceType enum +func AssessmentDataSourceType_Values() []string { + return []string{ + AssessmentDataSourceTypeStrategyRecommendationsApplicationDataCollector, + AssessmentDataSourceTypeManualImport, + AssessmentDataSourceTypeApplicationDiscoveryService, + } +} + const ( // AssessmentStatusInProgress is a AssessmentStatus enum value AssessmentStatusInProgress = "IN_PROGRESS" @@ -8359,6 +8690,9 @@ const ( // DataSourceTypeImport is a DataSourceType enum value DataSourceTypeImport = "Import" + + // DataSourceTypeStrategyRecommendationsApplicationDataCollector is a DataSourceType enum value + DataSourceTypeStrategyRecommendationsApplicationDataCollector = "StrategyRecommendationsApplicationDataCollector" ) // DataSourceType_Values returns all elements of the DataSourceType enum @@ -8367,6 +8701,7 @@ func DataSourceType_Values() []string { DataSourceTypeApplicationDiscoveryService, DataSourceTypeMpa, DataSourceTypeImport, + DataSourceTypeStrategyRecommendationsApplicationDataCollector, } } diff --git a/service/migrationhubstrategyrecommendations/migrationhubstrategyrecommendationsiface/interface.go b/service/migrationhubstrategyrecommendations/migrationhubstrategyrecommendationsiface/interface.go index 313e8a2e8c3..7850daf1c66 100644 --- a/service/migrationhubstrategyrecommendations/migrationhubstrategyrecommendationsiface/interface.go +++ b/service/migrationhubstrategyrecommendations/migrationhubstrategyrecommendationsiface/interface.go @@ -103,6 +103,13 @@ type MigrationHubStrategyRecommendationsAPI interface { GetServerStrategiesWithContext(aws.Context, *migrationhubstrategyrecommendations.GetServerStrategiesInput, ...request.Option) (*migrationhubstrategyrecommendations.GetServerStrategiesOutput, error) GetServerStrategiesRequest(*migrationhubstrategyrecommendations.GetServerStrategiesInput) (*request.Request, *migrationhubstrategyrecommendations.GetServerStrategiesOutput) + ListAnalyzableServers(*migrationhubstrategyrecommendations.ListAnalyzableServersInput) (*migrationhubstrategyrecommendations.ListAnalyzableServersOutput, error) + ListAnalyzableServersWithContext(aws.Context, *migrationhubstrategyrecommendations.ListAnalyzableServersInput, ...request.Option) (*migrationhubstrategyrecommendations.ListAnalyzableServersOutput, error) + ListAnalyzableServersRequest(*migrationhubstrategyrecommendations.ListAnalyzableServersInput) (*request.Request, *migrationhubstrategyrecommendations.ListAnalyzableServersOutput) + + ListAnalyzableServersPages(*migrationhubstrategyrecommendations.ListAnalyzableServersInput, func(*migrationhubstrategyrecommendations.ListAnalyzableServersOutput, bool) bool) error + ListAnalyzableServersPagesWithContext(aws.Context, *migrationhubstrategyrecommendations.ListAnalyzableServersInput, func(*migrationhubstrategyrecommendations.ListAnalyzableServersOutput, bool) bool, ...request.Option) error + ListApplicationComponents(*migrationhubstrategyrecommendations.ListApplicationComponentsInput) (*migrationhubstrategyrecommendations.ListApplicationComponentsOutput, error) ListApplicationComponentsWithContext(aws.Context, *migrationhubstrategyrecommendations.ListApplicationComponentsInput, ...request.Option) (*migrationhubstrategyrecommendations.ListApplicationComponentsOutput, error) ListApplicationComponentsRequest(*migrationhubstrategyrecommendations.ListApplicationComponentsInput) (*request.Request, *migrationhubstrategyrecommendations.ListApplicationComponentsOutput) diff --git a/service/opensearchserverless/api.go b/service/opensearchserverless/api.go index d302e3b846d..cfe872bfc7a 100644 --- a/service/opensearchserverless/api.go +++ b/service/opensearchserverless/api.go @@ -97,6 +97,174 @@ func (c *OpenSearchServerless) BatchGetCollectionWithContext(ctx aws.Context, in return out, req.Send() } +const opBatchGetEffectiveLifecyclePolicy = "BatchGetEffectiveLifecyclePolicy" + +// BatchGetEffectiveLifecyclePolicyRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetEffectiveLifecyclePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetEffectiveLifecyclePolicy for more information on using the BatchGetEffectiveLifecyclePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchGetEffectiveLifecyclePolicyRequest method. +// req, resp := client.BatchGetEffectiveLifecyclePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/BatchGetEffectiveLifecyclePolicy +func (c *OpenSearchServerless) BatchGetEffectiveLifecyclePolicyRequest(input *BatchGetEffectiveLifecyclePolicyInput) (req *request.Request, output *BatchGetEffectiveLifecyclePolicyOutput) { + op := &request.Operation{ + Name: opBatchGetEffectiveLifecyclePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetEffectiveLifecyclePolicyInput{} + } + + output = &BatchGetEffectiveLifecyclePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetEffectiveLifecyclePolicy API operation for OpenSearch Service Serverless. +// +// Returns a list of successful and failed retrievals for the OpenSearch Serverless +// indexes. For more information, see Viewing data lifecycle policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-list). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for OpenSearch Service Serverless's +// API operation BatchGetEffectiveLifecyclePolicy for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Thrown when an error internal to the service occurs while processing a request. +// +// - ValidationException +// Thrown when the HTTP request contains invalid input or is missing required +// input. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/BatchGetEffectiveLifecyclePolicy +func (c *OpenSearchServerless) BatchGetEffectiveLifecyclePolicy(input *BatchGetEffectiveLifecyclePolicyInput) (*BatchGetEffectiveLifecyclePolicyOutput, error) { + req, out := c.BatchGetEffectiveLifecyclePolicyRequest(input) + return out, req.Send() +} + +// BatchGetEffectiveLifecyclePolicyWithContext is the same as BatchGetEffectiveLifecyclePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetEffectiveLifecyclePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) BatchGetEffectiveLifecyclePolicyWithContext(ctx aws.Context, input *BatchGetEffectiveLifecyclePolicyInput, opts ...request.Option) (*BatchGetEffectiveLifecyclePolicyOutput, error) { + req, out := c.BatchGetEffectiveLifecyclePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchGetLifecyclePolicy = "BatchGetLifecyclePolicy" + +// BatchGetLifecyclePolicyRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetLifecyclePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetLifecyclePolicy for more information on using the BatchGetLifecyclePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchGetLifecyclePolicyRequest method. +// req, resp := client.BatchGetLifecyclePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/BatchGetLifecyclePolicy +func (c *OpenSearchServerless) BatchGetLifecyclePolicyRequest(input *BatchGetLifecyclePolicyInput) (req *request.Request, output *BatchGetLifecyclePolicyOutput) { + op := &request.Operation{ + Name: opBatchGetLifecyclePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetLifecyclePolicyInput{} + } + + output = &BatchGetLifecyclePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetLifecyclePolicy API operation for OpenSearch Service Serverless. +// +// Returns one or more configured OpenSearch Serverless lifecycle policies. +// For more information, see Viewing data lifecycle policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-list). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for OpenSearch Service Serverless's +// API operation BatchGetLifecyclePolicy for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Thrown when an error internal to the service occurs while processing a request. +// +// - ValidationException +// Thrown when the HTTP request contains invalid input or is missing required +// input. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/BatchGetLifecyclePolicy +func (c *OpenSearchServerless) BatchGetLifecyclePolicy(input *BatchGetLifecyclePolicyInput) (*BatchGetLifecyclePolicyOutput, error) { + req, out := c.BatchGetLifecyclePolicyRequest(input) + return out, req.Send() +} + +// BatchGetLifecyclePolicyWithContext is the same as BatchGetLifecyclePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetLifecyclePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) BatchGetLifecyclePolicyWithContext(ctx aws.Context, input *BatchGetLifecyclePolicyInput, opts ...request.Option) (*BatchGetLifecyclePolicyOutput, error) { + req, out := c.BatchGetLifecyclePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetVpcEndpoint = "BatchGetVpcEndpoint" // BatchGetVpcEndpointRequest generates a "aws/request.Request" representing the @@ -375,6 +543,101 @@ func (c *OpenSearchServerless) CreateCollectionWithContext(ctx aws.Context, inpu return out, req.Send() } +const opCreateLifecyclePolicy = "CreateLifecyclePolicy" + +// CreateLifecyclePolicyRequest generates a "aws/request.Request" representing the +// client's request for the CreateLifecyclePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLifecyclePolicy for more information on using the CreateLifecyclePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateLifecyclePolicyRequest method. +// req, resp := client.CreateLifecyclePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/CreateLifecyclePolicy +func (c *OpenSearchServerless) CreateLifecyclePolicyRequest(input *CreateLifecyclePolicyInput) (req *request.Request, output *CreateLifecyclePolicyOutput) { + op := &request.Operation{ + Name: opCreateLifecyclePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLifecyclePolicyInput{} + } + + output = &CreateLifecyclePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLifecyclePolicy API operation for OpenSearch Service Serverless. +// +// 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 (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-create). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for OpenSearch Service Serverless's +// API operation CreateLifecyclePolicy for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Thrown when an error internal to the service occurs while processing a request. +// +// - ConflictException +// When creating a resource, thrown when a resource with the same name already +// exists or is being created. When deleting a resource, thrown when the resource +// is not in the ACTIVE or FAILED state. +// +// - ValidationException +// Thrown when the HTTP request contains invalid input or is missing required +// input. +// +// - ServiceQuotaExceededException +// Thrown when you attempt to create more resources than the service allows +// based on service quotas. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/CreateLifecyclePolicy +func (c *OpenSearchServerless) CreateLifecyclePolicy(input *CreateLifecyclePolicyInput) (*CreateLifecyclePolicyOutput, error) { + req, out := c.CreateLifecyclePolicyRequest(input) + return out, req.Send() +} + +// CreateLifecyclePolicyWithContext is the same as CreateLifecyclePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLifecyclePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) CreateLifecyclePolicyWithContext(ctx aws.Context, input *CreateLifecyclePolicyInput, opts ...request.Option) (*CreateLifecyclePolicyOutput, error) { + req, out := c.CreateLifecyclePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateSecurityConfig = "CreateSecurityConfig" // CreateSecurityConfigRequest generates a "aws/request.Request" representing the @@ -844,59 +1107,59 @@ func (c *OpenSearchServerless) DeleteCollectionWithContext(ctx aws.Context, inpu return out, req.Send() } -const opDeleteSecurityConfig = "DeleteSecurityConfig" +const opDeleteLifecyclePolicy = "DeleteLifecyclePolicy" -// DeleteSecurityConfigRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSecurityConfig operation. The "output" return +// DeleteLifecyclePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteSecurityConfig for more information on using the DeleteSecurityConfig +// See DeleteLifecyclePolicy for more information on using the DeleteLifecyclePolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the DeleteSecurityConfigRequest method. -// req, resp := client.DeleteSecurityConfigRequest(params) +// // Example sending a request using the DeleteLifecyclePolicyRequest method. +// req, resp := client.DeleteLifecyclePolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityConfig -func (c *OpenSearchServerless) DeleteSecurityConfigRequest(input *DeleteSecurityConfigInput) (req *request.Request, output *DeleteSecurityConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteLifecyclePolicy +func (c *OpenSearchServerless) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) (req *request.Request, output *DeleteLifecyclePolicyOutput) { op := &request.Operation{ - Name: opDeleteSecurityConfig, + Name: opDeleteLifecyclePolicy, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteSecurityConfigInput{} + input = &DeleteLifecyclePolicyInput{} } - output = &DeleteSecurityConfigOutput{} + output = &DeleteLifecyclePolicyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteSecurityConfig API operation for OpenSearch Service Serverless. +// DeleteLifecyclePolicy API operation for OpenSearch Service Serverless. // -// Deletes a security configuration for OpenSearch Serverless. For more information, -// see SAML authentication for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html). +// Deletes an OpenSearch Serverless lifecycle policy. For more information, +// see Deleting data lifecycle policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-delete). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for OpenSearch Service Serverless's -// API operation DeleteSecurityConfig for usage and error information. +// API operation DeleteLifecyclePolicy for usage and error information. // // Returned Error Types: // @@ -915,80 +1178,81 @@ func (c *OpenSearchServerless) DeleteSecurityConfigRequest(input *DeleteSecurity // Thrown when the HTTP request contains invalid input or is missing required // input. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityConfig -func (c *OpenSearchServerless) DeleteSecurityConfig(input *DeleteSecurityConfigInput) (*DeleteSecurityConfigOutput, error) { - req, out := c.DeleteSecurityConfigRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteLifecyclePolicy +func (c *OpenSearchServerless) DeleteLifecyclePolicy(input *DeleteLifecyclePolicyInput) (*DeleteLifecyclePolicyOutput, error) { + req, out := c.DeleteLifecyclePolicyRequest(input) return out, req.Send() } -// DeleteSecurityConfigWithContext is the same as DeleteSecurityConfig with the addition of +// DeleteLifecyclePolicyWithContext is the same as DeleteLifecyclePolicy with the addition of // the ability to pass a context and additional request options. // -// See DeleteSecurityConfig for details on how to use this API operation. +// See DeleteLifecyclePolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *OpenSearchServerless) DeleteSecurityConfigWithContext(ctx aws.Context, input *DeleteSecurityConfigInput, opts ...request.Option) (*DeleteSecurityConfigOutput, error) { - req, out := c.DeleteSecurityConfigRequest(input) +func (c *OpenSearchServerless) DeleteLifecyclePolicyWithContext(ctx aws.Context, input *DeleteLifecyclePolicyInput, opts ...request.Option) (*DeleteLifecyclePolicyOutput, error) { + req, out := c.DeleteLifecyclePolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteSecurityPolicy = "DeleteSecurityPolicy" +const opDeleteSecurityConfig = "DeleteSecurityConfig" -// DeleteSecurityPolicyRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSecurityPolicy operation. The "output" return +// DeleteSecurityConfigRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSecurityConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteSecurityPolicy for more information on using the DeleteSecurityPolicy +// See DeleteSecurityConfig for more information on using the DeleteSecurityConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the DeleteSecurityPolicyRequest method. -// req, resp := client.DeleteSecurityPolicyRequest(params) +// // Example sending a request using the DeleteSecurityConfigRequest method. +// req, resp := client.DeleteSecurityConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityPolicy -func (c *OpenSearchServerless) DeleteSecurityPolicyRequest(input *DeleteSecurityPolicyInput) (req *request.Request, output *DeleteSecurityPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityConfig +func (c *OpenSearchServerless) DeleteSecurityConfigRequest(input *DeleteSecurityConfigInput) (req *request.Request, output *DeleteSecurityConfigOutput) { op := &request.Operation{ - Name: opDeleteSecurityPolicy, + Name: opDeleteSecurityConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteSecurityPolicyInput{} + input = &DeleteSecurityConfigInput{} } - output = &DeleteSecurityPolicyOutput{} + output = &DeleteSecurityConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteSecurityPolicy API operation for OpenSearch Service Serverless. +// DeleteSecurityConfig API operation for OpenSearch Service Serverless. // -// Deletes an OpenSearch Serverless security policy. +// Deletes a security configuration for OpenSearch Serverless. For more information, +// see SAML authentication for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for OpenSearch Service Serverless's -// API operation DeleteSecurityPolicy for usage and error information. +// API operation DeleteSecurityConfig for usage and error information. // // Returned Error Types: // @@ -1007,16 +1271,108 @@ func (c *OpenSearchServerless) DeleteSecurityPolicyRequest(input *DeleteSecurity // Thrown when the HTTP request contains invalid input or is missing required // input. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityPolicy -func (c *OpenSearchServerless) DeleteSecurityPolicy(input *DeleteSecurityPolicyInput) (*DeleteSecurityPolicyOutput, error) { - req, out := c.DeleteSecurityPolicyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityConfig +func (c *OpenSearchServerless) DeleteSecurityConfig(input *DeleteSecurityConfigInput) (*DeleteSecurityConfigOutput, error) { + req, out := c.DeleteSecurityConfigRequest(input) return out, req.Send() } -// DeleteSecurityPolicyWithContext is the same as DeleteSecurityPolicy with the addition of +// DeleteSecurityConfigWithContext is the same as DeleteSecurityConfig with the addition of // the ability to pass a context and additional request options. // -// See DeleteSecurityPolicy for details on how to use this API operation. +// See DeleteSecurityConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) DeleteSecurityConfigWithContext(ctx aws.Context, input *DeleteSecurityConfigInput, opts ...request.Option) (*DeleteSecurityConfigOutput, error) { + req, out := c.DeleteSecurityConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSecurityPolicy = "DeleteSecurityPolicy" + +// DeleteSecurityPolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSecurityPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSecurityPolicy for more information on using the DeleteSecurityPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteSecurityPolicyRequest method. +// req, resp := client.DeleteSecurityPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityPolicy +func (c *OpenSearchServerless) DeleteSecurityPolicyRequest(input *DeleteSecurityPolicyInput) (req *request.Request, output *DeleteSecurityPolicyOutput) { + op := &request.Operation{ + Name: opDeleteSecurityPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSecurityPolicyInput{} + } + + output = &DeleteSecurityPolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSecurityPolicy API operation for OpenSearch Service Serverless. +// +// Deletes an OpenSearch Serverless security policy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for OpenSearch Service Serverless's +// API operation DeleteSecurityPolicy for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Thrown when an error internal to the service occurs while processing a request. +// +// - ResourceNotFoundException +// Thrown when accessing or deleting a resource that does not exist. +// +// - ConflictException +// When creating a resource, thrown when a resource with the same name already +// exists or is being created. When deleting a resource, thrown when the resource +// is not in the ACTIVE or FAILED state. +// +// - ValidationException +// Thrown when the HTTP request contains invalid input or is missing required +// input. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteSecurityPolicy +func (c *OpenSearchServerless) DeleteSecurityPolicy(input *DeleteSecurityPolicyInput) (*DeleteSecurityPolicyOutput, error) { + req, out := c.DeleteSecurityPolicyRequest(input) + return out, req.Send() +} + +// DeleteSecurityPolicyWithContext is the same as DeleteSecurityPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSecurityPolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create @@ -1831,6 +2187,147 @@ func (c *OpenSearchServerless) ListCollectionsPagesWithContext(ctx aws.Context, return p.Err() } +const opListLifecyclePolicies = "ListLifecyclePolicies" + +// ListLifecyclePoliciesRequest generates a "aws/request.Request" representing the +// client's request for the ListLifecyclePolicies operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLifecyclePolicies for more information on using the ListLifecyclePolicies +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListLifecyclePoliciesRequest method. +// req, resp := client.ListLifecyclePoliciesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/ListLifecyclePolicies +func (c *OpenSearchServerless) ListLifecyclePoliciesRequest(input *ListLifecyclePoliciesInput) (req *request.Request, output *ListLifecyclePoliciesOutput) { + op := &request.Operation{ + Name: opListLifecyclePolicies, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLifecyclePoliciesInput{} + } + + output = &ListLifecyclePoliciesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLifecyclePolicies API operation for OpenSearch Service Serverless. +// +// Returns a list of OpenSearch Serverless lifecycle policies. For more information, +// see Viewing data lifecycle policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-list). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for OpenSearch Service Serverless's +// API operation ListLifecyclePolicies for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Thrown when an error internal to the service occurs while processing a request. +// +// - ValidationException +// Thrown when the HTTP request contains invalid input or is missing required +// input. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/ListLifecyclePolicies +func (c *OpenSearchServerless) ListLifecyclePolicies(input *ListLifecyclePoliciesInput) (*ListLifecyclePoliciesOutput, error) { + req, out := c.ListLifecyclePoliciesRequest(input) + return out, req.Send() +} + +// ListLifecyclePoliciesWithContext is the same as ListLifecyclePolicies with the addition of +// the ability to pass a context and additional request options. +// +// See ListLifecyclePolicies for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) ListLifecyclePoliciesWithContext(ctx aws.Context, input *ListLifecyclePoliciesInput, opts ...request.Option) (*ListLifecyclePoliciesOutput, error) { + req, out := c.ListLifecyclePoliciesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLifecyclePoliciesPages iterates over the pages of a ListLifecyclePolicies operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLifecyclePolicies method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListLifecyclePolicies operation. +// pageNum := 0 +// err := client.ListLifecyclePoliciesPages(params, +// func(page *opensearchserverless.ListLifecyclePoliciesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *OpenSearchServerless) ListLifecyclePoliciesPages(input *ListLifecyclePoliciesInput, fn func(*ListLifecyclePoliciesOutput, bool) bool) error { + return c.ListLifecyclePoliciesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLifecyclePoliciesPagesWithContext same as ListLifecyclePoliciesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) ListLifecyclePoliciesPagesWithContext(ctx aws.Context, input *ListLifecyclePoliciesInput, fn func(*ListLifecyclePoliciesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLifecyclePoliciesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLifecyclePoliciesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLifecyclePoliciesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListSecurityConfigs = "ListSecurityConfigs" // ListSecurityConfigsRequest generates a "aws/request.Request" representing the @@ -2797,58 +3294,58 @@ func (c *OpenSearchServerless) UpdateCollectionWithContext(ctx aws.Context, inpu return out, req.Send() } -const opUpdateSecurityConfig = "UpdateSecurityConfig" +const opUpdateLifecyclePolicy = "UpdateLifecyclePolicy" -// UpdateSecurityConfigRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSecurityConfig operation. The "output" return +// UpdateLifecyclePolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSecurityConfig for more information on using the UpdateSecurityConfig +// See UpdateLifecyclePolicy for more information on using the UpdateLifecyclePolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateSecurityConfigRequest method. -// req, resp := client.UpdateSecurityConfigRequest(params) +// // Example sending a request using the UpdateLifecyclePolicyRequest method. +// req, resp := client.UpdateLifecyclePolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityConfig -func (c *OpenSearchServerless) UpdateSecurityConfigRequest(input *UpdateSecurityConfigInput) (req *request.Request, output *UpdateSecurityConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateLifecyclePolicy +func (c *OpenSearchServerless) UpdateLifecyclePolicyRequest(input *UpdateLifecyclePolicyInput) (req *request.Request, output *UpdateLifecyclePolicyOutput) { op := &request.Operation{ - Name: opUpdateSecurityConfig, + Name: opUpdateLifecyclePolicy, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateSecurityConfigInput{} + input = &UpdateLifecyclePolicyInput{} } - output = &UpdateSecurityConfigOutput{} + output = &UpdateLifecyclePolicyOutput{} req = c.newRequest(op, input, output) return } -// UpdateSecurityConfig API operation for OpenSearch Service Serverless. +// UpdateLifecyclePolicy API operation for OpenSearch Service Serverless. // -// Updates a security configuration for OpenSearch Serverless. For more information, -// see SAML authentication for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html). +// Updates an OpenSearch Serverless access policy. For more information, see +// Updating data lifecycle policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-update). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for OpenSearch Service Serverless's -// API operation UpdateSecurityConfig for usage and error information. +// API operation UpdateLifecyclePolicy for usage and error information. // // Returned Error Types: // @@ -2867,81 +3364,177 @@ func (c *OpenSearchServerless) UpdateSecurityConfigRequest(input *UpdateSecurity // Thrown when the HTTP request contains invalid input or is missing required // input. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityConfig -func (c *OpenSearchServerless) UpdateSecurityConfig(input *UpdateSecurityConfigInput) (*UpdateSecurityConfigOutput, error) { - req, out := c.UpdateSecurityConfigRequest(input) +// - ServiceQuotaExceededException +// Thrown when you attempt to create more resources than the service allows +// based on service quotas. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateLifecyclePolicy +func (c *OpenSearchServerless) UpdateLifecyclePolicy(input *UpdateLifecyclePolicyInput) (*UpdateLifecyclePolicyOutput, error) { + req, out := c.UpdateLifecyclePolicyRequest(input) return out, req.Send() } -// UpdateSecurityConfigWithContext is the same as UpdateSecurityConfig with the addition of +// UpdateLifecyclePolicyWithContext is the same as UpdateLifecyclePolicy with the addition of // the ability to pass a context and additional request options. // -// See UpdateSecurityConfig for details on how to use this API operation. +// See UpdateLifecyclePolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *OpenSearchServerless) UpdateSecurityConfigWithContext(ctx aws.Context, input *UpdateSecurityConfigInput, opts ...request.Option) (*UpdateSecurityConfigOutput, error) { - req, out := c.UpdateSecurityConfigRequest(input) +func (c *OpenSearchServerless) UpdateLifecyclePolicyWithContext(ctx aws.Context, input *UpdateLifecyclePolicyInput, opts ...request.Option) (*UpdateLifecyclePolicyOutput, error) { + req, out := c.UpdateLifecyclePolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSecurityPolicy = "UpdateSecurityPolicy" +const opUpdateSecurityConfig = "UpdateSecurityConfig" -// UpdateSecurityPolicyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSecurityPolicy operation. The "output" return +// UpdateSecurityConfigRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSecurityConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSecurityPolicy for more information on using the UpdateSecurityPolicy +// See UpdateSecurityConfig for more information on using the UpdateSecurityConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateSecurityPolicyRequest method. -// req, resp := client.UpdateSecurityPolicyRequest(params) +// // Example sending a request using the UpdateSecurityConfigRequest method. +// req, resp := client.UpdateSecurityConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityPolicy -func (c *OpenSearchServerless) UpdateSecurityPolicyRequest(input *UpdateSecurityPolicyInput) (req *request.Request, output *UpdateSecurityPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityConfig +func (c *OpenSearchServerless) UpdateSecurityConfigRequest(input *UpdateSecurityConfigInput) (req *request.Request, output *UpdateSecurityConfigOutput) { op := &request.Operation{ - Name: opUpdateSecurityPolicy, + Name: opUpdateSecurityConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateSecurityPolicyInput{} + input = &UpdateSecurityConfigInput{} } - output = &UpdateSecurityPolicyOutput{} + output = &UpdateSecurityConfigOutput{} req = c.newRequest(op, input, output) return } -// UpdateSecurityPolicy API operation for OpenSearch Service Serverless. +// UpdateSecurityConfig API operation for OpenSearch Service Serverless. // -// Updates an OpenSearch Serverless security policy. For more information, see -// Network access for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html) -// and Encryption at rest for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html). +// Updates a security configuration for OpenSearch Serverless. For more information, +// see SAML authentication for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-saml.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for OpenSearch Service Serverless's -// API operation UpdateSecurityPolicy for usage and error information. +// API operation UpdateSecurityConfig for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// Thrown when an error internal to the service occurs while processing a request. +// +// - ResourceNotFoundException +// Thrown when accessing or deleting a resource that does not exist. +// +// - ConflictException +// When creating a resource, thrown when a resource with the same name already +// exists or is being created. When deleting a resource, thrown when the resource +// is not in the ACTIVE or FAILED state. +// +// - ValidationException +// Thrown when the HTTP request contains invalid input or is missing required +// input. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityConfig +func (c *OpenSearchServerless) UpdateSecurityConfig(input *UpdateSecurityConfigInput) (*UpdateSecurityConfigOutput, error) { + req, out := c.UpdateSecurityConfigRequest(input) + return out, req.Send() +} + +// UpdateSecurityConfigWithContext is the same as UpdateSecurityConfig with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSecurityConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpenSearchServerless) UpdateSecurityConfigWithContext(ctx aws.Context, input *UpdateSecurityConfigInput, opts ...request.Option) (*UpdateSecurityConfigOutput, error) { + req, out := c.UpdateSecurityConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSecurityPolicy = "UpdateSecurityPolicy" + +// UpdateSecurityPolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSecurityPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSecurityPolicy for more information on using the UpdateSecurityPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateSecurityPolicyRequest method. +// req, resp := client.UpdateSecurityPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityPolicy +func (c *OpenSearchServerless) UpdateSecurityPolicyRequest(input *UpdateSecurityPolicyInput) (req *request.Request, output *UpdateSecurityPolicyOutput) { + op := &request.Operation{ + Name: opUpdateSecurityPolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateSecurityPolicyInput{} + } + + output = &UpdateSecurityPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSecurityPolicy API operation for OpenSearch Service Serverless. +// +// Updates an OpenSearch Serverless security policy. For more information, see +// Network access for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html) +// and Encryption at rest for Amazon OpenSearch Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for OpenSearch Service Serverless's +// API operation UpdateSecurityPolicy for usage and error information. // // Returned Error Types: // @@ -3203,7 +3796,7 @@ type AccessPolicySummary struct { // The version of the policy. PolicyVersion *string `locationName:"policyVersion" min:"20" type:"string"` - // The type of access policy. Currently the only available type is data. + // The type of access policy. Currently, the only available type is data. Type *string `locationName:"type" type:"string" enum:"AccessPolicyType"` } @@ -3395,6 +3988,205 @@ func (s *BatchGetCollectionOutput) SetCollectionErrorDetails(v []*CollectionErro return s } +type BatchGetEffectiveLifecyclePolicyInput struct { + _ struct{} `type:"structure"` + + // The unique identifiers of policy types and resource names. + // + // ResourceIdentifiers is a required field + ResourceIdentifiers []*LifecyclePolicyResourceIdentifier `locationName:"resourceIdentifiers" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetEffectiveLifecyclePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetEffectiveLifecyclePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetEffectiveLifecyclePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetEffectiveLifecyclePolicyInput"} + if s.ResourceIdentifiers == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdentifiers")) + } + if s.ResourceIdentifiers != nil && len(s.ResourceIdentifiers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifiers", 1)) + } + if s.ResourceIdentifiers != nil { + for i, v := range s.ResourceIdentifiers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceIdentifiers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceIdentifiers sets the ResourceIdentifiers field's value. +func (s *BatchGetEffectiveLifecyclePolicyInput) SetResourceIdentifiers(v []*LifecyclePolicyResourceIdentifier) *BatchGetEffectiveLifecyclePolicyInput { + s.ResourceIdentifiers = v + return s +} + +type BatchGetEffectiveLifecyclePolicyOutput struct { + _ struct{} `type:"structure"` + + // A list of lifecycle policies applied to the OpenSearch Serverless indexes. + EffectiveLifecyclePolicyDetails []*EffectiveLifecyclePolicyDetail `locationName:"effectiveLifecyclePolicyDetails" type:"list"` + + // A list of resources for which retrieval failed. + EffectiveLifecyclePolicyErrorDetails []*EffectiveLifecyclePolicyErrorDetail `locationName:"effectiveLifecyclePolicyErrorDetails" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetEffectiveLifecyclePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetEffectiveLifecyclePolicyOutput) GoString() string { + return s.String() +} + +// SetEffectiveLifecyclePolicyDetails sets the EffectiveLifecyclePolicyDetails field's value. +func (s *BatchGetEffectiveLifecyclePolicyOutput) SetEffectiveLifecyclePolicyDetails(v []*EffectiveLifecyclePolicyDetail) *BatchGetEffectiveLifecyclePolicyOutput { + s.EffectiveLifecyclePolicyDetails = v + return s +} + +// SetEffectiveLifecyclePolicyErrorDetails sets the EffectiveLifecyclePolicyErrorDetails field's value. +func (s *BatchGetEffectiveLifecyclePolicyOutput) SetEffectiveLifecyclePolicyErrorDetails(v []*EffectiveLifecyclePolicyErrorDetail) *BatchGetEffectiveLifecyclePolicyOutput { + s.EffectiveLifecyclePolicyErrorDetails = v + return s +} + +type BatchGetLifecyclePolicyInput struct { + _ struct{} `type:"structure"` + + // The unique identifiers of policy types and policy names. + // + // Identifiers is a required field + Identifiers []*LifecyclePolicyIdentifier `locationName:"identifiers" min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetLifecyclePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetLifecyclePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetLifecyclePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetLifecyclePolicyInput"} + if s.Identifiers == nil { + invalidParams.Add(request.NewErrParamRequired("Identifiers")) + } + if s.Identifiers != nil && len(s.Identifiers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifiers", 1)) + } + if s.Identifiers != nil { + for i, v := range s.Identifiers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Identifiers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentifiers sets the Identifiers field's value. +func (s *BatchGetLifecyclePolicyInput) SetIdentifiers(v []*LifecyclePolicyIdentifier) *BatchGetLifecyclePolicyInput { + s.Identifiers = v + return s +} + +type BatchGetLifecyclePolicyOutput struct { + _ struct{} `type:"structure"` + + // A list of lifecycle policies matched to the input policy name and policy + // type. + LifecyclePolicyDetails []*LifecyclePolicyDetail `locationName:"lifecyclePolicyDetails" type:"list"` + + // A list of lifecycle policy names and policy types for which retrieval failed. + LifecyclePolicyErrorDetails []*LifecyclePolicyErrorDetail `locationName:"lifecyclePolicyErrorDetails" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetLifecyclePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetLifecyclePolicyOutput) GoString() string { + return s.String() +} + +// SetLifecyclePolicyDetails sets the LifecyclePolicyDetails field's value. +func (s *BatchGetLifecyclePolicyOutput) SetLifecyclePolicyDetails(v []*LifecyclePolicyDetail) *BatchGetLifecyclePolicyOutput { + s.LifecyclePolicyDetails = v + return s +} + +// SetLifecyclePolicyErrorDetails sets the LifecyclePolicyErrorDetails field's value. +func (s *BatchGetLifecyclePolicyOutput) SetLifecyclePolicyErrorDetails(v []*LifecyclePolicyErrorDetail) *BatchGetLifecyclePolicyOutput { + s.LifecyclePolicyErrorDetails = v + return s +} + type BatchGetVpcEndpointInput struct { _ struct{} `type:"structure"` @@ -3730,7 +4522,7 @@ func (s *CollectionErrorDetail) SetName(v string) *CollectionErrorDetail { return s } -// List of filter keys that you can use for LIST, UPDATE, and DELETE requests +// A list of filter keys that you can use for LIST, UPDATE, and DELETE requests // to OpenSearch Serverless collections. type CollectionFilters struct { _ struct{} `type:"structure"` @@ -4277,28 +5069,29 @@ func (s *CreateCollectionOutput) SetCreateCollectionDetail(v *CreateCollectionDe return s } -type CreateSecurityConfigInput struct { +type CreateLifecyclePolicyInput struct { _ struct{} `type:"structure"` - // Unique, case-sensitive identifier to ensure idempotency of the request. + // A unique, case-sensitive identifier to ensure idempotency of the request. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` - // A description of the security configuration. - Description *string `locationName:"description" min:"1" type:"string"` + // A description of the lifecycle policy. + Description *string `locationName:"description" type:"string"` - // The name of the security configuration. + // The name of the lifecycle policy. // // Name is a required field Name *string `locationName:"name" min:"3" type:"string" required:"true"` - // Describes SAML options in in the form of a key-value map. This field is required - // if you specify saml for the type parameter. - SamlOptions *SamlConfigOptions `locationName:"samlOptions" type:"structure"` + // The JSON policy document to use as the content for the lifecycle policy. + // + // Policy is a required field + Policy *string `locationName:"policy" min:"1" type:"string" required:"true"` - // The type of security configuration. + // The type of lifecycle policy. // // Type is a required field - Type *string `locationName:"type" type:"string" required:"true" enum:"SecurityConfigType"` + Type *string `locationName:"type" type:"string" required:"true" enum:"LifecyclePolicyType"` } // String returns the string representation. @@ -4306,7 +5099,7 @@ type CreateSecurityConfigInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSecurityConfigInput) String() string { +func (s CreateLifecyclePolicyInput) String() string { return awsutil.Prettify(s) } @@ -4315,27 +5108,158 @@ func (s CreateSecurityConfigInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSecurityConfigInput) GoString() string { +func (s CreateLifecyclePolicyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSecurityConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSecurityConfigInput"} +func (s *CreateLifecyclePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLifecyclePolicyInput"} if s.ClientToken != nil && len(*s.ClientToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 3 { invalidParams.Add(request.NewErrParamMinLen("Name", 3)) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.Policy == nil { + invalidParams.Add(request.NewErrParamRequired("Policy")) + } + if s.Policy != nil && len(*s.Policy) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateLifecyclePolicyInput) SetClientToken(v string) *CreateLifecyclePolicyInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateLifecyclePolicyInput) SetDescription(v string) *CreateLifecyclePolicyInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateLifecyclePolicyInput) SetName(v string) *CreateLifecyclePolicyInput { + s.Name = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *CreateLifecyclePolicyInput) SetPolicy(v string) *CreateLifecyclePolicyInput { + s.Policy = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateLifecyclePolicyInput) SetType(v string) *CreateLifecyclePolicyInput { + s.Type = &v + return s +} + +type CreateLifecyclePolicyOutput struct { + _ struct{} `type:"structure"` + + // Details about the created lifecycle policy. + LifecyclePolicyDetail *LifecyclePolicyDetail `locationName:"lifecyclePolicyDetail" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLifecyclePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateLifecyclePolicyOutput) GoString() string { + return s.String() +} + +// SetLifecyclePolicyDetail sets the LifecyclePolicyDetail field's value. +func (s *CreateLifecyclePolicyOutput) SetLifecyclePolicyDetail(v *LifecyclePolicyDetail) *CreateLifecyclePolicyOutput { + s.LifecyclePolicyDetail = v + return s +} + +type CreateSecurityConfigInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier to ensure idempotency of the request. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // A description of the security configuration. + Description *string `locationName:"description" min:"1" type:"string"` + + // The name of the security configuration. + // + // Name is a required field + Name *string `locationName:"name" min:"3" type:"string" required:"true"` + + // Describes SAML options in in the form of a key-value map. This field is required + // if you specify saml for the type parameter. + SamlOptions *SamlConfigOptions `locationName:"samlOptions" type:"structure"` + + // The type of security configuration. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"SecurityConfigType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSecurityConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSecurityConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSecurityConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSecurityConfigInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if s.SamlOptions != nil { if err := s.SamlOptions.Validate(); err != nil { @@ -4976,6 +5900,103 @@ func (s *DeleteCollectionOutput) SetDeleteCollectionDetail(v *DeleteCollectionDe return s } +type DeleteLifecyclePolicyInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier to ensure idempotency of the request. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // The name of the policy to delete. + // + // Name is a required field + Name *string `locationName:"name" min:"3" type:"string" required:"true"` + + // The type of lifecycle policy. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLifecyclePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLifecyclePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLifecyclePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLifecyclePolicyInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *DeleteLifecyclePolicyInput) SetClientToken(v string) *DeleteLifecyclePolicyInput { + s.ClientToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteLifecyclePolicyInput) SetName(v string) *DeleteLifecyclePolicyInput { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *DeleteLifecyclePolicyInput) SetType(v string) *DeleteLifecyclePolicyInput { + s.Type = &v + return s +} + +type DeleteLifecyclePolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLifecyclePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteLifecyclePolicyOutput) GoString() string { + return s.String() +} + type DeleteSecurityConfigInput struct { _ struct{} `type:"structure"` @@ -5299,18 +6320,31 @@ func (s *DeleteVpcEndpointOutput) SetDeleteVpcEndpointDetail(v *DeleteVpcEndpoin return s } -type GetAccessPolicyInput struct { +// Error information for an OpenSearch Serverless request. +type EffectiveLifecyclePolicyDetail struct { _ struct{} `type:"structure"` - // The name of the access policy. - // - // Name is a required field - Name *string `locationName:"name" min:"3" type:"string" required:"true"` + // 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. + NoMinRetentionPeriod *bool `locationName:"noMinRetentionPeriod" type:"boolean"` - // Tye type of policy. Currently the only supported value is data. - // - // Type is a required field - Type *string `locationName:"type" type:"string" required:"true" enum:"AccessPolicyType"` + // The name of the lifecycle policy. + PolicyName *string `locationName:"policyName" min:"3" type:"string"` + + // The name of the OpenSearch Serverless index resource. + Resource *string `locationName:"resource" type:"string"` + + // The type of OpenSearch Serverless resource. Currently, the only supported + // resource is index. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The minimum number of index retention in days or hours. This is an optional + // parameter that will return only if it’s set. + RetentionPeriod *string `locationName:"retentionPeriod" type:"string"` + + // The type of lifecycle policy. + Type *string `locationName:"type" type:"string" enum:"LifecyclePolicyType"` } // String returns the string representation. @@ -5318,7 +6352,7 @@ type GetAccessPolicyInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetAccessPolicyInput) String() string { +func (s EffectiveLifecyclePolicyDetail) String() string { return awsutil.Prettify(s) } @@ -5327,47 +6361,175 @@ func (s GetAccessPolicyInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetAccessPolicyInput) GoString() string { +func (s EffectiveLifecyclePolicyDetail) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAccessPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAccessPolicyInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 3 { - invalidParams.Add(request.NewErrParamMinLen("Name", 3)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } +// SetNoMinRetentionPeriod sets the NoMinRetentionPeriod field's value. +func (s *EffectiveLifecyclePolicyDetail) SetNoMinRetentionPeriod(v bool) *EffectiveLifecyclePolicyDetail { + s.NoMinRetentionPeriod = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetPolicyName sets the PolicyName field's value. +func (s *EffectiveLifecyclePolicyDetail) SetPolicyName(v string) *EffectiveLifecyclePolicyDetail { + s.PolicyName = &v + return s } -// SetName sets the Name field's value. -func (s *GetAccessPolicyInput) SetName(v string) *GetAccessPolicyInput { - s.Name = &v +// SetResource sets the Resource field's value. +func (s *EffectiveLifecyclePolicyDetail) SetResource(v string) *EffectiveLifecyclePolicyDetail { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *EffectiveLifecyclePolicyDetail) SetResourceType(v string) *EffectiveLifecyclePolicyDetail { + s.ResourceType = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *EffectiveLifecyclePolicyDetail) SetRetentionPeriod(v string) *EffectiveLifecyclePolicyDetail { + s.RetentionPeriod = &v return s } // SetType sets the Type field's value. -func (s *GetAccessPolicyInput) SetType(v string) *GetAccessPolicyInput { +func (s *EffectiveLifecyclePolicyDetail) SetType(v string) *EffectiveLifecyclePolicyDetail { s.Type = &v return s } -type GetAccessPolicyOutput struct { +// Error information for an OpenSearch Serverless request. +type EffectiveLifecyclePolicyErrorDetail struct { _ struct{} `type:"structure"` - // Details about the requested access policy. - AccessPolicyDetail *AccessPolicyDetail `locationName:"accessPolicyDetail" type:"structure"` -} + // The error code for the request. + ErrorCode *string `locationName:"errorCode" type:"string"` + + // A description of the error. For example, The specified Index resource is + // not found. + ErrorMessage *string `locationName:"errorMessage" type:"string"` + + // The name of OpenSearch Serverless index resource. + Resource *string `locationName:"resource" type:"string"` + + // The type of lifecycle policy. + Type *string `locationName:"type" type:"string" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EffectiveLifecyclePolicyErrorDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EffectiveLifecyclePolicyErrorDetail) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *EffectiveLifecyclePolicyErrorDetail) SetErrorCode(v string) *EffectiveLifecyclePolicyErrorDetail { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *EffectiveLifecyclePolicyErrorDetail) SetErrorMessage(v string) *EffectiveLifecyclePolicyErrorDetail { + s.ErrorMessage = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *EffectiveLifecyclePolicyErrorDetail) SetResource(v string) *EffectiveLifecyclePolicyErrorDetail { + s.Resource = &v + return s +} + +// SetType sets the Type field's value. +func (s *EffectiveLifecyclePolicyErrorDetail) SetType(v string) *EffectiveLifecyclePolicyErrorDetail { + s.Type = &v + return s +} + +type GetAccessPolicyInput struct { + _ struct{} `type:"structure"` + + // The name of the access policy. + // + // Name is a required field + Name *string `locationName:"name" min:"3" type:"string" required:"true"` + + // Tye type of policy. Currently, the only supported value is data. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"AccessPolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAccessPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAccessPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAccessPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAccessPolicyInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GetAccessPolicyInput) SetName(v string) *GetAccessPolicyInput { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *GetAccessPolicyInput) SetType(v string) *GetAccessPolicyInput { + s.Type = &v + return s +} + +type GetAccessPolicyOutput struct { + _ struct{} `type:"structure"` + + // Details about the requested access policy. + AccessPolicyDetail *AccessPolicyDetail `locationName:"accessPolicyDetail" type:"structure"` +} // String returns the string representation. // @@ -5474,6 +6636,9 @@ type GetPoliciesStatsOutput struct { // Information about the data access policies in your account. AccessPolicyStats *AccessPolicyStats `type:"structure"` + // Information about the lifecycle policies in your account. + LifecyclePolicyStats *LifecyclePolicyStats `type:"structure"` + // Information about the security configurations in your account. SecurityConfigStats *SecurityConfigStats `type:"structure"` @@ -5509,6 +6674,12 @@ func (s *GetPoliciesStatsOutput) SetAccessPolicyStats(v *AccessPolicyStats) *Get return s } +// SetLifecyclePolicyStats sets the LifecyclePolicyStats field's value. +func (s *GetPoliciesStatsOutput) SetLifecyclePolicyStats(v *LifecyclePolicyStats) *GetPoliciesStatsOutput { + s.LifecyclePolicyStats = v + return s +} + // SetSecurityConfigStats sets the SecurityConfigStats field's value. func (s *GetPoliciesStatsOutput) SetSecurityConfigStats(v *SecurityConfigStats) *GetPoliciesStatsOutput { s.SecurityConfigStats = v @@ -5746,23 +6917,394 @@ func (s *InternalServerException) Message() string { return "" } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Details about an OpenSearch Serverless lifecycle policy. +type LifecyclePolicyDetail struct { + _ struct{} `type:"structure"` + + // The date the lifecycle policy was created. + CreatedDate *int64 `locationName:"createdDate" type:"long"` + + // The description of the lifecycle policy. + Description *string `locationName:"description" type:"string"` + + // The timestamp of when the lifecycle policy was last modified. + LastModifiedDate *int64 `locationName:"lastModifiedDate" type:"long"` + + // The name of the lifecycle policy. + Name *string `locationName:"name" min:"3" type:"string"` + + // The version of the lifecycle policy. + PolicyVersion *string `locationName:"policyVersion" min:"20" type:"string"` + + // The type of lifecycle policy. + Type *string `locationName:"type" type:"string" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyDetail) GoString() string { + return s.String() +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *LifecyclePolicyDetail) SetCreatedDate(v int64) *LifecyclePolicyDetail { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *LifecyclePolicyDetail) SetDescription(v string) *LifecyclePolicyDetail { + s.Description = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *LifecyclePolicyDetail) SetLastModifiedDate(v int64) *LifecyclePolicyDetail { + s.LastModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *LifecyclePolicyDetail) SetName(v string) *LifecyclePolicyDetail { + s.Name = &v + return s +} + +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *LifecyclePolicyDetail) SetPolicyVersion(v string) *LifecyclePolicyDetail { + s.PolicyVersion = &v + return s +} + +// SetType sets the Type field's value. +func (s *LifecyclePolicyDetail) SetType(v string) *LifecyclePolicyDetail { + s.Type = &v + return s +} + +// Error information for an OpenSearch Serverless request. +type LifecyclePolicyErrorDetail struct { + _ struct{} `type:"structure"` + + // The error code for the request. For example, NOT_FOUND. + ErrorCode *string `locationName:"errorCode" type:"string"` + + // A description of the error. For example, The specified Lifecycle Policy is + // not found. + ErrorMessage *string `locationName:"errorMessage" type:"string"` + + // The name of the lifecycle policy. + Name *string `locationName:"name" min:"3" type:"string"` + + // The type of lifecycle policy. + Type *string `locationName:"type" type:"string" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyErrorDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyErrorDetail) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *LifecyclePolicyErrorDetail) SetErrorCode(v string) *LifecyclePolicyErrorDetail { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *LifecyclePolicyErrorDetail) SetErrorMessage(v string) *LifecyclePolicyErrorDetail { + s.ErrorMessage = &v + return s +} + +// SetName sets the Name field's value. +func (s *LifecyclePolicyErrorDetail) SetName(v string) *LifecyclePolicyErrorDetail { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *LifecyclePolicyErrorDetail) SetType(v string) *LifecyclePolicyErrorDetail { + s.Type = &v + return s +} + +// The unique identifiers of policy types and policy names. +type LifecyclePolicyIdentifier struct { + _ struct{} `type:"structure"` + + // The name of the lifecycle policy. + // + // Name is a required field + Name *string `locationName:"name" min:"3" type:"string" required:"true"` + + // The type of lifecycle policy. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LifecyclePolicyIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LifecyclePolicyIdentifier"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *LifecyclePolicyIdentifier) SetName(v string) *LifecyclePolicyIdentifier { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *LifecyclePolicyIdentifier) SetType(v string) *LifecyclePolicyIdentifier { + s.Type = &v + return s +} + +// The unique identifiers of policy types and resource names. +type LifecyclePolicyResourceIdentifier struct { + _ struct{} `type:"structure"` + + // The name of the OpenSearch Serverless ilndex resource. + // + // Resource is a required field + Resource *string `locationName:"resource" type:"string" required:"true"` + + // The type of lifecycle policy. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyResourceIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyResourceIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LifecyclePolicyResourceIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LifecyclePolicyResourceIdentifier"} + if s.Resource == nil { + invalidParams.Add(request.NewErrParamRequired("Resource")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResource sets the Resource field's value. +func (s *LifecyclePolicyResourceIdentifier) SetResource(v string) *LifecyclePolicyResourceIdentifier { + s.Resource = &v + return s +} + +// SetType sets the Type field's value. +func (s *LifecyclePolicyResourceIdentifier) SetType(v string) *LifecyclePolicyResourceIdentifier { + s.Type = &v + return s +} + +// Statistics for an OpenSearch Serverless lifecycle policy. +type LifecyclePolicyStats struct { + _ struct{} `type:"structure"` + + // The number of retention lifecycle policies in the current account. + RetentionPolicyCount *int64 `type:"long"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyStats) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicyStats) GoString() string { + return s.String() +} + +// SetRetentionPolicyCount sets the RetentionPolicyCount field's value. +func (s *LifecyclePolicyStats) SetRetentionPolicyCount(v int64) *LifecyclePolicyStats { + s.RetentionPolicyCount = &v + return s +} + +// A summary of the lifecycle policy. +type LifecyclePolicySummary struct { + _ struct{} `type:"structure"` + + // The Epoch time when the lifecycle policy was created. + CreatedDate *int64 `locationName:"createdDate" type:"long"` + + // The description of the lifecycle policy. + Description *string `locationName:"description" type:"string"` + + // The date and time when the lifecycle policy was last modified. + LastModifiedDate *int64 `locationName:"lastModifiedDate" type:"long"` + + // The name of the lifecycle policy. + Name *string `locationName:"name" min:"3" type:"string"` + + // The version of the lifecycle policy. + PolicyVersion *string `locationName:"policyVersion" min:"20" type:"string"` + + // The type of lifecycle policy. + Type *string `locationName:"type" type:"string" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicySummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LifecyclePolicySummary) GoString() string { + return s.String() +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *LifecyclePolicySummary) SetCreatedDate(v int64) *LifecyclePolicySummary { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *LifecyclePolicySummary) SetDescription(v string) *LifecyclePolicySummary { + s.Description = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *LifecyclePolicySummary) SetLastModifiedDate(v int64) *LifecyclePolicySummary { + s.LastModifiedDate = &v + return s } -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetName sets the Name field's value. +func (s *LifecyclePolicySummary) SetName(v string) *LifecyclePolicySummary { + s.Name = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *LifecyclePolicySummary) SetPolicyVersion(v string) *LifecyclePolicySummary { + s.PolicyVersion = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetType sets the Type field's value. +func (s *LifecyclePolicySummary) SetType(v string) *LifecyclePolicySummary { + s.Type = &v + return s } type ListAccessPoliciesInput struct { @@ -5893,7 +7435,7 @@ func (s *ListAccessPoliciesOutput) SetNextToken(v string) *ListAccessPoliciesOut type ListCollectionsInput struct { _ struct{} `type:"structure"` - // List of filter names and values that you can use for requests. + // A list of filter names and values that you can use for requests. CollectionFilters *CollectionFilters `locationName:"collectionFilters" type:"structure"` // The maximum number of results to return. Default is 20. You can use nextToken @@ -6002,6 +7544,132 @@ func (s *ListCollectionsOutput) SetNextToken(v string) *ListCollectionsOutput { return s } +type ListLifecyclePoliciesInput struct { + _ struct{} `type:"structure"` + + // 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. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // 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. + NextToken *string `locationName:"nextToken" type:"string"` + + // Resource filters that policies can apply to. Currently, the only supported + // resource type is index. + Resources []*string `locationName:"resources" min:"1" type:"list"` + + // The type of lifecycle policy. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListLifecyclePoliciesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListLifecyclePoliciesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLifecyclePoliciesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLifecyclePoliciesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Resources != nil && len(s.Resources) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resources", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLifecyclePoliciesInput) SetMaxResults(v int64) *ListLifecyclePoliciesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLifecyclePoliciesInput) SetNextToken(v string) *ListLifecyclePoliciesInput { + s.NextToken = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *ListLifecyclePoliciesInput) SetResources(v []*string) *ListLifecyclePoliciesInput { + s.Resources = v + return s +} + +// SetType sets the Type field's value. +func (s *ListLifecyclePoliciesInput) SetType(v string) *ListLifecyclePoliciesInput { + s.Type = &v + return s +} + +type ListLifecyclePoliciesOutput struct { + _ struct{} `type:"structure"` + + // Details about the requested lifecycle policies. + LifecyclePolicySummaries []*LifecyclePolicySummary `locationName:"lifecyclePolicySummaries" type:"list"` + + // 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. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListLifecyclePoliciesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListLifecyclePoliciesOutput) GoString() string { + return s.String() +} + +// SetLifecyclePolicySummaries sets the LifecyclePolicySummaries field's value. +func (s *ListLifecyclePoliciesOutput) SetLifecyclePolicySummaries(v []*LifecyclePolicySummary) *ListLifecyclePoliciesOutput { + s.LifecyclePolicySummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLifecyclePoliciesOutput) SetNextToken(v string) *ListLifecyclePoliciesOutput { + s.NextToken = &v + return s +} + type ListSecurityConfigsInput struct { _ struct{} `type:"structure"` @@ -7787,6 +9455,150 @@ func (s *UpdateCollectionOutput) SetUpdateCollectionDetail(v *UpdateCollectionDe return s } +type UpdateLifecyclePolicyInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier to ensure idempotency of the request. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // A description of the lifecycle policy. + Description *string `locationName:"description" type:"string"` + + // The name of the policy. + // + // Name is a required field + Name *string `locationName:"name" min:"3" type:"string" required:"true"` + + // The JSON policy document to use as the content for the lifecycle policy. + Policy *string `locationName:"policy" min:"1" type:"string"` + + // The version of the policy being updated. + // + // PolicyVersion is a required field + PolicyVersion *string `locationName:"policyVersion" min:"20" type:"string" required:"true"` + + // The type of lifecycle policy. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"LifecyclePolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateLifecyclePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateLifecyclePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateLifecyclePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLifecyclePolicyInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Name", 3)) + } + if s.Policy != nil && len(*s.Policy) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) + } + if s.PolicyVersion == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyVersion")) + } + if s.PolicyVersion != nil && len(*s.PolicyVersion) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersion", 20)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateLifecyclePolicyInput) SetClientToken(v string) *UpdateLifecyclePolicyInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateLifecyclePolicyInput) SetDescription(v string) *UpdateLifecyclePolicyInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateLifecyclePolicyInput) SetName(v string) *UpdateLifecyclePolicyInput { + s.Name = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *UpdateLifecyclePolicyInput) SetPolicy(v string) *UpdateLifecyclePolicyInput { + s.Policy = &v + return s +} + +// SetPolicyVersion sets the PolicyVersion field's value. +func (s *UpdateLifecyclePolicyInput) SetPolicyVersion(v string) *UpdateLifecyclePolicyInput { + s.PolicyVersion = &v + return s +} + +// SetType sets the Type field's value. +func (s *UpdateLifecyclePolicyInput) SetType(v string) *UpdateLifecyclePolicyInput { + s.Type = &v + return s +} + +type UpdateLifecyclePolicyOutput struct { + _ struct{} `type:"structure"` + + // Details about the updated lifecycle policy. + LifecyclePolicyDetail *LifecyclePolicyDetail `locationName:"lifecyclePolicyDetail" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateLifecyclePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateLifecyclePolicyOutput) GoString() string { + return s.String() +} + +// SetLifecyclePolicyDetail sets the LifecyclePolicyDetail field's value. +func (s *UpdateLifecyclePolicyOutput) SetLifecyclePolicyDetail(v *LifecyclePolicyDetail) *UpdateLifecyclePolicyOutput { + s.LifecyclePolicyDetail = v + return s +} + type UpdateSecurityConfigInput struct { _ struct{} `type:"structure"` @@ -8630,6 +10442,30 @@ func CollectionType_Values() []string { } } +const ( + // LifecyclePolicyTypeRetention is a LifecyclePolicyType enum value + LifecyclePolicyTypeRetention = "retention" +) + +// LifecyclePolicyType_Values returns all elements of the LifecyclePolicyType enum +func LifecyclePolicyType_Values() []string { + return []string{ + LifecyclePolicyTypeRetention, + } +} + +const ( + // ResourceTypeIndex is a ResourceType enum value + ResourceTypeIndex = "index" +) + +// ResourceType_Values returns all elements of the ResourceType enum +func ResourceType_Values() []string { + return []string{ + ResourceTypeIndex, + } +} + const ( // SecurityConfigTypeSaml is a SecurityConfigType enum value SecurityConfigTypeSaml = "saml" diff --git a/service/opensearchserverless/opensearchserverlessiface/interface.go b/service/opensearchserverless/opensearchserverlessiface/interface.go index ebd07cbd8d7..1f142713c3e 100644 --- a/service/opensearchserverless/opensearchserverlessiface/interface.go +++ b/service/opensearchserverless/opensearchserverlessiface/interface.go @@ -64,6 +64,14 @@ type OpenSearchServerlessAPI interface { BatchGetCollectionWithContext(aws.Context, *opensearchserverless.BatchGetCollectionInput, ...request.Option) (*opensearchserverless.BatchGetCollectionOutput, error) BatchGetCollectionRequest(*opensearchserverless.BatchGetCollectionInput) (*request.Request, *opensearchserverless.BatchGetCollectionOutput) + BatchGetEffectiveLifecyclePolicy(*opensearchserverless.BatchGetEffectiveLifecyclePolicyInput) (*opensearchserverless.BatchGetEffectiveLifecyclePolicyOutput, error) + BatchGetEffectiveLifecyclePolicyWithContext(aws.Context, *opensearchserverless.BatchGetEffectiveLifecyclePolicyInput, ...request.Option) (*opensearchserverless.BatchGetEffectiveLifecyclePolicyOutput, error) + BatchGetEffectiveLifecyclePolicyRequest(*opensearchserverless.BatchGetEffectiveLifecyclePolicyInput) (*request.Request, *opensearchserverless.BatchGetEffectiveLifecyclePolicyOutput) + + BatchGetLifecyclePolicy(*opensearchserverless.BatchGetLifecyclePolicyInput) (*opensearchserverless.BatchGetLifecyclePolicyOutput, error) + BatchGetLifecyclePolicyWithContext(aws.Context, *opensearchserverless.BatchGetLifecyclePolicyInput, ...request.Option) (*opensearchserverless.BatchGetLifecyclePolicyOutput, error) + BatchGetLifecyclePolicyRequest(*opensearchserverless.BatchGetLifecyclePolicyInput) (*request.Request, *opensearchserverless.BatchGetLifecyclePolicyOutput) + BatchGetVpcEndpoint(*opensearchserverless.BatchGetVpcEndpointInput) (*opensearchserverless.BatchGetVpcEndpointOutput, error) BatchGetVpcEndpointWithContext(aws.Context, *opensearchserverless.BatchGetVpcEndpointInput, ...request.Option) (*opensearchserverless.BatchGetVpcEndpointOutput, error) BatchGetVpcEndpointRequest(*opensearchserverless.BatchGetVpcEndpointInput) (*request.Request, *opensearchserverless.BatchGetVpcEndpointOutput) @@ -76,6 +84,10 @@ type OpenSearchServerlessAPI interface { CreateCollectionWithContext(aws.Context, *opensearchserverless.CreateCollectionInput, ...request.Option) (*opensearchserverless.CreateCollectionOutput, error) CreateCollectionRequest(*opensearchserverless.CreateCollectionInput) (*request.Request, *opensearchserverless.CreateCollectionOutput) + CreateLifecyclePolicy(*opensearchserverless.CreateLifecyclePolicyInput) (*opensearchserverless.CreateLifecyclePolicyOutput, error) + CreateLifecyclePolicyWithContext(aws.Context, *opensearchserverless.CreateLifecyclePolicyInput, ...request.Option) (*opensearchserverless.CreateLifecyclePolicyOutput, error) + CreateLifecyclePolicyRequest(*opensearchserverless.CreateLifecyclePolicyInput) (*request.Request, *opensearchserverless.CreateLifecyclePolicyOutput) + CreateSecurityConfig(*opensearchserverless.CreateSecurityConfigInput) (*opensearchserverless.CreateSecurityConfigOutput, error) CreateSecurityConfigWithContext(aws.Context, *opensearchserverless.CreateSecurityConfigInput, ...request.Option) (*opensearchserverless.CreateSecurityConfigOutput, error) CreateSecurityConfigRequest(*opensearchserverless.CreateSecurityConfigInput) (*request.Request, *opensearchserverless.CreateSecurityConfigOutput) @@ -96,6 +108,10 @@ type OpenSearchServerlessAPI interface { DeleteCollectionWithContext(aws.Context, *opensearchserverless.DeleteCollectionInput, ...request.Option) (*opensearchserverless.DeleteCollectionOutput, error) DeleteCollectionRequest(*opensearchserverless.DeleteCollectionInput) (*request.Request, *opensearchserverless.DeleteCollectionOutput) + DeleteLifecyclePolicy(*opensearchserverless.DeleteLifecyclePolicyInput) (*opensearchserverless.DeleteLifecyclePolicyOutput, error) + DeleteLifecyclePolicyWithContext(aws.Context, *opensearchserverless.DeleteLifecyclePolicyInput, ...request.Option) (*opensearchserverless.DeleteLifecyclePolicyOutput, error) + DeleteLifecyclePolicyRequest(*opensearchserverless.DeleteLifecyclePolicyInput) (*request.Request, *opensearchserverless.DeleteLifecyclePolicyOutput) + DeleteSecurityConfig(*opensearchserverless.DeleteSecurityConfigInput) (*opensearchserverless.DeleteSecurityConfigOutput, error) DeleteSecurityConfigWithContext(aws.Context, *opensearchserverless.DeleteSecurityConfigInput, ...request.Option) (*opensearchserverless.DeleteSecurityConfigOutput, error) DeleteSecurityConfigRequest(*opensearchserverless.DeleteSecurityConfigInput) (*request.Request, *opensearchserverless.DeleteSecurityConfigOutput) @@ -142,6 +158,13 @@ type OpenSearchServerlessAPI interface { ListCollectionsPages(*opensearchserverless.ListCollectionsInput, func(*opensearchserverless.ListCollectionsOutput, bool) bool) error ListCollectionsPagesWithContext(aws.Context, *opensearchserverless.ListCollectionsInput, func(*opensearchserverless.ListCollectionsOutput, bool) bool, ...request.Option) error + ListLifecyclePolicies(*opensearchserverless.ListLifecyclePoliciesInput) (*opensearchserverless.ListLifecyclePoliciesOutput, error) + ListLifecyclePoliciesWithContext(aws.Context, *opensearchserverless.ListLifecyclePoliciesInput, ...request.Option) (*opensearchserverless.ListLifecyclePoliciesOutput, error) + ListLifecyclePoliciesRequest(*opensearchserverless.ListLifecyclePoliciesInput) (*request.Request, *opensearchserverless.ListLifecyclePoliciesOutput) + + ListLifecyclePoliciesPages(*opensearchserverless.ListLifecyclePoliciesInput, func(*opensearchserverless.ListLifecyclePoliciesOutput, bool) bool) error + ListLifecyclePoliciesPagesWithContext(aws.Context, *opensearchserverless.ListLifecyclePoliciesInput, func(*opensearchserverless.ListLifecyclePoliciesOutput, bool) bool, ...request.Option) error + ListSecurityConfigs(*opensearchserverless.ListSecurityConfigsInput) (*opensearchserverless.ListSecurityConfigsOutput, error) ListSecurityConfigsWithContext(aws.Context, *opensearchserverless.ListSecurityConfigsInput, ...request.Option) (*opensearchserverless.ListSecurityConfigsOutput, error) ListSecurityConfigsRequest(*opensearchserverless.ListSecurityConfigsInput) (*request.Request, *opensearchserverless.ListSecurityConfigsOutput) @@ -187,6 +210,10 @@ type OpenSearchServerlessAPI interface { UpdateCollectionWithContext(aws.Context, *opensearchserverless.UpdateCollectionInput, ...request.Option) (*opensearchserverless.UpdateCollectionOutput, error) UpdateCollectionRequest(*opensearchserverless.UpdateCollectionInput) (*request.Request, *opensearchserverless.UpdateCollectionOutput) + UpdateLifecyclePolicy(*opensearchserverless.UpdateLifecyclePolicyInput) (*opensearchserverless.UpdateLifecyclePolicyOutput, error) + UpdateLifecyclePolicyWithContext(aws.Context, *opensearchserverless.UpdateLifecyclePolicyInput, ...request.Option) (*opensearchserverless.UpdateLifecyclePolicyOutput, error) + UpdateLifecyclePolicyRequest(*opensearchserverless.UpdateLifecyclePolicyInput) (*request.Request, *opensearchserverless.UpdateLifecyclePolicyOutput) + UpdateSecurityConfig(*opensearchserverless.UpdateSecurityConfigInput) (*opensearchserverless.UpdateSecurityConfigOutput, error) UpdateSecurityConfigWithContext(aws.Context, *opensearchserverless.UpdateSecurityConfigInput, ...request.Option) (*opensearchserverless.UpdateSecurityConfigOutput, error) UpdateSecurityConfigRequest(*opensearchserverless.UpdateSecurityConfigInput) (*request.Request, *opensearchserverless.UpdateSecurityConfigOutput)