diff --git a/CHANGELOG.md b/CHANGELOG.md index a0dcb6727b5..b4346a2dd7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +Release v1.47.3 (2023-11-03) +=== + +### Service Client Updates +* `service/config`: Updates service API +* `service/connect`: Updates service API and documentation +* `service/iotwireless`: Updates service API and documentation +* `service/launch-wizard`: Adds new service + Release v1.47.2 (2023-11-02) === diff --git a/aws/version.go b/aws/version.go index 6c3447fa894..7ca99fe5d71 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.47.2" +const SDKVersion = "1.47.3" diff --git a/models/apis/config/2014-11-12/api-2.json b/models/apis/config/2014-11-12/api-2.json index fc9f1a08bae..e4196a0745a 100644 --- a/models/apis/config/2014-11-12/api-2.json +++ b/models/apis/config/2014-11-12/api-2.json @@ -5039,7 +5039,24 @@ "AWS::APS::RuleGroupsNamespace", "AWS::CodeGuruProfiler::ProfilingGroup", "AWS::Route53Resolver::ResolverQueryLoggingConfig", - "AWS::Batch::SchedulingPolicy" + "AWS::Batch::SchedulingPolicy", + "AWS::ACMPCA::CertificateAuthorityActivation", + "AWS::AppMesh::GatewayRoute", + "AWS::AppMesh::Mesh", + "AWS::Connect::Instance", + "AWS::Connect::QuickConnect", + "AWS::EC2::CarrierGateway", + "AWS::EC2::IPAMPool", + "AWS::EC2::TransitGatewayConnect", + "AWS::EC2::TransitGatewayMulticastDomain", + "AWS::ECS::CapacityProvider", + "AWS::IAM::InstanceProfile", + "AWS::IoT::CACertificate", + "AWS::IoTTwinMaker::SyncJob", + "AWS::KafkaConnect::Connector", + "AWS::Lambda::CodeSigningConfig", + "AWS::NetworkManager::ConnectPeer", + "AWS::ResourceExplorer2::Index" ] }, "ResourceTypeList":{ diff --git a/models/apis/config/2014-11-12/endpoint-rule-set-1.json b/models/apis/config/2014-11-12/endpoint-rule-set-1.json index bc269536957..f47d46c5b93 100644 --- a/models/apis/config/2014-11-12/endpoint-rule-set-1.json +++ b/models/apis/config/2014-11-12/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "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": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,18 +212,17 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "stringEquals", "argv": [ - "aws-us-gov", { "fn": "getAttr", "argv": [ @@ -236,7 +231,8 @@ }, "name" ] - } + }, + "aws-us-gov" ] } ], @@ -256,14 +252,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -277,7 +275,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -297,7 +294,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -308,14 +304,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -326,9 +324,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 585ee25ef16..5ffd585a656 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -388,6 +388,23 @@ {"shape":"ThrottlingException"} ] }, + "CreatePersistentContactAssociation":{ + "name":"CreatePersistentContactAssociation", + "http":{ + "method":"POST", + "requestUri":"/contact/persistent-contact-association/{InstanceId}/{InitialContactId}" + }, + "input":{"shape":"CreatePersistentContactAssociationRequest"}, + "output":{"shape":"CreatePersistentContactAssociationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, "CreatePrompt":{ "name":"CreatePrompt", "http":{ @@ -4574,6 +4591,36 @@ "ParticipantId":{"shape":"ParticipantId"} } }, + "CreatePersistentContactAssociationRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "InitialContactId", + "RehydrationType", + "SourceContactId" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "InitialContactId":{ + "shape":"ContactId", + "location":"uri", + "locationName":"InitialContactId" + }, + "RehydrationType":{"shape":"RehydrationType"}, + "SourceContactId":{"shape":"ContactId"}, + "ClientToken":{"shape":"ClientToken"} + } + }, + "CreatePersistentContactAssociationResponse":{ + "type":"structure", + "members":{ + "ContinuedFromContactId":{"shape":"ContactId"} + } + }, "CreatePromptRequest":{ "type":"structure", "required":[ diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index c13d962b8fb..67373d2e694 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -24,6 +24,7 @@ "CreateInstance": "
This API is in preview release for Amazon Connect and is subject to change.
Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage, such as Amazon Simple Storage Service (Amazon S3) or Amazon Kinesis. It also does not allow for any configurations on features, such as Contact Lens for Amazon Connect.
Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.
", "CreateIntegrationAssociation": "Creates an Amazon Web Services resource association with an Amazon Connect instance.
", "CreateParticipant": "Adds a new participant into an on-going chat contact. For more information, see Customize chat flow experiences by integrating custom participants.
", + "CreatePersistentContactAssociation": "Enables rehydration of chats for the lifespan of a contact. For more information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator Guide.
", "CreatePrompt": "Creates a prompt. For more information about prompts, such as supported file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide.
", "CreateQueue": "This API is in preview release for Amazon Connect and is subject to change.
Creates a new queue for the specified Amazon Connect instance.
If the phone number is claimed to a traffic distribution group that was created in the same Region as the Amazon Connect instance where you are calling this API, then you can use a full phone number ARN or a UUID for OutboundCallerIdNumberId
. However, if the phone number is claimed to a traffic distribution group that is in one Region, and you are calling this API from an instance in another Amazon Web Services Region that is associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive a ResourceNotFoundException
.
Only use the phone number ARN format that doesn't contain instance
in the path, for example, arn:aws:connect:us-east-1:1234567890:phone-number/uuid
. This is the same ARN format that is returned when you call the ListPhoneNumbersV2 API.
If you plan to use IAM policies to allow/deny access to this API for phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica Region.
Creates a quick connect for the specified Amazon Connect instance.
", @@ -903,6 +904,7 @@ "CreateEvaluationFormRequest$ClientToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
", "CreateInstanceRequest$ClientToken": "The idempotency token.
", "CreateParticipantRequest$ClientToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
", + "CreatePersistentContactAssociationRequest$ClientToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
", "CreateRuleRequest$ClientToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
", "CreateTaskTemplateRequest$ClientToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
", "CreateTrafficDistributionGroupRequest$ClientToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
", @@ -1137,6 +1139,9 @@ "Contact$PreviousContactId": "If this contact is not the first contact, this is the ID of the previous contact.
", "Contact$RelatedContactId": "The contactId that is related to this contact.
", "CreateParticipantRequest$ContactId": "The identifier of the contact in this instance of Amazon Connect. Only contacts in the CHAT channel are supported.
", + "CreatePersistentContactAssociationRequest$InitialContactId": "This is the contactId of the current contact that the CreatePersistentContactAssociation
API is being called from.
The contactId from which a persistent chat session must be started.
", + "CreatePersistentContactAssociationResponse$ContinuedFromContactId": "The contactId from which a persistent chat session is started. This field is populated only for persistent chat.
", "DescribeContactRequest$ContactId": "The identifier of the contact.
", "DismissUserContactRequest$ContactId": "The identifier of the contact.
", "EvaluationMetadata$ContactId": "The identifier of the contact in this instance of Amazon Connect.
", @@ -1304,6 +1309,16 @@ "refs": { } }, + "CreatePersistentContactAssociationRequest": { + "base": null, + "refs": { + } + }, + "CreatePersistentContactAssociationResponse": { + "base": null, + "refs": { + } + }, "CreatePromptRequest": { "base": null, "refs": { @@ -3010,6 +3025,7 @@ "CreateInstanceResponse$Id": "The identifier for the instance.
", "CreateIntegrationAssociationRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "CreateParticipantRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", + "CreatePersistentContactAssociationRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "CreatePromptRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "CreateQueueRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "CreateQuickConnectRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", @@ -5018,6 +5034,7 @@ "RehydrationType": { "base": null, "refs": { + "CreatePersistentContactAssociationRequest$RehydrationType": "The contactId chosen for rehydration depends on the type chosen.
ENTIRE_PAST_SESSION
: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide the initialContactId
of the past ended chat session in the sourceContactId
field. In this type, Amazon Connect determines what the most recent chat contact on the past ended chat session and uses it to start a persistent chat.
FROM_SEGMENT
: Rehydrates a chat from the specified past chat contact provided in the sourceContactId
field.
The actual contactId used for rehydration is provided in the response of this API.
To illustrate how to use rehydration type, consider the following example: A customer starts a chat session. Agent a1 accepts the chat and a conversation starts between the customer and Agent a1. This first contact creates a contact ID C1. Agent a1 then transfers the chat to Agent a2. This creates another contact ID C2. At this point Agent a2 ends the chat. The customer is forwarded to the disconnect flow for a post chat survey that creates another contact ID C3. After the chat survey, the chat session ends. Later, the customer returns and wants to resume their past chat session. At this point, the customer can have following use cases:
Use Case 1: The customer wants to continue the past chat session but they want to hide the post chat survey. For this they will use the following configuration:
Configuration
SourceContactId = \"C2\"
RehydrationType = \"FROM_SEGMENT\"
Expected behavior
This starts a persistent chat session from the specified past ended contact (C2). Transcripts of past chat sessions C2 and C1 are accessible in the current persistent chat session. Note that chat segment C3 is dropped from the persistent chat session.
Use Case 2: The customer wants to continue the past chat session and see the transcript of the entire past engagement, including the post chat survey. For this they will use the following configuration:
Configuration
SourceContactId = \"C1\"
RehydrationType = \"ENTIRE_PAST_SESSION\"
Expected behavior
This starts a persistent chat session from the most recently ended chat contact (C3). Transcripts of past chat sessions C3, C2 and C1 are accessible in the current persistent chat session.
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
ENTIRE_PAST_SESSION
: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide the initialContactId
of the past ended chat session in the sourceContactId
field. In this type, Amazon Connect determines the most recent chat contact on the specified chat session that has ended, and uses it to start a persistent chat.
FROM_SEGMENT
: Rehydrates a chat from the past chat contact that is specified in the sourceContactId
field.
The actual contactId used for rehydration is provided in the response of this API.
" } }, diff --git a/models/apis/connect/2017-08-08/endpoint-tests-1.json b/models/apis/connect/2017-08-08/endpoint-tests-1.json index f84fda681e7..64ee76a85b4 100644 --- a/models/apis/connect/2017-08-08/endpoint-tests-1.json +++ b/models/apis/connect/2017-08-08/endpoint-tests-1.json @@ -451,6 +451,17 @@ "expect": { "error": "Invalid Configuration: Missing Region" } + }, + { + "documentation": "Partition doesn't support DualStack", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } } ], "version": "1.0" diff --git a/models/apis/iotwireless/2020-11-22/api-2.json b/models/apis/iotwireless/2020-11-22/api-2.json index da54ae6b0b8..7209e8a6120 100644 --- a/models/apis/iotwireless/2020-11-22/api-2.json +++ b/models/apis/iotwireless/2020-11-22/api-2.json @@ -5131,6 +5131,7 @@ "members":{ "AppKey":{"shape":"AppKey"}, "AppEui":{"shape":"AppEui"}, + "JoinEui":{"shape":"JoinEui"}, "GenAppKey":{"shape":"GenAppKey"} } }, diff --git a/models/apis/iotwireless/2020-11-22/docs-2.json b/models/apis/iotwireless/2020-11-22/docs-2.json index 6cba1613639..6e652bf1bf9 100644 --- a/models/apis/iotwireless/2020-11-22/docs-2.json +++ b/models/apis/iotwireless/2020-11-22/docs-2.json @@ -1440,7 +1440,7 @@ "GeoJsonPayload": { "base": null, "refs": { - "GetPositionEstimateResponse$GeoJsonPayload": "The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON.
", + "GetPositionEstimateResponse$GeoJsonPayload": "The position information of the resource, displayed as a JSON payload. The payload is of type blob and uses the GeoJSON format, which a format that's used to encode geographic data structures. A sample payload contains the timestamp information, the WGS84 coordinates of the location, and the accuracy and confidence level. For more information and examples, see Resolve device location (console).
", "GetResourcePositionResponse$GeoJsonPayload": "The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON.
", "UpdateResourcePositionRequest$GeoJsonPayload": "The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON.
" } @@ -1910,6 +1910,7 @@ "base": null, "refs": { "JoinEuiRange$member": null, + "OtaaV1_0_x$JoinEui": "The JoinEUI value.
", "OtaaV1_1$JoinEui": "The JoinEUI value.
" } }, @@ -2383,7 +2384,7 @@ "MaxDutyCycle": { "base": null, "refs": { - "LoRaWANDeviceProfile$MaxDutyCycle": "The MaxDutyCycle value.
" + "LoRaWANDeviceProfile$MaxDutyCycle": "The MaxDutyCycle value. It ranges from 0 to 15.
" } }, "MaxEirp": { @@ -2479,7 +2480,7 @@ } }, "MulticastFrameInfo": { - "base": " FrameInfo
of your multicast group resources for the trace content. Use FrameInfo to debug the multicast communication between your LoRaWAN end devices and the network server.
FrameInfo
of your multicast group resources for the trace content. Use FrameInfo to debug the multicast communication between your multicast groups and the network server.
Multicast Group resources to add to the network analyzer configruation. Provide the MulticastGroupId
of the resource to add in the input array.
List of multicast group resources that have been added to the network analyzer configuration.
", "UpdateNetworkAnalyzerConfigurationRequest$MulticastGroupsToAdd": "Multicast group resources to add to the network analyzer configuration. Provide the MulticastGroupId
of the resource to add in the input array.
Multicast group resources to remove from the network analyzer configuration. Provide the MulticastGroupId
of the resource to remove in the input array.
Multicast group resources to remove from the network analyzer configuration. Provide the MulticastGroupId
of the resources to remove in the input array.
Trace content for your wireless gateway and wireless device resources.
", + "base": "Trace content for your wireless devices, gateways, and multicast groups.
", "refs": { "CreateNetworkAnalyzerConfigurationRequest$TraceContent": null, "GetNetworkAnalyzerConfigurationResponse$TraceContent": null, @@ -4080,7 +4081,7 @@ "base": null, "refs": { "CreateNetworkAnalyzerConfigurationRequest$WirelessDevices": "Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
of the resource to add in the input array.
List of wireless gateway resources that have been added to the network analyzer configuration.
", + "GetNetworkAnalyzerConfigurationResponse$WirelessDevices": "List of wireless device resources that have been added to the network analyzer configuration.
", "UpdateNetworkAnalyzerConfigurationRequest$WirelessDevicesToAdd": "Wireless device resources to add to the network analyzer configuration. Provide the WirelessDeviceId
of the resource to add in the input array.
Wireless device resources to remove from the network analyzer configuration. Provide the WirelessDeviceId
of the resources to remove in the input array.
Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually identify and provision individual Amazon Web Services resources.
", + "operations": { + "CreateDeployment": "Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the Clone deployment
action on.
Deletes a deployment.
", + "GetDeployment": "Returns information about the deployment.
", + "GetWorkload": "Returns information about a workload.
", + "ListDeploymentEvents": "Lists the events of a deployment.
", + "ListDeployments": "Lists the deployments that have been created.
", + "ListWorkloadDeploymentPatterns": "Lists the workload deployment patterns.
", + "ListWorkloads": "Lists the workloads.
" + }, + "shapes": { + "Boolean": { + "base": null, + "refs": { + "CreateDeploymentInput$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
.
The data associated with a deployment.
", + "refs": { + "GetDeploymentOutput$deployment": "An object that details the deployment.
" + } + }, + "DeploymentDataSummary": { + "base": "A summary of the deployment data.
", + "refs": { + "DeploymentDataSummaryList$member": null + } + }, + "DeploymentDataSummaryList": { + "base": null, + "refs": { + "ListDeploymentsOutput$deployments": "Lists the deployments.
" + } + }, + "DeploymentEventDataSummary": { + "base": "A summary of the deployment event data.
", + "refs": { + "DeploymentEventDataSummaryList$member": null + } + }, + "DeploymentEventDataSummaryList": { + "base": null, + "refs": { + "ListDeploymentEventsOutput$deploymentEvents": "Lists the deployment events.
" + } + }, + "DeploymentFilter": { + "base": "A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria.
", + "refs": { + "DeploymentFilterList$member": null + } + }, + "DeploymentFilterKey": { + "base": null, + "refs": { + "DeploymentFilter$name": "The name of the filter. Filter names are case-sensitive.
" + } + }, + "DeploymentFilterList": { + "base": null, + "refs": { + "ListDeploymentsInput$filters": "Filters to scope the results. The following filters are supported:
WORKLOAD_NAME
DEPLOYMENT_STATUS
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR
, and the request returns all results that match any of the specified values.
The ID of the deployment.
", + "DeleteDeploymentInput$deploymentId": "The ID of the deployment.
", + "DeploymentData$id": "The ID of the deployment.
", + "DeploymentDataSummary$id": "The ID of the deployment.
", + "GetDeploymentInput$deploymentId": "The ID of the deployment.
", + "ListDeploymentEventsInput$deploymentId": "The ID of the deployment.
" + } + }, + "DeploymentName": { + "base": null, + "refs": { + "CreateDeploymentInput$name": "The name of the deployment.
" + } + }, + "DeploymentPatternName": { + "base": null, + "refs": { + "CreateDeploymentInput$deploymentPatternName": "The name of the deployment pattern supported by a given workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
The pattern name of the deployment.
", + "DeploymentDataSummary$patternName": "The name of the workload deployment pattern.
", + "WorkloadDeploymentPatternDataSummary$deploymentPatternName": "The name of a workload deployment pattern.
" + } + }, + "DeploymentSpecifications": { + "base": null, + "refs": { + "CreateDeploymentInput$specifications": "The settings specified for the deployment. For more information on the specifications required for creating a deployment, see Workload specifications.
", + "DeploymentData$specifications": "The specifications of the deployment. For more information on specifications for each deployment, see Workload specifications.
" + } + }, + "DeploymentStatus": { + "base": null, + "refs": { + "DeleteDeploymentOutput$status": "The status of the deployment.
", + "DeploymentData$status": "The status of the deployment.
", + "DeploymentDataSummary$status": "The status of the deployment.
" + } + }, + "EventStatus": { + "base": null, + "refs": { + "DeploymentEventDataSummary$status": "The status of the deployment event.
" + } + }, + "GetDeploymentInput": { + "base": null, + "refs": { + } + }, + "GetDeploymentOutput": { + "base": null, + "refs": { + } + }, + "GetWorkloadInput": { + "base": null, + "refs": { + } + }, + "GetWorkloadOutput": { + "base": null, + "refs": { + } + }, + "InternalServerException": { + "base": "An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
", + "refs": { + } + }, + "KeyString": { + "base": null, + "refs": { + "DeploymentSpecifications$key": null + } + }, + "ListDeploymentEventsInput": { + "base": null, + "refs": { + } + }, + "ListDeploymentEventsOutput": { + "base": null, + "refs": { + } + }, + "ListDeploymentsInput": { + "base": null, + "refs": { + } + }, + "ListDeploymentsOutput": { + "base": null, + "refs": { + } + }, + "ListWorkloadDeploymentPatternsInput": { + "base": null, + "refs": { + } + }, + "ListWorkloadDeploymentPatternsOutput": { + "base": null, + "refs": { + } + }, + "ListWorkloadsInput": { + "base": null, + "refs": { + } + }, + "ListWorkloadsOutput": { + "base": null, + "refs": { + } + }, + "MaxDeploymentEventResults": { + "base": null, + "refs": { + "ListDeploymentEventsInput$maxResults": "The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.
" + } + }, + "MaxDeploymentResults": { + "base": null, + "refs": { + "ListDeploymentsInput$maxResults": "The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.
" + } + }, + "MaxWorkloadDeploymentPatternResults": { + "base": null, + "refs": { + "ListWorkloadDeploymentPatternsInput$maxResults": "The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.
" + } + }, + "MaxWorkloadResults": { + "base": null, + "refs": { + "ListWorkloadsInput$maxResults": "The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.
" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListDeploymentEventsInput$nextToken": "The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
", + "ListDeploymentEventsOutput$nextToken": "The token to include in another request to get the next page of items. This value is null
when there are no more items to return.
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
", + "ListDeploymentsOutput$nextToken": "The token to include in another request to get the next page of items. This value is null
when there are no more items to return.
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
", + "ListWorkloadDeploymentPatternsOutput$nextToken": "The token to include in another request to get the next page of items. This value is null
when there are no more items to return.
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
", + "ListWorkloadsOutput$nextToken": "The token to include in another request to get the next page of items. This value is null
when there are no more items to return.
You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
", + "refs": { + } + }, + "ResourceNotFoundException": { + "base": "The specified workload or deployment resource can't be found.
", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "DeleteDeploymentOutput$statusReason": "The reason for the deployment status.
", + "DeploymentData$name": "The name of the deployment.
", + "DeploymentData$resourceGroup": "The resource group of the deployment.
", + "DeploymentDataSummary$name": "The name of the deployment
", + "DeploymentEventDataSummary$description": "The description of the deployment event.
", + "DeploymentEventDataSummary$name": "The name of the deployment event.
", + "DeploymentEventDataSummary$statusReason": "The reason of the deployment event status.
", + "InternalServerException$message": null, + "ResourceLimitException$message": null, + "ResourceNotFoundException$message": null, + "ValidationException$message": null, + "WorkloadData$description": "The description of a workload.
", + "WorkloadData$displayName": "The display name of a workload.
", + "WorkloadData$documentationUrl": "The URL of a workload document.
", + "WorkloadData$iconUrl": "The URL of a workload icon.
", + "WorkloadData$statusMessage": "The message about a workload's status.
", + "WorkloadDataSummary$displayName": "The display name of the workload data.
", + "WorkloadDeploymentPatternDataSummary$description": "The description of a workload deployment pattern.
", + "WorkloadDeploymentPatternDataSummary$displayName": "The display name of a workload deployment pattern.
", + "WorkloadDeploymentPatternDataSummary$statusMessage": "A message about a workload deployment pattern's status.
" + } + }, + "Timestamp": { + "base": null, + "refs": { + "DeploymentData$createdAt": "The time the deployment was created.
", + "DeploymentData$deletedAt": "The time the deployment was deleted.
", + "DeploymentDataSummary$createdAt": "The time the deployment was created.
", + "DeploymentEventDataSummary$timestamp": "The timestamp of the deployment event.
" + } + }, + "ValidationException": { + "base": "The input fails to satisfy the constraints specified by an Amazon Web Services service.
", + "refs": { + } + }, + "ValueString": { + "base": null, + "refs": { + "DeploymentSpecifications$value": null + } + }, + "WorkloadData": { + "base": "Describes a workload.
", + "refs": { + "GetWorkloadOutput$workload": "Information about the workload.
" + } + }, + "WorkloadDataSummary": { + "base": "Describes workload data.
", + "refs": { + "WorkloadDataSummaryList$member": null + } + }, + "WorkloadDataSummaryList": { + "base": null, + "refs": { + "ListWorkloadsOutput$workloads": "Information about the workloads.
" + } + }, + "WorkloadDeploymentPatternDataSummary": { + "base": "Describes a workload deployment pattern.
", + "refs": { + "WorkloadDeploymentPatternDataSummaryList$member": null + } + }, + "WorkloadDeploymentPatternDataSummaryList": { + "base": null, + "refs": { + "ListWorkloadDeploymentPatternsOutput$workloadDeploymentPatterns": "Describes the workload deployment patterns.
" + } + }, + "WorkloadDeploymentPatternStatus": { + "base": null, + "refs": { + "WorkloadDeploymentPatternDataSummary$status": "The status of a workload deployment pattern.
" + } + }, + "WorkloadName": { + "base": null, + "refs": { + "CreateDeploymentInput$workloadName": "The name of the workload. You can use the ListWorkloadDeploymentPatterns
operation to discover supported values for this parameter.
The name of the workload.
", + "DeploymentDataSummary$workloadName": "The name of the workload.
", + "GetWorkloadInput$workloadName": "The name of the workload.
", + "ListWorkloadDeploymentPatternsInput$workloadName": "The name of the workload.
", + "WorkloadData$workloadName": "The name of the workload.
", + "WorkloadDataSummary$workloadName": "The name of the workload.
", + "WorkloadDeploymentPatternDataSummary$workloadName": "The name of the workload.
" + } + }, + "WorkloadStatus": { + "base": null, + "refs": { + "WorkloadData$status": "The status of a workload.
" + } + }, + "WorkloadVersionName": { + "base": null, + "refs": { + "WorkloadDeploymentPatternDataSummary$workloadVersionName": "The name of the workload deployment pattern version.
" + } + } + } +} diff --git a/models/apis/launch-wizard/2018-05-10/endpoint-rule-set-1.json b/models/apis/launch-wizard/2018-05-10/endpoint-rule-set-1.json new file mode 100644 index 00000000000..3e61790488b --- /dev/null +++ b/models/apis/launch-wizard/2018-05-10/endpoint-rule-set-1.json @@ -0,0 +1,350 @@ +{ + "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": [], + "rules": [ + { + "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" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "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": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://launchwizard-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "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": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://launchwizard-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "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": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://launchwizard.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://launchwizard.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "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/launch-wizard/2018-05-10/endpoint-tests-1.json b/models/apis/launch-wizard/2018-05-10/endpoint-tests-1.json new file mode 100644 index 00000000000..850ed0a8fda --- /dev/null +++ b/models/apis/launch-wizard/2018-05-10/endpoint-tests-1.json @@ -0,0 +1,325 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://launchwizard-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://launchwizard-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://launchwizard.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://launchwizard.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://launchwizard-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://launchwizard-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://launchwizard.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://launchwizard.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://launchwizard-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://launchwizard-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://launchwizard.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://launchwizard.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://launchwizard-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://launchwizard.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://launchwizard-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://launchwizard.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" + } + }, + { + "documentation": "Partition doesn't support DualStack", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/launch-wizard/2018-05-10/examples-1.json b/models/apis/launch-wizard/2018-05-10/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/launch-wizard/2018-05-10/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/launch-wizard/2018-05-10/paginators-1.json b/models/apis/launch-wizard/2018-05-10/paginators-1.json new file mode 100644 index 00000000000..7f6109538bc --- /dev/null +++ b/models/apis/launch-wizard/2018-05-10/paginators-1.json @@ -0,0 +1,28 @@ +{ + "pagination": { + "ListDeploymentEvents": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "deploymentEvents" + }, + "ListDeployments": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "deployments" + }, + "ListWorkloadDeploymentPatterns": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "workloadDeploymentPatterns" + }, + "ListWorkloads": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "workloads" + } + } +} diff --git a/service/configservice/api.go b/service/configservice/api.go index 905a9c97eb7..60a02da93ec 100644 --- a/service/configservice/api.go +++ b/service/configservice/api.go @@ -35072,6 +35072,57 @@ const ( // ResourceTypeAwsBatchSchedulingPolicy is a ResourceType enum value ResourceTypeAwsBatchSchedulingPolicy = "AWS::Batch::SchedulingPolicy" + + // ResourceTypeAwsAcmpcaCertificateAuthorityActivation is a ResourceType enum value + ResourceTypeAwsAcmpcaCertificateAuthorityActivation = "AWS::ACMPCA::CertificateAuthorityActivation" + + // ResourceTypeAwsAppMeshGatewayRoute is a ResourceType enum value + ResourceTypeAwsAppMeshGatewayRoute = "AWS::AppMesh::GatewayRoute" + + // ResourceTypeAwsAppMeshMesh is a ResourceType enum value + ResourceTypeAwsAppMeshMesh = "AWS::AppMesh::Mesh" + + // ResourceTypeAwsConnectInstance is a ResourceType enum value + ResourceTypeAwsConnectInstance = "AWS::Connect::Instance" + + // ResourceTypeAwsConnectQuickConnect is a ResourceType enum value + ResourceTypeAwsConnectQuickConnect = "AWS::Connect::QuickConnect" + + // ResourceTypeAwsEc2CarrierGateway is a ResourceType enum value + ResourceTypeAwsEc2CarrierGateway = "AWS::EC2::CarrierGateway" + + // ResourceTypeAwsEc2Ipampool is a ResourceType enum value + ResourceTypeAwsEc2Ipampool = "AWS::EC2::IPAMPool" + + // ResourceTypeAwsEc2TransitGatewayConnect is a ResourceType enum value + ResourceTypeAwsEc2TransitGatewayConnect = "AWS::EC2::TransitGatewayConnect" + + // ResourceTypeAwsEc2TransitGatewayMulticastDomain is a ResourceType enum value + ResourceTypeAwsEc2TransitGatewayMulticastDomain = "AWS::EC2::TransitGatewayMulticastDomain" + + // ResourceTypeAwsEcsCapacityProvider is a ResourceType enum value + ResourceTypeAwsEcsCapacityProvider = "AWS::ECS::CapacityProvider" + + // ResourceTypeAwsIamInstanceProfile is a ResourceType enum value + ResourceTypeAwsIamInstanceProfile = "AWS::IAM::InstanceProfile" + + // ResourceTypeAwsIoTCacertificate is a ResourceType enum value + ResourceTypeAwsIoTCacertificate = "AWS::IoT::CACertificate" + + // ResourceTypeAwsIoTtwinMakerSyncJob is a ResourceType enum value + ResourceTypeAwsIoTtwinMakerSyncJob = "AWS::IoTTwinMaker::SyncJob" + + // ResourceTypeAwsKafkaConnectConnector is a ResourceType enum value + ResourceTypeAwsKafkaConnectConnector = "AWS::KafkaConnect::Connector" + + // ResourceTypeAwsLambdaCodeSigningConfig is a ResourceType enum value + ResourceTypeAwsLambdaCodeSigningConfig = "AWS::Lambda::CodeSigningConfig" + + // ResourceTypeAwsNetworkManagerConnectPeer is a ResourceType enum value + ResourceTypeAwsNetworkManagerConnectPeer = "AWS::NetworkManager::ConnectPeer" + + // ResourceTypeAwsResourceExplorer2Index is a ResourceType enum value + ResourceTypeAwsResourceExplorer2Index = "AWS::ResourceExplorer2::Index" ) // ResourceType_Values returns all elements of the ResourceType enum @@ -35449,6 +35500,23 @@ func ResourceType_Values() []string { ResourceTypeAwsCodeGuruProfilerProfilingGroup, ResourceTypeAwsRoute53resolverResolverQueryLoggingConfig, ResourceTypeAwsBatchSchedulingPolicy, + ResourceTypeAwsAcmpcaCertificateAuthorityActivation, + ResourceTypeAwsAppMeshGatewayRoute, + ResourceTypeAwsAppMeshMesh, + ResourceTypeAwsConnectInstance, + ResourceTypeAwsConnectQuickConnect, + ResourceTypeAwsEc2CarrierGateway, + ResourceTypeAwsEc2Ipampool, + ResourceTypeAwsEc2TransitGatewayConnect, + ResourceTypeAwsEc2TransitGatewayMulticastDomain, + ResourceTypeAwsEcsCapacityProvider, + ResourceTypeAwsIamInstanceProfile, + ResourceTypeAwsIoTCacertificate, + ResourceTypeAwsIoTtwinMakerSyncJob, + ResourceTypeAwsKafkaConnectConnector, + ResourceTypeAwsLambdaCodeSigningConfig, + ResourceTypeAwsNetworkManagerConnectPeer, + ResourceTypeAwsResourceExplorer2Index, } } diff --git a/service/connect/api.go b/service/connect/api.go index d663ebe7315..80ed894d13e 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -2199,6 +2199,102 @@ func (c *Connect) CreateParticipantWithContext(ctx aws.Context, input *CreatePar return out, req.Send() } +const opCreatePersistentContactAssociation = "CreatePersistentContactAssociation" + +// CreatePersistentContactAssociationRequest generates a "aws/request.Request" representing the +// client's request for the CreatePersistentContactAssociation 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 CreatePersistentContactAssociation for more information on using the CreatePersistentContactAssociation +// 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 CreatePersistentContactAssociationRequest method. +// req, resp := client.CreatePersistentContactAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreatePersistentContactAssociation +func (c *Connect) CreatePersistentContactAssociationRequest(input *CreatePersistentContactAssociationInput) (req *request.Request, output *CreatePersistentContactAssociationOutput) { + op := &request.Operation{ + Name: opCreatePersistentContactAssociation, + HTTPMethod: "POST", + HTTPPath: "/contact/persistent-contact-association/{InstanceId}/{InitialContactId}", + } + + if input == nil { + input = &CreatePersistentContactAssociationInput{} + } + + output = &CreatePersistentContactAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreatePersistentContactAssociation API operation for Amazon Connect Service. +// +// Enables rehydration of chats for the lifespan of a contact. For more information +// about chat rehydration, see Enable persistent chat (https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html) +// in the Amazon Connect Administrator Guide. +// +// 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 Amazon Connect Service's +// API operation CreatePersistentContactAssociation for usage and error information. +// +// Returned Error Types: +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - ThrottlingException +// The throttling limit has been exceeded. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreatePersistentContactAssociation +func (c *Connect) CreatePersistentContactAssociation(input *CreatePersistentContactAssociationInput) (*CreatePersistentContactAssociationOutput, error) { + req, out := c.CreatePersistentContactAssociationRequest(input) + return out, req.Send() +} + +// CreatePersistentContactAssociationWithContext is the same as CreatePersistentContactAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See CreatePersistentContactAssociation 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 *Connect) CreatePersistentContactAssociationWithContext(ctx aws.Context, input *CreatePersistentContactAssociationInput, opts ...request.Option) (*CreatePersistentContactAssociationOutput, error) { + req, out := c.CreatePersistentContactAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreatePrompt = "CreatePrompt" // CreatePromptRequest generates a "aws/request.Request" representing the @@ -28065,6 +28161,189 @@ func (s *CreateParticipantOutput) SetParticipantId(v string) *CreateParticipantO return s } +type CreatePersistentContactAssociationInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. If not provided, the Amazon Web Services SDK populates this + // field. For more information about idempotency, see Making retries safe with + // idempotent APIs (https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/). + ClientToken *string `type:"string"` + + // This is the contactId of the current contact that the CreatePersistentContactAssociation + // API is being called from. + // + // InitialContactId is a required field + InitialContactId *string `location:"uri" locationName:"InitialContactId" min:"1" type:"string" required:"true"` + + // The identifier of the Amazon Connect instance. You can find the instance + // ID (https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) + // in the Amazon Resource Name (ARN) of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The contactId chosen for rehydration depends on the type chosen. + // + // * ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated + // past chat contact of the specified past ended chat session. To use this + // type, provide the initialContactId of the past ended chat session in the + // sourceContactId field. In this type, Amazon Connect determines what the + // most recent chat contact on the past ended chat session and uses it to + // start a persistent chat. + // + // * FROM_SEGMENT: Rehydrates a chat from the specified past chat contact + // provided in the sourceContactId field. + // + // The actual contactId used for rehydration is provided in the response of + // this API. + // + // To illustrate how to use rehydration type, consider the following example: + // A customer starts a chat session. Agent a1 accepts the chat and a conversation + // starts between the customer and Agent a1. This first contact creates a contact + // ID C1. Agent a1 then transfers the chat to Agent a2. This creates another + // contact ID C2. At this point Agent a2 ends the chat. The customer is forwarded + // to the disconnect flow for a post chat survey that creates another contact + // ID C3. After the chat survey, the chat session ends. Later, the customer + // returns and wants to resume their past chat session. At this point, the customer + // can have following use cases: + // + // * Use Case 1: The customer wants to continue the past chat session but + // they want to hide the post chat survey. For this they will use the following + // configuration: Configuration SourceContactId = "C2" RehydrationType = + // "FROM_SEGMENT" Expected behavior This starts a persistent chat session + // from the specified past ended contact (C2). Transcripts of past chat sessions + // C2 and C1 are accessible in the current persistent chat session. Note + // that chat segment C3 is dropped from the persistent chat session. + // + // * Use Case 2: The customer wants to continue the past chat session and + // see the transcript of the entire past engagement, including the post chat + // survey. For this they will use the following configuration: Configuration + // SourceContactId = "C1" RehydrationType = "ENTIRE_PAST_SESSION" Expected + // behavior This starts a persistent chat session from the most recently + // ended chat contact (C3). Transcripts of past chat sessions C3, C2 and + // C1 are accessible in the current persistent chat session. + // + // RehydrationType is a required field + RehydrationType *string `type:"string" required:"true" enum:"RehydrationType"` + + // The contactId from which a persistent chat session must be started. + // + // SourceContactId is a required field + SourceContactId *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 CreatePersistentContactAssociationInput) 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 CreatePersistentContactAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePersistentContactAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePersistentContactAssociationInput"} + if s.InitialContactId == nil { + invalidParams.Add(request.NewErrParamRequired("InitialContactId")) + } + if s.InitialContactId != nil && len(*s.InitialContactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InitialContactId", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.RehydrationType == nil { + invalidParams.Add(request.NewErrParamRequired("RehydrationType")) + } + if s.SourceContactId == nil { + invalidParams.Add(request.NewErrParamRequired("SourceContactId")) + } + if s.SourceContactId != nil && len(*s.SourceContactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceContactId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreatePersistentContactAssociationInput) SetClientToken(v string) *CreatePersistentContactAssociationInput { + s.ClientToken = &v + return s +} + +// SetInitialContactId sets the InitialContactId field's value. +func (s *CreatePersistentContactAssociationInput) SetInitialContactId(v string) *CreatePersistentContactAssociationInput { + s.InitialContactId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreatePersistentContactAssociationInput) SetInstanceId(v string) *CreatePersistentContactAssociationInput { + s.InstanceId = &v + return s +} + +// SetRehydrationType sets the RehydrationType field's value. +func (s *CreatePersistentContactAssociationInput) SetRehydrationType(v string) *CreatePersistentContactAssociationInput { + s.RehydrationType = &v + return s +} + +// SetSourceContactId sets the SourceContactId field's value. +func (s *CreatePersistentContactAssociationInput) SetSourceContactId(v string) *CreatePersistentContactAssociationInput { + s.SourceContactId = &v + return s +} + +type CreatePersistentContactAssociationOutput struct { + _ struct{} `type:"structure"` + + // The contactId from which a persistent chat session is started. This field + // is populated only for persistent chat. + ContinuedFromContactId *string `min:"1" 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 CreatePersistentContactAssociationOutput) 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 CreatePersistentContactAssociationOutput) GoString() string { + return s.String() +} + +// SetContinuedFromContactId sets the ContinuedFromContactId field's value. +func (s *CreatePersistentContactAssociationOutput) SetContinuedFromContactId(v string) *CreatePersistentContactAssociationOutput { + s.ContinuedFromContactId = &v + return s +} + type CreatePromptInput struct { _ struct{} `type:"structure"` diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index eff76ddc07a..9c4c3e302b8 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -148,6 +148,10 @@ type ConnectAPI interface { CreateParticipantWithContext(aws.Context, *connect.CreateParticipantInput, ...request.Option) (*connect.CreateParticipantOutput, error) CreateParticipantRequest(*connect.CreateParticipantInput) (*request.Request, *connect.CreateParticipantOutput) + CreatePersistentContactAssociation(*connect.CreatePersistentContactAssociationInput) (*connect.CreatePersistentContactAssociationOutput, error) + CreatePersistentContactAssociationWithContext(aws.Context, *connect.CreatePersistentContactAssociationInput, ...request.Option) (*connect.CreatePersistentContactAssociationOutput, error) + CreatePersistentContactAssociationRequest(*connect.CreatePersistentContactAssociationInput) (*request.Request, *connect.CreatePersistentContactAssociationOutput) + CreatePrompt(*connect.CreatePromptInput) (*connect.CreatePromptOutput, error) CreatePromptWithContext(aws.Context, *connect.CreatePromptInput, ...request.Option) (*connect.CreatePromptOutput, error) CreatePromptRequest(*connect.CreatePromptInput) (*request.Request, *connect.CreatePromptOutput) diff --git a/service/iotwireless/api.go b/service/iotwireless/api.go index 83c195fe996..a4cc1083f05 100644 --- a/service/iotwireless/api.go +++ b/service/iotwireless/api.go @@ -13115,7 +13115,7 @@ type CreateNetworkAnalyzerConfigurationInput struct { // use to manage a resource. Tags []*Tag `type:"list"` - // Trace content for your wireless gateway and wireless device resources. + // Trace content for your wireless devices, gateways, and multicast groups. TraceContent *TraceContent `type:"structure"` // Wireless device resources to add to the network analyzer configuration. Provide @@ -17044,10 +17044,10 @@ type GetNetworkAnalyzerConfigurationOutput struct { // Name of the network analyzer configuration. Name *string `min:"1" type:"string"` - // Trace content for your wireless gateway and wireless device resources. + // Trace content for your wireless devices, gateways, and multicast groups. TraceContent *TraceContent `type:"structure"` - // List of wireless gateway resources that have been added to the network analyzer + // List of wireless device resources that have been added to the network analyzer // configuration. WirelessDevices []*string `type:"list"` @@ -17439,8 +17439,11 @@ type GetPositionEstimateOutput struct { _ struct{} `type:"structure" payload:"GeoJsonPayload"` // The position information of the resource, displayed as a JSON payload. The - // payload uses the GeoJSON format, which a format that's used to encode geographic - // data structures. For more information, see GeoJSON (https://geojson.org/). + // payload is of type blob and uses the GeoJSON (https://geojson.org/) format, + // which a format that's used to encode geographic data structures. A sample + // payload contains the timestamp information, the WGS84 coordinates of the + // location, and the accuracy and confidence level. For more information and + // examples, see Resolve device location (console) (https://docs.aws.amazon.com/iot/latest/developerguide/location-resolve-console.html). GeoJsonPayload []byte `type:"blob"` } @@ -21882,7 +21885,7 @@ type LoRaWANDeviceProfile struct { // profile. MacVersion *string `type:"string"` - // The MaxDutyCycle value. + // The MaxDutyCycle value. It ranges from 0 to 15. MaxDutyCycle *int64 `type:"integer"` // The MaxEIRP value. @@ -23874,6 +23877,9 @@ type OtaaV10X struct { // The GenAppKey value. GenAppKey *string `type:"string"` + + // The JoinEUI value. + JoinEui *string `type:"string"` } // String returns the string representation. @@ -23912,6 +23918,12 @@ func (s *OtaaV10X) SetGenAppKey(v string) *OtaaV10X { return s } +// SetJoinEui sets the JoinEui field's value. +func (s *OtaaV10X) SetJoinEui(v string) *OtaaV10X { + s.JoinEui = &v + return s +} + // OTAA device object for v1.1 type OtaaV11 struct { _ struct{} `type:"structure"` @@ -27375,7 +27387,7 @@ func (s *TooManyTagsException) RequestID() string { return s.RespMetadata.RequestID } -// Trace content for your wireless gateway and wireless device resources. +// Trace content for your wireless devices, gateways, and multicast groups. type TraceContent struct { _ struct{} `type:"structure"` @@ -27385,8 +27397,8 @@ type TraceContent struct { LogLevel *string `type:"string" enum:"LogLevel"` // FrameInfo of your multicast group resources for the trace content. Use FrameInfo - // to debug the multicast communication between your LoRaWAN end devices and - // the network server. + // to debug the multicast communication between your multicast groups and the + // network server. MulticastFrameInfo *string `type:"string" enum:"MulticastFrameInfo"` // FrameInfo of your wireless device resources for the trace content. Use FrameInfo @@ -28233,10 +28245,10 @@ type UpdateNetworkAnalyzerConfigurationInput struct { MulticastGroupsToAdd []*string `type:"list"` // Multicast group resources to remove from the network analyzer configuration. - // Provide the MulticastGroupId of the resource to remove in the input array. + // Provide the MulticastGroupId of the resources to remove in the input array. MulticastGroupsToRemove []*string `type:"list"` - // Trace content for your wireless gateway and wireless device resources. + // Trace content for your wireless devices, gateways, and multicast groups. TraceContent *TraceContent `type:"structure"` // Wireless device resources to add to the network analyzer configuration. Provide @@ -30796,8 +30808,8 @@ func MessageType_Values() []string { } // FrameInfo of your multicast group resources for the trace content. Use FrameInfo -// to debug the multicast communication between your LoRaWAN end devices and -// the network server. +// to debug the multicast communication between your multicast groups and the +// network server. const ( // MulticastFrameInfoEnabled is a MulticastFrameInfo enum value MulticastFrameInfoEnabled = "ENABLED" diff --git a/service/launchwizard/api.go b/service/launchwizard/api.go new file mode 100644 index 00000000000..2ea6c32e76f --- /dev/null +++ b/service/launchwizard/api.go @@ -0,0 +1,2703 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package launchwizard + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" +) + +const opCreateDeployment = "CreateDeployment" + +// CreateDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the CreateDeployment 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 CreateDeployment for more information on using the CreateDeployment +// 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 CreateDeploymentRequest method. +// req, resp := client.CreateDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/CreateDeployment +func (c *LaunchWizard) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) { + op := &request.Operation{ + Name: opCreateDeployment, + HTTPMethod: "POST", + HTTPPath: "/createDeployment", + } + + if input == nil { + input = &CreateDeploymentInput{} + } + + output = &CreateDeploymentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDeployment API operation for AWS Launch Wizard. +// +// Creates a deployment for the given workload. Deployments created by this +// operation are not available in the Launch Wizard console to use the Clone +// deployment action on. +// +// 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 Launch Wizard's +// API operation CreateDeployment for usage and error information. +// +// Returned Error Types: +// +// - ResourceLimitException +// You have exceeded an Launch Wizard resource limit. For example, you might +// have too many deployments in progress. +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/CreateDeployment +func (c *LaunchWizard) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { + req, out := c.CreateDeploymentRequest(input) + return out, req.Send() +} + +// CreateDeploymentWithContext is the same as CreateDeployment with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDeployment 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 *LaunchWizard) CreateDeploymentWithContext(ctx aws.Context, input *CreateDeploymentInput, opts ...request.Option) (*CreateDeploymentOutput, error) { + req, out := c.CreateDeploymentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteDeployment = "DeleteDeployment" + +// DeleteDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDeployment 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 DeleteDeployment for more information on using the DeleteDeployment +// 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 DeleteDeploymentRequest method. +// req, resp := client.DeleteDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/DeleteDeployment +func (c *LaunchWizard) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req *request.Request, output *DeleteDeploymentOutput) { + op := &request.Operation{ + Name: opDeleteDeployment, + HTTPMethod: "POST", + HTTPPath: "/deleteDeployment", + } + + if input == nil { + input = &DeleteDeploymentInput{} + } + + output = &DeleteDeploymentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDeployment API operation for AWS Launch Wizard. +// +// Deletes a deployment. +// +// 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 Launch Wizard's +// API operation DeleteDeployment for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/DeleteDeployment +func (c *LaunchWizard) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDeploymentOutput, error) { + req, out := c.DeleteDeploymentRequest(input) + return out, req.Send() +} + +// DeleteDeploymentWithContext is the same as DeleteDeployment with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDeployment 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 *LaunchWizard) DeleteDeploymentWithContext(ctx aws.Context, input *DeleteDeploymentInput, opts ...request.Option) (*DeleteDeploymentOutput, error) { + req, out := c.DeleteDeploymentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDeployment = "GetDeployment" + +// GetDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the GetDeployment 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 GetDeployment for more information on using the GetDeployment +// 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 GetDeploymentRequest method. +// req, resp := client.GetDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/GetDeployment +func (c *LaunchWizard) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) { + op := &request.Operation{ + Name: opGetDeployment, + HTTPMethod: "POST", + HTTPPath: "/getDeployment", + } + + if input == nil { + input = &GetDeploymentInput{} + } + + output = &GetDeploymentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDeployment API operation for AWS Launch Wizard. +// +// Returns information about the deployment. +// +// 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 Launch Wizard's +// API operation GetDeployment for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/GetDeployment +func (c *LaunchWizard) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) { + req, out := c.GetDeploymentRequest(input) + return out, req.Send() +} + +// GetDeploymentWithContext is the same as GetDeployment with the addition of +// the ability to pass a context and additional request options. +// +// See GetDeployment 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 *LaunchWizard) GetDeploymentWithContext(ctx aws.Context, input *GetDeploymentInput, opts ...request.Option) (*GetDeploymentOutput, error) { + req, out := c.GetDeploymentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetWorkload = "GetWorkload" + +// GetWorkloadRequest generates a "aws/request.Request" representing the +// client's request for the GetWorkload 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 GetWorkload for more information on using the GetWorkload +// 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 GetWorkloadRequest method. +// req, resp := client.GetWorkloadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/GetWorkload +func (c *LaunchWizard) GetWorkloadRequest(input *GetWorkloadInput) (req *request.Request, output *GetWorkloadOutput) { + op := &request.Operation{ + Name: opGetWorkload, + HTTPMethod: "POST", + HTTPPath: "/getWorkload", + } + + if input == nil { + input = &GetWorkloadInput{} + } + + output = &GetWorkloadOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWorkload API operation for AWS Launch Wizard. +// +// Returns information about a workload. +// +// 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 Launch Wizard's +// API operation GetWorkload for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/GetWorkload +func (c *LaunchWizard) GetWorkload(input *GetWorkloadInput) (*GetWorkloadOutput, error) { + req, out := c.GetWorkloadRequest(input) + return out, req.Send() +} + +// GetWorkloadWithContext is the same as GetWorkload with the addition of +// the ability to pass a context and additional request options. +// +// See GetWorkload 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 *LaunchWizard) GetWorkloadWithContext(ctx aws.Context, input *GetWorkloadInput, opts ...request.Option) (*GetWorkloadOutput, error) { + req, out := c.GetWorkloadRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListDeploymentEvents = "ListDeploymentEvents" + +// ListDeploymentEventsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeploymentEvents 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 ListDeploymentEvents for more information on using the ListDeploymentEvents +// 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 ListDeploymentEventsRequest method. +// req, resp := client.ListDeploymentEventsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListDeploymentEvents +func (c *LaunchWizard) ListDeploymentEventsRequest(input *ListDeploymentEventsInput) (req *request.Request, output *ListDeploymentEventsOutput) { + op := &request.Operation{ + Name: opListDeploymentEvents, + HTTPMethod: "POST", + HTTPPath: "/listDeploymentEvents", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDeploymentEventsInput{} + } + + output = &ListDeploymentEventsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDeploymentEvents API operation for AWS Launch Wizard. +// +// Lists the events of a deployment. +// +// 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 Launch Wizard's +// API operation ListDeploymentEvents for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListDeploymentEvents +func (c *LaunchWizard) ListDeploymentEvents(input *ListDeploymentEventsInput) (*ListDeploymentEventsOutput, error) { + req, out := c.ListDeploymentEventsRequest(input) + return out, req.Send() +} + +// ListDeploymentEventsWithContext is the same as ListDeploymentEvents with the addition of +// the ability to pass a context and additional request options. +// +// See ListDeploymentEvents 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 *LaunchWizard) ListDeploymentEventsWithContext(ctx aws.Context, input *ListDeploymentEventsInput, opts ...request.Option) (*ListDeploymentEventsOutput, error) { + req, out := c.ListDeploymentEventsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDeploymentEventsPages iterates over the pages of a ListDeploymentEvents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDeploymentEvents 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 ListDeploymentEvents operation. +// pageNum := 0 +// err := client.ListDeploymentEventsPages(params, +// func(page *launchwizard.ListDeploymentEventsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LaunchWizard) ListDeploymentEventsPages(input *ListDeploymentEventsInput, fn func(*ListDeploymentEventsOutput, bool) bool) error { + return c.ListDeploymentEventsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDeploymentEventsPagesWithContext same as ListDeploymentEventsPages 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 *LaunchWizard) ListDeploymentEventsPagesWithContext(ctx aws.Context, input *ListDeploymentEventsInput, fn func(*ListDeploymentEventsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDeploymentEventsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDeploymentEventsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDeploymentEventsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListDeployments = "ListDeployments" + +// ListDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeployments 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 ListDeployments for more information on using the ListDeployments +// 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 ListDeploymentsRequest method. +// req, resp := client.ListDeploymentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListDeployments +func (c *LaunchWizard) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) { + op := &request.Operation{ + Name: opListDeployments, + HTTPMethod: "POST", + HTTPPath: "/listDeployments", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDeploymentsInput{} + } + + output = &ListDeploymentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDeployments API operation for AWS Launch Wizard. +// +// Lists the deployments that have been created. +// +// 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 Launch Wizard's +// API operation ListDeployments for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListDeployments +func (c *LaunchWizard) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { + req, out := c.ListDeploymentsRequest(input) + return out, req.Send() +} + +// ListDeploymentsWithContext is the same as ListDeployments with the addition of +// the ability to pass a context and additional request options. +// +// See ListDeployments 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 *LaunchWizard) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) { + req, out := c.ListDeploymentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDeploymentsPages iterates over the pages of a ListDeployments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDeployments 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 ListDeployments operation. +// pageNum := 0 +// err := client.ListDeploymentsPages(params, +// func(page *launchwizard.ListDeploymentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LaunchWizard) ListDeploymentsPages(input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool) error { + return c.ListDeploymentsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDeploymentsPagesWithContext same as ListDeploymentsPages 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 *LaunchWizard) ListDeploymentsPagesWithContext(ctx aws.Context, input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDeploymentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDeploymentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDeploymentsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkloadDeploymentPatterns = "ListWorkloadDeploymentPatterns" + +// ListWorkloadDeploymentPatternsRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkloadDeploymentPatterns 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 ListWorkloadDeploymentPatterns for more information on using the ListWorkloadDeploymentPatterns +// 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 ListWorkloadDeploymentPatternsRequest method. +// req, resp := client.ListWorkloadDeploymentPatternsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListWorkloadDeploymentPatterns +func (c *LaunchWizard) ListWorkloadDeploymentPatternsRequest(input *ListWorkloadDeploymentPatternsInput) (req *request.Request, output *ListWorkloadDeploymentPatternsOutput) { + op := &request.Operation{ + Name: opListWorkloadDeploymentPatterns, + HTTPMethod: "POST", + HTTPPath: "/listWorkloadDeploymentPatterns", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkloadDeploymentPatternsInput{} + } + + output = &ListWorkloadDeploymentPatternsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkloadDeploymentPatterns API operation for AWS Launch Wizard. +// +// Lists the workload deployment patterns. +// +// 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 Launch Wizard's +// API operation ListWorkloadDeploymentPatterns for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// - ResourceNotFoundException +// The specified workload or deployment resource can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListWorkloadDeploymentPatterns +func (c *LaunchWizard) ListWorkloadDeploymentPatterns(input *ListWorkloadDeploymentPatternsInput) (*ListWorkloadDeploymentPatternsOutput, error) { + req, out := c.ListWorkloadDeploymentPatternsRequest(input) + return out, req.Send() +} + +// ListWorkloadDeploymentPatternsWithContext is the same as ListWorkloadDeploymentPatterns with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkloadDeploymentPatterns 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 *LaunchWizard) ListWorkloadDeploymentPatternsWithContext(ctx aws.Context, input *ListWorkloadDeploymentPatternsInput, opts ...request.Option) (*ListWorkloadDeploymentPatternsOutput, error) { + req, out := c.ListWorkloadDeploymentPatternsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkloadDeploymentPatternsPages iterates over the pages of a ListWorkloadDeploymentPatterns operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkloadDeploymentPatterns 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 ListWorkloadDeploymentPatterns operation. +// pageNum := 0 +// err := client.ListWorkloadDeploymentPatternsPages(params, +// func(page *launchwizard.ListWorkloadDeploymentPatternsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LaunchWizard) ListWorkloadDeploymentPatternsPages(input *ListWorkloadDeploymentPatternsInput, fn func(*ListWorkloadDeploymentPatternsOutput, bool) bool) error { + return c.ListWorkloadDeploymentPatternsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkloadDeploymentPatternsPagesWithContext same as ListWorkloadDeploymentPatternsPages 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 *LaunchWizard) ListWorkloadDeploymentPatternsPagesWithContext(ctx aws.Context, input *ListWorkloadDeploymentPatternsInput, fn func(*ListWorkloadDeploymentPatternsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkloadDeploymentPatternsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkloadDeploymentPatternsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkloadDeploymentPatternsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkloads = "ListWorkloads" + +// ListWorkloadsRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkloads 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 ListWorkloads for more information on using the ListWorkloads +// 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 ListWorkloadsRequest method. +// req, resp := client.ListWorkloadsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListWorkloads +func (c *LaunchWizard) ListWorkloadsRequest(input *ListWorkloadsInput) (req *request.Request, output *ListWorkloadsOutput) { + op := &request.Operation{ + Name: opListWorkloads, + HTTPMethod: "POST", + HTTPPath: "/listWorkloads", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkloadsInput{} + } + + output = &ListWorkloadsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkloads API operation for AWS Launch Wizard. +// +// Lists the workloads. +// +// 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 Launch Wizard's +// API operation ListWorkloads for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +// +// - ValidationException +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/ListWorkloads +func (c *LaunchWizard) ListWorkloads(input *ListWorkloadsInput) (*ListWorkloadsOutput, error) { + req, out := c.ListWorkloadsRequest(input) + return out, req.Send() +} + +// ListWorkloadsWithContext is the same as ListWorkloads with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkloads 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 *LaunchWizard) ListWorkloadsWithContext(ctx aws.Context, input *ListWorkloadsInput, opts ...request.Option) (*ListWorkloadsOutput, error) { + req, out := c.ListWorkloadsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkloadsPages iterates over the pages of a ListWorkloads operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkloads 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 ListWorkloads operation. +// pageNum := 0 +// err := client.ListWorkloadsPages(params, +// func(page *launchwizard.ListWorkloadsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *LaunchWizard) ListWorkloadsPages(input *ListWorkloadsInput, fn func(*ListWorkloadsOutput, bool) bool) error { + return c.ListWorkloadsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkloadsPagesWithContext same as ListWorkloadsPages 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 *LaunchWizard) ListWorkloadsPagesWithContext(ctx aws.Context, input *ListWorkloadsInput, fn func(*ListWorkloadsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkloadsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkloadsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkloadsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +type CreateDeploymentInput struct { + _ struct{} `type:"structure"` + + // The name of the deployment pattern supported by a given workload. You can + // use the ListWorkloadDeploymentPatterns (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) + // operation to discover supported values for this parameter. + // + // DeploymentPatternName is a required field + DeploymentPatternName *string `locationName:"deploymentPatternName" min:"1" type:"string" required:"true"` + + // 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. + DryRun *bool `locationName:"dryRun" type:"boolean"` + + // The name of the deployment. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The settings specified for the deployment. For more information on the specifications + // required for creating a deployment, see Workload specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications.html). + // + // Specifications is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateDeploymentInput's + // String and GoString methods. + // + // Specifications is a required field + Specifications map[string]*string `locationName:"specifications" min:"1" type:"map" required:"true" sensitive:"true"` + + // The name of the workload. You can use the ListWorkloadDeploymentPatterns + // (https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) + // operation to discover supported values for this parameter. + // + // WorkloadName is a required field + WorkloadName *string `locationName:"workloadName" 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 CreateDeploymentInput) 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 CreateDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} + if s.DeploymentPatternName == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentPatternName")) + } + if s.DeploymentPatternName != nil && len(*s.DeploymentPatternName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentPatternName", 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 s.Specifications == nil { + invalidParams.Add(request.NewErrParamRequired("Specifications")) + } + if s.Specifications != nil && len(s.Specifications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Specifications", 1)) + } + if s.WorkloadName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadName")) + } + if s.WorkloadName != nil && len(*s.WorkloadName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentPatternName sets the DeploymentPatternName field's value. +func (s *CreateDeploymentInput) SetDeploymentPatternName(v string) *CreateDeploymentInput { + s.DeploymentPatternName = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateDeploymentInput) SetDryRun(v bool) *CreateDeploymentInput { + s.DryRun = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDeploymentInput) SetName(v string) *CreateDeploymentInput { + s.Name = &v + return s +} + +// SetSpecifications sets the Specifications field's value. +func (s *CreateDeploymentInput) SetSpecifications(v map[string]*string) *CreateDeploymentInput { + s.Specifications = v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *CreateDeploymentInput) SetWorkloadName(v string) *CreateDeploymentInput { + s.WorkloadName = &v + return s +} + +type CreateDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The ID of the deployment. + DeploymentId *string `locationName:"deploymentId" min:"2" 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 CreateDeploymentOutput) 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 CreateDeploymentOutput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { + s.DeploymentId = &v + return s +} + +type DeleteDeploymentInput struct { + _ struct{} `type:"structure"` + + // The ID of the deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" min:"2" 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 DeleteDeploymentInput) 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 DeleteDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentInput"} + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + if s.DeploymentId != nil && len(*s.DeploymentId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeleteDeploymentInput) SetDeploymentId(v string) *DeleteDeploymentInput { + s.DeploymentId = &v + return s +} + +type DeleteDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The status of the deployment. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + + // The reason for the deployment status. + StatusReason *string `locationName:"statusReason" 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 DeleteDeploymentOutput) 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 DeleteDeploymentOutput) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *DeleteDeploymentOutput) SetStatus(v string) *DeleteDeploymentOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DeleteDeploymentOutput) SetStatusReason(v string) *DeleteDeploymentOutput { + s.StatusReason = &v + return s +} + +// The data associated with a deployment. +type DeploymentData struct { + _ struct{} `type:"structure"` + + // The time the deployment was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The time the deployment was deleted. + DeletedAt *time.Time `locationName:"deletedAt" type:"timestamp"` + + // The ID of the deployment. + Id *string `locationName:"id" min:"2" type:"string"` + + // The name of the deployment. + Name *string `locationName:"name" type:"string"` + + // The pattern name of the deployment. + PatternName *string `locationName:"patternName" min:"1" type:"string"` + + // The resource group of the deployment. + ResourceGroup *string `locationName:"resourceGroup" type:"string"` + + // The specifications of the deployment. For more information on specifications + // for each deployment, see Workload specifications (https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications.html). + // + // Specifications is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DeploymentData's + // String and GoString methods. + Specifications map[string]*string `locationName:"specifications" min:"1" type:"map" sensitive:"true"` + + // The status of the deployment. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + + // The name of the workload. + WorkloadName *string `locationName:"workloadName" min:"1" 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 DeploymentData) 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 DeploymentData) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *DeploymentData) SetCreatedAt(v time.Time) *DeploymentData { + s.CreatedAt = &v + return s +} + +// SetDeletedAt sets the DeletedAt field's value. +func (s *DeploymentData) SetDeletedAt(v time.Time) *DeploymentData { + s.DeletedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeploymentData) SetId(v string) *DeploymentData { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentData) SetName(v string) *DeploymentData { + s.Name = &v + return s +} + +// SetPatternName sets the PatternName field's value. +func (s *DeploymentData) SetPatternName(v string) *DeploymentData { + s.PatternName = &v + return s +} + +// SetResourceGroup sets the ResourceGroup field's value. +func (s *DeploymentData) SetResourceGroup(v string) *DeploymentData { + s.ResourceGroup = &v + return s +} + +// SetSpecifications sets the Specifications field's value. +func (s *DeploymentData) SetSpecifications(v map[string]*string) *DeploymentData { + s.Specifications = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentData) SetStatus(v string) *DeploymentData { + s.Status = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *DeploymentData) SetWorkloadName(v string) *DeploymentData { + s.WorkloadName = &v + return s +} + +// A summary of the deployment data. +type DeploymentDataSummary struct { + _ struct{} `type:"structure"` + + // The time the deployment was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The ID of the deployment. + Id *string `locationName:"id" min:"2" type:"string"` + + // The name of the deployment + Name *string `locationName:"name" type:"string"` + + // The name of the workload deployment pattern. + PatternName *string `locationName:"patternName" min:"1" type:"string"` + + // The status of the deployment. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + + // The name of the workload. + WorkloadName *string `locationName:"workloadName" min:"1" 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 DeploymentDataSummary) 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 DeploymentDataSummary) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *DeploymentDataSummary) SetCreatedAt(v time.Time) *DeploymentDataSummary { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeploymentDataSummary) SetId(v string) *DeploymentDataSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentDataSummary) SetName(v string) *DeploymentDataSummary { + s.Name = &v + return s +} + +// SetPatternName sets the PatternName field's value. +func (s *DeploymentDataSummary) SetPatternName(v string) *DeploymentDataSummary { + s.PatternName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentDataSummary) SetStatus(v string) *DeploymentDataSummary { + s.Status = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *DeploymentDataSummary) SetWorkloadName(v string) *DeploymentDataSummary { + s.WorkloadName = &v + return s +} + +// A summary of the deployment event data. +type DeploymentEventDataSummary struct { + _ struct{} `type:"structure"` + + // The description of the deployment event. + Description *string `locationName:"description" type:"string"` + + // The name of the deployment event. + Name *string `locationName:"name" type:"string"` + + // The status of the deployment event. + Status *string `locationName:"status" type:"string" enum:"EventStatus"` + + // The reason of the deployment event status. + StatusReason *string `locationName:"statusReason" type:"string"` + + // The timestamp of the deployment event. + Timestamp *time.Time `locationName:"timestamp" type:"timestamp"` +} + +// 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 DeploymentEventDataSummary) 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 DeploymentEventDataSummary) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *DeploymentEventDataSummary) SetDescription(v string) *DeploymentEventDataSummary { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeploymentEventDataSummary) SetName(v string) *DeploymentEventDataSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentEventDataSummary) SetStatus(v string) *DeploymentEventDataSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DeploymentEventDataSummary) SetStatusReason(v string) *DeploymentEventDataSummary { + s.StatusReason = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *DeploymentEventDataSummary) SetTimestamp(v time.Time) *DeploymentEventDataSummary { + s.Timestamp = &v + return s +} + +// A filter name and value pair that is used to return more specific results +// from a describe operation. Filters can be used to match a set of resources +// by specific criteria. +type DeploymentFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. Filter names are case-sensitive. + Name *string `locationName:"name" type:"string" enum:"DeploymentFilterKey"` + + // The filter values. Filter values are case-sensitive. If you specify multiple + // values for a filter, the values are joined with an OR, and the request returns + // all results that match any of the specified values. + Values []*string `locationName:"values" 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 DeploymentFilter) 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 DeploymentFilter) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *DeploymentFilter) SetName(v string) *DeploymentFilter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *DeploymentFilter) SetValues(v []*string) *DeploymentFilter { + s.Values = v + return s +} + +type GetDeploymentInput struct { + _ struct{} `type:"structure"` + + // The ID of the deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" min:"2" 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 GetDeploymentInput) 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 GetDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + if s.DeploymentId != nil && len(*s.DeploymentId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + +type GetDeploymentOutput struct { + _ struct{} `type:"structure"` + + // An object that details the deployment. + Deployment *DeploymentData `locationName:"deployment" 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 GetDeploymentOutput) 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 GetDeploymentOutput) GoString() string { + return s.String() +} + +// SetDeployment sets the Deployment field's value. +func (s *GetDeploymentOutput) SetDeployment(v *DeploymentData) *GetDeploymentOutput { + s.Deployment = v + return s +} + +type GetWorkloadInput struct { + _ struct{} `type:"structure"` + + // The name of the workload. + // + // WorkloadName is a required field + WorkloadName *string `locationName:"workloadName" 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 GetWorkloadInput) 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 GetWorkloadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWorkloadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWorkloadInput"} + if s.WorkloadName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadName")) + } + if s.WorkloadName != nil && len(*s.WorkloadName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *GetWorkloadInput) SetWorkloadName(v string) *GetWorkloadInput { + s.WorkloadName = &v + return s +} + +type GetWorkloadOutput struct { + _ struct{} `type:"structure"` + + // Information about the workload. + Workload *WorkloadData `locationName:"workload" 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 GetWorkloadOutput) 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 GetWorkloadOutput) GoString() string { + return s.String() +} + +// SetWorkload sets the Workload field's value. +func (s *GetWorkloadOutput) SetWorkload(v *WorkloadData) *GetWorkloadOutput { + s.Workload = v + return s +} + +// An internal error has occurred. Retry your request, but if the problem persists, +// contact us with details by posting a question on re:Post (https://repost.aws/). +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" 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 InternalServerException) 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 InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// 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 +} + +type ListDeploymentEventsInput struct { + _ struct{} `type:"structure"` + + // The ID of the deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" min:"2" type:"string" required:"true"` + + // The maximum number of items to return for this request. To get the next page + // of items, make another request with the token returned in the output. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token returned from a previous paginated request. Pagination continues + // from the end of the items returned by the previous request. + NextToken *string `locationName:"nextToken" min:"1" 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 ListDeploymentEventsInput) 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 ListDeploymentEventsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDeploymentEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDeploymentEventsInput"} + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + if s.DeploymentId != nil && len(*s.DeploymentId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 2)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *ListDeploymentEventsInput) SetDeploymentId(v string) *ListDeploymentEventsInput { + s.DeploymentId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeploymentEventsInput) SetMaxResults(v int64) *ListDeploymentEventsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentEventsInput) SetNextToken(v string) *ListDeploymentEventsInput { + s.NextToken = &v + return s +} + +type ListDeploymentEventsOutput struct { + _ struct{} `type:"structure"` + + // Lists the deployment events. + DeploymentEvents []*DeploymentEventDataSummary `locationName:"deploymentEvents" type:"list"` + + // The token to include in another request to get the next page of items. This + // value is null when there are no more items to return. + NextToken *string `locationName:"nextToken" min:"1" 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 ListDeploymentEventsOutput) 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 ListDeploymentEventsOutput) GoString() string { + return s.String() +} + +// SetDeploymentEvents sets the DeploymentEvents field's value. +func (s *ListDeploymentEventsOutput) SetDeploymentEvents(v []*DeploymentEventDataSummary) *ListDeploymentEventsOutput { + s.DeploymentEvents = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentEventsOutput) SetNextToken(v string) *ListDeploymentEventsOutput { + s.NextToken = &v + return s +} + +type ListDeploymentsInput struct { + _ struct{} `type:"structure"` + + // Filters to scope the results. The following filters are supported: + // + // * WORKLOAD_NAME + // + // * DEPLOYMENT_STATUS + Filters []*DeploymentFilter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of items to return for this request. To get the next page + // of items, make another request with the token returned in the output. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token returned from a previous paginated request. Pagination continues + // from the end of the items returned by the previous request. + NextToken *string `locationName:"nextToken" min:"1" 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 ListDeploymentsInput) 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 ListDeploymentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDeploymentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListDeploymentsInput) SetFilters(v []*DeploymentFilter) *ListDeploymentsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeploymentsInput) SetMaxResults(v int64) *ListDeploymentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { + s.NextToken = &v + return s +} + +type ListDeploymentsOutput struct { + _ struct{} `type:"structure"` + + // Lists the deployments. + Deployments []*DeploymentDataSummary `locationName:"deployments" type:"list"` + + // The token to include in another request to get the next page of items. This + // value is null when there are no more items to return. + NextToken *string `locationName:"nextToken" min:"1" 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 ListDeploymentsOutput) 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 ListDeploymentsOutput) GoString() string { + return s.String() +} + +// SetDeployments sets the Deployments field's value. +func (s *ListDeploymentsOutput) SetDeployments(v []*DeploymentDataSummary) *ListDeploymentsOutput { + s.Deployments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { + s.NextToken = &v + return s +} + +type ListWorkloadDeploymentPatternsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return for this request. To get the next page + // of items, make another request with the token returned in the output. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token returned from a previous paginated request. Pagination continues + // from the end of the items returned by the previous request. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // The name of the workload. + // + // WorkloadName is a required field + WorkloadName *string `locationName:"workloadName" 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 ListWorkloadDeploymentPatternsInput) 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 ListWorkloadDeploymentPatternsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkloadDeploymentPatternsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkloadDeploymentPatternsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.WorkloadName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadName")) + } + if s.WorkloadName != nil && len(*s.WorkloadName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkloadDeploymentPatternsInput) SetMaxResults(v int64) *ListWorkloadDeploymentPatternsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadDeploymentPatternsInput) SetNextToken(v string) *ListWorkloadDeploymentPatternsInput { + s.NextToken = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *ListWorkloadDeploymentPatternsInput) SetWorkloadName(v string) *ListWorkloadDeploymentPatternsInput { + s.WorkloadName = &v + return s +} + +type ListWorkloadDeploymentPatternsOutput struct { + _ struct{} `type:"structure"` + + // The token to include in another request to get the next page of items. This + // value is null when there are no more items to return. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // Describes the workload deployment patterns. + WorkloadDeploymentPatterns []*WorkloadDeploymentPatternDataSummary `locationName:"workloadDeploymentPatterns" 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 ListWorkloadDeploymentPatternsOutput) 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 ListWorkloadDeploymentPatternsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadDeploymentPatternsOutput) SetNextToken(v string) *ListWorkloadDeploymentPatternsOutput { + s.NextToken = &v + return s +} + +// SetWorkloadDeploymentPatterns sets the WorkloadDeploymentPatterns field's value. +func (s *ListWorkloadDeploymentPatternsOutput) SetWorkloadDeploymentPatterns(v []*WorkloadDeploymentPatternDataSummary) *ListWorkloadDeploymentPatternsOutput { + s.WorkloadDeploymentPatterns = v + return s +} + +type ListWorkloadsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return for this request. To get the next page + // of items, make another request with the token returned in the output. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token returned from a previous paginated request. Pagination continues + // from the end of the items returned by the previous request. + NextToken *string `locationName:"nextToken" min:"1" 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 ListWorkloadsInput) 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 ListWorkloadsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkloadsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkloadsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkloadsInput) SetMaxResults(v int64) *ListWorkloadsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadsInput) SetNextToken(v string) *ListWorkloadsInput { + s.NextToken = &v + return s +} + +type ListWorkloadsOutput struct { + _ struct{} `type:"structure"` + + // The token to include in another request to get the next page of items. This + // value is null when there are no more items to return. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // Information about the workloads. + Workloads []*WorkloadDataSummary `locationName:"workloads" 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 ListWorkloadsOutput) 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 ListWorkloadsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadsOutput) SetNextToken(v string) *ListWorkloadsOutput { + s.NextToken = &v + return s +} + +// SetWorkloads sets the Workloads field's value. +func (s *ListWorkloadsOutput) SetWorkloads(v []*WorkloadDataSummary) *ListWorkloadsOutput { + s.Workloads = v + return s +} + +// You have exceeded an Launch Wizard resource limit. For example, you might +// have too many deployments in progress. +type ResourceLimitException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" 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 ResourceLimitException) 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 ResourceLimitException) GoString() string { + return s.String() +} + +func newErrorResourceLimitException(v protocol.ResponseMetadata) error { + return &ResourceLimitException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceLimitException) Code() string { + return "ResourceLimitException" +} + +// Message returns the exception's message. +func (s *ResourceLimitException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceLimitException) OrigErr() error { + return nil +} + +func (s *ResourceLimitException) 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 *ResourceLimitException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceLimitException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The specified workload or deployment resource can't be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" 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 ResourceNotFoundException) 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 ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) 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 *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" 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 ValidationException) 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 ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) 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 *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes a workload. +type WorkloadData struct { + _ struct{} `type:"structure"` + + // The description of a workload. + Description *string `locationName:"description" type:"string"` + + // The display name of a workload. + DisplayName *string `locationName:"displayName" type:"string"` + + // The URL of a workload document. + DocumentationUrl *string `locationName:"documentationUrl" type:"string"` + + // The URL of a workload icon. + IconUrl *string `locationName:"iconUrl" type:"string"` + + // The status of a workload. + Status *string `locationName:"status" type:"string" enum:"WorkloadStatus"` + + // The message about a workload's status. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // The name of the workload. + WorkloadName *string `locationName:"workloadName" min:"1" 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 WorkloadData) 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 WorkloadData) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *WorkloadData) SetDescription(v string) *WorkloadData { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *WorkloadData) SetDisplayName(v string) *WorkloadData { + s.DisplayName = &v + return s +} + +// SetDocumentationUrl sets the DocumentationUrl field's value. +func (s *WorkloadData) SetDocumentationUrl(v string) *WorkloadData { + s.DocumentationUrl = &v + return s +} + +// SetIconUrl sets the IconUrl field's value. +func (s *WorkloadData) SetIconUrl(v string) *WorkloadData { + s.IconUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *WorkloadData) SetStatus(v string) *WorkloadData { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *WorkloadData) SetStatusMessage(v string) *WorkloadData { + s.StatusMessage = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *WorkloadData) SetWorkloadName(v string) *WorkloadData { + s.WorkloadName = &v + return s +} + +// Describes workload data. +type WorkloadDataSummary struct { + _ struct{} `type:"structure"` + + // The display name of the workload data. + DisplayName *string `locationName:"displayName" type:"string"` + + // The name of the workload. + WorkloadName *string `locationName:"workloadName" min:"1" 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 WorkloadDataSummary) 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 WorkloadDataSummary) GoString() string { + return s.String() +} + +// SetDisplayName sets the DisplayName field's value. +func (s *WorkloadDataSummary) SetDisplayName(v string) *WorkloadDataSummary { + s.DisplayName = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *WorkloadDataSummary) SetWorkloadName(v string) *WorkloadDataSummary { + s.WorkloadName = &v + return s +} + +// Describes a workload deployment pattern. +type WorkloadDeploymentPatternDataSummary struct { + _ struct{} `type:"structure"` + + // The name of a workload deployment pattern. + DeploymentPatternName *string `locationName:"deploymentPatternName" min:"1" type:"string"` + + // The description of a workload deployment pattern. + Description *string `locationName:"description" type:"string"` + + // The display name of a workload deployment pattern. + DisplayName *string `locationName:"displayName" type:"string"` + + // The status of a workload deployment pattern. + Status *string `locationName:"status" type:"string" enum:"WorkloadDeploymentPatternStatus"` + + // A message about a workload deployment pattern's status. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // The name of the workload. + WorkloadName *string `locationName:"workloadName" min:"1" type:"string"` + + // The name of the workload deployment pattern version. + WorkloadVersionName *string `locationName:"workloadVersionName" min:"5" 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 WorkloadDeploymentPatternDataSummary) 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 WorkloadDeploymentPatternDataSummary) GoString() string { + return s.String() +} + +// SetDeploymentPatternName sets the DeploymentPatternName field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetDeploymentPatternName(v string) *WorkloadDeploymentPatternDataSummary { + s.DeploymentPatternName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetDescription(v string) *WorkloadDeploymentPatternDataSummary { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetDisplayName(v string) *WorkloadDeploymentPatternDataSummary { + s.DisplayName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetStatus(v string) *WorkloadDeploymentPatternDataSummary { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetStatusMessage(v string) *WorkloadDeploymentPatternDataSummary { + s.StatusMessage = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetWorkloadName(v string) *WorkloadDeploymentPatternDataSummary { + s.WorkloadName = &v + return s +} + +// SetWorkloadVersionName sets the WorkloadVersionName field's value. +func (s *WorkloadDeploymentPatternDataSummary) SetWorkloadVersionName(v string) *WorkloadDeploymentPatternDataSummary { + s.WorkloadVersionName = &v + return s +} + +const ( + // DeploymentFilterKeyWorkloadName is a DeploymentFilterKey enum value + DeploymentFilterKeyWorkloadName = "WORKLOAD_NAME" + + // DeploymentFilterKeyDeploymentStatus is a DeploymentFilterKey enum value + DeploymentFilterKeyDeploymentStatus = "DEPLOYMENT_STATUS" +) + +// DeploymentFilterKey_Values returns all elements of the DeploymentFilterKey enum +func DeploymentFilterKey_Values() []string { + return []string{ + DeploymentFilterKeyWorkloadName, + DeploymentFilterKeyDeploymentStatus, + } +} + +const ( + // DeploymentStatusCompleted is a DeploymentStatus enum value + DeploymentStatusCompleted = "COMPLETED" + + // DeploymentStatusCreating is a DeploymentStatus enum value + DeploymentStatusCreating = "CREATING" + + // DeploymentStatusDeleteInProgress is a DeploymentStatus enum value + DeploymentStatusDeleteInProgress = "DELETE_IN_PROGRESS" + + // DeploymentStatusDeleteInitiating is a DeploymentStatus enum value + DeploymentStatusDeleteInitiating = "DELETE_INITIATING" + + // DeploymentStatusDeleteFailed is a DeploymentStatus enum value + DeploymentStatusDeleteFailed = "DELETE_FAILED" + + // DeploymentStatusDeleted is a DeploymentStatus enum value + DeploymentStatusDeleted = "DELETED" + + // DeploymentStatusFailed is a DeploymentStatus enum value + DeploymentStatusFailed = "FAILED" + + // DeploymentStatusInProgress is a DeploymentStatus enum value + DeploymentStatusInProgress = "IN_PROGRESS" + + // DeploymentStatusValidating is a DeploymentStatus enum value + DeploymentStatusValidating = "VALIDATING" +) + +// DeploymentStatus_Values returns all elements of the DeploymentStatus enum +func DeploymentStatus_Values() []string { + return []string{ + DeploymentStatusCompleted, + DeploymentStatusCreating, + DeploymentStatusDeleteInProgress, + DeploymentStatusDeleteInitiating, + DeploymentStatusDeleteFailed, + DeploymentStatusDeleted, + DeploymentStatusFailed, + DeploymentStatusInProgress, + DeploymentStatusValidating, + } +} + +const ( + // EventStatusCanceled is a EventStatus enum value + EventStatusCanceled = "CANCELED" + + // EventStatusCanceling is a EventStatus enum value + EventStatusCanceling = "CANCELING" + + // EventStatusCompleted is a EventStatus enum value + EventStatusCompleted = "COMPLETED" + + // EventStatusCreated is a EventStatus enum value + EventStatusCreated = "CREATED" + + // EventStatusFailed is a EventStatus enum value + EventStatusFailed = "FAILED" + + // EventStatusInProgress is a EventStatus enum value + EventStatusInProgress = "IN_PROGRESS" + + // EventStatusPending is a EventStatus enum value + EventStatusPending = "PENDING" + + // EventStatusTimedOut is a EventStatus enum value + EventStatusTimedOut = "TIMED_OUT" +) + +// EventStatus_Values returns all elements of the EventStatus enum +func EventStatus_Values() []string { + return []string{ + EventStatusCanceled, + EventStatusCanceling, + EventStatusCompleted, + EventStatusCreated, + EventStatusFailed, + EventStatusInProgress, + EventStatusPending, + EventStatusTimedOut, + } +} + +const ( + // WorkloadDeploymentPatternStatusActive is a WorkloadDeploymentPatternStatus enum value + WorkloadDeploymentPatternStatusActive = "ACTIVE" + + // WorkloadDeploymentPatternStatusInactive is a WorkloadDeploymentPatternStatus enum value + WorkloadDeploymentPatternStatusInactive = "INACTIVE" + + // WorkloadDeploymentPatternStatusDisabled is a WorkloadDeploymentPatternStatus enum value + WorkloadDeploymentPatternStatusDisabled = "DISABLED" + + // WorkloadDeploymentPatternStatusDeleted is a WorkloadDeploymentPatternStatus enum value + WorkloadDeploymentPatternStatusDeleted = "DELETED" +) + +// WorkloadDeploymentPatternStatus_Values returns all elements of the WorkloadDeploymentPatternStatus enum +func WorkloadDeploymentPatternStatus_Values() []string { + return []string{ + WorkloadDeploymentPatternStatusActive, + WorkloadDeploymentPatternStatusInactive, + WorkloadDeploymentPatternStatusDisabled, + WorkloadDeploymentPatternStatusDeleted, + } +} + +const ( + // WorkloadStatusActive is a WorkloadStatus enum value + WorkloadStatusActive = "ACTIVE" + + // WorkloadStatusInactive is a WorkloadStatus enum value + WorkloadStatusInactive = "INACTIVE" + + // WorkloadStatusDisabled is a WorkloadStatus enum value + WorkloadStatusDisabled = "DISABLED" + + // WorkloadStatusDeleted is a WorkloadStatus enum value + WorkloadStatusDeleted = "DELETED" +) + +// WorkloadStatus_Values returns all elements of the WorkloadStatus enum +func WorkloadStatus_Values() []string { + return []string{ + WorkloadStatusActive, + WorkloadStatusInactive, + WorkloadStatusDisabled, + WorkloadStatusDeleted, + } +} diff --git a/service/launchwizard/doc.go b/service/launchwizard/doc.go new file mode 100644 index 00000000000..fba4b407ec9 --- /dev/null +++ b/service/launchwizard/doc.go @@ -0,0 +1,31 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package launchwizard provides the client and types for making API +// requests to AWS Launch Wizard. +// +// Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon +// Web Services resources for third party applications, such as Microsoft SQL +// Server Always On and HANA based SAP systems, without the need to manually +// identify and provision individual Amazon Web Services resources. +// +// See https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10 for more information on this service. +// +// See launchwizard package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/launchwizard/ +// +// # Using the Client +// +// To contact AWS Launch Wizard with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Launch Wizard client LaunchWizard for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/launchwizard/#New +package launchwizard diff --git a/service/launchwizard/errors.go b/service/launchwizard/errors.go new file mode 100644 index 00000000000..5bd9beb3788 --- /dev/null +++ b/service/launchwizard/errors.go @@ -0,0 +1,44 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package launchwizard + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // An internal error has occurred. Retry your request, but if the problem persists, + // contact us with details by posting a question on re:Post (https://repost.aws/). + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeResourceLimitException for service response error code + // "ResourceLimitException". + // + // You have exceeded an Launch Wizard resource limit. For example, you might + // have too many deployments in progress. + ErrCodeResourceLimitException = "ResourceLimitException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified workload or deployment resource can't be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // The input fails to satisfy the constraints specified by an Amazon Web Services + // service. + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "ResourceLimitException": newErrorResourceLimitException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/launchwizard/launchwizardiface/interface.go b/service/launchwizard/launchwizardiface/interface.go new file mode 100644 index 00000000000..fc87f1c0ff8 --- /dev/null +++ b/service/launchwizard/launchwizardiface/interface.go @@ -0,0 +1,108 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package launchwizardiface provides an interface to enable mocking the AWS Launch Wizard service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package launchwizardiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/launchwizard" +) + +// LaunchWizardAPI provides an interface to enable mocking the +// launchwizard.LaunchWizard service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Launch Wizard. +// func myFunc(svc launchwizardiface.LaunchWizardAPI) bool { +// // Make svc.CreateDeployment request +// } +// +// func main() { +// sess := session.New() +// svc := launchwizard.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockLaunchWizardClient struct { +// launchwizardiface.LaunchWizardAPI +// } +// func (m *mockLaunchWizardClient) CreateDeployment(input *launchwizard.CreateDeploymentInput) (*launchwizard.CreateDeploymentOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockLaunchWizardClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type LaunchWizardAPI interface { + CreateDeployment(*launchwizard.CreateDeploymentInput) (*launchwizard.CreateDeploymentOutput, error) + CreateDeploymentWithContext(aws.Context, *launchwizard.CreateDeploymentInput, ...request.Option) (*launchwizard.CreateDeploymentOutput, error) + CreateDeploymentRequest(*launchwizard.CreateDeploymentInput) (*request.Request, *launchwizard.CreateDeploymentOutput) + + DeleteDeployment(*launchwizard.DeleteDeploymentInput) (*launchwizard.DeleteDeploymentOutput, error) + DeleteDeploymentWithContext(aws.Context, *launchwizard.DeleteDeploymentInput, ...request.Option) (*launchwizard.DeleteDeploymentOutput, error) + DeleteDeploymentRequest(*launchwizard.DeleteDeploymentInput) (*request.Request, *launchwizard.DeleteDeploymentOutput) + + GetDeployment(*launchwizard.GetDeploymentInput) (*launchwizard.GetDeploymentOutput, error) + GetDeploymentWithContext(aws.Context, *launchwizard.GetDeploymentInput, ...request.Option) (*launchwizard.GetDeploymentOutput, error) + GetDeploymentRequest(*launchwizard.GetDeploymentInput) (*request.Request, *launchwizard.GetDeploymentOutput) + + GetWorkload(*launchwizard.GetWorkloadInput) (*launchwizard.GetWorkloadOutput, error) + GetWorkloadWithContext(aws.Context, *launchwizard.GetWorkloadInput, ...request.Option) (*launchwizard.GetWorkloadOutput, error) + GetWorkloadRequest(*launchwizard.GetWorkloadInput) (*request.Request, *launchwizard.GetWorkloadOutput) + + ListDeploymentEvents(*launchwizard.ListDeploymentEventsInput) (*launchwizard.ListDeploymentEventsOutput, error) + ListDeploymentEventsWithContext(aws.Context, *launchwizard.ListDeploymentEventsInput, ...request.Option) (*launchwizard.ListDeploymentEventsOutput, error) + ListDeploymentEventsRequest(*launchwizard.ListDeploymentEventsInput) (*request.Request, *launchwizard.ListDeploymentEventsOutput) + + ListDeploymentEventsPages(*launchwizard.ListDeploymentEventsInput, func(*launchwizard.ListDeploymentEventsOutput, bool) bool) error + ListDeploymentEventsPagesWithContext(aws.Context, *launchwizard.ListDeploymentEventsInput, func(*launchwizard.ListDeploymentEventsOutput, bool) bool, ...request.Option) error + + ListDeployments(*launchwizard.ListDeploymentsInput) (*launchwizard.ListDeploymentsOutput, error) + ListDeploymentsWithContext(aws.Context, *launchwizard.ListDeploymentsInput, ...request.Option) (*launchwizard.ListDeploymentsOutput, error) + ListDeploymentsRequest(*launchwizard.ListDeploymentsInput) (*request.Request, *launchwizard.ListDeploymentsOutput) + + ListDeploymentsPages(*launchwizard.ListDeploymentsInput, func(*launchwizard.ListDeploymentsOutput, bool) bool) error + ListDeploymentsPagesWithContext(aws.Context, *launchwizard.ListDeploymentsInput, func(*launchwizard.ListDeploymentsOutput, bool) bool, ...request.Option) error + + ListWorkloadDeploymentPatterns(*launchwizard.ListWorkloadDeploymentPatternsInput) (*launchwizard.ListWorkloadDeploymentPatternsOutput, error) + ListWorkloadDeploymentPatternsWithContext(aws.Context, *launchwizard.ListWorkloadDeploymentPatternsInput, ...request.Option) (*launchwizard.ListWorkloadDeploymentPatternsOutput, error) + ListWorkloadDeploymentPatternsRequest(*launchwizard.ListWorkloadDeploymentPatternsInput) (*request.Request, *launchwizard.ListWorkloadDeploymentPatternsOutput) + + ListWorkloadDeploymentPatternsPages(*launchwizard.ListWorkloadDeploymentPatternsInput, func(*launchwizard.ListWorkloadDeploymentPatternsOutput, bool) bool) error + ListWorkloadDeploymentPatternsPagesWithContext(aws.Context, *launchwizard.ListWorkloadDeploymentPatternsInput, func(*launchwizard.ListWorkloadDeploymentPatternsOutput, bool) bool, ...request.Option) error + + ListWorkloads(*launchwizard.ListWorkloadsInput) (*launchwizard.ListWorkloadsOutput, error) + ListWorkloadsWithContext(aws.Context, *launchwizard.ListWorkloadsInput, ...request.Option) (*launchwizard.ListWorkloadsOutput, error) + ListWorkloadsRequest(*launchwizard.ListWorkloadsInput) (*request.Request, *launchwizard.ListWorkloadsOutput) + + ListWorkloadsPages(*launchwizard.ListWorkloadsInput, func(*launchwizard.ListWorkloadsOutput, bool) bool) error + ListWorkloadsPagesWithContext(aws.Context, *launchwizard.ListWorkloadsInput, func(*launchwizard.ListWorkloadsOutput, bool) bool, ...request.Option) error +} + +var _ LaunchWizardAPI = (*launchwizard.LaunchWizard)(nil) diff --git a/service/launchwizard/service.go b/service/launchwizard/service.go new file mode 100644 index 00000000000..5136f8c3aa1 --- /dev/null +++ b/service/launchwizard/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package launchwizard + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// LaunchWizard provides the API operation methods for making requests to +// AWS Launch Wizard. See this package's package overview docs +// for details on the service. +// +// LaunchWizard methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type LaunchWizard struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "Launch Wizard" // Name of service. + EndpointsID = "launchwizard" // ID to lookup a service endpoint with. + ServiceID = "Launch Wizard" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the LaunchWizard client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// +// mySession := session.Must(session.NewSession()) +// +// // Create a LaunchWizard client from just a session. +// svc := launchwizard.New(mySession) +// +// // Create a LaunchWizard client with additional configuration +// svc := launchwizard.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *LaunchWizard { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "launchwizard" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *LaunchWizard { + svc := &LaunchWizard{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2018-05-10", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a LaunchWizard operation and runs any +// custom request initialization. +func (c *LaunchWizard) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +}