diff --git a/CHANGELOG.md b/CHANGELOG.md index 82058e05b27..19b1e76a972 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +Release v1.38.42 (2021-05-18) +=== + +### Service Client Updates +* `service/apprunner`: Updates service API, documentation, paginators, and examples +* `service/compute-optimizer`: Updates service API and documentation +* `service/iotsitewise`: Updates service documentation +* `service/license-manager`: Updates service API and documentation +* `service/models.lex.v2`: Updates service API, documentation, and paginators +* `service/personalize`: Updates service API and documentation +* `service/support`: Updates service documentation + * Documentation updates for support + +### SDK Enhancements +* `aws/session`: Enable SSO provider to be mixed with other credential providers ([#3905](https://github.com/aws/aws-sdk-go/pull/3905)) + * Fixes [#3763](https://github.com/aws/aws-sdk-go/issues/3763) + Release v1.38.41 (2021-05-17) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 44a0c4e7558..8a1927a39ca 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,7 +1,5 @@ ### SDK Features ### SDK Enhancements -* `aws/session`: Enable SSO provider to be mixed with other credential providers ([#3905](https://github.com/aws/aws-sdk-go/pull/3905)) - * Fixes [#3763](https://github.com/aws/aws-sdk-go/issues/3763) ### SDK Bugs diff --git a/aws/version.go b/aws/version.go index ee21f9f5ee6..7573425b44d 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.38.41" +const SDKVersion = "1.38.42" diff --git a/models/apis/apprunner/2020-05-15/api-2.json b/models/apis/apprunner/2020-05-15/api-2.json new file mode 100644 index 00000000000..592af1a9b67 --- /dev/null +++ b/models/apis/apprunner/2020-05-15/api-2.json @@ -0,0 +1,1299 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-05-15", + "endpointPrefix":"apprunner", + "jsonVersion":"1.0", + "protocol":"json", + "serviceFullName":"AWS App Runner", + "serviceId":"AppRunner", + "signatureVersion":"v4", + "signingName":"apprunner", + "targetPrefix":"AppRunner", + "uid":"apprunner-2020-05-15" + }, + "operations":{ + "AssociateCustomDomain":{ + "name":"AssociateCustomDomain", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateCustomDomainRequest"}, + "output":{"shape":"AssociateCustomDomainResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidStateException"} + ] + }, + "CreateAutoScalingConfiguration":{ + "name":"CreateAutoScalingConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAutoScalingConfigurationRequest"}, + "output":{"shape":"CreateAutoScalingConfigurationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, + "CreateConnection":{ + "name":"CreateConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateConnectionRequest"}, + "output":{"shape":"CreateConnectionResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, + "CreateService":{ + "name":"CreateService", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateServiceRequest"}, + "output":{"shape":"CreateServiceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, + "DeleteAutoScalingConfiguration":{ + "name":"DeleteAutoScalingConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAutoScalingConfigurationRequest"}, + "output":{"shape":"DeleteAutoScalingConfigurationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteConnection":{ + "name":"DeleteConnection", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteConnectionRequest"}, + "output":{"shape":"DeleteConnectionResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "DeleteService":{ + "name":"DeleteService", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteServiceRequest"}, + "output":{"shape":"DeleteServiceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "DescribeAutoScalingConfiguration":{ + "name":"DescribeAutoScalingConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAutoScalingConfigurationRequest"}, + "output":{"shape":"DescribeAutoScalingConfigurationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeCustomDomains":{ + "name":"DescribeCustomDomains", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCustomDomainsRequest"}, + "output":{"shape":"DescribeCustomDomainsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeService":{ + "name":"DescribeService", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeServiceRequest"}, + "output":{"shape":"DescribeServiceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "DisassociateCustomDomain":{ + "name":"DisassociateCustomDomain", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateCustomDomainRequest"}, + "output":{"shape":"DisassociateCustomDomainResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"} + ] + }, + "ListAutoScalingConfigurations":{ + "name":"ListAutoScalingConfigurations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAutoScalingConfigurationsRequest"}, + "output":{"shape":"ListAutoScalingConfigurationsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListConnections":{ + "name":"ListConnections", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListConnectionsRequest"}, + "output":{"shape":"ListConnectionsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListOperations":{ + "name":"ListOperations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListOperationsRequest"}, + "output":{"shape":"ListOperationsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListServices":{ + "name":"ListServices", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServicesRequest"}, + "output":{"shape":"ListServicesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidStateException"} + ] + }, + "PauseService":{ + "name":"PauseService", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PauseServiceRequest"}, + "output":{"shape":"PauseServiceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidStateException"} + ] + }, + "ResumeService":{ + "name":"ResumeService", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ResumeServiceRequest"}, + "output":{"shape":"ResumeServiceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidStateException"} + ] + }, + "StartDeployment":{ + "name":"StartDeployment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartDeploymentRequest"}, + "output":{"shape":"StartDeploymentResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidStateException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidStateException"} + ] + }, + "UpdateService":{ + "name":"UpdateService", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServiceRequest"}, + "output":{"shape":"UpdateServiceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"}, + {"shape":"InternalServiceErrorException"} + ] + } + }, + "shapes":{ + "ASConfigMaxConcurrency":{ + "type":"integer", + "max":200, + "min":1 + }, + "ASConfigMaxSize":{ + "type":"integer", + "max":25, + "min":1 + }, + "ASConfigMinSize":{ + "type":"integer", + "max":25, + "min":1 + }, + "AppRunnerResourceArn":{ + "type":"string", + "max":1011, + "min":1, + "pattern":"arn:aws(-[\\w]+)*:[a-z0-9-\\\\.]{0,63}:[a-z0-9-\\\\.]{0,63}:[0-9]{12}:(\\w|\\/|-){1,1011}" + }, + "AssociateCustomDomainRequest":{ + "type":"structure", + "required":[ + "ServiceArn", + "DomainName" + ], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "DomainName":{"shape":"DomainName"}, + "EnableWWWSubdomain":{"shape":"NullableBoolean"} + } + }, + "AssociateCustomDomainResponse":{ + "type":"structure", + "required":[ + "DNSTarget", + "ServiceArn", + "CustomDomain" + ], + "members":{ + "DNSTarget":{"shape":"String"}, + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "CustomDomain":{"shape":"CustomDomain"} + } + }, + "AuthenticationConfiguration":{ + "type":"structure", + "members":{ + "ConnectionArn":{"shape":"AppRunnerResourceArn"}, + "AccessRoleArn":{"shape":"RoleArn"} + } + }, + "AutoScalingConfiguration":{ + "type":"structure", + "members":{ + "AutoScalingConfigurationArn":{"shape":"AppRunnerResourceArn"}, + "AutoScalingConfigurationName":{"shape":"AutoScalingConfigurationName"}, + "AutoScalingConfigurationRevision":{"shape":"Integer"}, + "Latest":{"shape":"Boolean"}, + "Status":{"shape":"AutoScalingConfigurationStatus"}, + "MaxConcurrency":{"shape":"Integer"}, + "MinSize":{"shape":"Integer"}, + "MaxSize":{"shape":"Integer"}, + "CreatedAt":{"shape":"Timestamp"}, + "DeletedAt":{"shape":"Timestamp"} + } + }, + "AutoScalingConfigurationName":{ + "type":"string", + "max":32, + "min":4, + "pattern":"[A-Za-z0-9][A-Za-z0-9\\-_]{3,31}" + }, + "AutoScalingConfigurationStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "INACTIVE" + ] + }, + "AutoScalingConfigurationSummary":{ + "type":"structure", + "members":{ + "AutoScalingConfigurationArn":{"shape":"AppRunnerResourceArn"}, + "AutoScalingConfigurationName":{"shape":"AutoScalingConfigurationName"}, + "AutoScalingConfigurationRevision":{"shape":"Integer"} + } + }, + "AutoScalingConfigurationSummaryList":{ + "type":"list", + "member":{"shape":"AutoScalingConfigurationSummary"} + }, + "Boolean":{"type":"boolean"}, + "BuildCommand":{ + "type":"string", + "sensitive":true + }, + "CertificateValidationRecord":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Type":{"shape":"String"}, + "Value":{"shape":"String"}, + "Status":{"shape":"CertificateValidationRecordStatus"} + } + }, + "CertificateValidationRecordList":{ + "type":"list", + "member":{"shape":"CertificateValidationRecord"} + }, + "CertificateValidationRecordStatus":{ + "type":"string", + "enum":[ + "PENDING_VALIDATION", + "SUCCESS", + "FAILED" + ] + }, + "CodeConfiguration":{ + "type":"structure", + "required":["ConfigurationSource"], + "members":{ + "ConfigurationSource":{"shape":"ConfigurationSource"}, + "CodeConfigurationValues":{"shape":"CodeConfigurationValues"} + } + }, + "CodeConfigurationValues":{ + "type":"structure", + "required":["Runtime"], + "members":{ + "Runtime":{"shape":"Runtime"}, + "BuildCommand":{"shape":"BuildCommand"}, + "StartCommand":{"shape":"StartCommand"}, + "Port":{"shape":"String"}, + "RuntimeEnvironmentVariables":{"shape":"RuntimeEnvironmentVariables"} + } + }, + "CodeRepository":{ + "type":"structure", + "required":[ + "RepositoryUrl", + "SourceCodeVersion" + ], + "members":{ + "RepositoryUrl":{"shape":"String"}, + "SourceCodeVersion":{"shape":"SourceCodeVersion"}, + "CodeConfiguration":{"shape":"CodeConfiguration"} + } + }, + "ConfigurationSource":{ + "type":"string", + "enum":[ + "REPOSITORY", + "API" + ] + }, + "Connection":{ + "type":"structure", + "members":{ + "ConnectionName":{"shape":"ConnectionName"}, + "ConnectionArn":{"shape":"AppRunnerResourceArn"}, + "ProviderType":{"shape":"ProviderType"}, + "Status":{"shape":"ConnectionStatus"}, + "CreatedAt":{"shape":"Timestamp"} + } + }, + "ConnectionName":{ + "type":"string", + "max":32, + "min":4, + "pattern":"[A-Za-z0-9][A-Za-z0-9\\-_]{3,31}" + }, + "ConnectionStatus":{ + "type":"string", + "enum":[ + "PENDING_HANDSHAKE", + "AVAILABLE", + "ERROR", + "DELETED" + ] + }, + "ConnectionSummary":{ + "type":"structure", + "members":{ + "ConnectionName":{"shape":"ConnectionName"}, + "ConnectionArn":{"shape":"AppRunnerResourceArn"}, + "ProviderType":{"shape":"ProviderType"}, + "Status":{"shape":"ConnectionStatus"}, + "CreatedAt":{"shape":"Timestamp"} + } + }, + "ConnectionSummaryList":{ + "type":"list", + "member":{"shape":"ConnectionSummary"} + }, + "Cpu":{ + "type":"string", + "max":6, + "min":4, + "pattern":"1024|2048|(1|2) vCPU" + }, + "CreateAutoScalingConfigurationRequest":{ + "type":"structure", + "required":["AutoScalingConfigurationName"], + "members":{ + "AutoScalingConfigurationName":{"shape":"AutoScalingConfigurationName"}, + "MaxConcurrency":{"shape":"ASConfigMaxConcurrency"}, + "MinSize":{"shape":"ASConfigMinSize"}, + "MaxSize":{"shape":"ASConfigMaxSize"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateAutoScalingConfigurationResponse":{ + "type":"structure", + "required":["AutoScalingConfiguration"], + "members":{ + "AutoScalingConfiguration":{"shape":"AutoScalingConfiguration"} + } + }, + "CreateConnectionRequest":{ + "type":"structure", + "required":[ + "ConnectionName", + "ProviderType" + ], + "members":{ + "ConnectionName":{"shape":"ConnectionName"}, + "ProviderType":{"shape":"ProviderType"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateConnectionResponse":{ + "type":"structure", + "required":["Connection"], + "members":{ + "Connection":{"shape":"Connection"} + } + }, + "CreateServiceRequest":{ + "type":"structure", + "required":[ + "ServiceName", + "SourceConfiguration" + ], + "members":{ + "ServiceName":{"shape":"ServiceName"}, + "SourceConfiguration":{"shape":"SourceConfiguration"}, + "InstanceConfiguration":{"shape":"InstanceConfiguration"}, + "Tags":{"shape":"TagList"}, + "EncryptionConfiguration":{"shape":"EncryptionConfiguration"}, + "HealthCheckConfiguration":{"shape":"HealthCheckConfiguration"}, + "AutoScalingConfigurationArn":{"shape":"AppRunnerResourceArn"} + } + }, + "CreateServiceResponse":{ + "type":"structure", + "required":[ + "Service", + "OperationId" + ], + "members":{ + "Service":{"shape":"Service"}, + "OperationId":{"shape":"UUID"} + } + }, + "CustomDomain":{ + "type":"structure", + "required":[ + "DomainName", + "EnableWWWSubdomain", + "Status" + ], + "members":{ + "DomainName":{"shape":"DomainName"}, + "EnableWWWSubdomain":{"shape":"NullableBoolean"}, + "CertificateValidationRecords":{"shape":"CertificateValidationRecordList"}, + "Status":{"shape":"CustomDomainAssociationStatus"} + } + }, + "CustomDomainAssociationStatus":{ + "type":"string", + "enum":[ + "CREATING", + "CREATE_FAILED", + "ACTIVE", + "DELETING", + "DELETE_FAILED", + "PENDING_CERTIFICATE_DNS_VALIDATION", + "BINDING_CERTIFICATE" + ] + }, + "CustomDomainList":{ + "type":"list", + "member":{"shape":"CustomDomain"} + }, + "DeleteAutoScalingConfigurationRequest":{ + "type":"structure", + "required":["AutoScalingConfigurationArn"], + "members":{ + "AutoScalingConfigurationArn":{"shape":"AppRunnerResourceArn"} + } + }, + "DeleteAutoScalingConfigurationResponse":{ + "type":"structure", + "required":["AutoScalingConfiguration"], + "members":{ + "AutoScalingConfiguration":{"shape":"AutoScalingConfiguration"} + } + }, + "DeleteConnectionRequest":{ + "type":"structure", + "required":["ConnectionArn"], + "members":{ + "ConnectionArn":{"shape":"AppRunnerResourceArn"} + } + }, + "DeleteConnectionResponse":{ + "type":"structure", + "members":{ + "Connection":{"shape":"Connection"} + } + }, + "DeleteServiceRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"} + } + }, + "DeleteServiceResponse":{ + "type":"structure", + "required":[ + "Service", + "OperationId" + ], + "members":{ + "Service":{"shape":"Service"}, + "OperationId":{"shape":"UUID"} + } + }, + "DescribeAutoScalingConfigurationRequest":{ + "type":"structure", + "required":["AutoScalingConfigurationArn"], + "members":{ + "AutoScalingConfigurationArn":{"shape":"AppRunnerResourceArn"} + } + }, + "DescribeAutoScalingConfigurationResponse":{ + "type":"structure", + "required":["AutoScalingConfiguration"], + "members":{ + "AutoScalingConfiguration":{"shape":"AutoScalingConfiguration"} + } + }, + "DescribeCustomDomainsMaxResults":{ + "type":"integer", + "max":5, + "min":1 + }, + "DescribeCustomDomainsRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"DescribeCustomDomainsMaxResults"} + } + }, + "DescribeCustomDomainsResponse":{ + "type":"structure", + "required":[ + "DNSTarget", + "ServiceArn", + "CustomDomains" + ], + "members":{ + "DNSTarget":{"shape":"String"}, + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "CustomDomains":{"shape":"CustomDomainList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeServiceRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"} + } + }, + "DescribeServiceResponse":{ + "type":"structure", + "required":["Service"], + "members":{ + "Service":{"shape":"Service"} + } + }, + "DisassociateCustomDomainRequest":{ + "type":"structure", + "required":[ + "ServiceArn", + "DomainName" + ], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "DomainName":{"shape":"DomainName"} + } + }, + "DisassociateCustomDomainResponse":{ + "type":"structure", + "required":[ + "DNSTarget", + "ServiceArn", + "CustomDomain" + ], + "members":{ + "DNSTarget":{"shape":"String"}, + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "CustomDomain":{"shape":"CustomDomain"} + } + }, + "DomainName":{ + "type":"string", + "max":255, + "min":1 + }, + "EncryptionConfiguration":{ + "type":"structure", + "required":["KmsKey"], + "members":{ + "KmsKey":{"shape":"KmsKeyArn"} + } + }, + "ErrorMessage":{ + "type":"string", + "max":600 + }, + "HealthCheckConfiguration":{ + "type":"structure", + "members":{ + "Protocol":{"shape":"HealthCheckProtocol"}, + "Path":{"shape":"String"}, + "Interval":{"shape":"HealthCheckInterval"}, + "Timeout":{"shape":"HealthCheckTimeout"}, + "HealthyThreshold":{"shape":"HealthCheckHealthyThreshold"}, + "UnhealthyThreshold":{"shape":"HealthCheckUnhealthyThreshold"} + } + }, + "HealthCheckHealthyThreshold":{ + "type":"integer", + "max":20, + "min":1 + }, + "HealthCheckInterval":{ + "type":"integer", + "max":20, + "min":1 + }, + "HealthCheckProtocol":{ + "type":"string", + "enum":[ + "TCP", + "HTTP" + ] + }, + "HealthCheckTimeout":{ + "type":"integer", + "max":20, + "min":1 + }, + "HealthCheckUnhealthyThreshold":{ + "type":"integer", + "max":20, + "min":1 + }, + "ImageConfiguration":{ + "type":"structure", + "members":{ + "RuntimeEnvironmentVariables":{"shape":"RuntimeEnvironmentVariables"}, + "StartCommand":{"shape":"String"}, + "Port":{"shape":"String"} + } + }, + "ImageIdentifier":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"([0-9]{12}.dkr.ecr.[a-z\\-]+-[0-9]{1}.amazonaws.com\\/.*)|(^public\\.ecr\\.aws\\/.+\\/.+)" + }, + "ImageRepository":{ + "type":"structure", + "required":[ + "ImageIdentifier", + "ImageRepositoryType" + ], + "members":{ + "ImageIdentifier":{"shape":"ImageIdentifier"}, + "ImageConfiguration":{"shape":"ImageConfiguration"}, + "ImageRepositoryType":{"shape":"ImageRepositoryType"} + } + }, + "ImageRepositoryType":{ + "type":"string", + "enum":[ + "ECR", + "ECR_PUBLIC" + ] + }, + "InstanceConfiguration":{ + "type":"structure", + "members":{ + "Cpu":{"shape":"Cpu"}, + "Memory":{"shape":"Memory"}, + "InstanceRoleArn":{"shape":"RoleArn"} + } + }, + "Integer":{"type":"integer"}, + "InternalServiceErrorException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true, + "fault":true + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidStateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "KmsKeyArn":{ + "type":"string", + "max":256, + "min":0, + "pattern":"arn:aws(-[\\w]+)*:kms:[a-z\\-]+-[0-9]{1}:[0-9]{12}:key\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + "ListAutoScalingConfigurationsRequest":{ + "type":"structure", + "members":{ + "AutoScalingConfigurationName":{"shape":"AutoScalingConfigurationName"}, + "LatestOnly":{"shape":"Boolean"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAutoScalingConfigurationsResponse":{ + "type":"structure", + "required":["AutoScalingConfigurationSummaryList"], + "members":{ + "AutoScalingConfigurationSummaryList":{"shape":"AutoScalingConfigurationSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListConnectionsRequest":{ + "type":"structure", + "members":{ + "ConnectionName":{"shape":"ConnectionName"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListConnectionsResponse":{ + "type":"structure", + "required":["ConnectionSummaryList"], + "members":{ + "ConnectionSummaryList":{"shape":"ConnectionSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListOperationsMaxResults":{ + "type":"integer", + "max":20, + "min":1 + }, + "ListOperationsRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"ListOperationsMaxResults"} + } + }, + "ListOperationsResponse":{ + "type":"structure", + "members":{ + "OperationSummaryList":{"shape":"OperationSummaryList"}, + "NextToken":{"shape":"String"} + } + }, + "ListServicesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"ServiceMaxResults"} + } + }, + "ListServicesResponse":{ + "type":"structure", + "required":["ServiceSummaryList"], + "members":{ + "ServiceSummaryList":{"shape":"ServiceSummaryList"}, + "NextToken":{"shape":"String"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"AppRunnerResourceArn"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"} + } + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "Memory":{ + "type":"string", + "max":4, + "min":4, + "pattern":"2048|3072|4096|(2|3|4) GB" + }, + "NextToken":{ + "type":"string", + "max":1024, + "min":1, + "pattern":".*" + }, + "NullableBoolean":{"type":"boolean"}, + "OperationStatus":{ + "type":"string", + "enum":[ + "PENDING", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "ROLLBACK_IN_PROGRESS", + "ROLLBACK_FAILED", + "ROLLBACK_SUCCEEDED" + ] + }, + "OperationSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"UUID"}, + "Type":{"shape":"OperationType"}, + "Status":{"shape":"OperationStatus"}, + "TargetArn":{"shape":"AppRunnerResourceArn"}, + "StartedAt":{"shape":"Timestamp"}, + "EndedAt":{"shape":"Timestamp"}, + "UpdatedAt":{"shape":"Timestamp"} + } + }, + "OperationSummaryList":{ + "type":"list", + "member":{"shape":"OperationSummary"} + }, + "OperationType":{ + "type":"string", + "enum":[ + "START_DEPLOYMENT", + "CREATE_SERVICE", + "PAUSE_SERVICE", + "RESUME_SERVICE", + "DELETE_SERVICE" + ] + }, + "PauseServiceRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"} + } + }, + "PauseServiceResponse":{ + "type":"structure", + "required":["Service"], + "members":{ + "Service":{"shape":"Service"}, + "OperationId":{"shape":"UUID"} + } + }, + "ProviderType":{ + "type":"string", + "enum":["GITHUB"] + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResumeServiceRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"} + } + }, + "ResumeServiceResponse":{ + "type":"structure", + "required":["Service"], + "members":{ + "Service":{"shape":"Service"}, + "OperationId":{"shape":"UUID"} + } + }, + "RoleArn":{ + "type":"string", + "max":102, + "min":29, + "pattern":"arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):iam::[0-9]{12}:role/[\\w+=,.@-]{1,64}" + }, + "Runtime":{ + "type":"string", + "enum":[ + "PYTHON_3", + "NODEJS_12" + ] + }, + "RuntimeEnvironmentVariables":{ + "type":"map", + "key":{"shape":"RuntimeEnvironmentVariablesKey"}, + "value":{"shape":"RuntimeEnvironmentVariablesValue"} + }, + "RuntimeEnvironmentVariablesKey":{ + "type":"string", + "sensitive":true + }, + "RuntimeEnvironmentVariablesValue":{ + "type":"string", + "sensitive":true + }, + "Service":{ + "type":"structure", + "required":[ + "ServiceName", + "ServiceId", + "ServiceArn", + "ServiceUrl", + "CreatedAt", + "UpdatedAt", + "Status", + "SourceConfiguration", + "InstanceConfiguration", + "AutoScalingConfigurationSummary" + ], + "members":{ + "ServiceName":{"shape":"ServiceName"}, + "ServiceId":{"shape":"ServiceId"}, + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "ServiceUrl":{"shape":"String"}, + "CreatedAt":{"shape":"Timestamp"}, + "UpdatedAt":{"shape":"Timestamp"}, + "DeletedAt":{"shape":"Timestamp"}, + "Status":{"shape":"ServiceStatus"}, + "SourceConfiguration":{"shape":"SourceConfiguration"}, + "InstanceConfiguration":{"shape":"InstanceConfiguration"}, + "EncryptionConfiguration":{"shape":"EncryptionConfiguration"}, + "HealthCheckConfiguration":{"shape":"HealthCheckConfiguration"}, + "AutoScalingConfigurationSummary":{"shape":"AutoScalingConfigurationSummary"} + } + }, + "ServiceId":{ + "type":"string", + "max":32, + "min":32, + "pattern":"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}" + }, + "ServiceMaxResults":{ + "type":"integer", + "max":20, + "min":1 + }, + "ServiceName":{ + "type":"string", + "max":40, + "min":4, + "pattern":"[A-Za-z0-9][A-Za-z0-9-_]{3,39}" + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ServiceStatus":{ + "type":"string", + "enum":[ + "CREATE_FAILED", + "RUNNING", + "DELETED", + "DELETE_FAILED", + "PAUSED", + "OPERATION_IN_PROGRESS" + ] + }, + "ServiceSummary":{ + "type":"structure", + "members":{ + "ServiceName":{"shape":"ServiceName"}, + "ServiceId":{"shape":"ServiceId"}, + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "ServiceUrl":{"shape":"String"}, + "CreatedAt":{"shape":"Timestamp"}, + "UpdatedAt":{"shape":"Timestamp"}, + "Status":{"shape":"ServiceStatus"} + } + }, + "ServiceSummaryList":{ + "type":"list", + "member":{"shape":"ServiceSummary"} + }, + "SourceCodeVersion":{ + "type":"structure", + "required":[ + "Type", + "Value" + ], + "members":{ + "Type":{"shape":"SourceCodeVersionType"}, + "Value":{"shape":"String"} + } + }, + "SourceCodeVersionType":{ + "type":"string", + "enum":["BRANCH"] + }, + "SourceConfiguration":{ + "type":"structure", + "members":{ + "CodeRepository":{"shape":"CodeRepository"}, + "ImageRepository":{"shape":"ImageRepository"}, + "AutoDeploymentsEnabled":{"shape":"NullableBoolean"}, + "AuthenticationConfiguration":{"shape":"AuthenticationConfiguration"} + } + }, + "StartCommand":{ + "type":"string", + "sensitive":true + }, + "StartDeploymentRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"} + } + }, + "StartDeploymentResponse":{ + "type":"structure", + "required":["OperationId"], + "members":{ + "OperationId":{"shape":"UUID"} + } + }, + "String":{ + "type":"string", + "max":51200, + "min":0, + "pattern":".*" + }, + "Tag":{ + "type":"structure", + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(?!aws:).+" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"AppRunnerResourceArn"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":".*" + }, + "Timestamp":{"type":"timestamp"}, + "UUID":{ + "type":"string", + "max":36, + "min":36, + "pattern":"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}" + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"AppRunnerResourceArn"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateServiceRequest":{ + "type":"structure", + "required":["ServiceArn"], + "members":{ + "ServiceArn":{"shape":"AppRunnerResourceArn"}, + "SourceConfiguration":{"shape":"SourceConfiguration"}, + "InstanceConfiguration":{"shape":"InstanceConfiguration"}, + "AutoScalingConfigurationArn":{"shape":"AppRunnerResourceArn"}, + "HealthCheckConfiguration":{"shape":"HealthCheckConfiguration"} + } + }, + "UpdateServiceResponse":{ + "type":"structure", + "required":[ + "Service", + "OperationId" + ], + "members":{ + "Service":{"shape":"Service"}, + "OperationId":{"shape":"UUID"} + } + } + } +} diff --git a/models/apis/apprunner/2020-05-15/docs-2.json b/models/apis/apprunner/2020-05-15/docs-2.json new file mode 100644 index 00000000000..45131c78302 --- /dev/null +++ b/models/apis/apprunner/2020-05-15/docs-2.json @@ -0,0 +1,868 @@ +{ + "version": "2.0", + "service": "AWS App Runner

AWS App Runner is an application service that provides a fast, simple, and cost-effective way to go directly from an existing container image or source code to a running service in the AWS cloud in seconds. You don't need to learn new technologies, decide which compute service to use, or understand how to provision and configure AWS resources.

App Runner connects directly to your container registry or source code repository. It provides an automatic delivery pipeline with fully managed operations, high performance, scalability, and security.

For more information about App Runner, see the AWS App Runner Developer Guide. For release information, see the AWS App Runner Release Notes.

To install the Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools that you can use to access the API, see Tools for Amazon Web Services.

Endpoints

For a list of Region-specific endpoints that App Runner supports, see AWS App Runner endpoints and quotas in the AWS General Reference.

", + "operations": { + "AssociateCustomDomain": "

Associate your own domain name with the AWS App Runner subdomain URL of your App Runner service.

After you call AssociateCustomDomain and receive a successful response, use the information in the CustomDomain record that's returned to add CNAME records to your Domain Name System (DNS). For each mapped domain name, add a mapping to the target App Runner subdomain and one or more certificate validation records. App Runner then performs DNS validation to verify that you own or control the domain name that you associated. App Runner tracks domain validity in a certificate stored in AWS Certificate Manager (ACM).

", + "CreateAutoScalingConfiguration": "

Create an AWS App Runner automatic scaling configuration resource. App Runner requires this resource when you create App Runner services that require non-default auto scaling settings. You can share an auto scaling configuration across multiple services.

Create multiple revisions of a configuration by using the same AutoScalingConfigurationName and different AutoScalingConfigurationRevision values. When you create a service, you can set it to use the latest active revision of an auto scaling configuration or a specific revision.

Configure a higher MinSize to increase the spread of your App Runner service over more Availability Zones in the AWS Region. The tradeoff is a higher minimal cost.

Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness during peak demand.

", + "CreateConnection": "

Create an AWS App Runner connection resource. App Runner requires a connection resource when you create App Runner services that access private repositories from certain third-party providers. You can share a connection across multiple services.

A connection resource is needed to access GitHub repositories. GitHub requires a user interface approval process through the App Runner console before you can use the connection.

", + "CreateService": "

Create an AWS App Runner service. After the service is created, the action also automatically starts a deployment.

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

", + "DeleteAutoScalingConfiguration": "

Delete an AWS App Runner automatic scaling configuration resource. You can delete a specific revision or the latest active revision. You can't delete a configuration that's used by one or more App Runner services.

", + "DeleteConnection": "

Delete an AWS App Runner connection. You must first ensure that there are no running App Runner services that use this connection. If there are any, the DeleteConnection action fails.

", + "DeleteService": "

Delete an AWS App Runner service.

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

", + "DescribeAutoScalingConfiguration": "

Return a full description of an AWS App Runner automatic scaling configuration resource.

", + "DescribeCustomDomains": "

Return a description of custom domain names that are associated with an AWS App Runner service.

", + "DescribeService": "

Return a full description of an AWS App Runner service.

", + "DisassociateCustomDomain": "

Disassociate a custom domain name from an AWS App Runner service.

Certificates tracking domain validity are associated with a custom domain and are stored in AWS Certificate Manager (ACM). These certificates aren't deleted as part of this action. App Runner delays certificate deletion for 30 days after a domain is disassociated from your service.

", + "ListAutoScalingConfigurations": "

Returns a list of AWS App Runner automatic scaling configurations in your AWS account. You can query the revisions for a specific configuration name or the revisions for all configurations in your account. You can optionally query only the latest revision of each requested name.

", + "ListConnections": "

Returns a list of AWS App Runner connections that are associated with your AWS account.

", + "ListOperations": "

Return a list of operations that occurred on an AWS App Runner service.

The resulting list of OperationSummary objects is sorted in reverse chronological order. The first object on the list represents the last started operation.

", + "ListServices": "

Returns a list of running AWS App Runner services in your AWS account.

", + "ListTagsForResource": "

List tags that are associated with for an AWS App Runner resource. The response contains a list of tag key-value pairs.

", + "PauseService": "

Pause an active AWS App Runner service. App Runner reduces compute capacity for the service to zero and loses state (for example, ephemeral storage is removed).

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

", + "ResumeService": "

Resume an active AWS App Runner service. App Runner provisions compute capacity for the service.

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

", + "StartDeployment": "

Initiate a manual deployment of the latest commit in a source code repository or the latest image in a source image repository to an AWS App Runner service.

For a source code repository, App Runner retrieves the commit and builds a Docker image. For a source image repository, App Runner retrieves the latest Docker image. In both cases, App Runner then deploys the new image to your service and starts a new container instance.

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

", + "TagResource": "

Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value pair.

", + "UntagResource": "

Remove tags from an App Runner resource.

", + "UpdateService": "

Update an AWS App Runner service. You can update the source configuration and instance configuration of the service. You can also update the ARN of the auto scaling configuration resource that's associated with the service. However, you can't change the name or the encryption configuration of the service. These can be set only when you create the service.

To update the tags applied to your service, use the separate actions TagResource and UntagResource.

This is an asynchronous operation. On a successful call, you can use the returned OperationId and the ListOperations call to track the operation's progress.

" + }, + "shapes": { + "ASConfigMaxConcurrency": { + "base": null, + "refs": { + "CreateAutoScalingConfigurationRequest$MaxConcurrency": "

The maximum number of concurrent requests that you want an instance to process. If the number of concurrent requests exceeds this limit, App Runner scales up your service.

Default: 100

" + } + }, + "ASConfigMaxSize": { + "base": null, + "refs": { + "CreateAutoScalingConfigurationRequest$MaxSize": "

The maximum number of instances that your service scales up to. At most MaxSize instances actively serve traffic for your service.

Default: 25

" + } + }, + "ASConfigMinSize": { + "base": null, + "refs": { + "CreateAutoScalingConfigurationRequest$MinSize": "

The minimum number of instances that App Runner provisions for your service. The service always has at least MinSize provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.

App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.

Default: 1

" + } + }, + "AppRunnerResourceArn": { + "base": null, + "refs": { + "AssociateCustomDomainRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.

", + "AssociateCustomDomainResponse$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service with which a custom domain name is associated.

", + "AuthenticationConfiguration$ConnectionArn": "

The Amazon Resource Name (ARN) of the App Runner connection that enables the App Runner service to connect to a source repository. It's required for GitHub code repositories.

", + "AutoScalingConfiguration$AutoScalingConfigurationArn": "

The Amazon Resource Name (ARN) of this auto scaling configuration.

", + "AutoScalingConfigurationSummary$AutoScalingConfigurationArn": "

The Amazon Resource Name (ARN) of this auto scaling configuration.

", + "Connection$ConnectionArn": "

The Amazon Resource Name (ARN) of this connection.

", + "ConnectionSummary$ConnectionArn": "

The Amazon Resource Name (ARN) of this connection.

", + "CreateServiceRequest$AutoScalingConfigurationArn": "

The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration.

", + "DeleteAutoScalingConfigurationRequest$AutoScalingConfigurationArn": "

The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to delete.

The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name or .../name/revision . If a revision isn't specified, the latest active revision is deleted.

", + "DeleteConnectionRequest$ConnectionArn": "

The Amazon Resource Name (ARN) of the App Runner connection that you want to delete.

", + "DeleteServiceRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to delete.

", + "DescribeAutoScalingConfigurationRequest$AutoScalingConfigurationArn": "

The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want a description for.

The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either .../name or .../name/revision . If a revision isn't specified, the latest active revision is described.

", + "DescribeCustomDomainsRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.

", + "DescribeCustomDomainsResponse$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service whose associated custom domain names you want to describe.

", + "DescribeServiceRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want a description for.

", + "DisassociateCustomDomainRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.

", + "DisassociateCustomDomainResponse$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that a custom domain name is disassociated from.

", + "ListOperationsRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.

", + "ListTagsForResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource that a tag list is requested for.

It must be the ARN of an App Runner resource.

", + "OperationSummary$TargetArn": "

The Amazon Resource Name (ARN) of the resource that the operation acted on (for example, an App Runner service).

", + "PauseServiceRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to pause.

", + "ResumeServiceRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to resume.

", + "Service$ServiceArn": "

The Amazon Resource Name (ARN) of this service.

", + "ServiceSummary$ServiceArn": "

The Amazon Resource Name (ARN) of this service.

", + "StartDeploymentRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to manually deploy to.

", + "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource that you want to update tags for.

It must be the ARN of an App Runner resource.

", + "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource that you want to remove tags from.

It must be the ARN of an App Runner resource.

", + "UpdateServiceRequest$ServiceArn": "

The Amazon Resource Name (ARN) of the App Runner service that you want to update.

", + "UpdateServiceRequest$AutoScalingConfigurationArn": "

The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service.

" + } + }, + "AssociateCustomDomainRequest": { + "base": null, + "refs": { + } + }, + "AssociateCustomDomainResponse": { + "base": null, + "refs": { + } + }, + "AuthenticationConfiguration": { + "base": "

Describes resources needed to authenticate access to some source repositories. The specific resource depends on the repository provider.

", + "refs": { + "SourceConfiguration$AuthenticationConfiguration": "

Describes the resources that are needed to authenticate access to some source repositories.

" + } + }, + "AutoScalingConfiguration": { + "base": "

Describes an AWS App Runner automatic scaling configuration resource. Multiple revisions of a configuration have the same AutoScalingConfigurationName and different AutoScalingConfigurationRevision values.

A higher MinSize increases the spread of your App Runner service over more Availability Zones in the AWS Region. The tradeoff is a higher minimal cost.

A lower MaxSize controls your cost. The tradeoff is lower responsiveness during peak demand.

", + "refs": { + "CreateAutoScalingConfigurationResponse$AutoScalingConfiguration": "

A description of the App Runner auto scaling configuration that's created by this request.

", + "DeleteAutoScalingConfigurationResponse$AutoScalingConfiguration": "

A description of the App Runner auto scaling configuration that this request just deleted.

", + "DescribeAutoScalingConfigurationResponse$AutoScalingConfiguration": "

A full description of the App Runner auto scaling configuration that you specified in this request.

" + } + }, + "AutoScalingConfigurationName": { + "base": null, + "refs": { + "AutoScalingConfiguration$AutoScalingConfigurationName": "

The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.

", + "AutoScalingConfigurationSummary$AutoScalingConfigurationName": "

The customer-provided auto scaling configuration name. It can be used in multiple revisions of a configuration.

", + "CreateAutoScalingConfigurationRequest$AutoScalingConfigurationName": "

A name for the auto scaling configuration. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.

", + "ListAutoScalingConfigurationsRequest$AutoScalingConfigurationName": "

The name of the App Runner auto scaling configuration that you want to list. If specified, App Runner lists revisions that share this name. If not specified, App Runner returns revisions of all configurations.

" + } + }, + "AutoScalingConfigurationStatus": { + "base": null, + "refs": { + "AutoScalingConfiguration$Status": "

The current state of the auto scaling configuration. If the status of a configuration revision is INACTIVE, it was deleted and can't be used. Inactive configuration revisions are permanently removed some time after they are deleted.

" + } + }, + "AutoScalingConfigurationSummary": { + "base": "

Provides summary information about an AWS App Runner automatic scaling configuration resource.

This type contains limited information about an auto scaling configuration. It includes only identification information, without configuration details. It's returned by the ListAutoScalingConfigurations action. Complete configuration information is returned by the CreateAutoScalingConfiguration, DescribeAutoScalingConfiguration, and DeleteAutoScalingConfiguration actions using the AutoScalingConfiguration type.

", + "refs": { + "AutoScalingConfigurationSummaryList$member": null, + "Service$AutoScalingConfigurationSummary": "

Summary information for the App Runner automatic scaling configuration resource that's associated with this service.

" + } + }, + "AutoScalingConfigurationSummaryList": { + "base": null, + "refs": { + "ListAutoScalingConfigurationsResponse$AutoScalingConfigurationSummaryList": "

A list of summary information records for auto scaling configurations. In a paginated request, the request returns up to MaxResults records for each call.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "AutoScalingConfiguration$Latest": "

It's set to true for the configuration with the highest Revision among all configurations that share the same Name. It's set to false otherwise.

", + "ListAutoScalingConfigurationsRequest$LatestOnly": "

Set to true to list only the latest revision for each requested configuration name.

Keep as false to list all revisions for each requested configuration name.

Default: false

" + } + }, + "BuildCommand": { + "base": null, + "refs": { + "CodeConfigurationValues$BuildCommand": "

The command App Runner runs to build your application.

" + } + }, + "CertificateValidationRecord": { + "base": "

Describes a certificate CNAME record to add to your DNS. For more information, see AssociateCustomDomain.

", + "refs": { + "CertificateValidationRecordList$member": null + } + }, + "CertificateValidationRecordList": { + "base": null, + "refs": { + "CustomDomain$CertificateValidationRecords": "

A list of certificate CNAME records that's used for this domain name.

" + } + }, + "CertificateValidationRecordStatus": { + "base": null, + "refs": { + "CertificateValidationRecord$Status": "

The current state of the certificate CNAME record validation. It should change to SUCCESS after App Runner completes validation with your DNS.

" + } + }, + "CodeConfiguration": { + "base": "

Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository.

", + "refs": { + "CodeRepository$CodeConfiguration": "

Configuration for building and running the service from a source code repository.

" + } + }, + "CodeConfigurationValues": { + "base": "

Describes the basic configuration needed for building and running an AWS App Runner service. This type doesn't support the full set of possible configuration options. Fur full configuration capabilities, use a apprunner.yaml file in the source code repository.

", + "refs": { + "CodeConfiguration$CodeConfigurationValues": "

The basic configuration for building and running the App Runner service. Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).

" + } + }, + "CodeRepository": { + "base": "

Describes a source code repository.

", + "refs": { + "SourceConfiguration$CodeRepository": "

The description of a source code repository.

You must provide either this member or ImageRepository (but not both).

" + } + }, + "ConfigurationSource": { + "base": null, + "refs": { + "CodeConfiguration$ConfigurationSource": "

The source of the App Runner configuration. Values are interpreted as follows:

" + } + }, + "Connection": { + "base": "

Describes an AWS App Runner connection resource.

", + "refs": { + "CreateConnectionResponse$Connection": "

A description of the App Runner connection that's created by this request.

", + "DeleteConnectionResponse$Connection": "

A description of the App Runner connection that this request just deleted.

" + } + }, + "ConnectionName": { + "base": null, + "refs": { + "Connection$ConnectionName": "

The customer-provided connection name.

", + "ConnectionSummary$ConnectionName": "

The customer-provided connection name.

", + "CreateConnectionRequest$ConnectionName": "

A name for the new connection. It must be unique across all App Runner connections for the AWS account in the AWS Region.

", + "ListConnectionsRequest$ConnectionName": "

If specified, only this connection is returned. If not specified, the result isn't filtered by name.

" + } + }, + "ConnectionStatus": { + "base": null, + "refs": { + "Connection$Status": "

The current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an App Runner service.

", + "ConnectionSummary$Status": "

The current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an App Runner service.

" + } + }, + "ConnectionSummary": { + "base": "

Provides summary information about an AWS App Runner connection resource.

", + "refs": { + "ConnectionSummaryList$member": null + } + }, + "ConnectionSummaryList": { + "base": null, + "refs": { + "ListConnectionsResponse$ConnectionSummaryList": "

A list of summary information records for connections. In a paginated request, the request returns up to MaxResults records for each call.

" + } + }, + "Cpu": { + "base": null, + "refs": { + "InstanceConfiguration$Cpu": "

The number of CPU units reserved for each instance of your App Runner service.

Default: 1 vCPU

" + } + }, + "CreateAutoScalingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "CreateAutoScalingConfigurationResponse": { + "base": null, + "refs": { + } + }, + "CreateConnectionRequest": { + "base": null, + "refs": { + } + }, + "CreateConnectionResponse": { + "base": null, + "refs": { + } + }, + "CreateServiceRequest": { + "base": null, + "refs": { + } + }, + "CreateServiceResponse": { + "base": null, + "refs": { + } + }, + "CustomDomain": { + "base": "

Describes a custom domain that's associated with an AWS App Runner service.

", + "refs": { + "AssociateCustomDomainResponse$CustomDomain": "

A description of the domain name that's being associated.

", + "CustomDomainList$member": null, + "DisassociateCustomDomainResponse$CustomDomain": "

A description of the domain name that's being disassociated.

" + } + }, + "CustomDomainAssociationStatus": { + "base": null, + "refs": { + "CustomDomain$Status": "

The current state of the domain name association.

" + } + }, + "CustomDomainList": { + "base": null, + "refs": { + "DescribeCustomDomainsResponse$CustomDomains": "

A list of descriptions of custom domain names that are associated with the service. In a paginated request, the request returns up to MaxResults records per call.

" + } + }, + "DeleteAutoScalingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteAutoScalingConfigurationResponse": { + "base": null, + "refs": { + } + }, + "DeleteConnectionRequest": { + "base": null, + "refs": { + } + }, + "DeleteConnectionResponse": { + "base": null, + "refs": { + } + }, + "DeleteServiceRequest": { + "base": null, + "refs": { + } + }, + "DeleteServiceResponse": { + "base": null, + "refs": { + } + }, + "DescribeAutoScalingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DescribeAutoScalingConfigurationResponse": { + "base": null, + "refs": { + } + }, + "DescribeCustomDomainsMaxResults": { + "base": null, + "refs": { + "DescribeCustomDomainsRequest$MaxResults": "

The maximum number of results that each response (result page) can include. It's used for a paginated request.

If you don't specify MaxResults, the request retrieves all available results in a single response.

" + } + }, + "DescribeCustomDomainsRequest": { + "base": null, + "refs": { + } + }, + "DescribeCustomDomainsResponse": { + "base": null, + "refs": { + } + }, + "DescribeServiceRequest": { + "base": null, + "refs": { + } + }, + "DescribeServiceResponse": { + "base": null, + "refs": { + } + }, + "DisassociateCustomDomainRequest": { + "base": null, + "refs": { + } + }, + "DisassociateCustomDomainResponse": { + "base": null, + "refs": { + } + }, + "DomainName": { + "base": null, + "refs": { + "AssociateCustomDomainRequest$DomainName": "

A custom domain endpoint to associate. Specify a root domain (for example, example.com), a subdomain (for example, login.example.com or admin.login.example.com), or a wildcard (for example, *.example.com).

", + "CustomDomain$DomainName": "

An associated custom domain endpoint. It can be a root domain (for example, example.com), a subdomain (for example, login.example.com or admin.login.example.com), or a wildcard (for example, *.example.com).

", + "DisassociateCustomDomainRequest$DomainName": "

The domain name that you want to disassociate from the App Runner service.

" + } + }, + "EncryptionConfiguration": { + "base": "

Describes a custom encryption key that AWS App Runner uses to encrypt copies of the source repository and service logs.

", + "refs": { + "CreateServiceRequest$EncryptionConfiguration": "

An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed CMK.

", + "Service$EncryptionConfiguration": "

The encryption key that App Runner uses to encrypt the service logs and the copy of the source repository that App Runner maintains for the service. It can be either a customer-provided encryption key or an AWS managed CMK.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "InternalServiceErrorException$Message": null, + "InvalidRequestException$Message": null, + "InvalidStateException$Message": null, + "ResourceNotFoundException$Message": null, + "ServiceQuotaExceededException$Message": null + } + }, + "HealthCheckConfiguration": { + "base": "

Describes the settings for the health check that AWS App Runner performs to monitor the health of a service.

", + "refs": { + "CreateServiceRequest$HealthCheckConfiguration": "

The settings for the health check that AWS App Runner performs to monitor the health of your service.

", + "Service$HealthCheckConfiguration": "

The settings for the health check that App Runner performs to monitor the health of this service.

", + "UpdateServiceRequest$HealthCheckConfiguration": "

The settings for the health check that AWS App Runner performs to monitor the health of your service.

" + } + }, + "HealthCheckHealthyThreshold": { + "base": null, + "refs": { + "HealthCheckConfiguration$HealthyThreshold": "

The number of consecutive checks that must succeed before App Runner decides that the service is healthy.

Default: 3

" + } + }, + "HealthCheckInterval": { + "base": null, + "refs": { + "HealthCheckConfiguration$Interval": "

The time interval, in seconds, between health checks.

Default: 5

" + } + }, + "HealthCheckProtocol": { + "base": null, + "refs": { + "HealthCheckConfiguration$Protocol": "

The IP protocol that App Runner uses to perform health checks for your service.

If you set Protocol to HTTP, App Runner sends health check requests to the HTTP path specified by Path.

Default: TCP

" + } + }, + "HealthCheckTimeout": { + "base": null, + "refs": { + "HealthCheckConfiguration$Timeout": "

The time, in seconds, to wait for a health check response before deciding it failed.

Default: 2

" + } + }, + "HealthCheckUnhealthyThreshold": { + "base": null, + "refs": { + "HealthCheckConfiguration$UnhealthyThreshold": "

The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.

Default: 3

" + } + }, + "ImageConfiguration": { + "base": "

Describes the configuration that AWS App Runner uses to run an App Runner service using an image pulled from a source image repository.

", + "refs": { + "ImageRepository$ImageConfiguration": "

Configuration for running the identified image.

" + } + }, + "ImageIdentifier": { + "base": null, + "refs": { + "ImageRepository$ImageIdentifier": "

The identifier of an image.

For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide.

" + } + }, + "ImageRepository": { + "base": "

Describes a source image repository.

", + "refs": { + "SourceConfiguration$ImageRepository": "

The description of a source image repository.

You must provide either this member or CodeRepository (but not both).

" + } + }, + "ImageRepositoryType": { + "base": null, + "refs": { + "ImageRepository$ImageRepositoryType": "

The type of the image repository. This reflects the repository provider and whether the repository is private or public.

" + } + }, + "InstanceConfiguration": { + "base": "

Describes the runtime configuration of an AWS App Runner service instance (scaling unit).

", + "refs": { + "CreateServiceRequest$InstanceConfiguration": "

The runtime configuration of instances (scaling units) of the App Runner service.

", + "Service$InstanceConfiguration": "

The runtime configuration of instances (scaling units) of this service.

", + "UpdateServiceRequest$InstanceConfiguration": "

The runtime configuration to apply to instances (scaling units) of the App Runner service.

" + } + }, + "Integer": { + "base": null, + "refs": { + "AutoScalingConfiguration$AutoScalingConfigurationRevision": "

The revision of this auto scaling configuration. It's unique among all the active configurations (\"Status\": \"ACTIVE\") that share the same AutoScalingConfigurationName.

", + "AutoScalingConfiguration$MaxConcurrency": "

The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up.

", + "AutoScalingConfiguration$MinSize": "

The minimum number of instances that App Runner provisions for a service. The service always has at least MinSize provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.

App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.

", + "AutoScalingConfiguration$MaxSize": "

The maximum number of instances that a service scales up to. At most MaxSize instances actively serve traffic for your service.

", + "AutoScalingConfigurationSummary$AutoScalingConfigurationRevision": "

The revision of this auto scaling configuration. It's unique among all the active configurations (\"Status\": \"ACTIVE\") with the same AutoScalingConfigurationName.

" + } + }, + "InternalServiceErrorException": { + "base": "

An unexpected service exception occurred.

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

One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.

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

You can't perform this action when the resource is in its current state.

", + "refs": { + } + }, + "KmsKeyArn": { + "base": null, + "refs": { + "EncryptionConfiguration$KmsKey": "

The ARN of the KMS key that's used for encryption.

" + } + }, + "ListAutoScalingConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "ListAutoScalingConfigurationsResponse": { + "base": null, + "refs": { + } + }, + "ListConnectionsRequest": { + "base": null, + "refs": { + } + }, + "ListConnectionsResponse": { + "base": null, + "refs": { + } + }, + "ListOperationsMaxResults": { + "base": null, + "refs": { + "ListOperationsRequest$MaxResults": "

The maximum number of results to include in each response (result page). It's used for a paginated request.

If you don't specify MaxResults, the request retrieves all available results in a single response.

" + } + }, + "ListOperationsRequest": { + "base": null, + "refs": { + } + }, + "ListOperationsResponse": { + "base": null, + "refs": { + } + }, + "ListServicesRequest": { + "base": null, + "refs": { + } + }, + "ListServicesResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAutoScalingConfigurationsRequest$MaxResults": "

The maximum number of results to include in each response (result page). It's used for a paginated request.

If you don't specify MaxResults, the request retrieves all available results in a single response.

", + "ListConnectionsRequest$MaxResults": "

The maximum number of results to include in each response (result page). Used for a paginated request.

If you don't specify MaxResults, the request retrieves all available results in a single response.

" + } + }, + "Memory": { + "base": null, + "refs": { + "InstanceConfiguration$Memory": "

The amount of memory, in MB or GB, reserved for each instance of your App Runner service.

Default: 2 GB

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListAutoScalingConfigurationsRequest$NextToken": "

A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.

If you don't specify NextToken, the request retrieves the first result page.

", + "ListAutoScalingConfigurationsResponse$NextToken": "

The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.

", + "ListConnectionsRequest$NextToken": "

A token from a previous result page. Used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.

If you don't specify NextToken, the request retrieves the first result page.

", + "ListConnectionsResponse$NextToken": "

The token that you can pass in a subsequent request to get the next result page. Returned in a paginated request.

" + } + }, + "NullableBoolean": { + "base": null, + "refs": { + "AssociateCustomDomainRequest$EnableWWWSubdomain": "

Set to true to associate the subdomain www.DomainName with the App Runner service in addition to the base domain.

Default: true

", + "CustomDomain$EnableWWWSubdomain": "

When true, the subdomain www.DomainName is associated with the App Runner service in addition to the base domain.

", + "SourceConfiguration$AutoDeploymentsEnabled": "

If true, continuous integration from the source repository is enabled for the App Runner service. Each repository change (source code commit or new image version) starts a deployment.

Default: true

" + } + }, + "OperationStatus": { + "base": null, + "refs": { + "OperationSummary$Status": "

The current state of the operation.

" + } + }, + "OperationSummary": { + "base": "

Provides summary information for an operation that occurred on an AWS App Runner service.

", + "refs": { + "OperationSummaryList$member": null + } + }, + "OperationSummaryList": { + "base": null, + "refs": { + "ListOperationsResponse$OperationSummaryList": "

A list of operation summary information records. In a paginated request, the request returns up to MaxResults records for each call.

" + } + }, + "OperationType": { + "base": null, + "refs": { + "OperationSummary$Type": "

The type of operation. It indicates a specific action that occured.

" + } + }, + "PauseServiceRequest": { + "base": null, + "refs": { + } + }, + "PauseServiceResponse": { + "base": null, + "refs": { + } + }, + "ProviderType": { + "base": null, + "refs": { + "Connection$ProviderType": "

The source repository provider.

", + "ConnectionSummary$ProviderType": "

The source repository provider.

", + "CreateConnectionRequest$ProviderType": "

The source repository provider.

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

A resource doesn't exist for the specified Amazon Resource Name (ARN) in your AWS account.

", + "refs": { + } + }, + "ResumeServiceRequest": { + "base": null, + "refs": { + } + }, + "ResumeServiceResponse": { + "base": null, + "refs": { + } + }, + "RoleArn": { + "base": null, + "refs": { + "AuthenticationConfiguration$AccessRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that grants the App Runner service access to a source repository. It's required for ECR image repositories (but not for ECR Public repositories).

", + "InstanceConfiguration$InstanceRoleArn": "

The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.

" + } + }, + "Runtime": { + "base": null, + "refs": { + "CodeConfigurationValues$Runtime": "

A runtime environment type for building and running an App Runner service. It represents a programming language runtime.

" + } + }, + "RuntimeEnvironmentVariables": { + "base": null, + "refs": { + "CodeConfigurationValues$RuntimeEnvironmentVariables": "

The environment variables that are available to your running App Runner service. An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.

", + "ImageConfiguration$RuntimeEnvironmentVariables": "

Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.

" + } + }, + "RuntimeEnvironmentVariablesKey": { + "base": null, + "refs": { + "RuntimeEnvironmentVariables$key": null + } + }, + "RuntimeEnvironmentVariablesValue": { + "base": null, + "refs": { + "RuntimeEnvironmentVariables$value": null + } + }, + "Service": { + "base": "

Describes an AWS App Runner service. It can describe a service in any state, including deleted services.

This type contains the full information about a service, including configuration details. It's returned by the CreateService, DescribeService, and DeleteService actions. A subset of this information is returned by the ListServices action using the ServiceSummary type.

", + "refs": { + "CreateServiceResponse$Service": "

A description of the App Runner service that's created by this request.

", + "DeleteServiceResponse$Service": "

A description of the App Runner service that this request just deleted.

", + "DescribeServiceResponse$Service": "

A full description of the App Runner service that you specified in this request.

", + "PauseServiceResponse$Service": "

A description of the App Runner service that this request just paused.

", + "ResumeServiceResponse$Service": "

A description of the App Runner service that this request just resumed.

", + "UpdateServiceResponse$Service": "

A description of the App Runner service updated by this request. All configuration values in the returned Service structure reflect configuration changes that are being applied by this request.

" + } + }, + "ServiceId": { + "base": null, + "refs": { + "Service$ServiceId": "

An ID that App Runner generated for this service. It's unique within the AWS Region.

", + "ServiceSummary$ServiceId": "

An ID that App Runner generated for this service. It's unique within the AWS Region.

" + } + }, + "ServiceMaxResults": { + "base": null, + "refs": { + "ListServicesRequest$MaxResults": "

The maximum number of results to include in each response (result page). It's used for a paginated request.

If you don't specify MaxResults, the request retrieves all available results in a single response.

" + } + }, + "ServiceName": { + "base": null, + "refs": { + "CreateServiceRequest$ServiceName": "

A name for the new service. It must be unique across all the running App Runner services in your AWS account in the AWS Region.

", + "Service$ServiceName": "

The customer-provided service name.

", + "ServiceSummary$ServiceName": "

The customer-provided service name.

" + } + }, + "ServiceQuotaExceededException": { + "base": "

App Runner can't create this resource. You've reached your account quota for this resource type.

For App Runner per-resource quotas, see AWS App Runner endpoints and quotas in the AWS General Reference.

", + "refs": { + } + }, + "ServiceStatus": { + "base": null, + "refs": { + "Service$Status": "

The current state of the App Runner service. These particular values mean the following.

", + "ServiceSummary$Status": "

The current state of the App Runner service. These particular values mean the following.

" + } + }, + "ServiceSummary": { + "base": "

Provides summary information for an AWS App Runner service.

This type contains limited information about a service. It doesn't include configuration details. It's returned by the ListServices action. Complete service information is returned by the CreateService, DescribeService, and DeleteService actions using the Service type.

", + "refs": { + "ServiceSummaryList$member": null + } + }, + "ServiceSummaryList": { + "base": null, + "refs": { + "ListServicesResponse$ServiceSummaryList": "

A list of service summary information records. In a paginated request, the request returns up to MaxResults records for each call.

" + } + }, + "SourceCodeVersion": { + "base": "

Identifies a version of code that AWS App Runner refers to within a source code repository.

", + "refs": { + "CodeRepository$SourceCodeVersion": "

The version that should be used within the source code repository.

" + } + }, + "SourceCodeVersionType": { + "base": null, + "refs": { + "SourceCodeVersion$Type": "

The type of version identifier.

For a git-based repository, branches represent versions.

" + } + }, + "SourceConfiguration": { + "base": "

Describes the source deployed to an AWS App Runner service. It can be a code or an image repository.

", + "refs": { + "CreateServiceRequest$SourceConfiguration": "

The source to deploy to the App Runner service. It can be a code or an image repository.

", + "Service$SourceConfiguration": "

The source deployed to the App Runner service. It can be a code or an image repository.

", + "UpdateServiceRequest$SourceConfiguration": "

The source configuration to apply to the App Runner service.

You can change the configuration of the code or image repository that the service uses. However, you can't switch from code to image or the other way around. This means that you must provide the same structure member of SourceConfiguration that you originally included when you created the service. Specifically, you can include either CodeRepository or ImageRepository. To update the source configuration, set the values to members of the structure that you include.

" + } + }, + "StartCommand": { + "base": null, + "refs": { + "CodeConfigurationValues$StartCommand": "

The command App Runner runs to start your application.

" + } + }, + "StartDeploymentRequest": { + "base": null, + "refs": { + } + }, + "StartDeploymentResponse": { + "base": null, + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "AssociateCustomDomainResponse$DNSTarget": "

The App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.

", + "CertificateValidationRecord$Name": "

The certificate CNAME record name.

", + "CertificateValidationRecord$Type": "

The record type, always CNAME.

", + "CertificateValidationRecord$Value": "

The certificate CNAME record value.

", + "CodeConfigurationValues$Port": "

The port that your application listens to in the container.

Default: 8080

", + "CodeRepository$RepositoryUrl": "

The location of the repository that contains the source code.

", + "DescribeCustomDomainsRequest$NextToken": "

A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.

If you don't specify NextToken, the request retrieves the first result page.

", + "DescribeCustomDomainsResponse$DNSTarget": "

The App Runner subdomain of the App Runner service. The associated custom domain names are mapped to this target name.

", + "DescribeCustomDomainsResponse$NextToken": "

The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.

", + "DisassociateCustomDomainResponse$DNSTarget": "

The App Runner subdomain of the App Runner service. The disassociated custom domain name was mapped to this target name.

", + "HealthCheckConfiguration$Path": "

The URL that health check requests are sent to.

Path is only applicable when you set Protocol to HTTP.

Default: \"/\"

", + "ImageConfiguration$StartCommand": "

An optional command that App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.

", + "ImageConfiguration$Port": "

The port that your application listens to in the container.

Default: 8080

", + "ListOperationsRequest$NextToken": "

A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.

If you don't specify NextToken, the request retrieves the first result page.

", + "ListOperationsResponse$NextToken": "

The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.

", + "ListServicesRequest$NextToken": "

A token from a previous result page. Used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.

If you don't specify NextToken, the request retrieves the first result page.

", + "ListServicesResponse$NextToken": "

The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.

", + "Service$ServiceUrl": "

A subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.

", + "ServiceSummary$ServiceUrl": "

A subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.

", + "SourceCodeVersion$Value": "

A source code version.

For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.

" + } + }, + "Tag": { + "base": "

Describes a tag that is applied to an AWS App Runner resource. A tag is a metadata item consisting of a key-value pair.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The key of the tag.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

A list of tag keys that you want to remove.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateAutoScalingConfigurationRequest$Tags": "

A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.

", + "CreateConnectionRequest$Tags": "

A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.

", + "CreateServiceRequest$Tags": "

An optional list of metadata items that you can associate with your service resource. A tag is a key-value pair.

", + "ListTagsForResourceResponse$Tags": "

A list of the tag key-value pairs that are associated with the resource.

", + "TagResourceRequest$Tags": "

A list of tag key-value pairs to add or update. If a key is new to the resource, the tag is added with the provided value. If a key is already associated with the resource, the value of the tag is updated.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The value of the tag.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "AutoScalingConfiguration$CreatedAt": "

The time when the auto scaling configuration was created. It's in Unix time stamp format.

", + "AutoScalingConfiguration$DeletedAt": "

The time when the auto scaling configuration was deleted. It's in Unix time stamp format.

", + "Connection$CreatedAt": "

The App Runner connection creation time, expressed as a Unix time stamp.

", + "ConnectionSummary$CreatedAt": "

The App Runner connection creation time, expressed as a Unix time stamp.

", + "OperationSummary$StartedAt": "

The time when the operation started. It's in the Unix time stamp format.

", + "OperationSummary$EndedAt": "

The time when the operation ended. It's in the Unix time stamp format.

", + "OperationSummary$UpdatedAt": "

The time when the operation was last updated. It's in the Unix time stamp format.

", + "Service$CreatedAt": "

The time when the App Runner service was created. It's in the Unix time stamp format.

", + "Service$UpdatedAt": "

The time when the App Runner service was last updated at. It's in the Unix time stamp format.

", + "Service$DeletedAt": "

The time when the App Runner service was deleted. It's in the Unix time stamp format.

", + "ServiceSummary$CreatedAt": "

The time when the App Runner service was created. It's in the Unix time stamp format.

", + "ServiceSummary$UpdatedAt": "

The time when the App Runner service was last updated. It's in theUnix time stamp format.

" + } + }, + "UUID": { + "base": null, + "refs": { + "CreateServiceResponse$OperationId": "

The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.

", + "DeleteServiceResponse$OperationId": "

The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.

", + "OperationSummary$Id": "

A unique ID of this operation. It's unique in the scope of the App Runner service.

", + "PauseServiceResponse$OperationId": "

The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.

", + "ResumeServiceResponse$OperationId": "

The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.

", + "StartDeploymentResponse$OperationId": "

The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.

", + "UpdateServiceResponse$OperationId": "

The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.

" + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateServiceRequest": { + "base": null, + "refs": { + } + }, + "UpdateServiceResponse": { + "base": null, + "refs": { + } + } + } +} diff --git a/models/apis/apprunner/2020-05-15/examples-1.json b/models/apis/apprunner/2020-05-15/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/apprunner/2020-05-15/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/apprunner/2020-05-15/paginators-1.json b/models/apis/apprunner/2020-05-15/paginators-1.json new file mode 100644 index 00000000000..698ccc695c0 --- /dev/null +++ b/models/apis/apprunner/2020-05-15/paginators-1.json @@ -0,0 +1,29 @@ +{ + "pagination": { + "DescribeCustomDomains": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListAutoScalingConfigurations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListConnections": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListOperations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListServices": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/models/apis/compute-optimizer/2019-11-01/api-2.json b/models/apis/compute-optimizer/2019-11-01/api-2.json index d814ec75d8c..42bf518ce38 100644 --- a/models/apis/compute-optimizer/2019-11-01/api-2.json +++ b/models/apis/compute-optimizer/2019-11-01/api-2.json @@ -51,6 +51,25 @@ {"shape":"LimitExceededException"} ] }, + "ExportEBSVolumeRecommendations":{ + "name":"ExportEBSVolumeRecommendations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExportEBSVolumeRecommendationsRequest"}, + "output":{"shape":"ExportEBSVolumeRecommendationsResponse"}, + "errors":[ + {"shape":"OptInRequiredException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingAuthenticationToken"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"} + ] + }, "ExportEC2InstanceRecommendations":{ "name":"ExportEC2InstanceRecommendations", "http":{ @@ -70,6 +89,25 @@ {"shape":"LimitExceededException"} ] }, + "ExportLambdaFunctionRecommendations":{ + "name":"ExportLambdaFunctionRecommendations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExportLambdaFunctionRecommendationsRequest"}, + "output":{"shape":"ExportLambdaFunctionRecommendationsResponse"}, + "errors":[ + {"shape":"OptInRequiredException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"MissingAuthenticationToken"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"} + ] + }, "GetAutoScalingGroupRecommendations":{ "name":"GetAutoScalingGroupRecommendations", "http":{ @@ -370,6 +408,25 @@ "s3":{"shape":"S3Destination"} } }, + "ExportEBSVolumeRecommendationsRequest":{ + "type":"structure", + "required":["s3DestinationConfig"], + "members":{ + "accountIds":{"shape":"AccountIds"}, + "filters":{"shape":"EBSFilters"}, + "fieldsToExport":{"shape":"ExportableVolumeFields"}, + "s3DestinationConfig":{"shape":"S3DestinationConfig"}, + "fileFormat":{"shape":"FileFormat"}, + "includeMemberAccounts":{"shape":"IncludeMemberAccounts"} + } + }, + "ExportEBSVolumeRecommendationsResponse":{ + "type":"structure", + "members":{ + "jobId":{"shape":"JobId"}, + "s3Destination":{"shape":"S3Destination"} + } + }, "ExportEC2InstanceRecommendationsRequest":{ "type":"structure", "required":["s3DestinationConfig"], @@ -389,6 +446,25 @@ "s3Destination":{"shape":"S3Destination"} } }, + "ExportLambdaFunctionRecommendationsRequest":{ + "type":"structure", + "required":["s3DestinationConfig"], + "members":{ + "accountIds":{"shape":"AccountIds"}, + "filters":{"shape":"LambdaFunctionRecommendationFilters"}, + "fieldsToExport":{"shape":"ExportableLambdaFunctionFields"}, + "s3DestinationConfig":{"shape":"S3DestinationConfig"}, + "fileFormat":{"shape":"FileFormat"}, + "includeMemberAccounts":{"shape":"IncludeMemberAccounts"} + } + }, + "ExportLambdaFunctionRecommendationsResponse":{ + "type":"structure", + "members":{ + "jobId":{"shape":"JobId"}, + "s3Destination":{"shape":"S3Destination"} + } + }, "ExportableAutoScalingGroupField":{ "type":"string", "enum":[ @@ -477,6 +553,70 @@ "type":"list", "member":{"shape":"ExportableInstanceField"} }, + "ExportableLambdaFunctionField":{ + "type":"string", + "enum":[ + "AccountId", + "FunctionArn", + "FunctionVersion", + "Finding", + "FindingReasonCodes", + "NumberOfInvocations", + "UtilizationMetricsDurationMaximum", + "UtilizationMetricsDurationAverage", + "UtilizationMetricsMemoryMaximum", + "UtilizationMetricsMemoryAverage", + "LookbackPeriodInDays", + "CurrentConfigurationMemorySize", + "CurrentConfigurationTimeout", + "CurrentCostTotal", + "CurrentCostAverage", + "RecommendationOptionsConfigurationMemorySize", + "RecommendationOptionsCostLow", + "RecommendationOptionsCostHigh", + "RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound", + "RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound", + "RecommendationOptionsProjectedUtilizationMetricsDurationExpected", + "LastRefreshTimestamp" + ] + }, + "ExportableLambdaFunctionFields":{ + "type":"list", + "member":{"shape":"ExportableLambdaFunctionField"} + }, + "ExportableVolumeField":{ + "type":"string", + "enum":[ + "AccountId", + "VolumeArn", + "Finding", + "UtilizationMetricsVolumeReadOpsPerSecondMaximum", + "UtilizationMetricsVolumeWriteOpsPerSecondMaximum", + "UtilizationMetricsVolumeReadBytesPerSecondMaximum", + "UtilizationMetricsVolumeWriteBytesPerSecondMaximum", + "LookbackPeriodInDays", + "CurrentConfigurationVolumeType", + "CurrentConfigurationVolumeBaselineIOPS", + "CurrentConfigurationVolumeBaselineThroughput", + "CurrentConfigurationVolumeBurstIOPS", + "CurrentConfigurationVolumeBurstThroughput", + "CurrentConfigurationVolumeSize", + "CurrentMonthlyPrice", + "RecommendationOptionsConfigurationVolumeType", + "RecommendationOptionsConfigurationVolumeBaselineIOPS", + "RecommendationOptionsConfigurationVolumeBaselineThroughput", + "RecommendationOptionsConfigurationVolumeBurstIOPS", + "RecommendationOptionsConfigurationVolumeBurstThroughput", + "RecommendationOptionsConfigurationVolumeSize", + "RecommendationOptionsMonthlyPrice", + "RecommendationOptionsPerformanceRisk", + "LastRefreshTimestamp" + ] + }, + "ExportableVolumeFields":{ + "type":"list", + "member":{"shape":"ExportableVolumeField"} + }, "FailureReason":{"type":"string"}, "FileFormat":{ "type":"string", @@ -1041,7 +1181,9 @@ "type":"string", "enum":[ "Ec2Instance", - "AutoScalingGroup" + "AutoScalingGroup", + "EbsVolume", + "LambdaFunction" ] }, "S3Destination":{ diff --git a/models/apis/compute-optimizer/2019-11-01/docs-2.json b/models/apis/compute-optimizer/2019-11-01/docs-2.json index d1f7079247a..eaaa5fa385c 100644 --- a/models/apis/compute-optimizer/2019-11-01/docs-2.json +++ b/models/apis/compute-optimizer/2019-11-01/docs-2.json @@ -4,7 +4,9 @@ "operations": { "DescribeRecommendationExportJobs": "

Describes recommendation export jobs created in the last seven days.

Use the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations actions to request an export of your recommendations. Then use the DescribeRecommendationExportJobs action to view your export jobs.

", "ExportAutoScalingGroupRecommendations": "

Exports optimization recommendations for Auto Scaling groups.

Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.

You can have only one Auto Scaling group export job in progress per AWS Region.

", + "ExportEBSVolumeRecommendations": "

Exports optimization recommendations for Amazon EBS volumes.

Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.

You can have only one Amazon EBS volume export job in progress per AWS Region.

", "ExportEC2InstanceRecommendations": "

Exports optimization recommendations for Amazon EC2 instances.

Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.

You can have only one Amazon EC2 instance export job in progress per AWS Region.

", + "ExportLambdaFunctionRecommendations": "

Exports optimization recommendations for AWS Lambda functions.

Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.

You can have only one Lambda function export job in progress per AWS Region.

", "GetAutoScalingGroupRecommendations": "

Returns Auto Scaling group recommendations.

AWS Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that meet a specific set of requirements. For more information, see the Supported resources and requirements in the AWS Compute Optimizer User Guide.

", "GetEBSVolumeRecommendations": "

Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.

AWS Compute Optimizer generates recommendations for Amazon EBS volumes that meet a specific set of requirements. For more information, see the Supported resources and requirements in the AWS Compute Optimizer User Guide.

", "GetEC2InstanceRecommendations": "

Returns Amazon EC2 instance recommendations.

AWS Compute Optimizer generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) instances that meet a specific set of requirements. For more information, see the Supported resources and requirements in the AWS Compute Optimizer User Guide.

", @@ -12,7 +14,7 @@ "GetEnrollmentStatus": "

Returns the enrollment (opt in) status of an account to the AWS Compute Optimizer service.

If the account is the management account of an organization, this action also confirms the enrollment status of member accounts within the organization.

", "GetLambdaFunctionRecommendations": "

Returns AWS Lambda function recommendations.

AWS Compute Optimizer generates recommendations for functions that meet a specific set of requirements. For more information, see the Supported resources and requirements in the AWS Compute Optimizer User Guide.

", "GetRecommendationSummaries": "

Returns the optimization findings for an account.

It returns the number of:

", - "UpdateEnrollmentStatus": "

Updates the enrollment (opt in and opt out) status of an account to the AWS Compute Optimizer service.

If the account is a management account of an organization, this action can also be used to enroll member accounts within the organization.

You must have the appropriate permissions to opt in to Compute Optimizer, to view its recommendations, and to opt out. For more information, see Controlling access with AWS Identity and Access Management in the Compute Optimizer User Guide.

When you opt in, Compute Optimizer automatically creates a Service-Linked Role in your account to access its data. For more information, see Using Service-Linked Roles for AWS Compute Optimizer in the Compute Optimizer User Guide.

" + "UpdateEnrollmentStatus": "

Updates the enrollment (opt in and opt out) status of an account to the AWS Compute Optimizer service.

If the account is a management account of an organization, this action can also be used to enroll member accounts within the organization.

You must have the appropriate permissions to opt in to Compute Optimizer, to view its recommendations, and to opt out. For more information, see Controlling access with AWS Identity and Access Management in the AWS Compute Optimizer User Guide.

When you opt in, Compute Optimizer automatically creates a Service-Linked Role in your account to access its data. For more information, see Using Service-Linked Roles for AWS Compute Optimizer in the AWS Compute Optimizer User Guide.

" }, "shapes": { "AccessDeniedException": { @@ -35,7 +37,9 @@ "base": null, "refs": { "ExportAutoScalingGroupRecommendationsRequest$accountIds": "

The IDs of the AWS accounts for which to export Auto Scaling group recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.

This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.

You can specify multiple account IDs per request.

", + "ExportEBSVolumeRecommendationsRequest$accountIds": "

The IDs of the AWS accounts for which to export Amazon EBS volume recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.

This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.

You can specify multiple account IDs per request.

", "ExportEC2InstanceRecommendationsRequest$accountIds": "

The IDs of the AWS accounts for which to export instance recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.

This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.

You can specify multiple account IDs per request.

", + "ExportLambdaFunctionRecommendationsRequest$accountIds": "

The IDs of the AWS accounts for which to export Lambda function recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.

This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.

You can specify multiple account IDs per request.

", "GetAutoScalingGroupRecommendationsRequest$accountIds": "

The ID of the AWS account for which to return Auto Scaling group recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.

Only one account ID can be specified per request.

", "GetEBSVolumeRecommendationsRequest$accountIds": "

The ID of the AWS account for which to return volume recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return volume recommendations.

Only one account ID can be specified per request.

", "GetEC2InstanceRecommendationsRequest$accountIds": "

The ID of the AWS account for which to return instance recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.

Only one account ID can be specified per request.

", @@ -161,6 +165,7 @@ "EBSFilters": { "base": null, "refs": { + "ExportEBSVolumeRecommendationsRequest$filters": "

An array of objects that describe a filter to export a more specific set of Amazon EBS volume recommendations.

", "GetEBSVolumeRecommendationsRequest$filters": "

An array of objects that describe a filter that returns a more specific list of volume recommendations.

" } }, @@ -218,6 +223,16 @@ "RecommendationExportJob$destination": "

An object that describes the destination of the export file.

" } }, + "ExportEBSVolumeRecommendationsRequest": { + "base": null, + "refs": { + } + }, + "ExportEBSVolumeRecommendationsResponse": { + "base": null, + "refs": { + } + }, "ExportEC2InstanceRecommendationsRequest": { "base": null, "refs": { @@ -228,6 +243,16 @@ "refs": { } }, + "ExportLambdaFunctionRecommendationsRequest": { + "base": null, + "refs": { + } + }, + "ExportLambdaFunctionRecommendationsResponse": { + "base": null, + "refs": { + } + }, "ExportableAutoScalingGroupField": { "base": null, "refs": { @@ -252,6 +277,30 @@ "ExportEC2InstanceRecommendationsRequest$fieldsToExport": "

The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.

" } }, + "ExportableLambdaFunctionField": { + "base": null, + "refs": { + "ExportableLambdaFunctionFields$member": null + } + }, + "ExportableLambdaFunctionFields": { + "base": null, + "refs": { + "ExportLambdaFunctionRecommendationsRequest$fieldsToExport": "

The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.

" + } + }, + "ExportableVolumeField": { + "base": null, + "refs": { + "ExportableVolumeFields$member": null + } + }, + "ExportableVolumeFields": { + "base": null, + "refs": { + "ExportEBSVolumeRecommendationsRequest$fieldsToExport": "

The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.

" + } + }, "FailureReason": { "base": null, "refs": { @@ -262,7 +311,9 @@ "base": null, "refs": { "ExportAutoScalingGroupRecommendationsRequest$fileFormat": "

The format of the export file.

The only export file format currently supported is Csv.

", - "ExportEC2InstanceRecommendationsRequest$fileFormat": "

The format of the export file.

The only export file format currently supported is Csv.

" + "ExportEBSVolumeRecommendationsRequest$fileFormat": "

The format of the export file.

The only export file format currently supported is Csv.

", + "ExportEC2InstanceRecommendationsRequest$fileFormat": "

The format of the export file.

The only export file format currently supported is Csv.

", + "ExportLambdaFunctionRecommendationsRequest$fileFormat": "

The format of the export file.

The only export file format currently supported is Csv.

" } }, "Filter": { @@ -427,8 +478,10 @@ "IncludeMemberAccounts": { "base": null, "refs": { - "ExportAutoScalingGroupRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", - "ExportEC2InstanceRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", + "ExportAutoScalingGroupRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and AWS Organizations trusted access in the AWS Compute Optimizer User Guide.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", + "ExportEBSVolumeRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and AWS Organizations trusted access in the AWS Compute Optimizer User Guide.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", + "ExportEC2InstanceRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and AWS Organizations trusted access in the AWS Compute Optimizer User Guide.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", + "ExportLambdaFunctionRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and AWS Organizations trusted access in the AWS Compute Optimizer User Guide.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", "UpdateEnrollmentStatusRequest$includeMemberAccounts": "

Indicates whether to enroll member accounts of the organization if the account is the management account of an organization.

" } }, @@ -509,7 +562,9 @@ "base": null, "refs": { "ExportAutoScalingGroupRecommendationsResponse$jobId": "

The identification number of the export job.

Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.

", + "ExportEBSVolumeRecommendationsResponse$jobId": "

The identification number of the export job.

Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.

", "ExportEC2InstanceRecommendationsResponse$jobId": "

The identification number of the export job.

Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.

", + "ExportLambdaFunctionRecommendationsResponse$jobId": "

The identification number of the export job.

Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.

", "JobIds$member": null, "RecommendationExportJob$jobId": "

The identification number of the export job.

" } @@ -595,6 +650,7 @@ "LambdaFunctionRecommendationFilters": { "base": null, "refs": { + "ExportLambdaFunctionRecommendationsRequest$filters": "

An array of objects that describe a filter to export a more specific set of Lambda function recommendations.

", "GetLambdaFunctionRecommendationsRequest$filters": "

An array of objects that describe a filter that returns a more specific list of function recommendations.

" } }, @@ -919,14 +975,18 @@ "refs": { "ExportAutoScalingGroupRecommendationsResponse$s3Destination": "

An object that describes the destination Amazon S3 bucket of a recommendations export file.

", "ExportDestination$s3": "

An object that describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.

", - "ExportEC2InstanceRecommendationsResponse$s3Destination": "

An object that describes the destination Amazon S3 bucket of a recommendations export file.

" + "ExportEBSVolumeRecommendationsResponse$s3Destination": null, + "ExportEC2InstanceRecommendationsResponse$s3Destination": "

An object that describes the destination Amazon S3 bucket of a recommendations export file.

", + "ExportLambdaFunctionRecommendationsResponse$s3Destination": null } }, "S3DestinationConfig": { "base": "

Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for a recommendations export job.

You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.

", "refs": { "ExportAutoScalingGroupRecommendationsRequest$s3DestinationConfig": "

An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.

You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.

", - "ExportEC2InstanceRecommendationsRequest$s3DestinationConfig": "

An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.

You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.

" + "ExportEBSVolumeRecommendationsRequest$s3DestinationConfig": null, + "ExportEC2InstanceRecommendationsRequest$s3DestinationConfig": "

An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.

You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.

", + "ExportLambdaFunctionRecommendationsRequest$s3DestinationConfig": null } }, "ServiceUnavailableException": { @@ -938,7 +998,7 @@ "base": null, "refs": { "GetEnrollmentStatusResponse$status": "

The enrollment status of the account.

", - "UpdateEnrollmentStatusRequest$status": "

The new enrollment status of the account.

The following status options are available:

The Pending and Failed options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.

", + "UpdateEnrollmentStatusRequest$status": "

The new enrollment status of the account.

The following status options are available:

The Pending and Failed options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.

", "UpdateEnrollmentStatusResponse$status": "

The enrollment status of the account.

" } }, diff --git a/models/apis/iotsitewise/2019-12-02/docs-2.json b/models/apis/iotsitewise/2019-12-02/docs-2.json index 94e81d6ddff..21fd921edb9 100644 --- a/models/apis/iotsitewise/2019-12-02/docs-2.json +++ b/models/apis/iotsitewise/2019-12-02/docs-2.json @@ -5,7 +5,7 @@ "AssociateAssets": "

Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. For more information, see Associating assets in the AWS IoT SiteWise User Guide.

", "BatchAssociateProjectAssets": "

Associates a group (batch) of assets with an AWS IoT SiteWise Monitor project.

", "BatchDisassociateProjectAssets": "

Disassociates a group (batch) of assets from an AWS IoT SiteWise Monitor project.

", - "BatchPutAssetPropertyValue": "

Sends a list of asset property values to AWS IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API in the AWS IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

With respect to Unix epoch time, AWS IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 5 minutes in the future. AWS IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +5 minutes] and returns a TimestampOutOfRangeException error.

For each asset property, AWS IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. For example, if you store a TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV.

AWS IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. For more information, see BatchPutAssetPropertyValue authorization in the AWS IoT SiteWise User Guide.

", + "BatchPutAssetPropertyValue": "

Sends a list of asset property values to AWS IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API in the AWS IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

With respect to Unix epoch time, AWS IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 10 minutes in the future. AWS IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error.

For each asset property, AWS IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. For example, if you store a TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV.

AWS IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. For more information, see BatchPutAssetPropertyValue authorization in the AWS IoT SiteWise User Guide.

", "CreateAccessPolicy": "

Creates an access policy that grants the specified identity (AWS SSO user, AWS SSO group, or IAM user) access to the specified AWS IoT SiteWise Monitor portal or project resource.

", "CreateAsset": "

Creates an asset from an existing asset model. For more information, see Creating assets in the AWS IoT SiteWise User Guide.

", "CreateAssetModel": "

Creates an asset model from specified property and hierarchy definitions. You create assets from asset models. With asset models, you can easily create assets of the same type that have standardized definitions. Each asset created from a model inherits the asset model's property and hierarchy definitions. For more information, see Defining asset models in the AWS IoT SiteWise User Guide.

", @@ -35,7 +35,7 @@ "GetAssetPropertyAggregates": "

Gets aggregated values for an asset property. For more information, see Querying aggregates in the AWS IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

", "GetAssetPropertyValue": "

Gets an asset property's current value. For more information, see Querying current values in the AWS IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

", "GetAssetPropertyValueHistory": "

Gets the history of an asset property's values. For more information, see Querying historical values in the AWS IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

", - "GetInterpolatedAssetPropertyValues": "

Get interpolated values for an asset property for a specified time interval, during a period of time. For example, you can use the this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days.

To identify an asset property, you must specify one of the following:

", + "GetInterpolatedAssetPropertyValues": "

Get interpolated values for an asset property for a specified time interval, during a period of time. For example, you can use the this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days.

This API isn't available in China (Beijing).

To identify an asset property, you must specify one of the following:

", "ListAccessPolicies": "

Retrieves a paginated list of access policies for an identity (an AWS SSO user, an AWS SSO group, or an IAM user) or an AWS IoT SiteWise Monitor resource (a portal or project).

", "ListAssetModels": "

Retrieves a paginated list of summaries of all asset models.

", "ListAssetRelationships": "

Retrieves a paginated list of asset relationships for an asset. You can use this operation to identify an asset's root asset and all associated assets between that asset and its root.

", diff --git a/models/apis/license-manager/2018-08-01/api-2.json b/models/apis/license-manager/2018-08-01/api-2.json index d72e917221d..60607bb9631 100644 --- a/models/apis/license-manager/2018-08-01/api-2.json +++ b/models/apis/license-manager/2018-08-01/api-2.json @@ -160,6 +160,25 @@ {"shape":"RateLimitExceededException"} ] }, + "CreateLicenseManagerReportGenerator":{ + "name":"CreateLicenseManagerReportGenerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLicenseManagerReportGeneratorRequest"}, + "output":{"shape":"CreateLicenseManagerReportGeneratorResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"RateLimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "CreateLicenseVersion":{ "name":"CreateLicenseVersion", "http":{ @@ -251,6 +270,25 @@ {"shape":"RateLimitExceededException"} ] }, + "DeleteLicenseManagerReportGenerator":{ + "name":"DeleteLicenseManagerReportGenerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLicenseManagerReportGeneratorRequest"}, + "output":{"shape":"DeleteLicenseManagerReportGeneratorResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"RateLimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "DeleteToken":{ "name":"DeleteToken", "http":{ @@ -354,6 +392,25 @@ {"shape":"RateLimitExceededException"} ] }, + "GetLicenseManagerReportGenerator":{ + "name":"GetLicenseManagerReportGenerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetLicenseManagerReportGeneratorRequest"}, + "output":{"shape":"GetLicenseManagerReportGeneratorResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"RateLimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "GetLicenseUsage":{ "name":"GetLicenseUsage", "http":{ @@ -454,6 +511,25 @@ {"shape":"RateLimitExceededException"} ] }, + "ListLicenseManagerReportGenerators":{ + "name":"ListLicenseManagerReportGenerators", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLicenseManagerReportGeneratorsRequest"}, + "output":{"shape":"ListLicenseManagerReportGeneratorsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"RateLimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ListLicenseSpecificationsForResource":{ "name":"ListLicenseSpecificationsForResource", "http":{ @@ -673,6 +749,25 @@ {"shape":"ResourceLimitExceededException"} ] }, + "UpdateLicenseManagerReportGenerator":{ + "name":"UpdateLicenseManagerReportGenerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateLicenseManagerReportGeneratorRequest"}, + "output":{"shape":"UpdateLicenseManagerReportGeneratorResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"RateLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceLimitExceededException"} + ] + }, "UpdateLicenseSpecificationsForResource":{ "name":"UpdateLicenseSpecificationsForResource", "http":{ @@ -752,7 +847,7 @@ "Arn":{ "type":"string", "max":2048, - "pattern":"^arn:aws:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$" + "pattern":"^arn:aws(-(cn|us-gov|iso-b|iso-c|iso-d))?:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$" }, "ArnList":{ "type":"list", @@ -864,6 +959,11 @@ "type":"string", "enum":["PROVISIONAL"] }, + "ClientRequestToken":{ + "type":"string", + "max":36, + "min":1 + }, "ClientToken":{ "type":"string", "max":64, @@ -969,6 +1069,31 @@ "LicenseConfigurationArn":{"shape":"String"} } }, + "CreateLicenseManagerReportGeneratorRequest":{ + "type":"structure", + "required":[ + "ReportGeneratorName", + "Type", + "ReportContext", + "ReportFrequency", + "ClientToken" + ], + "members":{ + "ReportGeneratorName":{"shape":"ReportGeneratorName"}, + "Type":{"shape":"ReportTypeList"}, + "ReportContext":{"shape":"ReportContext"}, + "ReportFrequency":{"shape":"ReportFrequency"}, + "ClientToken":{"shape":"ClientRequestToken"}, + "Description":{"shape":"String"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateLicenseManagerReportGeneratorResponse":{ + "type":"structure", + "members":{ + "LicenseManagerReportGeneratorArn":{"shape":"String"} + } + }, "CreateLicenseRequest":{ "type":"structure", "required":[ @@ -1104,6 +1229,18 @@ "members":{ } }, + "DeleteLicenseManagerReportGeneratorRequest":{ + "type":"structure", + "required":["LicenseManagerReportGeneratorArn"], + "members":{ + "LicenseManagerReportGeneratorArn":{"shape":"String"} + } + }, + "DeleteLicenseManagerReportGeneratorResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteLicenseRequest":{ "type":"structure", "required":[ @@ -1370,6 +1507,19 @@ "DisassociateWhenNotFound":{"shape":"BoxBoolean"} } }, + "GetLicenseManagerReportGeneratorRequest":{ + "type":"structure", + "required":["LicenseManagerReportGeneratorArn"], + "members":{ + "LicenseManagerReportGeneratorArn":{"shape":"String"} + } + }, + "GetLicenseManagerReportGeneratorResponse":{ + "type":"structure", + "members":{ + "ReportGenerator":{"shape":"ReportGenerator"} + } + }, "GetLicenseRequest":{ "type":"structure", "required":["LicenseArn"], @@ -1764,6 +1914,21 @@ "NextToken":{"shape":"String"} } }, + "ListLicenseManagerReportGeneratorsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"FilterList"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"MaxSize100"} + } + }, + "ListLicenseManagerReportGeneratorsResponse":{ + "type":"structure", + "members":{ + "ReportGenerators":{"shape":"ReportGeneratorList"}, + "NextToken":{"shape":"String"} + } + }, "ListLicenseSpecificationsForResourceRequest":{ "type":"structure", "required":["ResourceArn"], @@ -2055,6 +2220,66 @@ "Monthly" ] }, + "ReportContext":{ + "type":"structure", + "required":["licenseConfigurationArns"], + "members":{ + "licenseConfigurationArns":{"shape":"ArnList"} + } + }, + "ReportFrequency":{ + "type":"structure", + "members":{ + "value":{"shape":"Integer"}, + "period":{"shape":"ReportFrequencyType"} + } + }, + "ReportFrequencyType":{ + "type":"string", + "enum":[ + "DAY", + "WEEK", + "MONTH" + ] + }, + "ReportGenerator":{ + "type":"structure", + "members":{ + "ReportGeneratorName":{"shape":"String"}, + "ReportType":{"shape":"ReportTypeList"}, + "ReportContext":{"shape":"ReportContext"}, + "ReportFrequency":{"shape":"ReportFrequency"}, + "LicenseManagerReportGeneratorArn":{"shape":"String"}, + "LastRunStatus":{"shape":"String"}, + "LastRunFailureReason":{"shape":"String"}, + "LastReportGenerationTime":{"shape":"String"}, + "ReportCreatorAccount":{"shape":"String"}, + "Description":{"shape":"String"}, + "S3Location":{"shape":"S3Location"}, + "CreateTime":{"shape":"String"}, + "Tags":{"shape":"TagList"} + } + }, + "ReportGeneratorList":{ + "type":"list", + "member":{"shape":"ReportGenerator"} + }, + "ReportGeneratorName":{ + "type":"string", + "max":100, + "min":1 + }, + "ReportType":{ + "type":"string", + "enum":[ + "LicenseConfigurationSummaryReport", + "LicenseConfigurationUsageReport" + ] + }, + "ReportTypeList":{ + "type":"list", + "member":{"shape":"ReportType"} + }, "ResourceInventory":{ "type":"structure", "members":{ @@ -2094,6 +2319,13 @@ "SYSTEMS_MANAGER_MANAGED_INSTANCE" ] }, + "S3Location":{ + "type":"structure", + "members":{ + "bucket":{"shape":"String"}, + "keyPrefix":{"shape":"String"} + } + }, "ServerInternalException":{ "type":"structure", "members":{ @@ -2210,6 +2442,31 @@ "members":{ } }, + "UpdateLicenseManagerReportGeneratorRequest":{ + "type":"structure", + "required":[ + "LicenseManagerReportGeneratorArn", + "ReportGeneratorName", + "Type", + "ReportContext", + "ReportFrequency", + "ClientToken" + ], + "members":{ + "LicenseManagerReportGeneratorArn":{"shape":"String"}, + "ReportGeneratorName":{"shape":"ReportGeneratorName"}, + "Type":{"shape":"ReportTypeList"}, + "ReportContext":{"shape":"ReportContext"}, + "ReportFrequency":{"shape":"ReportFrequency"}, + "ClientToken":{"shape":"ClientRequestToken"}, + "Description":{"shape":"String"} + } + }, + "UpdateLicenseManagerReportGeneratorResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateLicenseSpecificationsForResourceRequest":{ "type":"structure", "required":["ResourceArn"], diff --git a/models/apis/license-manager/2018-08-01/docs-2.json b/models/apis/license-manager/2018-08-01/docs-2.json index 0680d8e67af..771b4909b81 100644 --- a/models/apis/license-manager/2018-08-01/docs-2.json +++ b/models/apis/license-manager/2018-08-01/docs-2.json @@ -10,23 +10,27 @@ "CreateGrantVersion": "

Creates a new version of the specified grant.

", "CreateLicense": "

Creates a license.

", "CreateLicenseConfiguration": "

Creates a license configuration.

A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), license affinity to host (how long a license must be associated with a host), and the number of licenses purchased and used.

", + "CreateLicenseManagerReportGenerator": "

Creates a new report generator.

", "CreateLicenseVersion": "

Creates a new version of the specified license.

", "CreateToken": "

Creates a long-lived token.

A refresh token is a JWT token used to get an access token. With an access token, you can call AssumeRoleWithWebIdentity to get role credentials that you can use to call License Manager to manage the specified license.

", "DeleteGrant": "

Deletes the specified grant.

", "DeleteLicense": "

Deletes the specified license.

", "DeleteLicenseConfiguration": "

Deletes the specified license configuration.

You cannot delete a license configuration that is in use.

", + "DeleteLicenseManagerReportGenerator": "

Delete an existing report generator.

This action deletes the report generator, which stops it from generating future reports and cannot be reversed. However, the previous reports from this generator will remain in your S3 bucket.

", "DeleteToken": "

Deletes the specified token. Must be called in the license home Region.

", "ExtendLicenseConsumption": "

Extends the expiration date for license consumption.

", "GetAccessToken": "

Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access tokens are valid for one hour.

", "GetGrant": "

Gets detailed information about the specified grant.

", "GetLicense": "

Gets detailed information about the specified license.

", "GetLicenseConfiguration": "

Gets detailed information about the specified license configuration.

", + "GetLicenseManagerReportGenerator": "

Gets information on the specified report generator.

", "GetLicenseUsage": "

Gets detailed information about the usage of the specified license.

", "GetServiceSettings": "

Gets the License Manager settings for the current Region.

", "ListAssociationsForLicenseConfiguration": "

Lists the resource associations for the specified license configuration.

Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules).

", "ListDistributedGrants": "

Lists the grants distributed for the specified license.

", "ListFailuresForLicenseConfigurationOperations": "

Lists the license configuration operations that failed.

", "ListLicenseConfigurations": "

Lists the license configurations for your account.

", + "ListLicenseManagerReportGenerators": "

Lists the report generators for your account.

", "ListLicenseSpecificationsForResource": "

Describes the license configurations for the specified resource.

", "ListLicenseVersions": "

Lists all versions of the specified license.

", "ListLicenses": "

Lists the licenses for your account.

", @@ -40,6 +44,7 @@ "TagResource": "

Adds the specified tags to the specified license configuration.

", "UntagResource": "

Removes the specified tags from the specified license configuration.

", "UpdateLicenseConfiguration": "

Modifies the attributes of an existing license configuration.

", + "UpdateLicenseManagerReportGenerator": "

Updates a report generator.

After you make changes to a report generator, it will start generating new reports within 60 minutes of being updated.

", "UpdateLicenseSpecificationsForResource": "

Adds or removes the specified license configurations for the specified AWS resource.

You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and AWS CloudFormation templates, as they send license configurations to the operation that creates the resource.

", "UpdateServiceSettings": "

Updates License Manager settings for the current Region.

" }, @@ -116,6 +121,7 @@ "ListLicensesRequest$LicenseArns": "

Amazon Resource Names (ARNs) of the licenses.

", "ListReceivedGrantsRequest$GrantArns": "

Amazon Resource Names (ARNs) of the grants.

", "ListReceivedLicensesRequest$LicenseArns": "

Amazon Resource Names (ARNs) of the licenses.

", + "ReportContext$licenseConfigurationArns": "

Amazon Resource Number (ARN) of the license configuration that this generator reports on.

", "TokenData$RoleArns": "

Amazon Resource Names (ARN) of the roles included in the token.

" } }, @@ -226,6 +232,13 @@ "CheckoutLicenseResponse$CheckoutType": "

Checkout type.

" } }, + "ClientRequestToken": { + "base": null, + "refs": { + "CreateLicenseManagerReportGeneratorRequest$ClientToken": "

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

", + "UpdateLicenseManagerReportGeneratorRequest$ClientToken": "

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

" + } + }, "ClientToken": { "base": null, "refs": { @@ -290,6 +303,16 @@ "refs": { } }, + "CreateLicenseManagerReportGeneratorRequest": { + "base": null, + "refs": { + } + }, + "CreateLicenseManagerReportGeneratorResponse": { + "base": null, + "refs": { + } + }, "CreateLicenseRequest": { "base": null, "refs": { @@ -358,6 +381,16 @@ "refs": { } }, + "DeleteLicenseManagerReportGeneratorRequest": { + "base": null, + "refs": { + } + }, + "DeleteLicenseManagerReportGeneratorResponse": { + "base": null, + "refs": { + } + }, "DeleteLicenseRequest": { "base": null, "refs": { @@ -474,11 +507,12 @@ "FilterList": { "base": null, "refs": { - "ListDistributedGrantsRequest$Filters": "

Filters to scope the results. The following filters are supported:

", - "ListLicensesRequest$Filters": "

Filters to scope the results. The following filters are supported:

", - "ListReceivedGrantsRequest$Filters": "

Filters to scope the results. The following filters are supported:

", - "ListReceivedLicensesRequest$Filters": "

Filters to scope the results. The following filters are supported:

", - "ListTokensRequest$Filters": "

Filters to scope the results. The following filter is supported:

" + "ListDistributedGrantsRequest$Filters": "

Filters to scope the results. The following filters are supported:

", + "ListLicenseManagerReportGeneratorsRequest$Filters": "

Filters to scope the results. The following filters are supported:

", + "ListLicensesRequest$Filters": "

Filters to scope the results. The following filters are supported:

", + "ListReceivedGrantsRequest$Filters": "

Filters to scope the results. The following filters are supported:

", + "ListReceivedLicensesRequest$Filters": "

Filters to scope the results. The following filters are supported:

", + "ListTokensRequest$Filters": "

Filters to scope the results. The following filter is supported:

" } }, "FilterName": { @@ -536,6 +570,16 @@ "refs": { } }, + "GetLicenseManagerReportGeneratorRequest": { + "base": null, + "refs": { + } + }, + "GetLicenseManagerReportGeneratorResponse": { + "base": null, + "refs": { + } + }, "GetLicenseRequest": { "base": null, "refs": { @@ -629,7 +673,8 @@ "Integer": { "base": null, "refs": { - "CreateTokenRequest$ExpirationInDays": "

Token expiration, in days, counted from token creation. The default is 365 days.

" + "CreateTokenRequest$ExpirationInDays": "

Token expiration, in days, counted from token creation. The default is 365 days.

", + "ReportFrequency$value": "

Number of times within the frequency period that a report will be generated. Currently only 1 is supported.

" } }, "InvalidParameterValueException": { @@ -831,6 +876,16 @@ "refs": { } }, + "ListLicenseManagerReportGeneratorsRequest": { + "base": null, + "refs": { + } + }, + "ListLicenseManagerReportGeneratorsResponse": { + "base": null, + "refs": { + } + }, "ListLicenseSpecificationsForResourceRequest": { "base": null, "refs": { @@ -950,6 +1005,7 @@ "base": null, "refs": { "ListDistributedGrantsRequest$MaxResults": "

Maximum number of results to return in a single call.

", + "ListLicenseManagerReportGeneratorsRequest$MaxResults": "

Maximum number of results to return in a single call.

", "ListLicenseVersionsRequest$MaxResults": "

Maximum number of results to return in a single call.

", "ListLicensesRequest$MaxResults": "

Maximum number of results to return in a single call.

", "ListReceivedGrantsRequest$MaxResults": "

Maximum number of results to return in a single call.

", @@ -1038,7 +1094,7 @@ "ProductInformationFilterList": { "base": null, "refs": { - "ProductInformation$ProductInformationFilterList": "

Product information filters.

The following filters and logical operators are supported when the resource type is SSM_MANAGED:

The following filters and logical operators are supported when the resource type is RDS:

" + "ProductInformation$ProductInformationFilterList": "

A Product information filter consists of a ProductInformationFilterComparator which is a logical operator, a ProductInformationFilterName which specifies the type of filter being declared, and a ProductInformationFilterValue that specifies the value to filter on.

Accepted values for ProductInformationFilterName are listed here along with descriptions and valid options for ProductInformationFilterComparator.

The following filters and are supported when the resource type is SSM_MANAGED:

The following filters and logical operators are supported when the resource type is RDS:

" } }, "ProductInformationList": { @@ -1094,6 +1150,62 @@ "ConsumptionConfiguration$RenewType": "

Renewal frequency.

" } }, + "ReportContext": { + "base": "

Details of the license configuration that this generator reports on.

", + "refs": { + "CreateLicenseManagerReportGeneratorRequest$ReportContext": "

Defines the type of license configuration the report generator tracks.

", + "ReportGenerator$ReportContext": "

License configuration type this generator reports on.

", + "UpdateLicenseManagerReportGeneratorRequest$ReportContext": "

?

" + } + }, + "ReportFrequency": { + "base": "

Details on how frequently reports are generated.

", + "refs": { + "CreateLicenseManagerReportGeneratorRequest$ReportFrequency": "

Frequency by which reports are generated. Reports can be generated daily, monthly, or weekly.

", + "ReportGenerator$ReportFrequency": "

Details on how frequently reports are generated.

", + "UpdateLicenseManagerReportGeneratorRequest$ReportFrequency": "

Frequency by which reports are generated. The following options are avaiable:

??? What are the APi value options?

" + } + }, + "ReportFrequencyType": { + "base": null, + "refs": { + "ReportFrequency$period": "

Time period between each report. The period can be daily, weekly, or monthly.

" + } + }, + "ReportGenerator": { + "base": "

Describe the details of a report generator.

", + "refs": { + "GetLicenseManagerReportGeneratorResponse$ReportGenerator": "

A report generator that creates periodic reports on your license configurations.

", + "ReportGeneratorList$member": null + } + }, + "ReportGeneratorList": { + "base": null, + "refs": { + "ListLicenseManagerReportGeneratorsResponse$ReportGenerators": "

A report generator that creates periodic reports on your license configurations.

" + } + }, + "ReportGeneratorName": { + "base": null, + "refs": { + "CreateLicenseManagerReportGeneratorRequest$ReportGeneratorName": "

Name of the report generator.

", + "UpdateLicenseManagerReportGeneratorRequest$ReportGeneratorName": "

Name of the report generator.

" + } + }, + "ReportType": { + "base": null, + "refs": { + "ReportTypeList$member": null + } + }, + "ReportTypeList": { + "base": null, + "refs": { + "CreateLicenseManagerReportGeneratorRequest$Type": "

Type of reports to generate. The following report types an be generated:

", + "ReportGenerator$ReportType": "

Type of reports that are generated.

", + "UpdateLicenseManagerReportGeneratorRequest$Type": "

Type of reports to generate. The following report types an be generated:

" + } + }, "ResourceInventory": { "base": "

Details about a resource.

", "refs": { @@ -1127,6 +1239,12 @@ "ResourceInventory$ResourceType": "

Type of resource.

" } }, + "S3Location": { + "base": "

Details of the S3 bucket that report generator reports are published to.

", + "refs": { + "ReportGenerator$S3Location": "

Details of the S3 bucket that report generator reports are published to.

" + } + }, "ServerInternalException": { "base": "

The server experienced an internal error. Try again.

", "refs": { @@ -1165,6 +1283,8 @@ "CreateLicenseConfigurationRequest$Name": "

Name of the license configuration.

", "CreateLicenseConfigurationRequest$Description": "

Description of the license configuration.

", "CreateLicenseConfigurationResponse$LicenseConfigurationArn": "

Amazon Resource Name (ARN) of the license configuration.

", + "CreateLicenseManagerReportGeneratorRequest$Description": "

Description of the report generator.

", + "CreateLicenseManagerReportGeneratorResponse$LicenseManagerReportGeneratorArn": "

The Amazon Resource Number (ARN) of the new report generator.

", "CreateLicenseRequest$LicenseName": "

License name.

", "CreateLicenseRequest$ProductName": "

Product name.

", "CreateLicenseRequest$ProductSKU": "

Product SKU.

", @@ -1182,6 +1302,7 @@ "DeleteGrantRequest$Version": "

Current version of the grant.

", "DeleteGrantResponse$Version": "

Grant version.

", "DeleteLicenseConfigurationRequest$LicenseConfigurationArn": "

ID of the license configuration.

", + "DeleteLicenseManagerReportGeneratorRequest$LicenseManagerReportGeneratorArn": "

Amazon Resource Number (ARN) of the report generator that will be deleted.

", "DeleteLicenseRequest$SourceVersion": "

Current version of the license.

", "DeleteTokenRequest$TokenId": "

Token ID.

", "Entitlement$Name": "

Entitlement name.

", @@ -1202,10 +1323,11 @@ "GetLicenseConfigurationResponse$Description": "

Description of the license configuration.

", "GetLicenseConfigurationResponse$Status": "

License configuration status.

", "GetLicenseConfigurationResponse$OwnerAccountId": "

Account ID of the owner of the license configuration.

", + "GetLicenseManagerReportGeneratorRequest$LicenseManagerReportGeneratorArn": "

mazon Resource Number (ARN) of the report generator to retrieve information on.

", "GetLicenseRequest$Version": "

License version.

", "GetServiceSettingsResponse$S3BucketArn": "

Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on.

", "GetServiceSettingsResponse$SnsTopicArn": "

SNS topic configured to receive notifications from License Manager.

", - "GetServiceSettingsResponse$LicenseManagerResourceShareArn": "

Amazon Resource Name (ARN) of the AWS resource share. The License Manager master account will provide member accounts with access to this share.

", + "GetServiceSettingsResponse$LicenseManagerResourceShareArn": "

Amazon Resource Name (ARN) of the AWS resource share. The License Manager management account provides member accounts with access to this share.

", "Grant$GrantName": "

Grant name.

", "Grant$HomeRegion": "

Home Region of the grant.

", "Grant$StatusReason": "

Grant status reason.

", @@ -1258,6 +1380,8 @@ "ListFailuresForLicenseConfigurationOperationsResponse$NextToken": "

Token for the next set of results.

", "ListLicenseConfigurationsRequest$NextToken": "

Token for the next set of results.

", "ListLicenseConfigurationsResponse$NextToken": "

Token for the next set of results.

", + "ListLicenseManagerReportGeneratorsRequest$NextToken": "

Token for the next set of results.

", + "ListLicenseManagerReportGeneratorsResponse$NextToken": "

Token for the next set of results.

", "ListLicenseSpecificationsForResourceRequest$ResourceArn": "

Amazon Resource Name (ARN) of a resource that has an associated license configuration.

", "ListLicenseSpecificationsForResourceRequest$NextToken": "

Token for the next set of results.

", "ListLicenseSpecificationsForResourceResponse$NextToken": "

Token for the next set of results.

", @@ -1284,11 +1408,21 @@ "ProductInformationFilter$ProductInformationFilterName": "

Filter name.

", "ProductInformationFilter$ProductInformationFilterComparator": "

Logical operator.

", "RejectGrantResponse$Version": "

Grant version.

", + "ReportGenerator$ReportGeneratorName": "

Name of the report generator.

", + "ReportGenerator$LicenseManagerReportGeneratorArn": "

Amazon Resource Number (ARN) of the report generator.

", + "ReportGenerator$LastRunStatus": "

Status of the last report generation attempt.

", + "ReportGenerator$LastRunFailureReason": "

Failure message for the last report generation attempt.

", + "ReportGenerator$LastReportGenerationTime": "

Time the last report was generated at.

", + "ReportGenerator$ReportCreatorAccount": "

The AWS account ID used to create the report generator.

", + "ReportGenerator$Description": "

Description of the report generator.

", + "ReportGenerator$CreateTime": "

Time the report was created.

", "ResourceInventory$ResourceId": "

ID of the resource.

", "ResourceInventory$ResourceArn": "

Amazon Resource Name (ARN) of the resource.

", "ResourceInventory$Platform": "

Platform of the resource.

", "ResourceInventory$PlatformVersion": "

Platform version of the resource in the inventory.

", "ResourceInventory$ResourceOwningAccountId": "

ID of the account that owns the resource.

", + "S3Location$bucket": "

Name of the S3 bucket reports are published to.

", + "S3Location$keyPrefix": "

Prefix of the S3 bucket reports are published to.

", "StringList$member": null, "Tag$Key": "

Tag key.

", "Tag$Value": "

Tag value.

", @@ -1302,6 +1436,8 @@ "UpdateLicenseConfigurationRequest$LicenseConfigurationArn": "

Amazon Resource Name (ARN) of the license configuration.

", "UpdateLicenseConfigurationRequest$Name": "

New name of the license configuration.

", "UpdateLicenseConfigurationRequest$Description": "

New description of the license configuration.

", + "UpdateLicenseManagerReportGeneratorRequest$LicenseManagerReportGeneratorArn": "

Amazon Resource Number (ARN) of the report generator to update.

", + "UpdateLicenseManagerReportGeneratorRequest$Description": "

Description of the report generator.

", "UpdateLicenseSpecificationsForResourceRequest$ResourceArn": "

Amazon Resource Name (ARN) of the AWS resource.

", "UpdateServiceSettingsRequest$S3BucketArn": "

Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored.

", "UpdateServiceSettingsRequest$SnsTopicArn": "

Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts.

" @@ -1335,8 +1471,10 @@ "base": null, "refs": { "CreateLicenseConfigurationRequest$Tags": "

Tags to add to the license configuration.

", + "CreateLicenseManagerReportGeneratorRequest$Tags": "

Tags to add to the report generator.

", "GetLicenseConfigurationResponse$Tags": "

Tags for the license configuration.

", "ListTagsForResourceResponse$Tags": "

Information about the tags.

", + "ReportGenerator$Tags": "

Tags associated with the report generator.

", "TagResourceRequest$Tags": "

One or more tags.

" } }, @@ -1401,6 +1539,16 @@ "refs": { } }, + "UpdateLicenseManagerReportGeneratorRequest": { + "base": null, + "refs": { + } + }, + "UpdateLicenseManagerReportGeneratorResponse": { + "base": null, + "refs": { + } + }, "UpdateLicenseSpecificationsForResourceRequest": { "base": null, "refs": { diff --git a/models/apis/models.lex.v2/2020-08-07/api-2.json b/models/apis/models.lex.v2/2020-08-07/api-2.json index c6824f7c0ba..6f520786a63 100644 --- a/models/apis/models.lex.v2/2020-08-07/api-2.json +++ b/models/apis/models.lex.v2/2020-08-07/api-2.json @@ -103,6 +103,24 @@ {"shape":"InternalServerException"} ] }, + "CreateExport":{ + "name":"CreateExport", + "http":{ + "method":"PUT", + "requestUri":"/exports/", + "responseCode":202 + }, + "input":{"shape":"CreateExportRequest"}, + "output":{"shape":"CreateExportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, "CreateIntent":{ "name":"CreateIntent", "http":{ @@ -157,6 +175,23 @@ {"shape":"InternalServerException"} ] }, + "CreateUploadUrl":{ + "name":"CreateUploadUrl", + "http":{ + "method":"POST", + "requestUri":"/createuploadurl/", + "responseCode":200 + }, + "input":{"shape":"CreateUploadUrlRequest"}, + "output":{"shape":"CreateUploadUrlResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, "DeleteBot":{ "name":"DeleteBot", "http":{ @@ -229,6 +264,40 @@ {"shape":"InternalServerException"} ] }, + "DeleteExport":{ + "name":"DeleteExport", + "http":{ + "method":"DELETE", + "requestUri":"/exports/{exportId}/", + "responseCode":202 + }, + "input":{"shape":"DeleteExportRequest"}, + "output":{"shape":"DeleteExportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"PreconditionFailedException"}, + {"shape":"InternalServerException"} + ] + }, + "DeleteImport":{ + "name":"DeleteImport", + "http":{ + "method":"DELETE", + "requestUri":"/imports/{importId}/", + "responseCode":202 + }, + "input":{"shape":"DeleteImportRequest"}, + "output":{"shape":"DeleteImportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"PreconditionFailedException"}, + {"shape":"InternalServerException"} + ] + }, "DeleteIntent":{ "name":"DeleteIntent", "http":{ @@ -348,6 +417,38 @@ {"shape":"InternalServerException"} ] }, + "DescribeExport":{ + "name":"DescribeExport", + "http":{ + "method":"GET", + "requestUri":"/exports/{exportId}/", + "responseCode":200 + }, + "input":{"shape":"DescribeExportRequest"}, + "output":{"shape":"DescribeExportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "DescribeImport":{ + "name":"DescribeImport", + "http":{ + "method":"GET", + "requestUri":"/imports/{importId}/", + "responseCode":200 + }, + "input":{"shape":"DescribeImportRequest"}, + "output":{"shape":"DescribeImportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "DescribeIntent":{ "name":"DescribeIntent", "http":{ @@ -495,6 +596,36 @@ {"shape":"InternalServerException"} ] }, + "ListExports":{ + "name":"ListExports", + "http":{ + "method":"POST", + "requestUri":"/exports/", + "responseCode":200 + }, + "input":{"shape":"ListExportsRequest"}, + "output":{"shape":"ListExportsResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "ListImports":{ + "name":"ListImports", + "http":{ + "method":"POST", + "requestUri":"/imports/", + "responseCode":200 + }, + "input":{"shape":"ListImportsRequest"}, + "output":{"shape":"ListImportsResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, "ListIntents":{ "name":"ListIntents", "http":{ @@ -559,6 +690,24 @@ {"shape":"ValidationException"} ] }, + "StartImport":{ + "name":"StartImport", + "http":{ + "method":"PUT", + "requestUri":"/imports/", + "responseCode":202 + }, + "input":{"shape":"StartImportRequest"}, + "output":{"shape":"StartImportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, "TagResource":{ "name":"TagResource", "http":{ @@ -645,6 +794,24 @@ {"shape":"InternalServerException"} ] }, + "UpdateExport":{ + "name":"UpdateExport", + "http":{ + "method":"PUT", + "requestUri":"/exports/{exportId}/", + "responseCode":202 + }, + "input":{"shape":"UpdateExportRequest"}, + "output":{"shape":"UpdateExportResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, "UpdateIntent":{ "name":"UpdateIntent", "http":{ @@ -798,6 +965,17 @@ "type":"list", "member":{"shape":"BotAliasSummary"} }, + "BotExportSpecification":{ + "type":"structure", + "required":[ + "botId", + "botVersion" + ], + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"BotVersion"} + } + }, "BotFilter":{ "type":"structure", "required":[ @@ -828,6 +1006,35 @@ "max":1, "min":1 }, + "BotImportSpecification":{ + "type":"structure", + "required":[ + "botName", + "roleArn", + "dataPrivacy" + ], + "members":{ + "botName":{"shape":"Name"}, + "roleArn":{"shape":"RoleArn"}, + "dataPrivacy":{"shape":"DataPrivacy"}, + "idleSessionTTLInSeconds":{"shape":"SessionTTL"}, + "botTags":{"shape":"TagMap"}, + "testBotAliasTags":{"shape":"TagMap"} + } + }, + "BotLocaleExportSpecification":{ + "type":"structure", + "required":[ + "botId", + "botVersion", + "localeId" + ], + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"BotVersion"}, + "localeId":{"shape":"LocaleId"} + } + }, "BotLocaleFilter":{ "type":"structure", "required":[ @@ -874,6 +1081,21 @@ "type":"list", "member":{"shape":"BotLocaleHistoryEvent"} }, + "BotLocaleImportSpecification":{ + "type":"structure", + "required":[ + "botId", + "botVersion", + "localeId" + ], + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"DraftBotVersion"}, + "localeId":{"shape":"LocaleId"}, + "nluIntentConfidenceThreshold":{"shape":"ConfidenceThreshold"}, + "voiceSettings":{"shape":"VoiceSettings"} + } + }, "BotLocaleSortAttribute":{ "type":"string", "enum":["BotLocaleName"] @@ -898,7 +1120,8 @@ "ReadyExpressTesting", "Failed", "Deleting", - "NotBuilt" + "NotBuilt", + "Importing" ] }, "BotLocaleSummary":{ @@ -939,7 +1162,8 @@ "Inactive", "Deleting", "Failed", - "Versioning" + "Versioning", + "Importing" ] }, "BotSummary":{ @@ -1331,6 +1555,28 @@ "creationDateTime":{"shape":"Timestamp"} } }, + "CreateExportRequest":{ + "type":"structure", + "required":[ + "resourceSpecification", + "fileFormat" + ], + "members":{ + "resourceSpecification":{"shape":"ExportResourceSpecification"}, + "fileFormat":{"shape":"ImportExportFileFormat"}, + "filePassword":{"shape":"ImportExportFilePassword"} + } + }, + "CreateExportResponse":{ + "type":"structure", + "members":{ + "exportId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ExportResourceSpecification"}, + "fileFormat":{"shape":"ImportExportFileFormat"}, + "exportStatus":{"shape":"ExportStatus"}, + "creationDateTime":{"shape":"Timestamp"} + } + }, "CreateIntentRequest":{ "type":"structure", "required":[ @@ -1491,6 +1737,18 @@ "creationDateTime":{"shape":"Timestamp"} } }, + "CreateUploadUrlRequest":{ + "type":"structure", + "members":{ + } + }, + "CreateUploadUrlResponse":{ + "type":"structure", + "members":{ + "importId":{"shape":"Id"}, + "uploadUrl":{"shape":"PresignedS3Url"} + } + }, "CustomPayload":{ "type":"structure", "required":["value"], @@ -1631,6 +1889,42 @@ "botStatus":{"shape":"BotStatus"} } }, + "DeleteExportRequest":{ + "type":"structure", + "required":["exportId"], + "members":{ + "exportId":{ + "shape":"Id", + "location":"uri", + "locationName":"exportId" + } + } + }, + "DeleteExportResponse":{ + "type":"structure", + "members":{ + "exportId":{"shape":"Id"}, + "exportStatus":{"shape":"ExportStatus"} + } + }, + "DeleteImportRequest":{ + "type":"structure", + "required":["importId"], + "members":{ + "importId":{ + "shape":"Id", + "location":"uri", + "locationName":"importId" + } + } + }, + "DeleteImportResponse":{ + "type":"structure", + "members":{ + "importId":{"shape":"Id"}, + "importStatus":{"shape":"ImportStatus"} + } + }, "DeleteIntentRequest":{ "type":"structure", "required":[ @@ -1875,6 +2169,55 @@ "creationDateTime":{"shape":"Timestamp"} } }, + "DescribeExportRequest":{ + "type":"structure", + "required":["exportId"], + "members":{ + "exportId":{ + "shape":"Id", + "location":"uri", + "locationName":"exportId" + } + } + }, + "DescribeExportResponse":{ + "type":"structure", + "members":{ + "exportId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ExportResourceSpecification"}, + "fileFormat":{"shape":"ImportExportFileFormat"}, + "exportStatus":{"shape":"ExportStatus"}, + "failureReasons":{"shape":"FailureReasons"}, + "downloadUrl":{"shape":"PresignedS3Url"}, + "creationDateTime":{"shape":"Timestamp"}, + "lastUpdatedDateTime":{"shape":"Timestamp"} + } + }, + "DescribeImportRequest":{ + "type":"structure", + "required":["importId"], + "members":{ + "importId":{ + "shape":"Id", + "location":"uri", + "locationName":"importId" + } + } + }, + "DescribeImportResponse":{ + "type":"structure", + "members":{ + "importId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ImportResourceSpecification"}, + "importedResourceId":{"shape":"ImportedResourceId"}, + "importedResourceName":{"shape":"Name"}, + "mergeStrategy":{"shape":"MergeStrategy"}, + "importStatus":{"shape":"ImportStatus"}, + "failureReasons":{"shape":"FailureReasons"}, + "creationDateTime":{"shape":"Timestamp"}, + "lastUpdatedDateTime":{"shape":"Timestamp"} + } + }, "DescribeIntentRequest":{ "type":"structure", "required":[ @@ -2049,6 +2392,82 @@ "pattern":"^DRAFT$" }, "ExceptionMessage":{"type":"string"}, + "ExportFilter":{ + "type":"structure", + "required":[ + "name", + "values", + "operator" + ], + "members":{ + "name":{"shape":"ExportFilterName"}, + "values":{"shape":"FilterValues"}, + "operator":{"shape":"ExportFilterOperator"} + } + }, + "ExportFilterName":{ + "type":"string", + "enum":["ExportResourceType"] + }, + "ExportFilterOperator":{ + "type":"string", + "enum":[ + "CO", + "EQ" + ] + }, + "ExportFilters":{ + "type":"list", + "member":{"shape":"ExportFilter"}, + "max":1, + "min":1 + }, + "ExportResourceSpecification":{ + "type":"structure", + "members":{ + "botExportSpecification":{"shape":"BotExportSpecification"}, + "botLocaleExportSpecification":{"shape":"BotLocaleExportSpecification"} + } + }, + "ExportSortAttribute":{ + "type":"string", + "enum":["LastUpdatedDateTime"] + }, + "ExportSortBy":{ + "type":"structure", + "required":[ + "attribute", + "order" + ], + "members":{ + "attribute":{"shape":"ExportSortAttribute"}, + "order":{"shape":"SortOrder"} + } + }, + "ExportStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed", + "Deleting" + ] + }, + "ExportSummary":{ + "type":"structure", + "members":{ + "exportId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ExportResourceSpecification"}, + "fileFormat":{"shape":"ImportExportFileFormat"}, + "exportStatus":{"shape":"ExportStatus"}, + "creationDateTime":{"shape":"Timestamp"}, + "lastUpdatedDateTime":{"shape":"Timestamp"} + } + }, + "ExportSummaryList":{ + "type":"list", + "member":{"shape":"ExportSummary"} + }, "FailureReason":{"type":"string"}, "FailureReasons":{ "type":"list", @@ -2089,6 +2508,99 @@ "buttons":{"shape":"ButtonsList"} } }, + "ImportExportFileFormat":{ + "type":"string", + "enum":["LexJson"] + }, + "ImportExportFilePassword":{ + "type":"string", + "max":1024, + "min":1, + "sensitive":true + }, + "ImportFilter":{ + "type":"structure", + "required":[ + "name", + "values", + "operator" + ], + "members":{ + "name":{"shape":"ImportFilterName"}, + "values":{"shape":"FilterValues"}, + "operator":{"shape":"ImportFilterOperator"} + } + }, + "ImportFilterName":{ + "type":"string", + "enum":["ImportResourceType"] + }, + "ImportFilterOperator":{ + "type":"string", + "enum":[ + "CO", + "EQ" + ] + }, + "ImportFilters":{ + "type":"list", + "member":{"shape":"ImportFilter"}, + "max":1, + "min":1 + }, + "ImportResourceSpecification":{ + "type":"structure", + "members":{ + "botImportSpecification":{"shape":"BotImportSpecification"}, + "botLocaleImportSpecification":{"shape":"BotLocaleImportSpecification"} + } + }, + "ImportSortAttribute":{ + "type":"string", + "enum":["LastUpdatedDateTime"] + }, + "ImportSortBy":{ + "type":"structure", + "required":[ + "attribute", + "order" + ], + "members":{ + "attribute":{"shape":"ImportSortAttribute"}, + "order":{"shape":"SortOrder"} + } + }, + "ImportStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed", + "Deleting" + ] + }, + "ImportSummary":{ + "type":"structure", + "members":{ + "importId":{"shape":"Id"}, + "importedResourceId":{"shape":"ImportedResourceId"}, + "importedResourceName":{"shape":"Name"}, + "importStatus":{"shape":"ImportStatus"}, + "mergeStrategy":{"shape":"MergeStrategy"}, + "creationDateTime":{"shape":"Timestamp"}, + "lastUpdatedDateTime":{"shape":"Timestamp"} + } + }, + "ImportSummaryList":{ + "type":"list", + "member":{"shape":"ImportSummary"} + }, + "ImportedResourceId":{ + "type":"string", + "max":10, + "min":5, + "pattern":"^([0-9a-zA-Z_])+$" + }, "InputContext":{ "type":"structure", "required":["name"], @@ -2367,6 +2879,46 @@ "localeId":{"shape":"LocaleId"} } }, + "ListExportsRequest":{ + "type":"structure", + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"BotVersion"}, + "sortBy":{"shape":"ExportSortBy"}, + "filters":{"shape":"ExportFilters"}, + "maxResults":{"shape":"MaxResults"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListExportsResponse":{ + "type":"structure", + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"BotVersion"}, + "exportSummaries":{"shape":"ExportSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListImportsRequest":{ + "type":"structure", + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"DraftBotVersion"}, + "sortBy":{"shape":"ImportSortBy"}, + "filters":{"shape":"ImportFilters"}, + "maxResults":{"shape":"MaxResults"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListImportsResponse":{ + "type":"structure", + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"DraftBotVersion"}, + "importSummaries":{"shape":"ImportSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, "ListIntentsRequest":{ "type":"structure", "required":[ @@ -2520,6 +3072,13 @@ "max":1000, "min":1 }, + "MergeStrategy":{ + "type":"string", + "enum":[ + "Overwrite", + "FailOnConflict" + ] + }, "Message":{ "type":"structure", "members":{ @@ -2615,6 +3174,11 @@ "error":{"httpStatusCode":412}, "exception":true }, + "PresignedS3Url":{ + "type":"string", + "max":1024, + "min":1 + }, "PriorityValue":{ "type":"integer", "max":25, @@ -2967,6 +3531,30 @@ "Descending" ] }, + "StartImportRequest":{ + "type":"structure", + "required":[ + "importId", + "resourceSpecification", + "mergeStrategy" + ], + "members":{ + "importId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ImportResourceSpecification"}, + "mergeStrategy":{"shape":"MergeStrategy"}, + "filePassword":{"shape":"ImportExportFilePassword"} + } + }, + "StartImportResponse":{ + "type":"structure", + "members":{ + "importId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ImportResourceSpecification"}, + "mergeStrategy":{"shape":"MergeStrategy"}, + "importStatus":{"shape":"ImportStatus"}, + "creationDateTime":{"shape":"Timestamp"} + } + }, "StillWaitingResponseFrequency":{ "type":"integer", "max":300, @@ -3225,6 +3813,29 @@ "lastUpdatedDateTime":{"shape":"Timestamp"} } }, + "UpdateExportRequest":{ + "type":"structure", + "required":["exportId"], + "members":{ + "exportId":{ + "shape":"Id", + "location":"uri", + "locationName":"exportId" + }, + "filePassword":{"shape":"ImportExportFilePassword"} + } + }, + "UpdateExportResponse":{ + "type":"structure", + "members":{ + "exportId":{"shape":"Id"}, + "resourceSpecification":{"shape":"ExportResourceSpecification"}, + "fileFormat":{"shape":"ImportExportFileFormat"}, + "exportStatus":{"shape":"ExportStatus"}, + "creationDateTime":{"shape":"Timestamp"}, + "lastUpdatedDateTime":{"shape":"Timestamp"} + } + }, "UpdateIntentRequest":{ "type":"structure", "required":[ diff --git a/models/apis/models.lex.v2/2020-08-07/docs-2.json b/models/apis/models.lex.v2/2020-08-07/docs-2.json index 0bd511893da..83accc5e802 100644 --- a/models/apis/models.lex.v2/2020-08-07/docs-2.json +++ b/models/apis/models.lex.v2/2020-08-07/docs-2.json @@ -7,13 +7,17 @@ "CreateBotAlias": "

Creates an alias for the specified version of a bot. Use an alias to enable you to change the version of a bot without updating applications that use the bot.

For example, you can create an alias called \"PROD\" that your applications use to call the Amazon Lex bot.

", "CreateBotLocale": "

Creates a locale in the bot. The locale contains the intents and slot types that the bot uses in conversations with users in the specified language and locale. You must add a locale to a bot before you can add intents and slot types to the bot.

", "CreateBotVersion": "

Creates a new version of the bot based on the DRAFT version. If the DRAFT version of this resource hasn't changed since you created the last version, Amazon Lex doesn't create a new version, it returns the last created version.

When you create the first version of a bot, Amazon Lex sets the version to 1. Subsequent versions increment by 1.

", + "CreateExport": "

Creates a zip archive containing the contents of a bot or a bot locale. The archive contains a directory structure that contains JSON files that define the bot.

You can create an archive that contains the complete definition of a bot, or you can specify that the archive contain only the definition of a single bot locale.

For more information about exporting bots, and about the structure of the export archive, see Importing and exporting bots

", "CreateIntent": "

Creates an intent.

To define the interaction between the user and your bot, you define one or more intents. For example, for a pizza ordering bot you would create an OrderPizza intent.

When you create an intent, you must provide a name. You can optionally provide the following:

", "CreateSlot": "

Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an OrderPizza intent might need slots for size, crust, and number of pizzas. For each slot, you define one or more utterances that Amazon Lex uses to elicit a response from the user.

", "CreateSlotType": "

Creates a custom slot type

To create a custom slot type, specify a name for the slot type and a set of enumeration values, the values that a slot of this type can assume.

", + "CreateUploadUrl": "

Gets a pre-signed S3 write URL that you use to upload the zip archive when importing a bot or a bot locale.

", "DeleteBot": "

Deletes all versions of a bot, including the Draft version. To delete a specific version, use the DeleteBotVersion operation.

When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.

If a bot has an alias, the DeleteBot operation returns a ResourceInUseException exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck parameter to true.

", "DeleteBotAlias": "

Deletes the specified bot alias.

", "DeleteBotLocale": "

Removes a locale from a bot.

When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.

", "DeleteBotVersion": "

Deletes a specific version of a bot. To delete all version of a bot, use the DeleteBot operation.

", + "DeleteExport": "

Removes a previous export and the associated files stored in an S3 bucket.

", + "DeleteImport": "

Removes a previous import and the associated file stored in an S3 bucket.

", "DeleteIntent": "

Removes the specified intent.

Deleting an intent also deletes the slots associated with the intent.

", "DeleteSlot": "

Deletes the specified slot from an intent.

", "DeleteSlotType": "

Deletes a slot type from a bot locale.

If a slot is using the slot type, Amazon Lex throws a ResourceInUseException exception. To avoid the exception, set the skipResourceInUseCheck parameter to true.

", @@ -21,6 +25,8 @@ "DescribeBotAlias": "

Get information about a specific bot alias.

", "DescribeBotLocale": "

Describes the settings that a bot has for a specific locale.

", "DescribeBotVersion": "

Provides metadata about a version of a bot.

", + "DescribeExport": "

Gets information about a specific export.

", + "DescribeImport": "

Gets information about a specific import.

", "DescribeIntent": "

Returns metadata about an intent.

", "DescribeSlot": "

Gets metadata information about a slot.

", "DescribeSlotType": "

Gets metadata information about a slot type.

", @@ -30,15 +36,19 @@ "ListBots": "

Gets a list of available bots.

", "ListBuiltInIntents": "

Gets a list of built-in intents provided by Amazon Lex that you can use in your bot.

To use a built-in intent as a the base for your own intent, include the built-in intent signature in the parentIntentSignature parameter when you call the CreateIntent operation. For more information, see CreateIntent.

", "ListBuiltInSlotTypes": "

Gets a list of built-in slot types that meet the specified criteria.

", + "ListExports": "

Lists the exports for a bot or bot locale. Exports are kept in the list for 7 days.

", + "ListImports": "

Lists the imports for a bot or bot locale. Imports are kept in the list for 7 days.

", "ListIntents": "

Get a list of intents that meet the specified criteria.

", "ListSlotTypes": "

Gets a list of slot types that match the specified criteria.

", "ListSlots": "

Gets a list of slots that match the specified criteria.

", "ListTagsForResource": "

Gets a list of tags associated with a resource. Only bots, bot aliases, and bot channels can have tags associated with them.

", + "StartImport": "

Starts importing a bot or bot locale from a zip archive that you uploaded to an S3 bucket.

", "TagResource": "

Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.

", "UntagResource": "

Removes tags from a bot, bot alias, or bot channel.

", "UpdateBot": "

Updates the configuration of an existing bot.

", "UpdateBotAlias": "

Updates the configuration of an existing bot alias.

", "UpdateBotLocale": "

Updates the settings that a bot has for a specific locale.

", + "UpdateExport": "

Updates the password used to encrypt an export zip archive.

", "UpdateIntent": "

Updates the settings for an intent.

", "UpdateSlot": "

Updates the settings for a slot.

", "UpdateSlotType": "

Updates the configuration of an existing slot type.

" @@ -158,6 +168,12 @@ "ListBotAliasesResponse$botAliasSummaries": "

Summary information for the bot aliases that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter of the request. If there are more aliases available, the nextToken field contains a token to get the next page of results.

" } }, + "BotExportSpecification": { + "base": "

Provided the identity of a the bot that was exported.

", + "refs": { + "ExportResourceSpecification$botExportSpecification": "

Parameters for exporting a bot.

" + } + }, "BotFilter": { "base": "

Filters the responses returned by the ListBots operation.

", "refs": { @@ -182,6 +198,18 @@ "ListBotsRequest$filters": "

Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

" } }, + "BotImportSpecification": { + "base": "

Provides the bot parameters required for importing a bot.

", + "refs": { + "ImportResourceSpecification$botImportSpecification": "

Parameters for importing a bot.

" + } + }, + "BotLocaleExportSpecification": { + "base": "

Provides the bot locale parameters required for exporting a bot locale.

", + "refs": { + "ExportResourceSpecification$botLocaleExportSpecification": "

Parameters for exporting a bot locale.

" + } + }, "BotLocaleFilter": { "base": "

Filters responses returned by the ListBotLocales operation.

", "refs": { @@ -224,6 +252,12 @@ "DescribeBotLocaleResponse$botLocaleHistoryEvents": "

History of changes, such as when a locale is used in an alias, that have taken place for the locale.

" } }, + "BotLocaleImportSpecification": { + "base": "

Provides the bot locale parameters required for importing a bot locale.

", + "refs": { + "ImportResourceSpecification$botLocaleImportSpecification": "

Parameters for importing a bot locale.

" + } + }, "BotLocaleSortAttribute": { "base": null, "refs": { @@ -302,6 +336,8 @@ "refs": { "BotAliasHistoryEvent$botVersion": "

The version of the bot that was used in the event.

", "BotAliasSummary$botVersion": "

The version of the bot that the bot alias references.

", + "BotExportSpecification$botVersion": "

The version of the bot that was exported. This will be either DRAFT or the version number.

", + "BotLocaleExportSpecification$botVersion": "

The version of the bot to export.

", "BotVersionLocaleDetails$sourceBotVersion": "

The version of a bot used for a bot locale.

", "BotVersionSummary$botVersion": "

The numeric version of the bot, or DRAFT to indicate that this is the version of the bot that can be updated..

", "DescribeBotAliasResponse$botVersion": "

The version of the bot associated with the bot alias.

", @@ -314,6 +350,8 @@ "DescribeSlotTypeResponse$botVersion": "

The version of the bot associated with the slot type.

", "ListBotLocalesRequest$botVersion": "

The version of the bot to list locales for.

", "ListBotLocalesResponse$botVersion": "

The version of the bot.

", + "ListExportsRequest$botVersion": "

The version of the bot to list exports for.

", + "ListExportsResponse$botVersion": "

The version of the bot that was exported.

", "ListIntentsRequest$botVersion": "

The version of the bot that contains the intent.

", "ListIntentsResponse$botVersion": "

The version of the bot that contains the intent.

", "ListSlotTypesRequest$botVersion": "

The version of the bot that contains the slot type.

", @@ -502,6 +540,7 @@ "ConfidenceThreshold": { "base": null, "refs": { + "BotLocaleImportSpecification$nluIntentConfidenceThreshold": "

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

", "CreateBotLocaleRequest$nluIntentConfidenceThreshold": "

Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.

For example, suppose a bot is configured with the confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative intents with the following confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText operation would be:

", "CreateBotLocaleResponse$nluIntentConfidenceThreshold": "

The specified confidence threshold for inserting the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents.

", "DescribeBotLocaleResponse$nluIntentConfidenceThreshold": "

The confidence threshold where Amazon Lex inserts the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents in the list of possible intents for an utterance.

", @@ -576,6 +615,16 @@ "refs": { } }, + "CreateExportRequest": { + "base": null, + "refs": { + } + }, + "CreateExportResponse": { + "base": null, + "refs": { + } + }, "CreateIntentRequest": { "base": null, "refs": { @@ -606,6 +655,16 @@ "refs": { } }, + "CreateUploadUrlRequest": { + "base": null, + "refs": { + } + }, + "CreateUploadUrlResponse": { + "base": null, + "refs": { + } + }, "CustomPayload": { "base": "

A custom response string that Amazon Lex sends to your application. You define the content and structure the string.

", "refs": { @@ -621,6 +680,7 @@ "DataPrivacy": { "base": "

By default, data stored by Amazon Lex is encrypted. The DataPrivacy structure provides settings that determine how Amazon Lex handles special cases of securing the data for your bot.

", "refs": { + "BotImportSpecification$dataPrivacy": null, "CreateBotRequest$dataPrivacy": "

Provides information on additional privacy protections Amazon Lex should use with the bot's data.

", "CreateBotResponse$dataPrivacy": "

The data privacy settings specified for the bot.

", "DescribeBotResponse$dataPrivacy": "

Settings for managing data privacy of the bot and its conversations with users.

", @@ -669,6 +729,26 @@ "refs": { } }, + "DeleteExportRequest": { + "base": null, + "refs": { + } + }, + "DeleteExportResponse": { + "base": null, + "refs": { + } + }, + "DeleteImportRequest": { + "base": null, + "refs": { + } + }, + "DeleteImportResponse": { + "base": null, + "refs": { + } + }, "DeleteIntentRequest": { "base": null, "refs": { @@ -724,6 +804,26 @@ "refs": { } }, + "DescribeExportRequest": { + "base": null, + "refs": { + } + }, + "DescribeExportResponse": { + "base": null, + "refs": { + } + }, + "DescribeImportRequest": { + "base": null, + "refs": { + } + }, + "DescribeImportResponse": { + "base": null, + "refs": { + } + }, "DescribeIntentRequest": { "base": null, "refs": { @@ -814,6 +914,7 @@ "DraftBotVersion": { "base": null, "refs": { + "BotLocaleImportSpecification$botVersion": "

The version of the bot to import the locale to. This can only be the DRAFT version of the bot.

", "BuildBotLocaleRequest$botVersion": "

The version of the bot to build. This can only be the draft version of the bot.

", "BuildBotLocaleResponse$botVersion": "

The version of the bot that was built. This is only the draft version of the bot.

", "CreateBotLocaleRequest$botVersion": "

The version of the bot to create the locale for. This can only be the draft version of the bot.

", @@ -830,6 +931,8 @@ "DeleteSlotRequest$botVersion": "

The version of the bot associated with the slot to delete.

", "DeleteSlotTypeRequest$botVersion": "

The version of the bot associated with the slot type.

", "DescribeIntentResponse$botVersion": "

The version of the bot associated with the intent.

", + "ListImportsRequest$botVersion": "

The version of the bot to list imports for.

", + "ListImportsResponse$botVersion": "

The version of the bot that was imported. It will always be DRAFT.

", "UpdateBotLocaleRequest$botVersion": "

The version of the bot that contains the locale to be updated. The version can only be the DRAFT version.

", "UpdateBotLocaleResponse$botVersion": "

The version of the bot that contains the updated locale.

", "UpdateIntentRequest$botVersion": "

The version of the bot that contains the intent. Must be DRAFT.

", @@ -852,6 +955,74 @@ "ValidationException$message": null } }, + "ExportFilter": { + "base": "

Filtes the response form the operation

", + "refs": { + "ExportFilters$member": null + } + }, + "ExportFilterName": { + "base": null, + "refs": { + "ExportFilter$name": "

The name of the field to use for filtering.

" + } + }, + "ExportFilterOperator": { + "base": null, + "refs": { + "ExportFilter$operator": "

The operator to use for the filter. Specify EQ when the ListExports operation should return only resource types that equal the specified value. Specify CO when the ListExports operation should return resource types that contain the specified value.

" + } + }, + "ExportFilters": { + "base": null, + "refs": { + "ListExportsRequest$filters": "

Provides the specification of a filter used to limit the exports in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

" + } + }, + "ExportResourceSpecification": { + "base": "

Provides information about the bot or bot locale that you want to export. You can specify the botExportSpecification or the botLocaleExportSpecification, but not both.

", + "refs": { + "CreateExportRequest$resourceSpecification": "

Specifies the type of resource to export, either a bot or a bot locale. You can only specify one type of resource to export.

", + "CreateExportResponse$resourceSpecification": "

A description of the type of resource that was exported, either a bot or a bot locale.

", + "DescribeExportResponse$resourceSpecification": "

The bot, bot ID, and optional locale ID of the exported bot or bot locale.

", + "ExportSummary$resourceSpecification": "

Information about the bot or bot locale that was exported.

", + "UpdateExportResponse$resourceSpecification": "

A description of the type of resource that was exported, either a bot or a bot locale.

" + } + }, + "ExportSortAttribute": { + "base": null, + "refs": { + "ExportSortBy$attribute": "

The export field to use for sorting.

" + } + }, + "ExportSortBy": { + "base": "

Provides information about sorting a list of exports.

", + "refs": { + "ListExportsRequest$sortBy": "

Determines the field that the list of exports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order.

" + } + }, + "ExportStatus": { + "base": null, + "refs": { + "CreateExportResponse$exportStatus": "

The status of the export. When the status is Completed, you can use the operation to get the pre-signed S3 URL link to your exported bot or bot locale.

", + "DeleteExportResponse$exportStatus": "

The current status of the deletion. When the deletion is complete, the export will no longer be returned by the operation and calls to the with the export identifier will fail.

", + "DescribeExportResponse$exportStatus": "

The status of the export. When the status is Complete the export archive file is available for download.

", + "ExportSummary$exportStatus": "

The status of the export. When the status is Completed the export is ready to download.

", + "UpdateExportResponse$exportStatus": "

The status of the export. When the status is Completed the export archive is available for download.

" + } + }, + "ExportSummary": { + "base": "

Provides summary information about an export in an export list.

", + "refs": { + "ExportSummaryList$member": null + } + }, + "ExportSummaryList": { + "base": null, + "refs": { + "ListExportsResponse$exportSummaries": "

Summary information for the exports that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter. If there are more exports available, the nextToken field contains a token to get the next page of results.

" + } + }, "FailureReason": { "base": null, "refs": { @@ -863,6 +1034,8 @@ "refs": { "DescribeBotLocaleResponse$failureReasons": "

if botLocaleStatus is Failed, Amazon Lex explains why it failed to build the bot.

", "DescribeBotVersionResponse$failureReasons": "

If the botStatus is Failed, this contains a list of reasons that the version couldn't be built.

", + "DescribeExportResponse$failureReasons": "

If the exportStatus is failed, contains one or more reasons why the export could not be completed.

", + "DescribeImportResponse$failureReasons": "

If the importStatus field is Failed, this provides one or more reasons for the failture.

", "UpdateBotLocaleResponse$failureReasons": "

If the botLocaleStatus is Failed, the failureReasons field lists the errors that occurred while building the bot.

" } }, @@ -877,6 +1050,8 @@ "refs": { "BotFilter$values": "

The value to use for filtering the list of bots.

", "BotLocaleFilter$values": "

The value to use for filtering the list of bots.

", + "ExportFilter$values": "

The values to use to fileter the response.

", + "ImportFilter$values": "

The values to use to filter the response.

", "IntentFilter$values": "

The value to use for the filter.

", "SlotFilter$values": "

The value to use to filter the response.

", "SlotTypeFilter$values": "

The value to use to filter the response.

" @@ -895,6 +1070,9 @@ "Id": { "base": null, "refs": { + "BotExportSpecification$botId": "

The identifier of the bot assigned by Amazon Lex.

", + "BotLocaleExportSpecification$botId": "

The identifier of the bot to create the locale for.

", + "BotLocaleImportSpecification$botId": "

The identifier of the bot to import the locale to.

", "BotSummary$botId": "

The unique identifier assigned to the bot. Use this ID to get detailed information about the bot with the DescribeBot operation.

", "BuildBotLocaleRequest$botId": "

The identifier of the bot to build. The identifier is returned in the response from the operation.

", "BuildBotLocaleResponse$botId": "

The identifier of the specified bot.

", @@ -905,6 +1083,7 @@ "CreateBotResponse$botId": "

A unique identifier for a particular bot. You use this to identify the bot when you call other Amazon Lex API operations.

", "CreateBotVersionRequest$botId": "

The identifier of the bot to create the version for.

", "CreateBotVersionResponse$botId": "

The bot identifier specified in the request.

", + "CreateExportResponse$exportId": "

An identifier for a specific request to create an export.

", "CreateIntentRequest$botId": "

The identifier of the bot associated with this intent.

", "CreateIntentResponse$intentId": "

A unique identifier for the intent.

", "CreateIntentResponse$botId": "

The identifier of the bot associated with the intent.

", @@ -916,6 +1095,7 @@ "CreateSlotTypeRequest$botId": "

The identifier of the bot associated with this slot type.

", "CreateSlotTypeResponse$slotTypeId": "

The unique identifier assigned to the slot type. Use this to identify the slot type in the UpdateSlotType and DeleteSlotType operations.

", "CreateSlotTypeResponse$botId": "

The identifier for the bot associated with the slot type.

", + "CreateUploadUrlResponse$importId": "

An identifier for a unique import job. Use it when you call the operation.

", "DeleteBotAliasRequest$botId": "

The unique identifier of the bot associated with the alias to delete.

", "DeleteBotAliasResponse$botId": "

The unique identifier of the bot that contains the alias to delete.

", "DeleteBotLocaleRequest$botId": "

The unique identifier of the bot that contains the locale.

", @@ -924,6 +1104,10 @@ "DeleteBotResponse$botId": "

The unique identifier of the bot that Amazon Lex is deleting.

", "DeleteBotVersionRequest$botId": "

The identifier of the bot that contains the version.

", "DeleteBotVersionResponse$botId": "

The identifier of the bot that is being deleted.

", + "DeleteExportRequest$exportId": "

The unique identifier of the export to delete.

", + "DeleteExportResponse$exportId": "

The unique identifier of the deleted export.

", + "DeleteImportRequest$importId": "

The unique identifier of the import to delete.

", + "DeleteImportResponse$importId": "

The unique identifier of the deleted import.

", "DeleteIntentRequest$intentId": "

The unique identifier of the intent to delete.

", "DeleteIntentRequest$botId": "

The identifier of the bot associated with the intent.

", "DeleteSlotRequest$slotId": "

The identifier of the slot to delete.

", @@ -939,6 +1123,10 @@ "DescribeBotResponse$botId": "

The unique identifier of the bot.

", "DescribeBotVersionRequest$botId": "

The identifier of the bot containing the version to return metadata for.

", "DescribeBotVersionResponse$botId": "

The identifier of the bot that contains the version.

", + "DescribeExportRequest$exportId": "

The unique identifier of the export to describe.

", + "DescribeExportResponse$exportId": "

The unique identifier of the described export.

", + "DescribeImportRequest$importId": "

The unique identifier of the import to describe.

", + "DescribeImportResponse$importId": "

The unique identifier of the described import.

", "DescribeIntentRequest$intentId": "

The identifier of the intent to describe.

", "DescribeIntentRequest$botId": "

The identifier of the bot associated with the intent.

", "DescribeIntentResponse$intentId": "

The unique identifier assigned to the intent when it was created.

", @@ -953,6 +1141,8 @@ "DescribeSlotTypeRequest$botId": "

The identifier of the bot associated with the slot type.

", "DescribeSlotTypeResponse$slotTypeId": "

The unique identifier for the slot type.

", "DescribeSlotTypeResponse$botId": "

The identifier of the bot associated with the slot type.

", + "ExportSummary$exportId": "

The unique identifier that Amazon Lex assigned to the export.

", + "ImportSummary$importId": "

The unique identifier that Amazon Lex assigned to the import.

", "IntentSummary$intentId": "

The unique identifier assigned to the intent. Use this ID to get detailed information about the intent with the DescribeIntent operation.

", "ListBotAliasesRequest$botId": "

The identifier of the bot to list aliases for.

", "ListBotAliasesResponse$botId": "

The identifier of the bot associated with the aliases.

", @@ -960,6 +1150,10 @@ "ListBotLocalesResponse$botId": "

The identifier of the bot to list locales for.

", "ListBotVersionsRequest$botId": "

The identifier of the bot to list versions for.

", "ListBotVersionsResponse$botId": "

The identifier of the bot to list versions for.

", + "ListExportsRequest$botId": "

The unique identifier that Amazon Lex assigned to the bot.

", + "ListExportsResponse$botId": "

The unique identifier assigned to the bot by Amazon Lex.

", + "ListImportsRequest$botId": "

The unique identifier that Amazon Lex assigned to the bot.

", + "ListImportsResponse$botId": "

The unique identifier assigned by Amazon Lex to the bot.

", "ListIntentsRequest$botId": "

The unique identifier of the bot that contains the intent.

", "ListIntentsResponse$botId": "

The identifier of the bot that contains the intent.

", "ListSlotTypesRequest$botId": "

The unique identifier of the bot that contains the slot types.

", @@ -971,12 +1165,16 @@ "SlotPriority$slotId": "

The unique identifier of the slot.

", "SlotSummary$slotId": "

The unique identifier of the slot.

", "SlotTypeSummary$slotTypeId": "

The unique identifier assigned to the slot type.

", + "StartImportRequest$importId": "

The unique identifier for the import. It is included in the response from the operation.

", + "StartImportResponse$importId": "

A unique identifier for the import.

", "UpdateBotAliasRequest$botId": "

The identifier of the bot with the updated alias.

", "UpdateBotAliasResponse$botId": "

The identifier of the bot with the updated alias.

", "UpdateBotLocaleRequest$botId": "

The unique identifier of the bot that contains the locale.

", "UpdateBotLocaleResponse$botId": "

The identifier of the bot that contains the updated locale.

", "UpdateBotRequest$botId": "

The unique identifier of the bot to update. This identifier is returned by the CreateBot operation.

", "UpdateBotResponse$botId": "

The unique identifier of the bot that was updated.

", + "UpdateExportRequest$exportId": "

The unique identifier Amazon Lex assigned to the export.

", + "UpdateExportResponse$exportId": "

The unique identifier Amazon Lex assigned to the export.

", "UpdateIntentRequest$intentId": "

The unique identifier of the intent to update.

", "UpdateIntentRequest$botId": "

The identifier of the bot that contains the intent.

", "UpdateIntentResponse$intentId": "

The identifier of the intent that was updated.

", @@ -999,6 +1197,96 @@ "Message$imageResponseCard": "

A message that defines a response card that the client application can show to the user.

" } }, + "ImportExportFileFormat": { + "base": null, + "refs": { + "CreateExportRequest$fileFormat": "

The file format of the bot or bot locale definition files.

", + "CreateExportResponse$fileFormat": "

The file format used for the bot or bot locale definition files.

", + "DescribeExportResponse$fileFormat": "

The file format used in the files that describe the bot or bot locale.

", + "ExportSummary$fileFormat": "

The file format used in the export files.

", + "UpdateExportResponse$fileFormat": "

The file format used for the files that define the resource.

" + } + }, + "ImportExportFilePassword": { + "base": null, + "refs": { + "CreateExportRequest$filePassword": "

An password to use to encrypt the exported archive. Using a password is optional, but you should encrypt the archive to protect the data in transit between Amazon Lex and your local computer.

", + "StartImportRequest$filePassword": "

The password used to encrypt the zip archive that contains the bot or bot locale definition. You should always encrypt the zip archive to protect it during transit between your site and Amazon Lex.

", + "UpdateExportRequest$filePassword": "

The new password to use to encrypt the export zip archive.

" + } + }, + "ImportFilter": { + "base": "

Filters the response from the operation.

", + "refs": { + "ImportFilters$member": null + } + }, + "ImportFilterName": { + "base": null, + "refs": { + "ImportFilter$name": "

The name of the field to use for filtering.

" + } + }, + "ImportFilterOperator": { + "base": null, + "refs": { + "ImportFilter$operator": "

The operator to use for the filter. Specify EQ when the ListImports operation should return only resource types that equal the specified value. Specify CO when the ListImports operation should return resource types that contain the specified value.

" + } + }, + "ImportFilters": { + "base": null, + "refs": { + "ListImportsRequest$filters": "

Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

" + } + }, + "ImportResourceSpecification": { + "base": "

Provides information about the bot or bot locale that you want to import. You can sepcifiy the botImportSpecification or the botLocaleImportSpecification, but not both.

", + "refs": { + "DescribeImportResponse$resourceSpecification": "

The specifications of the imported bot or bot locale.

", + "StartImportRequest$resourceSpecification": "

Parameters for creating the bot or bot locale.

", + "StartImportResponse$resourceSpecification": "

The parameters used when importing the bot or bot locale.

" + } + }, + "ImportSortAttribute": { + "base": null, + "refs": { + "ImportSortBy$attribute": "

The export field to use for sorting.

" + } + }, + "ImportSortBy": { + "base": "

Provides information for sorting a list of imports.

", + "refs": { + "ListImportsRequest$sortBy": "

Determines the field that the list of imports is sorted by. You can sort by the LastUpdatedDateTime field in ascending or descending order.

" + } + }, + "ImportStatus": { + "base": null, + "refs": { + "DeleteImportResponse$importStatus": "

The current status of the deletion. When the deletion is complete, the import will no longer be returned by the operation and calls to the with the import identifier will fail.

", + "DescribeImportResponse$importStatus": "

The status of the import process. When the status is Completed the resource is imported and ready for use.

", + "ImportSummary$importStatus": "

The status of the resource. When the status is Completed the resource is ready to build.

", + "StartImportResponse$importStatus": "

The current status of the import. When the status is Complete the bot or bot alias is ready to use.

" + } + }, + "ImportSummary": { + "base": "

Provides summary information about an import in an import list.

", + "refs": { + "ImportSummaryList$member": null + } + }, + "ImportSummaryList": { + "base": null, + "refs": { + "ListImportsResponse$importSummaries": "

Summary information for the imports that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter. If there are more imports available, the nextToken field contains a token to get the next page of results.

" + } + }, + "ImportedResourceId": { + "base": null, + "refs": { + "DescribeImportResponse$importedResourceId": "

The unique identifier that Amazon Lex assigned to the resource created by the import.

", + "ImportSummary$importedResourceId": "

The unique identifier that Amazon Lex assigned to the imported resource.

" + } + }, "InputContext": { "base": "

The name of a context that must be active for an intent to be selected by Amazon Lex.

", "refs": { @@ -1195,6 +1483,26 @@ "refs": { } }, + "ListExportsRequest": { + "base": null, + "refs": { + } + }, + "ListExportsResponse": { + "base": null, + "refs": { + } + }, + "ListImportsRequest": { + "base": null, + "refs": { + } + }, + "ListImportsResponse": { + "base": null, + "refs": { + } + }, "ListIntentsRequest": { "base": null, "refs": { @@ -1239,48 +1547,50 @@ "base": null, "refs": { "BotAliasLocaleSettingsMap$key": null, + "BotLocaleExportSpecification$localeId": "

The identifier of the language and locale to export. The string must match one of the locales in the bot.

", + "BotLocaleImportSpecification$localeId": "

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

", "BotLocaleSummary$localeId": "

The language and locale of the bot locale.

", "BotVersionLocaleSpecification$key": null, - "BuildBotLocaleRequest$localeId": "

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "BuildBotLocaleRequest$localeId": "

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

", "BuildBotLocaleResponse$localeId": "

The language and locale specified of where the bot can be used.

", - "CreateBotLocaleRequest$localeId": "

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "CreateBotLocaleRequest$localeId": "

The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.

", "CreateBotLocaleResponse$localeId": "

The specified locale identifier.

", - "CreateIntentRequest$localeId": "

The identifier of the language and locale where this intent is used. All of the bots, slot types, and slots used by the intent must have the same locale.

", + "CreateIntentRequest$localeId": "

The identifier of the language and locale where this intent is used. All of the bots, slot types, and slots used by the intent must have the same locale. For more information, see Supported languages.

", "CreateIntentResponse$localeId": "

The locale that the intent is specified to use.

", - "CreateSlotRequest$localeId": "

The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "CreateSlotRequest$localeId": "

The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.

", "CreateSlotResponse$localeId": "

The language and local specified for the slot.

", - "CreateSlotTypeRequest$localeId": "

The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "CreateSlotTypeRequest$localeId": "

The identifier of the language and locale that the slot type will be used in. The string must match one of the supported locales. All of the bots, intents, and slots used by the slot type must have the same locale. For more information, see Supported languages.

", "CreateSlotTypeResponse$localeId": "

The specified language and local specified for the slot type.

", - "DeleteBotLocaleRequest$localeId": "

The identifier of the language and locale that will be deleted. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "DeleteBotLocaleRequest$localeId": "

The identifier of the language and locale that will be deleted. The string must match one of the supported locales. For more information, see Supported languages.

", "DeleteBotLocaleResponse$localeId": "

The language and locale of the deleted locale.

", - "DeleteIntentRequest$localeId": "

The identifier of the language and locale where the bot will be deleted. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", - "DeleteSlotRequest$localeId": "

The identifier of the language and locale that the slot will be deleted from. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", - "DeleteSlotTypeRequest$localeId": "

The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", - "DescribeBotLocaleRequest$localeId": "

The unique identifier of the locale to describe. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "DeleteIntentRequest$localeId": "

The identifier of the language and locale where the bot will be deleted. The string must match one of the supported locales. For more information, see Supported languages.

", + "DeleteSlotRequest$localeId": "

The identifier of the language and locale that the slot will be deleted from. The string must match one of the supported locales. For more information, see Supported languages.

", + "DeleteSlotTypeRequest$localeId": "

The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see Supported languages.

", + "DescribeBotLocaleRequest$localeId": "

The unique identifier of the locale to describe. The string must match one of the supported locales. For more information, see Supported languages.

", "DescribeBotLocaleResponse$localeId": "

The unique identifier of the described locale.

", - "DescribeIntentRequest$localeId": "

The identifier of the language and locale of the intent to describe. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "DescribeIntentRequest$localeId": "

The identifier of the language and locale of the intent to describe. The string must match one of the supported locales. For more information, see Supported languages.

", "DescribeIntentResponse$localeId": "

The language and locale specified for the intent.

", - "DescribeSlotRequest$localeId": "

The identifier of the language and locale of the slot to describe. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "DescribeSlotRequest$localeId": "

The identifier of the language and locale of the slot to describe. The string must match one of the supported locales. For more information, see Supported languages.

", "DescribeSlotResponse$localeId": "

The language and locale specified for the slot.

", - "DescribeSlotTypeRequest$localeId": "

The identifier of the language and locale of the slot type to describe. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "DescribeSlotTypeRequest$localeId": "

The identifier of the language and locale of the slot type to describe. The string must match one of the supported locales. For more information, see Supported languages.

", "DescribeSlotTypeResponse$localeId": "

The language and locale specified for the slot type.

", - "ListBuiltInIntentsRequest$localeId": "

The identifier of the language and locale of the intents to list. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "ListBuiltInIntentsRequest$localeId": "

The identifier of the language and locale of the intents to list. The string must match one of the supported locales. For more information, see Supported languages.

", "ListBuiltInIntentsResponse$localeId": "

The language and locale of the intents in the list.

", - "ListBuiltInSlotTypesRequest$localeId": "

The identifier of the language and locale of the slot types to list. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "ListBuiltInSlotTypesRequest$localeId": "

The identifier of the language and locale of the slot types to list. The string must match one of the supported locales. For more information, see Supported languages.

", "ListBuiltInSlotTypesResponse$localeId": "

The language and locale of the slot types in the list.

", - "ListIntentsRequest$localeId": "

The identifier of the language and locale of the intents to list. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "ListIntentsRequest$localeId": "

The identifier of the language and locale of the intents to list. The string must match one of the supported locales. For more information, see Supported languages.

", "ListIntentsResponse$localeId": "

The language and locale of the intents in the list.

", - "ListSlotTypesRequest$localeId": "

The identifier of the language and locale of the slot types to list. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "ListSlotTypesRequest$localeId": "

The identifier of the language and locale of the slot types to list. The string must match one of the supported locales. For more information, see Supported languages.

", "ListSlotTypesResponse$localeId": "

The language and local of the slot types in the list.

", - "ListSlotsRequest$localeId": "

The identifier of the language and locale of the slots to list. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "ListSlotsRequest$localeId": "

The identifier of the language and locale of the slots to list. The string must match one of the supported locales. For more information, see Supported languages.

", "ListSlotsResponse$localeId": "

The language and locale of the slots in the list.

", - "UpdateBotLocaleRequest$localeId": "

The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "UpdateBotLocaleRequest$localeId": "

The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see Supported languages.

", "UpdateBotLocaleResponse$localeId": "

The language and locale of the updated bot locale.

", - "UpdateIntentRequest$localeId": "

The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "UpdateIntentRequest$localeId": "

The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see Supported languages.

", "UpdateIntentResponse$localeId": "

The updated language and locale of the intent.

", - "UpdateSlotRequest$localeId": "

The identifier of the language and locale that contains the slot. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "UpdateSlotRequest$localeId": "

The identifier of the language and locale that contains the slot. The string must match one of the supported locales. For more information, see Supported languages.

", "UpdateSlotResponse$localeId": "

The locale that contains the slot.

", - "UpdateSlotTypeRequest$localeId": "

The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html.

", + "UpdateSlotTypeRequest$localeId": "

The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see Supported languages.

", "UpdateSlotTypeResponse$localeId": "

The language and locale of the updated slot type.

" } }, @@ -1307,11 +1617,22 @@ "ListBotLocalesRequest$maxResults": "

The maximum number of aliases to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

", "ListBotVersionsRequest$maxResults": "

The maximum number of versions to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

", "ListBotsRequest$maxResults": "

The maximum number of bots to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.

", + "ListExportsRequest$maxResults": "

The maximum number of exports to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

", + "ListImportsRequest$maxResults": "

The maximum number of imports to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

", "ListIntentsRequest$maxResults": "

The maximum number of intents to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

", "ListSlotTypesRequest$maxResults": "

The maximum number of slot types to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

", "ListSlotsRequest$maxResults": "

The maximum number of slots to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.

" } }, + "MergeStrategy": { + "base": null, + "refs": { + "DescribeImportResponse$mergeStrategy": "

The strategy used when there was a name conflict between the imported resource and an existing resource. When the merge strategy is FailOnConflict existing resources are not overwritten and the import fails.

", + "ImportSummary$mergeStrategy": "

The strategy used to merge existing bot or bot locale definitions with the imported definition.

", + "StartImportRequest$mergeStrategy": "

The strategy to use when there is a name conflict between the imported resource and an existing resource. When the merge strategy is FailOnConflict existing resources are not overwritten and the import fails.

", + "StartImportResponse$mergeStrategy": "

The strategy used when there was a name conflict between the imported resource and an existing resource. When the merge strategy is FailOnConflict existing resources are not overwritten and the import fails.

" + } + }, "Message": { "base": "

The object that provides message text and it's type.

", "refs": { @@ -1343,6 +1664,7 @@ "base": null, "refs": { "BotAliasSummary$botAliasName": "

The name of the bot alias.

", + "BotImportSpecification$botName": "

The name that Amazon Lex should use for the bot.

", "BotSummary$botName": "

The name of the bot.

", "BotVersionSummary$botName": "

The name of the bot associated with the version.

", "CreateBotAliasRequest$botAliasName": "

The alias to create. The name must be unique for the bot.

", @@ -1358,9 +1680,11 @@ "DescribeBotAliasResponse$botAliasName": "

The name of the bot alias.

", "DescribeBotResponse$botName": "

The name of the bot.

", "DescribeBotVersionResponse$botName": "

The name of the bot that contains the version.

", + "DescribeImportResponse$importedResourceName": "

The name of the imported resource.

", "DescribeIntentResponse$intentName": "

The name specified for the intent.

", "DescribeSlotResponse$slotName": "

The name specified for the slot.

", "DescribeSlotTypeResponse$slotTypeName": "

The name specified for the slot type.

", + "ImportSummary$importedResourceName": "

The name that you gave the imported resource.

", "InputContext$name": "

The name of the context.

", "IntentSummary$intentName": "

The name of the intent.

", "OutputContext$name": "

The name of the output context.

", @@ -1393,6 +1717,10 @@ "ListBuiltInIntentsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBuiltInIntents operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBotAliases operation request to get the next page of results.

", "ListBuiltInSlotTypesRequest$nextToken": "

If the response from the ListBuiltInSlotTypes operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", "ListBuiltInSlotTypesResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBuiltInSlotTypes operation. If the nextToken field is present, you send the contents as the nextToken parameter of a LIstBuiltInSlotTypes operation request to get the next page of results.

", + "ListExportsRequest$nextToken": "

If the response from the ListExports operation contans more results that specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", + "ListExportsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListExports operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListExports operation request to get the next page of results.

", + "ListImportsRequest$nextToken": "

If the response from the ListImports operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", + "ListImportsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListImports operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListImports operation request to get the next page of results.

", "ListIntentsRequest$nextToken": "

If the response from the ListIntents operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", "ListIntentsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListIntents operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListIntents operation request to get the next page of results.

", "ListSlotTypesRequest$nextToken": "

If the response from the ListSlotTypes operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", @@ -1464,6 +1792,13 @@ "refs": { } }, + "PresignedS3Url": { + "base": null, + "refs": { + "CreateUploadUrlResponse$uploadUrl": "

A pre-signed S3 write URL. Upload the zip archive file that contains the definition of your bot or bot locale.

", + "DescribeExportResponse$downloadUrl": "

A pre-signed S3 URL that points to the bot or bot locale archive. The URL is only available for 5 minutes after calling the DescribeExport operation.

" + } + }, "PriorityValue": { "base": null, "refs": { @@ -1526,6 +1861,7 @@ "RoleArn": { "base": null, "refs": { + "BotImportSpecification$roleArn": "

The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.

", "CreateBotRequest$roleArn": "

The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.

", "CreateBotResponse$roleArn": "

The IAM role specified for the bot.

", "DescribeBotResponse$roleArn": "

The Amazon Resource Name (ARN) of an IAM role that has permission to access the bot.

", @@ -1600,6 +1936,7 @@ "SessionTTL": { "base": null, "refs": { + "BotImportSpecification$idleSessionTTLInSeconds": "

The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.

You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

", "CreateBotRequest$idleSessionTTLInSeconds": "

The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.

You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

", "CreateBotResponse$idleSessionTTLInSeconds": "

The session idle time specified for the bot.

", "DescribeBotResponse$idleSessionTTLInSeconds": "

The maximum time in seconds that Amazon Lex retains the data gathered in a conversation.

", @@ -1826,11 +2163,23 @@ "BotVersionSortBy$order": "

The order to sort the list. You can specify ascending or descending order.

", "BuiltInIntentSortBy$order": "

The order to sort the list. You can specify ascending or descending order.

", "BuiltInSlotTypeSortBy$order": "

The order to sort the list. You can choose ascending or descending.

", + "ExportSortBy$order": "

The order to sort the list.

", + "ImportSortBy$order": "

The order to sort the list.

", "IntentSortBy$order": "

The order to sort the list. You can choose ascending or descending.

", "SlotSortBy$order": "

The order to sort the list. You can choose ascending or descending.

", "SlotTypeSortBy$order": "

The order to sort the list. You can say ascending or descending.

" } }, + "StartImportRequest": { + "base": null, + "refs": { + } + }, + "StartImportResponse": { + "base": null, + "refs": { + } + }, "StillWaitingResponseFrequency": { "base": null, "refs": { @@ -1871,6 +2220,8 @@ "TagMap": { "base": null, "refs": { + "BotImportSpecification$botTags": "

A list of tags to add to the bot. You can only add tags when you import a bot. You can't use the UpdateBot operation to update tags. To update tags, use the TagResource operation.

", + "BotImportSpecification$testBotAliasTags": "

A list of tags to add to the test alias for a bot. You can only add tags when you import a bot. You can't use the UpdateAlias operation to update tags. To update tags on the test alias, use the TagResource operation.

", "CreateBotAliasRequest$tags": "

A list of tags to add to the bot alias. You can only add tags when you create an alias, you can't use the UpdateBotAlias operation to update the tags on a bot alias. To update tags, use the TagResource operation.

", "CreateBotAliasResponse$tags": "

A list of tags associated with the bot alias.

", "CreateBotRequest$botTags": "

A list of tags to add to the bot. You can only add tags when you create a bot. You can't use the UpdateBot operation to update tags. To update tags, use the TagResource operation.

", @@ -1937,6 +2288,7 @@ "CreateBotLocaleResponse$creationDateTime": "

A timestamp specifying the date and time that the bot locale was created.

", "CreateBotResponse$creationDateTime": "

A timestamp indicating the date and time that the bot was created.

", "CreateBotVersionResponse$creationDateTime": "

A timestamp of the date and time that the version was created.

", + "CreateExportResponse$creationDateTime": "

The date and time that the request to export a bot was created.

", "CreateIntentResponse$creationDateTime": "

A timestamp of the date and time that the intent was created.

", "CreateSlotResponse$creationDateTime": "

The timestamp of the date and time that the slot was created.

", "CreateSlotTypeResponse$creationDateTime": "

A timestamp of the date and time that the slot type was created.

", @@ -1948,21 +2300,32 @@ "DescribeBotResponse$creationDateTime": "

A timestamp of the date and time that the bot was created.

", "DescribeBotResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the bot was last updated.

", "DescribeBotVersionResponse$creationDateTime": "

A timestamp of the date and time that the bot version was created.

", + "DescribeExportResponse$creationDateTime": "

The date and time that the export was created.

", + "DescribeExportResponse$lastUpdatedDateTime": "

The last date and time that the export was updated.

", + "DescribeImportResponse$creationDateTime": "

The date and time that the import was created.

", + "DescribeImportResponse$lastUpdatedDateTime": "

The date and time that the import was last updated.

", "DescribeIntentResponse$creationDateTime": "

A timestamp of the date and time that the intent was created.

", "DescribeIntentResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the intent was last updated.

", "DescribeSlotResponse$creationDateTime": "

A timestamp of the date and time that the slot was created.

", "DescribeSlotResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the slot was last updated.

", "DescribeSlotTypeResponse$creationDateTime": "

A timestamp of the date and time that the slot type was created.

", "DescribeSlotTypeResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the slot type was last updated.

", + "ExportSummary$creationDateTime": "

The date and time that the export was created.

", + "ExportSummary$lastUpdatedDateTime": "

The date and time that the export was last updated.

", + "ImportSummary$creationDateTime": "

The date and time that the import was created.

", + "ImportSummary$lastUpdatedDateTime": "

The date and time that the import was last updated.

", "IntentSummary$lastUpdatedDateTime": "

The timestamp of the date and time that the intent was last updated.

", "SlotSummary$lastUpdatedDateTime": "

The timestamp of the last date and time that the slot was updated.

", "SlotTypeSummary$lastUpdatedDateTime": "

A timestamp of the date and time that the slot type was last updated.

", + "StartImportResponse$creationDateTime": "

The date and time that the import request was created.

", "UpdateBotAliasResponse$creationDateTime": "

A timestamp of the date and time that the bot was created.

", "UpdateBotAliasResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the bot was last updated.

", "UpdateBotLocaleResponse$creationDateTime": "

A timestamp of the date and time that the locale was created.

", "UpdateBotLocaleResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the locale was last updated.

", "UpdateBotResponse$creationDateTime": "

A timestamp of the date and time that the bot was created.

", "UpdateBotResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the bot was last updated.

", + "UpdateExportResponse$creationDateTime": "

The date and time that the export was created.

", + "UpdateExportResponse$lastUpdatedDateTime": "

The date and time that the export was last updated.

", "UpdateIntentResponse$creationDateTime": "

A timestamp of when the intent was created.

", "UpdateIntentResponse$lastUpdatedDateTime": "

A timestamp of the last time that the intent was modified.

", "UpdateSlotResponse$creationDateTime": "

The timestamp of the date and time that the slot was created.

", @@ -2011,6 +2374,16 @@ "refs": { } }, + "UpdateExportRequest": { + "base": null, + "refs": { + } + }, + "UpdateExportResponse": { + "base": null, + "refs": { + } + }, "UpdateIntentRequest": { "base": null, "refs": { @@ -2067,6 +2440,7 @@ "VoiceSettings": { "base": "

Defines settings for using an Amazon Polly voice to communicate with a user.

", "refs": { + "BotLocaleImportSpecification$voiceSettings": null, "CreateBotLocaleRequest$voiceSettings": "

The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.

", "CreateBotLocaleResponse$voiceSettings": "

The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.

", "DescribeBotLocaleResponse$voiceSettings": "

The Amazon Polly voice Amazon Lex uses for voice interaction with the user.

", diff --git a/models/apis/models.lex.v2/2020-08-07/paginators-1.json b/models/apis/models.lex.v2/2020-08-07/paginators-1.json index 14b2bfa2226..3353a41d24e 100644 --- a/models/apis/models.lex.v2/2020-08-07/paginators-1.json +++ b/models/apis/models.lex.v2/2020-08-07/paginators-1.json @@ -30,6 +30,16 @@ "output_token": "nextToken", "limit_key": "maxResults" }, + "ListExports": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "ListImports": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, "ListIntents": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/models/apis/personalize/2018-05-22/api-2.json b/models/apis/personalize/2018-05-22/api-2.json index 42401c1fea2..7e71277e44d 100644 --- a/models/apis/personalize/2018-05-22/api-2.json +++ b/models/apis/personalize/2018-05-22/api-2.json @@ -1734,6 +1734,11 @@ }, "exception":true }, + "ItemAttribute":{ + "type":"string", + "max":150, + "min":1 + }, "KmsKeyArn":{"type":"string"}, "LimitExceededException":{ "type":"structure", @@ -1951,6 +1956,22 @@ "max":1300 }, "NumBatchResults":{"type":"integer"}, + "ObjectiveSensitivity":{ + "type":"string", + "enum":[ + "LOW", + "MEDIUM", + "HIGH", + "OFF" + ] + }, + "OptimizationObjective":{ + "type":"structure", + "members":{ + "itemAttribute":{"shape":"ItemAttribute"}, + "objectiveSensitivity":{"shape":"ObjectiveSensitivity"} + } + }, "ParameterName":{ "type":"string", "max":256 @@ -2072,7 +2093,8 @@ "hpoConfig":{"shape":"HPOConfig"}, "algorithmHyperParameters":{"shape":"HyperParameters"}, "featureTransformationParameters":{"shape":"FeatureTransformationParameters"}, - "autoMLConfig":{"shape":"AutoMLConfig"} + "autoMLConfig":{"shape":"AutoMLConfig"}, + "optimizationObjective":{"shape":"OptimizationObjective"} } }, "SolutionSummary":{ diff --git a/models/apis/personalize/2018-05-22/docs-2.json b/models/apis/personalize/2018-05-22/docs-2.json index ed5a0ff74cd..0a5ee4b854e 100644 --- a/models/apis/personalize/2018-05-22/docs-2.json +++ b/models/apis/personalize/2018-05-22/docs-2.json @@ -1045,6 +1045,12 @@ "refs": { } }, + "ItemAttribute": { + "base": null, + "refs": { + "OptimizationObjective$itemAttribute": "

The numerical metadata column in an Items dataset related to the optimization objective. For example, VIDEO_LENGTH (to maximize streaming minutes), or PRICE (to maximize revenue).

" + } + }, "KmsKeyArn": { "base": null, "refs": { @@ -1297,6 +1303,18 @@ "CreateBatchInferenceJobRequest$numResults": "

The number of recommendations to retreive.

" } }, + "ObjectiveSensitivity": { + "base": null, + "refs": { + "OptimizationObjective$objectiveSensitivity": "

Specifies how Amazon Personalize balances the importance of your optimization objective versus relevance.

" + } + }, + "OptimizationObjective": { + "base": "

Describes the additional objective for the solution, such as maximizing streaming minutes or increasing revenue. For more information see Optimizing a solution.

", + "refs": { + "SolutionConfig$optimizationObjective": "

Describes the additional objective for the solution, such as maximizing streaming minutes or increasing revenue. For more information see Optimizing a solution.

" + } + }, "ParameterName": { "base": null, "refs": { diff --git a/models/apis/support/2013-04-15/docs-2.json b/models/apis/support/2013-04-15/docs-2.json index 75946767fdd..f49a8a543f7 100644 --- a/models/apis/support/2013-04-15/docs-2.json +++ b/models/apis/support/2013-04-15/docs-2.json @@ -1,21 +1,21 @@ { "version": "2.0", - "service": "AWS Support

The AWS Support API reference is intended for programmers who need detailed information about the AWS Support operations and data types. This service enables you to manage your AWS Support cases programmatically. It uses HTTP methods that return results in JSON format.

The AWS Support service also exposes a set of AWS Trusted Advisor features. You can retrieve a list of checks and their descriptions, get check results, specify checks to refresh, and get the refresh status of checks.

The following list describes the AWS Support case management operations:

The following list describes the operations available from the AWS Support service for Trusted Advisor:

For authentication of requests, AWS Support uses Signature Version 4 Signing Process.

See About the AWS Support API in the AWS Support User Guide for information about how to use this service to create and manage your support cases, and how to call Trusted Advisor for results of checks on your resources.

", + "service": "AWS Support

The AWS Support API Reference is intended for programmers who need detailed information about the AWS Support operations and data types. You can use the API to manage your support cases programmatically. The AWS Support API uses HTTP methods that return results in JSON format.

The AWS Support service also exposes a set of AWS Trusted Advisor features. You can retrieve a list of checks and their descriptions, get check results, specify checks to refresh, and get the refresh status of checks.

The following list describes the AWS Support case management operations:

The following list describes the operations available from the AWS Support service for Trusted Advisor:

For authentication of requests, AWS Support uses Signature Version 4 Signing Process.

See About the AWS Support API in the AWS Support User Guide for information about how to use this service to create and manage your support cases, and how to call Trusted Advisor for results of checks on your resources.

", "operations": { - "AddAttachmentsToSet": "

Adds one or more attachments to an attachment set.

An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The expiryTime returned in the response is when the set expires.

", - "AddCommunicationToCase": "

Adds additional customer communication to an AWS Support case. Use the caseId parameter to identify the case to which to add communication. You can list a set of email addresses to copy on the communication by using the ccEmailAddresses parameter. The communicationBody value contains the text of the communication.

", - "CreateCase": "

Creates a case in the AWS Support Center. This operation is similar to how you create a case in the AWS Support Center Create Case page.

The AWS Support API doesn't support requesting service limit increases. You can submit a service limit increase in the following ways:

A successful CreateCase request returns an AWS Support case number. You can use the DescribeCases operation and specify the case number to get existing AWS Support cases. After you create a case, use the AddCommunicationToCase operation to add additional communication or attachments to an existing case.

The caseId is separate from the displayId that appears in the AWS Support Center. Use the DescribeCases operation to get the displayId.

", - "DescribeAttachment": "

Returns the attachment that has the specified ID. Attachments can include screenshots, error logs, or other files that describe your issue. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation.

", - "DescribeCases": "

Returns a list of cases that you specify by passing one or more case IDs. You can use the afterTime and beforeTime parameters to filter the cases by date. You can set values for the includeResolvedCases and includeCommunications parameters to specify how much information to return.

The response returns the following in JSON format:

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error.

", - "DescribeCommunications": "

Returns communications and attachments for one or more support cases. Use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a specific case.

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error.

You can use the maxResults and nextToken parameters to control the pagination of the results. Set maxResults to the number of cases that you want to display on each page, and use nextToken to specify the resumption of pagination.

", - "DescribeServices": "

Returns the current list of AWS services and a list of service categories for each service. You then use service names and categories in your CreateCase requests. Each AWS service has its own set of categories.

The service codes and category codes correspond to the values that appear in the Service and Category lists on the AWS Support Center Create Case page. The values in those fields don't necessarily match the service codes and categories returned by the DescribeServices operation. Always use the service codes and categories that the DescribeServices operation returns, so that you have the most recent set of service and category codes.

", - "DescribeSeverityLevels": "

Returns the list of severity levels that you can assign to an AWS Support case. The severity level for a case is also a field in the CaseDetails data type that you include for a CreateCase request.

", - "DescribeTrustedAdvisorCheckRefreshStatuses": "

Returns the refresh status of the AWS Trusted Advisor checks that have the specified check IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically, and you can't return their refresh statuses by using the DescribeTrustedAdvisorCheckRefreshStatuses operation. If you call this operation for these checks, you might see an InvalidParameterValue error.

", - "DescribeTrustedAdvisorCheckResult": "

Returns the results of the AWS Trusted Advisor check that has the specified check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains a TrustedAdvisorCheckResult object, which contains these three objects:

In addition, the response contains these fields:

", - "DescribeTrustedAdvisorCheckSummaries": "

Returns the results for the AWS Trusted Advisor check summaries for the check IDs that you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains an array of TrustedAdvisorCheckSummary objects.

", - "DescribeTrustedAdvisorChecks": "

Returns information about all available AWS Trusted Advisor checks, including the name, ID, category, description, and metadata. You must specify a language code. The AWS Support API currently supports English (\"en\") and Japanese (\"ja\"). The response contains a TrustedAdvisorCheckDescription object for each check. You must set the AWS Region to us-east-1.

", - "RefreshTrustedAdvisorCheck": "

Refreshes the AWS Trusted Advisor check that you specify using the check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically. If you call the RefreshTrustedAdvisorCheck operation to refresh them, you might see the InvalidParameterValue error.

The response contains a TrustedAdvisorCheckRefreshStatus object.

", - "ResolveCase": "

Resolves a support case. This operation takes a caseId and returns the initial and final state of the case.

" + "AddAttachmentsToSet": "

Adds one or more attachments to an attachment set.

An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The expiryTime returned in the response is when the set expires.

", + "AddCommunicationToCase": "

Adds additional customer communication to an AWS Support case. Use the caseId parameter to identify the case to which to add communication. You can list a set of email addresses to copy on the communication by using the ccEmailAddresses parameter. The communicationBody value contains the text of the communication.

", + "CreateCase": "

Creates a case in the AWS Support Center. This operation is similar to how you create a case in the AWS Support Center Create Case page.

The AWS Support API doesn't support requesting service limit increases. You can submit a service limit increase in the following ways:

A successful CreateCase request returns an AWS Support case number. You can use the DescribeCases operation and specify the case number to get existing AWS Support cases. After you create a case, use the AddCommunicationToCase operation to add additional communication or attachments to an existing case.

The caseId is separate from the displayId that appears in the AWS Support Center. Use the DescribeCases operation to get the displayId.

", + "DescribeAttachment": "

Returns the attachment that has the specified ID. Attachments can include screenshots, error logs, or other files that describe your issue. Attachment IDs are generated by the case management system when you add an attachment to a case or case communication. Attachment IDs are returned in the AttachmentDetails objects that are returned by the DescribeCommunications operation.

", + "DescribeCases": "

Returns a list of cases that you specify by passing one or more case IDs. You can use the afterTime and beforeTime parameters to filter the cases by date. You can set values for the includeResolvedCases and includeCommunications parameters to specify how much information to return.

The response returns the following in JSON format:

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error.

", + "DescribeCommunications": "

Returns communications and attachments for one or more support cases. Use the afterTime and beforeTime parameters to filter by date. You can use the caseId parameter to restrict the results to a specific case.

Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error.

You can use the maxResults and nextToken parameters to control the pagination of the results. Set maxResults to the number of cases that you want to display on each page, and use nextToken to specify the resumption of pagination.

", + "DescribeServices": "

Returns the current list of AWS services and a list of service categories for each service. You then use service names and categories in your CreateCase requests. Each AWS service has its own set of categories.

The service codes and category codes correspond to the values that appear in the Service and Category lists on the AWS Support Center Create Case page. The values in those fields don't necessarily match the service codes and categories returned by the DescribeServices operation. Always use the service codes and categories that the DescribeServices operation returns, so that you have the most recent set of service and category codes.

", + "DescribeSeverityLevels": "

Returns the list of severity levels that you can assign to a support case. The severity level for a case is also a field in the CaseDetails data type that you include for a CreateCase request.

", + "DescribeTrustedAdvisorCheckRefreshStatuses": "

Returns the refresh status of the AWS Trusted Advisor checks that have the specified check IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically, and you can't return their refresh statuses by using the DescribeTrustedAdvisorCheckRefreshStatuses operation. If you call this operation for these checks, you might see an InvalidParameterValue error.

", + "DescribeTrustedAdvisorCheckResult": "

Returns the results of the AWS Trusted Advisor check that has the specified check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains a TrustedAdvisorCheckResult object, which contains these three objects:

In addition, the response contains these fields:

", + "DescribeTrustedAdvisorCheckSummaries": "

Returns the results for the AWS Trusted Advisor check summaries for the check IDs that you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains an array of TrustedAdvisorCheckSummary objects.

", + "DescribeTrustedAdvisorChecks": "

Returns information about all available AWS Trusted Advisor checks, including the name, ID, category, description, and metadata. You must specify a language code. The AWS Support API currently supports English (\"en\") and Japanese (\"ja\"). The response contains a TrustedAdvisorCheckDescription object for each check. You must set the AWS Region to us-east-1.

", + "RefreshTrustedAdvisorCheck": "

Refreshes the AWS Trusted Advisor check that you specify using the check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically. If you call the RefreshTrustedAdvisorCheck operation to refresh them, you might see the InvalidParameterValue error.

The response contains a TrustedAdvisorCheckRefreshStatus object.

", + "ResolveCase": "

Resolves a support case. This operation takes a caseId and returns the initial and final state of the case.

" }, "shapes": { "AddAttachmentsToSetRequest": { @@ -131,7 +131,7 @@ } }, "CaseDetails": { - "base": "

A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a DescribeCases request. CaseDetails contains the following fields:

", + "base": "

A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a DescribeCases request. CaseDetails contains the following fields:

", "refs": { "CaseList$member": null } @@ -139,13 +139,13 @@ "CaseId": { "base": null, "refs": { - "AddCommunicationToCaseRequest$caseId": "

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", - "CaseDetails$caseId": "

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", + "AddCommunicationToCaseRequest$caseId": "

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", + "CaseDetails$caseId": "

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", "CaseIdList$member": null, - "Communication$caseId": "

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", - "CreateCaseResponse$caseId": "

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47

", - "DescribeCommunicationsRequest$caseId": "

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", - "ResolveCaseRequest$caseId": "

The AWS Support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

" + "Communication$caseId": "

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", + "CreateCaseResponse$caseId": "

The support case ID requested or returned in the call. The case ID is an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47

", + "DescribeCommunicationsRequest$caseId": "

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

", + "ResolveCaseRequest$caseId": "

The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47

" } }, "CaseIdList": { @@ -155,7 +155,7 @@ } }, "CaseIdNotFound": { - "base": "

The requested caseId could not be located.

", + "base": "

The requested caseId couldn't be located.

", "refs": { } }, @@ -181,9 +181,9 @@ "CategoryCode": { "base": null, "refs": { - "CaseDetails$categoryCode": "

The category of problem for the AWS Support case.

", + "CaseDetails$categoryCode": "

The category of problem for the support case.

", "Category$code": "

The category code for the support case.

", - "CreateCaseRequest$categoryCode": "

The category of problem for the AWS Support case. You also use the DescribeServices operation to get the category code for a service. Each AWS service defines its own set of category codes.

" + "CreateCaseRequest$categoryCode": "

The category of problem for the support case. You also use the DescribeServices operation to get the category code for a service. Each AWS service defines its own set of category codes.

" } }, "CategoryList": { @@ -213,7 +213,7 @@ } }, "Communication": { - "base": "

A communication associated with an AWS Support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication.

", + "base": "

A communication associated with a support case. The communication consists of the case ID, the message body, attachment information, the submitter of the communication, and the date and time of the communication.

", "refs": { "CommunicationList$member": null } @@ -239,7 +239,7 @@ } }, "CreateCaseResponse": { - "base": "

The AWS Support case ID returned by a successful completion of the CreateCase operation.

", + "base": "

The support case ID returned by a successful completion of the CreateCase operation.

", "refs": { } }, @@ -388,7 +388,7 @@ "IncludeCommunications": { "base": null, "refs": { - "DescribeCasesRequest$includeCommunications": "

Specifies whether to include communications in the DescribeCases response. By default, communications are incuded.

" + "DescribeCasesRequest$includeCommunications": "

Specifies whether to include communications in the DescribeCases response. By default, communications are included.

" } }, "IncludeResolvedCases": { @@ -532,7 +532,7 @@ "SeverityLevelName": { "base": null, "refs": { - "SeverityLevel$name": "

The name of the severity level that corresponds to the severity level code.

The values returned by the API differ from the values that are displayed in the AWS Support Center. For example, for the code \"low\", the API name is \"Low\", but the name in the Support Center is \"General guidance\". These are the Support Center code/name mappings:

For more information, see Choosing a severity in the AWS Support User Guide.

" + "SeverityLevel$name": "

The name of the severity level that corresponds to the severity level code.

The values returned by the API are different from the values that appear in the AWS Support Center. For example, the API uses the code low, but the name appears as General guidance in Support Center.

The following are the API code names and how they appear in the console:

For more information, see Choosing a severity in the AWS Support User Guide.

" } }, "SeverityLevelsList": { @@ -553,14 +553,14 @@ "DescribeTrustedAdvisorCheckResultRequest$checkId": "

The unique identifier for the Trusted Advisor check.

", "DescribeTrustedAdvisorCheckResultRequest$language": "

The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English (\"en\") and Japanese (\"ja\"). Language parameters must be passed explicitly for operations that take them.

", "DescribeTrustedAdvisorChecksRequest$language": "

The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English (\"en\") and Japanese (\"ja\"). Language parameters must be passed explicitly for operations that take them.

", - "RefreshTrustedAdvisorCheckRequest$checkId": "

The unique identifier for the Trusted Advisor check to refresh. Note: Specifying the check ID of a check that is automatically refreshed causes an InvalidParameterValue error.

", + "RefreshTrustedAdvisorCheckRequest$checkId": "

The unique identifier for the Trusted Advisor check to refresh.

Specifying the check ID of a check that is automatically refreshed causes an InvalidParameterValue error.

", "StringList$member": null, "TrustedAdvisorCheckDescription$id": "

The unique identifier for the Trusted Advisor check.

", "TrustedAdvisorCheckDescription$name": "

The display name for the Trusted Advisor check.

", "TrustedAdvisorCheckDescription$description": "

The description of the Trusted Advisor check, which includes the alert criteria and recommended operations (contains HTML markup).

", "TrustedAdvisorCheckDescription$category": "

The category of the Trusted Advisor check.

", "TrustedAdvisorCheckRefreshStatus$checkId": "

The unique identifier for the Trusted Advisor check.

", - "TrustedAdvisorCheckRefreshStatus$status": "

The status of the Trusted Advisor check for which a refresh has been requested:

", + "TrustedAdvisorCheckRefreshStatus$status": "

The status of the Trusted Advisor check for which a refresh has been requested:

", "TrustedAdvisorCheckResult$checkId": "

The unique identifier for the Trusted Advisor check.

", "TrustedAdvisorCheckResult$timestamp": "

The time of the last refresh of the check.

", "TrustedAdvisorCheckResult$status": "

The alert status of the check: \"ok\" (green), \"warning\" (yellow), \"error\" (red), or \"not_available\".

", @@ -568,14 +568,14 @@ "TrustedAdvisorCheckSummary$timestamp": "

The time of the last refresh of the check.

", "TrustedAdvisorCheckSummary$status": "

The alert status of the check: \"ok\" (green), \"warning\" (yellow), \"error\" (red), or \"not_available\".

", "TrustedAdvisorResourceDetail$status": "

The status code for the resource identified in the Trusted Advisor check.

", - "TrustedAdvisorResourceDetail$region": "

The AWS region in which the identified resource is located.

", + "TrustedAdvisorResourceDetail$region": "

The AWS Region in which the identified resource is located.

", "TrustedAdvisorResourceDetail$resourceId": "

The unique identifier for the identified resource.

" } }, "StringList": { "base": null, "refs": { - "DescribeTrustedAdvisorCheckRefreshStatusesRequest$checkIds": "

The IDs of the Trusted Advisor checks to get the status of.

If you specify the check ID of a check that is automatically refreshed, you might see an InvalidParameterValue error.

", + "DescribeTrustedAdvisorCheckRefreshStatusesRequest$checkIds": "

The IDs of the Trusted Advisor checks to get the status.

If you specify the check ID of a check that is automatically refreshed, you might see an InvalidParameterValue error.

", "DescribeTrustedAdvisorCheckSummariesRequest$checkIds": "

The IDs of the Trusted Advisor checks.

", "TrustedAdvisorCheckDescription$metadata": "

The column headings for the data returned by the Trusted Advisor check. The order of the headings corresponds to the order of the data in the Metadata element of the TrustedAdvisorResourceDetail for the check. Metadata contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data.

", "TrustedAdvisorResourceDetail$metadata": "

Additional information about the identified resource. The exact metadata and its order can be obtained by inspecting the TrustedAdvisorCheckDescription object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains all the data that is shown in the Excel download, even in those cases where the UI shows just summary data.

" @@ -585,14 +585,14 @@ "base": null, "refs": { "CaseDetails$subject": "

The subject line for the case in the AWS Support Center.

", - "CreateCaseRequest$subject": "

The title of the AWS Support case. The title appears in the Subject field on the AWS Support Center Create Case page.

" + "CreateCaseRequest$subject": "

The title of the support case. The title appears in the Subject field on the AWS Support Center Create Case page.

" } }, "SubmittedBy": { "base": null, "refs": { "CaseDetails$submittedBy": "

The email address of the account that submitted the case.

", - "Communication$submittedBy": "

The identity of the account that submitted, or responded to, the support case. Customer entries include the role or IAM user as well as the email address. For example, \"AdminRole (Role) <someone@example.com>. Entries from the AWS Support team display \"Amazon Web Services,\" and do not show an email address.

" + "Communication$submittedBy": "

The identity of the account that submitted, or responded to, the support case. Customer entries include the role or IAM user as well as the email address. For example, \"AdminRole (Role) <janedoe@example.com>. Entries from the AWS Support team display \"Amazon Web Services,\" and don't show an email address.

" } }, "TimeCreated": { diff --git a/service/apprunner/api.go b/service/apprunner/api.go new file mode 100644 index 00000000000..6ea4fca161a --- /dev/null +++ b/service/apprunner/api.go @@ -0,0 +1,6645 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package apprunner + +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" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +const opAssociateCustomDomain = "AssociateCustomDomain" + +// AssociateCustomDomainRequest generates a "aws/request.Request" representing the +// client's request for the AssociateCustomDomain 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 AssociateCustomDomain for more information on using the AssociateCustomDomain +// 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 AssociateCustomDomainRequest method. +// req, resp := client.AssociateCustomDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain +func (c *AppRunner) AssociateCustomDomainRequest(input *AssociateCustomDomainInput) (req *request.Request, output *AssociateCustomDomainOutput) { + op := &request.Operation{ + Name: opAssociateCustomDomain, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateCustomDomainInput{} + } + + output = &AssociateCustomDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateCustomDomain API operation for AWS App Runner. +// +// Associate your own domain name with the AWS App Runner subdomain URL of your +// App Runner service. +// +// After you call AssociateCustomDomain and receive a successful response, use +// the information in the CustomDomain record that's returned to add CNAME records +// to your Domain Name System (DNS). For each mapped domain name, add a mapping +// to the target App Runner subdomain and one or more certificate validation +// records. App Runner then performs DNS validation to verify that you own or +// control the domain name that you associated. App Runner tracks domain validity +// in a certificate stored in AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide). +// +// 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 App Runner's +// API operation AssociateCustomDomain for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain +func (c *AppRunner) AssociateCustomDomain(input *AssociateCustomDomainInput) (*AssociateCustomDomainOutput, error) { + req, out := c.AssociateCustomDomainRequest(input) + return out, req.Send() +} + +// AssociateCustomDomainWithContext is the same as AssociateCustomDomain with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateCustomDomain 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 *AppRunner) AssociateCustomDomainWithContext(ctx aws.Context, input *AssociateCustomDomainInput, opts ...request.Option) (*AssociateCustomDomainOutput, error) { + req, out := c.AssociateCustomDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateAutoScalingConfiguration = "CreateAutoScalingConfiguration" + +// CreateAutoScalingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the CreateAutoScalingConfiguration 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 CreateAutoScalingConfiguration for more information on using the CreateAutoScalingConfiguration +// 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 CreateAutoScalingConfigurationRequest method. +// req, resp := client.CreateAutoScalingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration +func (c *AppRunner) CreateAutoScalingConfigurationRequest(input *CreateAutoScalingConfigurationInput) (req *request.Request, output *CreateAutoScalingConfigurationOutput) { + op := &request.Operation{ + Name: opCreateAutoScalingConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAutoScalingConfigurationInput{} + } + + output = &CreateAutoScalingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAutoScalingConfiguration API operation for AWS App Runner. +// +// Create an AWS App Runner automatic scaling configuration resource. App Runner +// requires this resource when you create App Runner services that require non-default +// auto scaling settings. You can share an auto scaling configuration across +// multiple services. +// +// Create multiple revisions of a configuration by using the same AutoScalingConfigurationName +// and different AutoScalingConfigurationRevision values. When you create a +// service, you can set it to use the latest active revision of an auto scaling +// configuration or a specific revision. +// +// Configure a higher MinSize to increase the spread of your App Runner service +// over more Availability Zones in the AWS Region. The tradeoff is a higher +// minimal cost. +// +// Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness +// during peak demand. +// +// 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 App Runner's +// API operation CreateAutoScalingConfiguration for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ServiceQuotaExceededException +// App Runner can't create this resource. You've reached your account quota +// for this resource type. +// +// For App Runner per-resource quotas, see AWS App Runner endpoints and quotas +// (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS +// General Reference. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration +func (c *AppRunner) CreateAutoScalingConfiguration(input *CreateAutoScalingConfigurationInput) (*CreateAutoScalingConfigurationOutput, error) { + req, out := c.CreateAutoScalingConfigurationRequest(input) + return out, req.Send() +} + +// CreateAutoScalingConfigurationWithContext is the same as CreateAutoScalingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAutoScalingConfiguration 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 *AppRunner) CreateAutoScalingConfigurationWithContext(ctx aws.Context, input *CreateAutoScalingConfigurationInput, opts ...request.Option) (*CreateAutoScalingConfigurationOutput, error) { + req, out := c.CreateAutoScalingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateConnection = "CreateConnection" + +// CreateConnectionRequest generates a "aws/request.Request" representing the +// client's request for the CreateConnection 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 CreateConnection for more information on using the CreateConnection +// 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 CreateConnectionRequest method. +// req, resp := client.CreateConnectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection +func (c *AppRunner) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *CreateConnectionOutput) { + op := &request.Operation{ + Name: opCreateConnection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateConnectionInput{} + } + + output = &CreateConnectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConnection API operation for AWS App Runner. +// +// Create an AWS App Runner connection resource. App Runner requires a connection +// resource when you create App Runner services that access private repositories +// from certain third-party providers. You can share a connection across multiple +// services. +// +// A connection resource is needed to access GitHub repositories. GitHub requires +// a user interface approval process through the App Runner console before you +// can use the connection. +// +// 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 App Runner's +// API operation CreateConnection for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ServiceQuotaExceededException +// App Runner can't create this resource. You've reached your account quota +// for this resource type. +// +// For App Runner per-resource quotas, see AWS App Runner endpoints and quotas +// (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS +// General Reference. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection +func (c *AppRunner) CreateConnection(input *CreateConnectionInput) (*CreateConnectionOutput, error) { + req, out := c.CreateConnectionRequest(input) + return out, req.Send() +} + +// CreateConnectionWithContext is the same as CreateConnection with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConnection 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 *AppRunner) CreateConnectionWithContext(ctx aws.Context, input *CreateConnectionInput, opts ...request.Option) (*CreateConnectionOutput, error) { + req, out := c.CreateConnectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateService = "CreateService" + +// CreateServiceRequest generates a "aws/request.Request" representing the +// client's request for the CreateService 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 CreateService for more information on using the CreateService +// 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 CreateServiceRequest method. +// req, resp := client.CreateServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService +func (c *AppRunner) CreateServiceRequest(input *CreateServiceInput) (req *request.Request, output *CreateServiceOutput) { + op := &request.Operation{ + Name: opCreateService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateServiceInput{} + } + + output = &CreateServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateService API operation for AWS App Runner. +// +// Create an AWS App Runner service. After the service is created, the action +// also automatically starts a deployment. +// +// This is an asynchronous operation. On a successful call, you can use the +// returned OperationId and the ListOperations (https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html) +// call to track the operation's progress. +// +// 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 App Runner's +// API operation CreateService for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ServiceQuotaExceededException +// App Runner can't create this resource. You've reached your account quota +// for this resource type. +// +// For App Runner per-resource quotas, see AWS App Runner endpoints and quotas +// (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS +// General Reference. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService +func (c *AppRunner) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { + req, out := c.CreateServiceRequest(input) + return out, req.Send() +} + +// CreateServiceWithContext is the same as CreateService with the addition of +// the ability to pass a context and additional request options. +// +// See CreateService 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 *AppRunner) CreateServiceWithContext(ctx aws.Context, input *CreateServiceInput, opts ...request.Option) (*CreateServiceOutput, error) { + req, out := c.CreateServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteAutoScalingConfiguration = "DeleteAutoScalingConfiguration" + +// DeleteAutoScalingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAutoScalingConfiguration 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 DeleteAutoScalingConfiguration for more information on using the DeleteAutoScalingConfiguration +// 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 DeleteAutoScalingConfigurationRequest method. +// req, resp := client.DeleteAutoScalingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration +func (c *AppRunner) DeleteAutoScalingConfigurationRequest(input *DeleteAutoScalingConfigurationInput) (req *request.Request, output *DeleteAutoScalingConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteAutoScalingConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteAutoScalingConfigurationInput{} + } + + output = &DeleteAutoScalingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAutoScalingConfiguration API operation for AWS App Runner. +// +// Delete an AWS App Runner automatic scaling configuration resource. You can +// delete a specific revision or the latest active revision. You can't delete +// a configuration that's used by one or more App Runner services. +// +// 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 App Runner's +// API operation DeleteAutoScalingConfiguration for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration +func (c *AppRunner) DeleteAutoScalingConfiguration(input *DeleteAutoScalingConfigurationInput) (*DeleteAutoScalingConfigurationOutput, error) { + req, out := c.DeleteAutoScalingConfigurationRequest(input) + return out, req.Send() +} + +// DeleteAutoScalingConfigurationWithContext is the same as DeleteAutoScalingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAutoScalingConfiguration 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 *AppRunner) DeleteAutoScalingConfigurationWithContext(ctx aws.Context, input *DeleteAutoScalingConfigurationInput, opts ...request.Option) (*DeleteAutoScalingConfigurationOutput, error) { + req, out := c.DeleteAutoScalingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteConnection = "DeleteConnection" + +// DeleteConnectionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConnection 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 DeleteConnection for more information on using the DeleteConnection +// 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 DeleteConnectionRequest method. +// req, resp := client.DeleteConnectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection +func (c *AppRunner) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput) { + op := &request.Operation{ + Name: opDeleteConnection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteConnectionInput{} + } + + output = &DeleteConnectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConnection API operation for AWS App Runner. +// +// Delete an AWS App Runner connection. You must first ensure that there are +// no running App Runner services that use this connection. If there are any, +// the DeleteConnection action fails. +// +// 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 App Runner's +// API operation DeleteConnection for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection +func (c *AppRunner) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error) { + req, out := c.DeleteConnectionRequest(input) + return out, req.Send() +} + +// DeleteConnectionWithContext is the same as DeleteConnection with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteConnection 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 *AppRunner) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error) { + req, out := c.DeleteConnectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteService = "DeleteService" + +// DeleteServiceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteService 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 DeleteService for more information on using the DeleteService +// 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 DeleteServiceRequest method. +// req, resp := client.DeleteServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService +func (c *AppRunner) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Request, output *DeleteServiceOutput) { + op := &request.Operation{ + Name: opDeleteService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteServiceInput{} + } + + output = &DeleteServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteService API operation for AWS App Runner. +// +// Delete an AWS App Runner service. +// +// This is an asynchronous operation. On a successful call, you can use the +// returned OperationId and the ListOperations call to track the operation's +// progress. +// +// 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 App Runner's +// API operation DeleteService for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService +func (c *AppRunner) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { + req, out := c.DeleteServiceRequest(input) + return out, req.Send() +} + +// DeleteServiceWithContext is the same as DeleteService with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteService 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 *AppRunner) DeleteServiceWithContext(ctx aws.Context, input *DeleteServiceInput, opts ...request.Option) (*DeleteServiceOutput, error) { + req, out := c.DeleteServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeAutoScalingConfiguration = "DescribeAutoScalingConfiguration" + +// DescribeAutoScalingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAutoScalingConfiguration 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 DescribeAutoScalingConfiguration for more information on using the DescribeAutoScalingConfiguration +// 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 DescribeAutoScalingConfigurationRequest method. +// req, resp := client.DescribeAutoScalingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration +func (c *AppRunner) DescribeAutoScalingConfigurationRequest(input *DescribeAutoScalingConfigurationInput) (req *request.Request, output *DescribeAutoScalingConfigurationOutput) { + op := &request.Operation{ + Name: opDescribeAutoScalingConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAutoScalingConfigurationInput{} + } + + output = &DescribeAutoScalingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAutoScalingConfiguration API operation for AWS App Runner. +// +// Return a full description of an AWS App Runner automatic scaling configuration +// resource. +// +// 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 App Runner's +// API operation DescribeAutoScalingConfiguration for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration +func (c *AppRunner) DescribeAutoScalingConfiguration(input *DescribeAutoScalingConfigurationInput) (*DescribeAutoScalingConfigurationOutput, error) { + req, out := c.DescribeAutoScalingConfigurationRequest(input) + return out, req.Send() +} + +// DescribeAutoScalingConfigurationWithContext is the same as DescribeAutoScalingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAutoScalingConfiguration 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 *AppRunner) DescribeAutoScalingConfigurationWithContext(ctx aws.Context, input *DescribeAutoScalingConfigurationInput, opts ...request.Option) (*DescribeAutoScalingConfigurationOutput, error) { + req, out := c.DescribeAutoScalingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeCustomDomains = "DescribeCustomDomains" + +// DescribeCustomDomainsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCustomDomains 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 DescribeCustomDomains for more information on using the DescribeCustomDomains +// 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 DescribeCustomDomainsRequest method. +// req, resp := client.DescribeCustomDomainsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains +func (c *AppRunner) DescribeCustomDomainsRequest(input *DescribeCustomDomainsInput) (req *request.Request, output *DescribeCustomDomainsOutput) { + op := &request.Operation{ + Name: opDescribeCustomDomains, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeCustomDomainsInput{} + } + + output = &DescribeCustomDomainsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCustomDomains API operation for AWS App Runner. +// +// Return a description of custom domain names that are associated with an AWS +// App Runner service. +// +// 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 App Runner's +// API operation DescribeCustomDomains for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains +func (c *AppRunner) DescribeCustomDomains(input *DescribeCustomDomainsInput) (*DescribeCustomDomainsOutput, error) { + req, out := c.DescribeCustomDomainsRequest(input) + return out, req.Send() +} + +// DescribeCustomDomainsWithContext is the same as DescribeCustomDomains with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCustomDomains 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 *AppRunner) DescribeCustomDomainsWithContext(ctx aws.Context, input *DescribeCustomDomainsInput, opts ...request.Option) (*DescribeCustomDomainsOutput, error) { + req, out := c.DescribeCustomDomainsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeCustomDomainsPages iterates over the pages of a DescribeCustomDomains operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeCustomDomains 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 DescribeCustomDomains operation. +// pageNum := 0 +// err := client.DescribeCustomDomainsPages(params, +// func(page *apprunner.DescribeCustomDomainsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppRunner) DescribeCustomDomainsPages(input *DescribeCustomDomainsInput, fn func(*DescribeCustomDomainsOutput, bool) bool) error { + return c.DescribeCustomDomainsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeCustomDomainsPagesWithContext same as DescribeCustomDomainsPages 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 *AppRunner) DescribeCustomDomainsPagesWithContext(ctx aws.Context, input *DescribeCustomDomainsInput, fn func(*DescribeCustomDomainsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeCustomDomainsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeCustomDomainsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeCustomDomainsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeService = "DescribeService" + +// DescribeServiceRequest generates a "aws/request.Request" representing the +// client's request for the DescribeService 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 DescribeService for more information on using the DescribeService +// 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 DescribeServiceRequest method. +// req, resp := client.DescribeServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService +func (c *AppRunner) DescribeServiceRequest(input *DescribeServiceInput) (req *request.Request, output *DescribeServiceOutput) { + op := &request.Operation{ + Name: opDescribeService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeServiceInput{} + } + + output = &DescribeServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeService API operation for AWS App Runner. +// +// Return a full description of an AWS App Runner service. +// +// 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 App Runner's +// API operation DescribeService for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService +func (c *AppRunner) DescribeService(input *DescribeServiceInput) (*DescribeServiceOutput, error) { + req, out := c.DescribeServiceRequest(input) + return out, req.Send() +} + +// DescribeServiceWithContext is the same as DescribeService with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeService 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 *AppRunner) DescribeServiceWithContext(ctx aws.Context, input *DescribeServiceInput, opts ...request.Option) (*DescribeServiceOutput, error) { + req, out := c.DescribeServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateCustomDomain = "DisassociateCustomDomain" + +// DisassociateCustomDomainRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateCustomDomain 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 DisassociateCustomDomain for more information on using the DisassociateCustomDomain +// 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 DisassociateCustomDomainRequest method. +// req, resp := client.DisassociateCustomDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain +func (c *AppRunner) DisassociateCustomDomainRequest(input *DisassociateCustomDomainInput) (req *request.Request, output *DisassociateCustomDomainOutput) { + op := &request.Operation{ + Name: opDisassociateCustomDomain, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateCustomDomainInput{} + } + + output = &DisassociateCustomDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateCustomDomain API operation for AWS App Runner. +// +// Disassociate a custom domain name from an AWS App Runner service. +// +// Certificates tracking domain validity are associated with a custom domain +// and are stored in AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide). +// These certificates aren't deleted as part of this action. App Runner delays +// certificate deletion for 30 days after a domain is disassociated from your +// service. +// +// 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 App Runner's +// API operation DisassociateCustomDomain for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain +func (c *AppRunner) DisassociateCustomDomain(input *DisassociateCustomDomainInput) (*DisassociateCustomDomainOutput, error) { + req, out := c.DisassociateCustomDomainRequest(input) + return out, req.Send() +} + +// DisassociateCustomDomainWithContext is the same as DisassociateCustomDomain with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateCustomDomain 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 *AppRunner) DisassociateCustomDomainWithContext(ctx aws.Context, input *DisassociateCustomDomainInput, opts ...request.Option) (*DisassociateCustomDomainOutput, error) { + req, out := c.DisassociateCustomDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAutoScalingConfigurations = "ListAutoScalingConfigurations" + +// ListAutoScalingConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListAutoScalingConfigurations 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 ListAutoScalingConfigurations for more information on using the ListAutoScalingConfigurations +// 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 ListAutoScalingConfigurationsRequest method. +// req, resp := client.ListAutoScalingConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations +func (c *AppRunner) ListAutoScalingConfigurationsRequest(input *ListAutoScalingConfigurationsInput) (req *request.Request, output *ListAutoScalingConfigurationsOutput) { + op := &request.Operation{ + Name: opListAutoScalingConfigurations, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAutoScalingConfigurationsInput{} + } + + output = &ListAutoScalingConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAutoScalingConfigurations API operation for AWS App Runner. +// +// Returns a list of AWS App Runner automatic scaling configurations in your +// AWS account. You can query the revisions for a specific configuration name +// or the revisions for all configurations in your account. You can optionally +// query only the latest revision of each requested name. +// +// 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 App Runner's +// API operation ListAutoScalingConfigurations for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations +func (c *AppRunner) ListAutoScalingConfigurations(input *ListAutoScalingConfigurationsInput) (*ListAutoScalingConfigurationsOutput, error) { + req, out := c.ListAutoScalingConfigurationsRequest(input) + return out, req.Send() +} + +// ListAutoScalingConfigurationsWithContext is the same as ListAutoScalingConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See ListAutoScalingConfigurations 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 *AppRunner) ListAutoScalingConfigurationsWithContext(ctx aws.Context, input *ListAutoScalingConfigurationsInput, opts ...request.Option) (*ListAutoScalingConfigurationsOutput, error) { + req, out := c.ListAutoScalingConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAutoScalingConfigurationsPages iterates over the pages of a ListAutoScalingConfigurations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAutoScalingConfigurations 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 ListAutoScalingConfigurations operation. +// pageNum := 0 +// err := client.ListAutoScalingConfigurationsPages(params, +// func(page *apprunner.ListAutoScalingConfigurationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppRunner) ListAutoScalingConfigurationsPages(input *ListAutoScalingConfigurationsInput, fn func(*ListAutoScalingConfigurationsOutput, bool) bool) error { + return c.ListAutoScalingConfigurationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAutoScalingConfigurationsPagesWithContext same as ListAutoScalingConfigurationsPages 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 *AppRunner) ListAutoScalingConfigurationsPagesWithContext(ctx aws.Context, input *ListAutoScalingConfigurationsInput, fn func(*ListAutoScalingConfigurationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAutoScalingConfigurationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAutoScalingConfigurationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAutoScalingConfigurationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListConnections = "ListConnections" + +// ListConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListConnections 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 ListConnections for more information on using the ListConnections +// 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 ListConnectionsRequest method. +// req, resp := client.ListConnectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections +func (c *AppRunner) ListConnectionsRequest(input *ListConnectionsInput) (req *request.Request, output *ListConnectionsOutput) { + op := &request.Operation{ + Name: opListConnections, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListConnectionsInput{} + } + + output = &ListConnectionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListConnections API operation for AWS App Runner. +// +// Returns a list of AWS App Runner connections that are associated with your +// AWS account. +// +// 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 App Runner's +// API operation ListConnections for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections +func (c *AppRunner) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) { + req, out := c.ListConnectionsRequest(input) + return out, req.Send() +} + +// ListConnectionsWithContext is the same as ListConnections with the addition of +// the ability to pass a context and additional request options. +// +// See ListConnections 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 *AppRunner) ListConnectionsWithContext(ctx aws.Context, input *ListConnectionsInput, opts ...request.Option) (*ListConnectionsOutput, error) { + req, out := c.ListConnectionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListConnectionsPages iterates over the pages of a ListConnections operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListConnections 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 ListConnections operation. +// pageNum := 0 +// err := client.ListConnectionsPages(params, +// func(page *apprunner.ListConnectionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppRunner) ListConnectionsPages(input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool) error { + return c.ListConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListConnectionsPagesWithContext same as ListConnectionsPages 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 *AppRunner) ListConnectionsPagesWithContext(ctx aws.Context, input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListConnectionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListConnectionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListConnectionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListOperations = "ListOperations" + +// ListOperationsRequest generates a "aws/request.Request" representing the +// client's request for the ListOperations 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 ListOperations for more information on using the ListOperations +// 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 ListOperationsRequest method. +// req, resp := client.ListOperationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations +func (c *AppRunner) ListOperationsRequest(input *ListOperationsInput) (req *request.Request, output *ListOperationsOutput) { + op := &request.Operation{ + Name: opListOperations, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListOperationsInput{} + } + + output = &ListOperationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListOperations API operation for AWS App Runner. +// +// Return a list of operations that occurred on an AWS App Runner service. +// +// The resulting list of OperationSummary objects is sorted in reverse chronological +// order. The first object on the list represents the last started operation. +// +// 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 App Runner's +// API operation ListOperations for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations +func (c *AppRunner) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { + req, out := c.ListOperationsRequest(input) + return out, req.Send() +} + +// ListOperationsWithContext is the same as ListOperations with the addition of +// the ability to pass a context and additional request options. +// +// See ListOperations 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 *AppRunner) ListOperationsWithContext(ctx aws.Context, input *ListOperationsInput, opts ...request.Option) (*ListOperationsOutput, error) { + req, out := c.ListOperationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListOperationsPages iterates over the pages of a ListOperations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListOperations 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 ListOperations operation. +// pageNum := 0 +// err := client.ListOperationsPages(params, +// func(page *apprunner.ListOperationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppRunner) ListOperationsPages(input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool) error { + return c.ListOperationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListOperationsPagesWithContext same as ListOperationsPages 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 *AppRunner) ListOperationsPagesWithContext(ctx aws.Context, input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListOperationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListOperationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListOperationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListServices = "ListServices" + +// ListServicesRequest generates a "aws/request.Request" representing the +// client's request for the ListServices 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 ListServices for more information on using the ListServices +// 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 ListServicesRequest method. +// req, resp := client.ListServicesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices +func (c *AppRunner) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { + op := &request.Operation{ + Name: opListServices, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListServicesInput{} + } + + output = &ListServicesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListServices API operation for AWS App Runner. +// +// Returns a list of running AWS App Runner services in your AWS account. +// +// 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 App Runner's +// API operation ListServices for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices +func (c *AppRunner) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { + req, out := c.ListServicesRequest(input) + return out, req.Send() +} + +// ListServicesWithContext is the same as ListServices with the addition of +// the ability to pass a context and additional request options. +// +// See ListServices 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 *AppRunner) ListServicesWithContext(ctx aws.Context, input *ListServicesInput, opts ...request.Option) (*ListServicesOutput, error) { + req, out := c.ListServicesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListServicesPages iterates over the pages of a ListServices operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServices 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 ListServices operation. +// pageNum := 0 +// err := client.ListServicesPages(params, +// func(page *apprunner.ListServicesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppRunner) ListServicesPages(input *ListServicesInput, fn func(*ListServicesOutput, bool) bool) error { + return c.ListServicesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListServicesPagesWithContext same as ListServicesPages 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 *AppRunner) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesInput, fn func(*ListServicesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServicesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServicesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServicesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource +// 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 ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource +func (c *AppRunner) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS App Runner. +// +// List tags that are associated with for an AWS App Runner resource. The response +// contains a list of tag key-value pairs. +// +// 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 App Runner's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource +func (c *AppRunner) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource 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 *AppRunner) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPauseService = "PauseService" + +// PauseServiceRequest generates a "aws/request.Request" representing the +// client's request for the PauseService 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 PauseService for more information on using the PauseService +// 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 PauseServiceRequest method. +// req, resp := client.PauseServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService +func (c *AppRunner) PauseServiceRequest(input *PauseServiceInput) (req *request.Request, output *PauseServiceOutput) { + op := &request.Operation{ + Name: opPauseService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PauseServiceInput{} + } + + output = &PauseServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// PauseService API operation for AWS App Runner. +// +// Pause an active AWS App Runner service. App Runner reduces compute capacity +// for the service to zero and loses state (for example, ephemeral storage is +// removed). +// +// This is an asynchronous operation. On a successful call, you can use the +// returned OperationId and the ListOperations call to track the operation's +// progress. +// +// 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 App Runner's +// API operation PauseService for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService +func (c *AppRunner) PauseService(input *PauseServiceInput) (*PauseServiceOutput, error) { + req, out := c.PauseServiceRequest(input) + return out, req.Send() +} + +// PauseServiceWithContext is the same as PauseService with the addition of +// the ability to pass a context and additional request options. +// +// See PauseService 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 *AppRunner) PauseServiceWithContext(ctx aws.Context, input *PauseServiceInput, opts ...request.Option) (*PauseServiceOutput, error) { + req, out := c.PauseServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opResumeService = "ResumeService" + +// ResumeServiceRequest generates a "aws/request.Request" representing the +// client's request for the ResumeService 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 ResumeService for more information on using the ResumeService +// 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 ResumeServiceRequest method. +// req, resp := client.ResumeServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService +func (c *AppRunner) ResumeServiceRequest(input *ResumeServiceInput) (req *request.Request, output *ResumeServiceOutput) { + op := &request.Operation{ + Name: opResumeService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ResumeServiceInput{} + } + + output = &ResumeServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ResumeService API operation for AWS App Runner. +// +// Resume an active AWS App Runner service. App Runner provisions compute capacity +// for the service. +// +// This is an asynchronous operation. On a successful call, you can use the +// returned OperationId and the ListOperations call to track the operation's +// progress. +// +// 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 App Runner's +// API operation ResumeService for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService +func (c *AppRunner) ResumeService(input *ResumeServiceInput) (*ResumeServiceOutput, error) { + req, out := c.ResumeServiceRequest(input) + return out, req.Send() +} + +// ResumeServiceWithContext is the same as ResumeService with the addition of +// the ability to pass a context and additional request options. +// +// See ResumeService 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 *AppRunner) ResumeServiceWithContext(ctx aws.Context, input *ResumeServiceInput, opts ...request.Option) (*ResumeServiceOutput, error) { + req, out := c.ResumeServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartDeployment = "StartDeployment" + +// StartDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the StartDeployment 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 StartDeployment for more information on using the StartDeployment +// 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 StartDeploymentRequest method. +// req, resp := client.StartDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment +func (c *AppRunner) StartDeploymentRequest(input *StartDeploymentInput) (req *request.Request, output *StartDeploymentOutput) { + op := &request.Operation{ + Name: opStartDeployment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDeploymentInput{} + } + + output = &StartDeploymentOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDeployment API operation for AWS App Runner. +// +// Initiate a manual deployment of the latest commit in a source code repository +// or the latest image in a source image repository to an AWS App Runner service. +// +// For a source code repository, App Runner retrieves the commit and builds +// a Docker image. For a source image repository, App Runner retrieves the latest +// Docker image. In both cases, App Runner then deploys the new image to your +// service and starts a new container instance. +// +// This is an asynchronous operation. On a successful call, you can use the +// returned OperationId and the ListOperations call to track the operation's +// progress. +// +// 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 App Runner's +// API operation StartDeployment for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment +func (c *AppRunner) StartDeployment(input *StartDeploymentInput) (*StartDeploymentOutput, error) { + req, out := c.StartDeploymentRequest(input) + return out, req.Send() +} + +// StartDeploymentWithContext is the same as StartDeployment with the addition of +// the ability to pass a context and additional request options. +// +// See StartDeployment 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 *AppRunner) StartDeploymentWithContext(ctx aws.Context, input *StartDeploymentInput, opts ...request.Option) (*StartDeploymentOutput, error) { + req, out := c.StartDeploymentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource 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 TagResource for more information on using the TagResource +// 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 TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource +func (c *AppRunner) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS App Runner. +// +// Add tags to, or update the tag values of, an App Runner resource. A tag is +// a key-value pair. +// +// 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 App Runner's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource +func (c *AppRunner) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource 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 *AppRunner) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource 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 UntagResource for more information on using the UntagResource +// 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 UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource +func (c *AppRunner) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS App Runner. +// +// Remove tags from an App Runner resource. +// +// 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 App Runner's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource +func (c *AppRunner) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource 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 *AppRunner) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateService = "UpdateService" + +// UpdateServiceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateService 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 UpdateService for more information on using the UpdateService +// 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 UpdateServiceRequest method. +// req, resp := client.UpdateServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService +func (c *AppRunner) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { + op := &request.Operation{ + Name: opUpdateService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceInput{} + } + + output = &UpdateServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateService API operation for AWS App Runner. +// +// Update an AWS App Runner service. You can update the source configuration +// and instance configuration of the service. You can also update the ARN of +// the auto scaling configuration resource that's associated with the service. +// However, you can't change the name or the encryption configuration of the +// service. These can be set only when you create the service. +// +// To update the tags applied to your service, use the separate actions TagResource +// and UntagResource. +// +// This is an asynchronous operation. On a successful call, you can use the +// returned OperationId and the ListOperations call to track the operation's +// progress. +// +// 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 App Runner's +// API operation UpdateService for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +// +// * ResourceNotFoundException +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +// +// * InvalidStateException +// You can't perform this action when the resource is in its current state. +// +// * InternalServiceErrorException +// An unexpected service exception occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService +func (c *AppRunner) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { + req, out := c.UpdateServiceRequest(input) + return out, req.Send() +} + +// UpdateServiceWithContext is the same as UpdateService with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateService 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 *AppRunner) UpdateServiceWithContext(ctx aws.Context, input *UpdateServiceInput, opts ...request.Option) (*UpdateServiceOutput, error) { + req, out := c.UpdateServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AssociateCustomDomainInput struct { + _ struct{} `type:"structure"` + + // A custom domain endpoint to associate. Specify a root domain (for example, + // example.com), a subdomain (for example, login.example.com or admin.login.example.com), + // or a wildcard (for example, *.example.com). + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // Set to true to associate the subdomain www.DomainName with the App Runner + // service in addition to the base domain. + // + // Default: true + EnableWWWSubdomain *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // associate a custom domain name with. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateCustomDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateCustomDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateCustomDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateCustomDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *AssociateCustomDomainInput) SetDomainName(v string) *AssociateCustomDomainInput { + s.DomainName = &v + return s +} + +// SetEnableWWWSubdomain sets the EnableWWWSubdomain field's value. +func (s *AssociateCustomDomainInput) SetEnableWWWSubdomain(v bool) *AssociateCustomDomainInput { + s.EnableWWWSubdomain = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *AssociateCustomDomainInput) SetServiceArn(v string) *AssociateCustomDomainInput { + s.ServiceArn = &v + return s +} + +type AssociateCustomDomainOutput struct { + _ struct{} `type:"structure"` + + // A description of the domain name that's being associated. + // + // CustomDomain is a required field + CustomDomain *CustomDomain `type:"structure" required:"true"` + + // The App Runner subdomain of the App Runner service. The custom domain name + // is mapped to this target name. + // + // DNSTarget is a required field + DNSTarget *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the App Runner service with which a custom + // domain name is associated. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateCustomDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateCustomDomainOutput) GoString() string { + return s.String() +} + +// SetCustomDomain sets the CustomDomain field's value. +func (s *AssociateCustomDomainOutput) SetCustomDomain(v *CustomDomain) *AssociateCustomDomainOutput { + s.CustomDomain = v + return s +} + +// SetDNSTarget sets the DNSTarget field's value. +func (s *AssociateCustomDomainOutput) SetDNSTarget(v string) *AssociateCustomDomainOutput { + s.DNSTarget = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *AssociateCustomDomainOutput) SetServiceArn(v string) *AssociateCustomDomainOutput { + s.ServiceArn = &v + return s +} + +// Describes resources needed to authenticate access to some source repositories. +// The specific resource depends on the repository provider. +type AuthenticationConfiguration struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the IAM role that grants the App Runner + // service access to a source repository. It's required for ECR image repositories + // (but not for ECR Public repositories). + AccessRoleArn *string `min:"29" type:"string"` + + // The Amazon Resource Name (ARN) of the App Runner connection that enables + // the App Runner service to connect to a source repository. It's required for + // GitHub code repositories. + ConnectionArn *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AuthenticationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthenticationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AuthenticationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AuthenticationConfiguration"} + if s.AccessRoleArn != nil && len(*s.AccessRoleArn) < 29 { + invalidParams.Add(request.NewErrParamMinLen("AccessRoleArn", 29)) + } + if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccessRoleArn sets the AccessRoleArn field's value. +func (s *AuthenticationConfiguration) SetAccessRoleArn(v string) *AuthenticationConfiguration { + s.AccessRoleArn = &v + return s +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *AuthenticationConfiguration) SetConnectionArn(v string) *AuthenticationConfiguration { + s.ConnectionArn = &v + return s +} + +// Describes an AWS App Runner automatic scaling configuration resource. Multiple +// revisions of a configuration have the same AutoScalingConfigurationName and +// different AutoScalingConfigurationRevision values. +// +// A higher MinSize increases the spread of your App Runner service over more +// Availability Zones in the AWS Region. The tradeoff is a higher minimal cost. +// +// A lower MaxSize controls your cost. The tradeoff is lower responsiveness +// during peak demand. +type AutoScalingConfiguration struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of this auto scaling configuration. + AutoScalingConfigurationArn *string `min:"1" type:"string"` + + // The customer-provided auto scaling configuration name. It can be used in + // multiple revisions of a configuration. + AutoScalingConfigurationName *string `min:"4" type:"string"` + + // The revision of this auto scaling configuration. It's unique among all the + // active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName. + AutoScalingConfigurationRevision *int64 `type:"integer"` + + // The time when the auto scaling configuration was created. It's in Unix time + // stamp format. + CreatedAt *time.Time `type:"timestamp"` + + // The time when the auto scaling configuration was deleted. It's in Unix time + // stamp format. + DeletedAt *time.Time `type:"timestamp"` + + // It's set to true for the configuration with the highest Revision among all + // configurations that share the same Name. It's set to false otherwise. + Latest *bool `type:"boolean"` + + // The maximum number of concurrent requests that an instance processes. If + // the number of concurrent requests exceeds this limit, App Runner scales the + // service up. + MaxConcurrency *int64 `type:"integer"` + + // The maximum number of instances that a service scales up to. At most MaxSize + // instances actively serve traffic for your service. + MaxSize *int64 `type:"integer"` + + // The minimum number of instances that App Runner provisions for a service. + // The service always has at least MinSize provisioned instances. Some of them + // actively serve traffic. The rest of them (provisioned and inactive instances) + // are a cost-effective compute capacity reserve and are ready to be quickly + // activated. You pay for memory usage of all the provisioned instances. You + // pay for CPU usage of only the active subset. + // + // App Runner temporarily doubles the number of provisioned instances during + // deployments, to maintain the same capacity for both old and new code. + MinSize *int64 `type:"integer"` + + // The current state of the auto scaling configuration. If the status of a configuration + // revision is INACTIVE, it was deleted and can't be used. Inactive configuration + // revisions are permanently removed some time after they are deleted. + Status *string `type:"string" enum:"AutoScalingConfigurationStatus"` +} + +// String returns the string representation +func (s AutoScalingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoScalingConfiguration) GoString() string { + return s.String() +} + +// SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. +func (s *AutoScalingConfiguration) SetAutoScalingConfigurationArn(v string) *AutoScalingConfiguration { + s.AutoScalingConfigurationArn = &v + return s +} + +// SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. +func (s *AutoScalingConfiguration) SetAutoScalingConfigurationName(v string) *AutoScalingConfiguration { + s.AutoScalingConfigurationName = &v + return s +} + +// SetAutoScalingConfigurationRevision sets the AutoScalingConfigurationRevision field's value. +func (s *AutoScalingConfiguration) SetAutoScalingConfigurationRevision(v int64) *AutoScalingConfiguration { + s.AutoScalingConfigurationRevision = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AutoScalingConfiguration) SetCreatedAt(v time.Time) *AutoScalingConfiguration { + s.CreatedAt = &v + return s +} + +// SetDeletedAt sets the DeletedAt field's value. +func (s *AutoScalingConfiguration) SetDeletedAt(v time.Time) *AutoScalingConfiguration { + s.DeletedAt = &v + return s +} + +// SetLatest sets the Latest field's value. +func (s *AutoScalingConfiguration) SetLatest(v bool) *AutoScalingConfiguration { + s.Latest = &v + return s +} + +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *AutoScalingConfiguration) SetMaxConcurrency(v int64) *AutoScalingConfiguration { + s.MaxConcurrency = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *AutoScalingConfiguration) SetMaxSize(v int64) *AutoScalingConfiguration { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *AutoScalingConfiguration) SetMinSize(v int64) *AutoScalingConfiguration { + s.MinSize = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AutoScalingConfiguration) SetStatus(v string) *AutoScalingConfiguration { + s.Status = &v + return s +} + +// Provides summary information about an AWS App Runner automatic scaling configuration +// resource. +// +// This type contains limited information about an auto scaling configuration. +// It includes only identification information, without configuration details. +// It's returned by the ListAutoScalingConfigurations action. Complete configuration +// information is returned by the CreateAutoScalingConfiguration, DescribeAutoScalingConfiguration, +// and DeleteAutoScalingConfiguration actions using the AutoScalingConfiguration +// type. +type AutoScalingConfigurationSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of this auto scaling configuration. + AutoScalingConfigurationArn *string `min:"1" type:"string"` + + // The customer-provided auto scaling configuration name. It can be used in + // multiple revisions of a configuration. + AutoScalingConfigurationName *string `min:"4" type:"string"` + + // The revision of this auto scaling configuration. It's unique among all the + // active configurations ("Status": "ACTIVE") with the same AutoScalingConfigurationName. + AutoScalingConfigurationRevision *int64 `type:"integer"` +} + +// String returns the string representation +func (s AutoScalingConfigurationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoScalingConfigurationSummary) GoString() string { + return s.String() +} + +// SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. +func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationArn(v string) *AutoScalingConfigurationSummary { + s.AutoScalingConfigurationArn = &v + return s +} + +// SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. +func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationName(v string) *AutoScalingConfigurationSummary { + s.AutoScalingConfigurationName = &v + return s +} + +// SetAutoScalingConfigurationRevision sets the AutoScalingConfigurationRevision field's value. +func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationRevision(v int64) *AutoScalingConfigurationSummary { + s.AutoScalingConfigurationRevision = &v + return s +} + +// Describes a certificate CNAME record to add to your DNS. For more information, +// see AssociateCustomDomain (https://docs.aws.amazon.com/apprunner/latest/api/API_AssociateCustomDomain.html). +type CertificateValidationRecord struct { + _ struct{} `type:"structure"` + + // The certificate CNAME record name. + Name *string `type:"string"` + + // The current state of the certificate CNAME record validation. It should change + // to SUCCESS after App Runner completes validation with your DNS. + Status *string `type:"string" enum:"CertificateValidationRecordStatus"` + + // The record type, always CNAME. + Type *string `type:"string"` + + // The certificate CNAME record value. + Value *string `type:"string"` +} + +// String returns the string representation +func (s CertificateValidationRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateValidationRecord) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *CertificateValidationRecord) SetName(v string) *CertificateValidationRecord { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CertificateValidationRecord) SetStatus(v string) *CertificateValidationRecord { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *CertificateValidationRecord) SetType(v string) *CertificateValidationRecord { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *CertificateValidationRecord) SetValue(v string) *CertificateValidationRecord { + s.Value = &v + return s +} + +// Describes the configuration that AWS App Runner uses to build and run an +// App Runner service from a source code repository. +type CodeConfiguration struct { + _ struct{} `type:"structure"` + + // The basic configuration for building and running the App Runner service. + // Use it to quickly launch an App Runner service without providing a apprunner.yaml + // file in the source code repository (or ignoring the file if it exists). + CodeConfigurationValues *CodeConfigurationValues `type:"structure"` + + // The source of the App Runner configuration. Values are interpreted as follows: + // + // * REPOSITORY – App Runner reads configuration values from the apprunner.yaml + // file in the source code repository and ignores CodeConfigurationValues. + // + // * API – App Runner uses configuration values provided in CodeConfigurationValues + // and ignores the apprunner.yaml file in the source code repository. + // + // ConfigurationSource is a required field + ConfigurationSource *string `type:"string" required:"true" enum:"ConfigurationSource"` +} + +// String returns the string representation +func (s CodeConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeConfiguration"} + if s.ConfigurationSource == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSource")) + } + if s.CodeConfigurationValues != nil { + if err := s.CodeConfigurationValues.Validate(); err != nil { + invalidParams.AddNested("CodeConfigurationValues", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeConfigurationValues sets the CodeConfigurationValues field's value. +func (s *CodeConfiguration) SetCodeConfigurationValues(v *CodeConfigurationValues) *CodeConfiguration { + s.CodeConfigurationValues = v + return s +} + +// SetConfigurationSource sets the ConfigurationSource field's value. +func (s *CodeConfiguration) SetConfigurationSource(v string) *CodeConfiguration { + s.ConfigurationSource = &v + return s +} + +// Describes the basic configuration needed for building and running an AWS +// App Runner service. This type doesn't support the full set of possible configuration +// options. Fur full configuration capabilities, use a apprunner.yaml file in +// the source code repository. +type CodeConfigurationValues struct { + _ struct{} `type:"structure"` + + // The command App Runner runs to build your application. + BuildCommand *string `type:"string" sensitive:"true"` + + // The port that your application listens to in the container. + // + // Default: 8080 + Port *string `type:"string"` + + // A runtime environment type for building and running an App Runner service. + // It represents a programming language runtime. + // + // Runtime is a required field + Runtime *string `type:"string" required:"true" enum:"Runtime"` + + // The environment variables that are available to your running App Runner service. + // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved + // for system use and aren't valid. + RuntimeEnvironmentVariables map[string]*string `type:"map"` + + // The command App Runner runs to start your application. + StartCommand *string `type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s CodeConfigurationValues) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeConfigurationValues) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeConfigurationValues) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeConfigurationValues"} + if s.Runtime == nil { + invalidParams.Add(request.NewErrParamRequired("Runtime")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBuildCommand sets the BuildCommand field's value. +func (s *CodeConfigurationValues) SetBuildCommand(v string) *CodeConfigurationValues { + s.BuildCommand = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CodeConfigurationValues) SetPort(v string) *CodeConfigurationValues { + s.Port = &v + return s +} + +// SetRuntime sets the Runtime field's value. +func (s *CodeConfigurationValues) SetRuntime(v string) *CodeConfigurationValues { + s.Runtime = &v + return s +} + +// SetRuntimeEnvironmentVariables sets the RuntimeEnvironmentVariables field's value. +func (s *CodeConfigurationValues) SetRuntimeEnvironmentVariables(v map[string]*string) *CodeConfigurationValues { + s.RuntimeEnvironmentVariables = v + return s +} + +// SetStartCommand sets the StartCommand field's value. +func (s *CodeConfigurationValues) SetStartCommand(v string) *CodeConfigurationValues { + s.StartCommand = &v + return s +} + +// Describes a source code repository. +type CodeRepository struct { + _ struct{} `type:"structure"` + + // Configuration for building and running the service from a source code repository. + CodeConfiguration *CodeConfiguration `type:"structure"` + + // The location of the repository that contains the source code. + // + // RepositoryUrl is a required field + RepositoryUrl *string `type:"string" required:"true"` + + // The version that should be used within the source code repository. + // + // SourceCodeVersion is a required field + SourceCodeVersion *SourceCodeVersion `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CodeRepository) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeRepository) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeRepository) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeRepository"} + if s.RepositoryUrl == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryUrl")) + } + if s.SourceCodeVersion == nil { + invalidParams.Add(request.NewErrParamRequired("SourceCodeVersion")) + } + if s.CodeConfiguration != nil { + if err := s.CodeConfiguration.Validate(); err != nil { + invalidParams.AddNested("CodeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SourceCodeVersion != nil { + if err := s.SourceCodeVersion.Validate(); err != nil { + invalidParams.AddNested("SourceCodeVersion", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeConfiguration sets the CodeConfiguration field's value. +func (s *CodeRepository) SetCodeConfiguration(v *CodeConfiguration) *CodeRepository { + s.CodeConfiguration = v + return s +} + +// SetRepositoryUrl sets the RepositoryUrl field's value. +func (s *CodeRepository) SetRepositoryUrl(v string) *CodeRepository { + s.RepositoryUrl = &v + return s +} + +// SetSourceCodeVersion sets the SourceCodeVersion field's value. +func (s *CodeRepository) SetSourceCodeVersion(v *SourceCodeVersion) *CodeRepository { + s.SourceCodeVersion = v + return s +} + +// Describes an AWS App Runner connection resource. +type Connection struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of this connection. + ConnectionArn *string `min:"1" type:"string"` + + // The customer-provided connection name. + ConnectionName *string `min:"4" type:"string"` + + // The App Runner connection creation time, expressed as a Unix time stamp. + CreatedAt *time.Time `type:"timestamp"` + + // The source repository provider. + ProviderType *string `type:"string" enum:"ProviderType"` + + // The current state of the App Runner connection. When the state is AVAILABLE, + // you can use the connection to create an App Runner service. + Status *string `type:"string" enum:"ConnectionStatus"` +} + +// String returns the string representation +func (s Connection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Connection) GoString() string { + return s.String() +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *Connection) SetConnectionArn(v string) *Connection { + s.ConnectionArn = &v + return s +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *Connection) SetConnectionName(v string) *Connection { + s.ConnectionName = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Connection) SetCreatedAt(v time.Time) *Connection { + s.CreatedAt = &v + return s +} + +// SetProviderType sets the ProviderType field's value. +func (s *Connection) SetProviderType(v string) *Connection { + s.ProviderType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Connection) SetStatus(v string) *Connection { + s.Status = &v + return s +} + +// Provides summary information about an AWS App Runner connection resource. +type ConnectionSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of this connection. + ConnectionArn *string `min:"1" type:"string"` + + // The customer-provided connection name. + ConnectionName *string `min:"4" type:"string"` + + // The App Runner connection creation time, expressed as a Unix time stamp. + CreatedAt *time.Time `type:"timestamp"` + + // The source repository provider. + ProviderType *string `type:"string" enum:"ProviderType"` + + // The current state of the App Runner connection. When the state is AVAILABLE, + // you can use the connection to create an App Runner service. + Status *string `type:"string" enum:"ConnectionStatus"` +} + +// String returns the string representation +func (s ConnectionSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConnectionSummary) GoString() string { + return s.String() +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *ConnectionSummary) SetConnectionArn(v string) *ConnectionSummary { + s.ConnectionArn = &v + return s +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *ConnectionSummary) SetConnectionName(v string) *ConnectionSummary { + s.ConnectionName = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *ConnectionSummary) SetCreatedAt(v time.Time) *ConnectionSummary { + s.CreatedAt = &v + return s +} + +// SetProviderType sets the ProviderType field's value. +func (s *ConnectionSummary) SetProviderType(v string) *ConnectionSummary { + s.ProviderType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ConnectionSummary) SetStatus(v string) *ConnectionSummary { + s.Status = &v + return s +} + +type CreateAutoScalingConfigurationInput struct { + _ struct{} `type:"structure"` + + // A name for the auto scaling configuration. When you use it for the first + // time in an AWS Region, App Runner creates revision number 1 of this name. + // When you use the same name in subsequent calls, App Runner creates incremental + // revisions of the configuration. + // + // AutoScalingConfigurationName is a required field + AutoScalingConfigurationName *string `min:"4" type:"string" required:"true"` + + // The maximum number of concurrent requests that you want an instance to process. + // If the number of concurrent requests exceeds this limit, App Runner scales + // up your service. + // + // Default: 100 + MaxConcurrency *int64 `min:"1" type:"integer"` + + // The maximum number of instances that your service scales up to. At most MaxSize + // instances actively serve traffic for your service. + // + // Default: 25 + MaxSize *int64 `min:"1" type:"integer"` + + // The minimum number of instances that App Runner provisions for your service. + // The service always has at least MinSize provisioned instances. Some of them + // actively serve traffic. The rest of them (provisioned and inactive instances) + // are a cost-effective compute capacity reserve and are ready to be quickly + // activated. You pay for memory usage of all the provisioned instances. You + // pay for CPU usage of only the active subset. + // + // App Runner temporarily doubles the number of provisioned instances during + // deployments, to maintain the same capacity for both old and new code. + // + // Default: 1 + MinSize *int64 `min:"1" type:"integer"` + + // A list of metadata items that you can associate with your auto scaling configuration + // resource. A tag is a key-value pair. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateAutoScalingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAutoScalingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAutoScalingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAutoScalingConfigurationInput"} + if s.AutoScalingConfigurationName == nil { + invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationName")) + } + if s.AutoScalingConfigurationName != nil && len(*s.AutoScalingConfigurationName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationName", 4)) + } + if s.MaxConcurrency != nil && *s.MaxConcurrency < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxConcurrency", 1)) + } + if s.MaxSize != nil && *s.MaxSize < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxSize", 1)) + } + if s.MinSize != nil && *s.MinSize < 1 { + invalidParams.Add(request.NewErrParamMinValue("MinSize", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. +func (s *CreateAutoScalingConfigurationInput) SetAutoScalingConfigurationName(v string) *CreateAutoScalingConfigurationInput { + s.AutoScalingConfigurationName = &v + return s +} + +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *CreateAutoScalingConfigurationInput) SetMaxConcurrency(v int64) *CreateAutoScalingConfigurationInput { + s.MaxConcurrency = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *CreateAutoScalingConfigurationInput) SetMaxSize(v int64) *CreateAutoScalingConfigurationInput { + s.MaxSize = &v + return s +} + +// SetMinSize sets the MinSize field's value. +func (s *CreateAutoScalingConfigurationInput) SetMinSize(v int64) *CreateAutoScalingConfigurationInput { + s.MinSize = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAutoScalingConfigurationInput) SetTags(v []*Tag) *CreateAutoScalingConfigurationInput { + s.Tags = v + return s +} + +type CreateAutoScalingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // A description of the App Runner auto scaling configuration that's created + // by this request. + // + // AutoScalingConfiguration is a required field + AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateAutoScalingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAutoScalingConfigurationOutput) GoString() string { + return s.String() +} + +// SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. +func (s *CreateAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *CreateAutoScalingConfigurationOutput { + s.AutoScalingConfiguration = v + return s +} + +type CreateConnectionInput struct { + _ struct{} `type:"structure"` + + // A name for the new connection. It must be unique across all App Runner connections + // for the AWS account in the AWS Region. + // + // ConnectionName is a required field + ConnectionName *string `min:"4" type:"string" required:"true"` + + // The source repository provider. + // + // ProviderType is a required field + ProviderType *string `type:"string" required:"true" enum:"ProviderType"` + + // A list of metadata items that you can associate with your connection resource. + // A tag is a key-value pair. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} + if s.ConnectionName == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionName")) + } + if s.ConnectionName != nil && len(*s.ConnectionName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 4)) + } + if s.ProviderType == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderType")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *CreateConnectionInput) SetConnectionName(v string) *CreateConnectionInput { + s.ConnectionName = &v + return s +} + +// SetProviderType sets the ProviderType field's value. +func (s *CreateConnectionInput) SetProviderType(v string) *CreateConnectionInput { + s.ProviderType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { + s.Tags = v + return s +} + +type CreateConnectionOutput struct { + _ struct{} `type:"structure"` + + // A description of the App Runner connection that's created by this request. + // + // Connection is a required field + Connection *Connection `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConnectionOutput) GoString() string { + return s.String() +} + +// SetConnection sets the Connection field's value. +func (s *CreateConnectionOutput) SetConnection(v *Connection) *CreateConnectionOutput { + s.Connection = v + return s +} + +type CreateServiceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration + // resource that you want to associate with your service. If not provided, App + // Runner associates the latest revision of a default auto scaling configuration. + AutoScalingConfigurationArn *string `min:"1" type:"string"` + + // An optional custom encryption key that App Runner uses to encrypt the copy + // of your source repository that it maintains and your service logs. By default, + // App Runner uses an AWS managed CMK. + EncryptionConfiguration *EncryptionConfiguration `type:"structure"` + + // The settings for the health check that AWS App Runner performs to monitor + // the health of your service. + HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` + + // The runtime configuration of instances (scaling units) of the App Runner + // service. + InstanceConfiguration *InstanceConfiguration `type:"structure"` + + // A name for the new service. It must be unique across all the running App + // Runner services in your AWS account in the AWS Region. + // + // ServiceName is a required field + ServiceName *string `min:"4" type:"string" required:"true"` + + // The source to deploy to the App Runner service. It can be a code or an image + // repository. + // + // SourceConfiguration is a required field + SourceConfiguration *SourceConfiguration `type:"structure" required:"true"` + + // An optional list of metadata items that you can associate with your service + // resource. A tag is a key-value pair. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} + if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) + } + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 4)) + } + if s.SourceConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("SourceConfiguration")) + } + if s.EncryptionConfiguration != nil { + if err := s.EncryptionConfiguration.Validate(); err != nil { + invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.HealthCheckConfiguration != nil { + if err := s.HealthCheckConfiguration.Validate(); err != nil { + invalidParams.AddNested("HealthCheckConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.InstanceConfiguration != nil { + if err := s.InstanceConfiguration.Validate(); err != nil { + invalidParams.AddNested("InstanceConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SourceConfiguration != nil { + if err := s.SourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. +func (s *CreateServiceInput) SetAutoScalingConfigurationArn(v string) *CreateServiceInput { + s.AutoScalingConfigurationArn = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *CreateServiceInput) SetEncryptionConfiguration(v *EncryptionConfiguration) *CreateServiceInput { + s.EncryptionConfiguration = v + return s +} + +// SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. +func (s *CreateServiceInput) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *CreateServiceInput { + s.HealthCheckConfiguration = v + return s +} + +// SetInstanceConfiguration sets the InstanceConfiguration field's value. +func (s *CreateServiceInput) SetInstanceConfiguration(v *InstanceConfiguration) *CreateServiceInput { + s.InstanceConfiguration = v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *CreateServiceInput) SetServiceName(v string) *CreateServiceInput { + s.ServiceName = &v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *CreateServiceInput) SetSourceConfiguration(v *SourceConfiguration) *CreateServiceInput { + s.SourceConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateServiceInput) SetTags(v []*Tag) *CreateServiceInput { + s.Tags = v + return s +} + +type CreateServiceOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the asynchronous operation that this request started. You + // can use it combined with the ListOperations (https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html) + // call to track the operation's progress. + // + // OperationId is a required field + OperationId *string `min:"36" type:"string" required:"true"` + + // A description of the App Runner service that's created by this request. + // + // Service is a required field + Service *Service `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *CreateServiceOutput) SetOperationId(v string) *CreateServiceOutput { + s.OperationId = &v + return s +} + +// SetService sets the Service field's value. +func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { + s.Service = v + return s +} + +// Describes a custom domain that's associated with an AWS App Runner service. +type CustomDomain struct { + _ struct{} `type:"structure"` + + // A list of certificate CNAME records that's used for this domain name. + CertificateValidationRecords []*CertificateValidationRecord `type:"list"` + + // An associated custom domain endpoint. It can be a root domain (for example, + // example.com), a subdomain (for example, login.example.com or admin.login.example.com), + // or a wildcard (for example, *.example.com). + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // When true, the subdomain www.DomainName is associated with the App Runner + // service in addition to the base domain. + // + // EnableWWWSubdomain is a required field + EnableWWWSubdomain *bool `type:"boolean" required:"true"` + + // The current state of the domain name association. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"CustomDomainAssociationStatus"` +} + +// String returns the string representation +func (s CustomDomain) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomDomain) GoString() string { + return s.String() +} + +// SetCertificateValidationRecords sets the CertificateValidationRecords field's value. +func (s *CustomDomain) SetCertificateValidationRecords(v []*CertificateValidationRecord) *CustomDomain { + s.CertificateValidationRecords = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CustomDomain) SetDomainName(v string) *CustomDomain { + s.DomainName = &v + return s +} + +// SetEnableWWWSubdomain sets the EnableWWWSubdomain field's value. +func (s *CustomDomain) SetEnableWWWSubdomain(v bool) *CustomDomain { + s.EnableWWWSubdomain = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CustomDomain) SetStatus(v string) *CustomDomain { + s.Status = &v + return s +} + +type DeleteAutoScalingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner auto scaling configuration + // that you want to delete. + // + // The ARN can be a full auto scaling configuration ARN, or a partial ARN ending + // with either .../name or .../name/revision . If a revision isn't specified, + // the latest active revision is deleted. + // + // AutoScalingConfigurationArn is a required field + AutoScalingConfigurationArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAutoScalingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAutoScalingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAutoScalingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAutoScalingConfigurationInput"} + if s.AutoScalingConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationArn")) + } + if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. +func (s *DeleteAutoScalingConfigurationInput) SetAutoScalingConfigurationArn(v string) *DeleteAutoScalingConfigurationInput { + s.AutoScalingConfigurationArn = &v + return s +} + +type DeleteAutoScalingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // A description of the App Runner auto scaling configuration that this request + // just deleted. + // + // AutoScalingConfiguration is a required field + AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteAutoScalingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAutoScalingConfigurationOutput) GoString() string { + return s.String() +} + +// SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. +func (s *DeleteAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *DeleteAutoScalingConfigurationOutput { + s.AutoScalingConfiguration = v + return s +} + +type DeleteConnectionInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner connection that you want + // to delete. + // + // ConnectionArn is a required field + ConnectionArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} + if s.ConnectionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) + } + if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *DeleteConnectionInput) SetConnectionArn(v string) *DeleteConnectionInput { + s.ConnectionArn = &v + return s +} + +type DeleteConnectionOutput struct { + _ struct{} `type:"structure"` + + // A description of the App Runner connection that this request just deleted. + Connection *Connection `type:"structure"` +} + +// String returns the string representation +func (s DeleteConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConnectionOutput) GoString() string { + return s.String() +} + +// SetConnection sets the Connection field's value. +func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { + s.Connection = v + return s +} + +type DeleteServiceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // delete. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceInput"} + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *DeleteServiceInput) SetServiceArn(v string) *DeleteServiceInput { + s.ServiceArn = &v + return s +} + +type DeleteServiceOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the asynchronous operation that this request started. You + // can use it combined with the ListOperations call to track the operation's + // progress. + // + // OperationId is a required field + OperationId *string `min:"36" type:"string" required:"true"` + + // A description of the App Runner service that this request just deleted. + // + // Service is a required field + Service *Service `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServiceOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *DeleteServiceOutput) SetOperationId(v string) *DeleteServiceOutput { + s.OperationId = &v + return s +} + +// SetService sets the Service field's value. +func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { + s.Service = v + return s +} + +type DescribeAutoScalingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner auto scaling configuration + // that you want a description for. + // + // The ARN can be a full auto scaling configuration ARN, or a partial ARN ending + // with either .../name or .../name/revision . If a revision isn't specified, + // the latest active revision is described. + // + // AutoScalingConfigurationArn is a required field + AutoScalingConfigurationArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeAutoScalingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAutoScalingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAutoScalingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAutoScalingConfigurationInput"} + if s.AutoScalingConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationArn")) + } + if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. +func (s *DescribeAutoScalingConfigurationInput) SetAutoScalingConfigurationArn(v string) *DescribeAutoScalingConfigurationInput { + s.AutoScalingConfigurationArn = &v + return s +} + +type DescribeAutoScalingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // A full description of the App Runner auto scaling configuration that you + // specified in this request. + // + // AutoScalingConfiguration is a required field + AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeAutoScalingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAutoScalingConfigurationOutput) GoString() string { + return s.String() +} + +// SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. +func (s *DescribeAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *DescribeAutoScalingConfigurationOutput { + s.AutoScalingConfiguration = v + return s +} + +type DescribeCustomDomainsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results that each response (result page) can include. + // It's used for a paginated request. + // + // If you don't specify MaxResults, the request retrieves all available results + // in a single response. + MaxResults *int64 `min:"1" type:"integer"` + + // A token from a previous result page. It's used for a paginated request. The + // request retrieves the next result page. All other parameter values must be + // identical to the ones that are specified in the initial request. + // + // If you don't specify NextToken, the request retrieves the first result page. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want associated + // custom domain names to be described for. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeCustomDomainsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCustomDomainsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCustomDomainsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCustomDomainsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeCustomDomainsInput) SetMaxResults(v int64) *DescribeCustomDomainsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCustomDomainsInput) SetNextToken(v string) *DescribeCustomDomainsInput { + s.NextToken = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *DescribeCustomDomainsInput) SetServiceArn(v string) *DescribeCustomDomainsInput { + s.ServiceArn = &v + return s +} + +type DescribeCustomDomainsOutput struct { + _ struct{} `type:"structure"` + + // A list of descriptions of custom domain names that are associated with the + // service. In a paginated request, the request returns up to MaxResults records + // per call. + // + // CustomDomains is a required field + CustomDomains []*CustomDomain `type:"list" required:"true"` + + // The App Runner subdomain of the App Runner service. The associated custom + // domain names are mapped to this target name. + // + // DNSTarget is a required field + DNSTarget *string `type:"string" required:"true"` + + // The token that you can pass in a subsequent request to get the next result + // page. It's returned in a paginated request. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) of the App Runner service whose associated + // custom domain names you want to describe. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeCustomDomainsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCustomDomainsOutput) GoString() string { + return s.String() +} + +// SetCustomDomains sets the CustomDomains field's value. +func (s *DescribeCustomDomainsOutput) SetCustomDomains(v []*CustomDomain) *DescribeCustomDomainsOutput { + s.CustomDomains = v + return s +} + +// SetDNSTarget sets the DNSTarget field's value. +func (s *DescribeCustomDomainsOutput) SetDNSTarget(v string) *DescribeCustomDomainsOutput { + s.DNSTarget = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCustomDomainsOutput) SetNextToken(v string) *DescribeCustomDomainsOutput { + s.NextToken = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *DescribeCustomDomainsOutput) SetServiceArn(v string) *DescribeCustomDomainsOutput { + s.ServiceArn = &v + return s +} + +type DescribeServiceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want a + // description for. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeServiceInput"} + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *DescribeServiceInput) SetServiceArn(v string) *DescribeServiceInput { + s.ServiceArn = &v + return s +} + +type DescribeServiceOutput struct { + _ struct{} `type:"structure"` + + // A full description of the App Runner service that you specified in this request. + // + // Service is a required field + Service *Service `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServiceOutput) GoString() string { + return s.String() +} + +// SetService sets the Service field's value. +func (s *DescribeServiceOutput) SetService(v *Service) *DescribeServiceOutput { + s.Service = v + return s +} + +type DisassociateCustomDomainInput struct { + _ struct{} `type:"structure"` + + // The domain name that you want to disassociate from the App Runner service. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // disassociate a custom domain name from. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateCustomDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateCustomDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateCustomDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateCustomDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DisassociateCustomDomainInput) SetDomainName(v string) *DisassociateCustomDomainInput { + s.DomainName = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *DisassociateCustomDomainInput) SetServiceArn(v string) *DisassociateCustomDomainInput { + s.ServiceArn = &v + return s +} + +type DisassociateCustomDomainOutput struct { + _ struct{} `type:"structure"` + + // A description of the domain name that's being disassociated. + // + // CustomDomain is a required field + CustomDomain *CustomDomain `type:"structure" required:"true"` + + // The App Runner subdomain of the App Runner service. The disassociated custom + // domain name was mapped to this target name. + // + // DNSTarget is a required field + DNSTarget *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the App Runner service that a custom domain + // name is disassociated from. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateCustomDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateCustomDomainOutput) GoString() string { + return s.String() +} + +// SetCustomDomain sets the CustomDomain field's value. +func (s *DisassociateCustomDomainOutput) SetCustomDomain(v *CustomDomain) *DisassociateCustomDomainOutput { + s.CustomDomain = v + return s +} + +// SetDNSTarget sets the DNSTarget field's value. +func (s *DisassociateCustomDomainOutput) SetDNSTarget(v string) *DisassociateCustomDomainOutput { + s.DNSTarget = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *DisassociateCustomDomainOutput) SetServiceArn(v string) *DisassociateCustomDomainOutput { + s.ServiceArn = &v + return s +} + +// Describes a custom encryption key that AWS App Runner uses to encrypt copies +// of the source repository and service logs. +type EncryptionConfiguration struct { + _ struct{} `type:"structure"` + + // The ARN of the KMS key that's used for encryption. + // + // KmsKey is a required field + KmsKey *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EncryptionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EncryptionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EncryptionConfiguration"} + if s.KmsKey == nil { + invalidParams.Add(request.NewErrParamRequired("KmsKey")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKmsKey sets the KmsKey field's value. +func (s *EncryptionConfiguration) SetKmsKey(v string) *EncryptionConfiguration { + s.KmsKey = &v + return s +} + +// Describes the settings for the health check that AWS App Runner performs +// to monitor the health of a service. +type HealthCheckConfiguration struct { + _ struct{} `type:"structure"` + + // The number of consecutive checks that must succeed before App Runner decides + // that the service is healthy. + // + // Default: 3 + HealthyThreshold *int64 `min:"1" type:"integer"` + + // The time interval, in seconds, between health checks. + // + // Default: 5 + Interval *int64 `min:"1" type:"integer"` + + // The URL that health check requests are sent to. + // + // Path is only applicable when you set Protocol to HTTP. + // + // Default: "/" + Path *string `type:"string"` + + // The IP protocol that App Runner uses to perform health checks for your service. + // + // If you set Protocol to HTTP, App Runner sends health check requests to the + // HTTP path specified by Path. + // + // Default: TCP + Protocol *string `type:"string" enum:"HealthCheckProtocol"` + + // The time, in seconds, to wait for a health check response before deciding + // it failed. + // + // Default: 2 + Timeout *int64 `min:"1" type:"integer"` + + // The number of consecutive checks that must fail before App Runner decides + // that the service is unhealthy. + // + // Default: 3 + UnhealthyThreshold *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s HealthCheckConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HealthCheckConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HealthCheckConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HealthCheckConfiguration"} + if s.HealthyThreshold != nil && *s.HealthyThreshold < 1 { + invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 1)) + } + if s.Interval != nil && *s.Interval < 1 { + invalidParams.Add(request.NewErrParamMinValue("Interval", 1)) + } + if s.Timeout != nil && *s.Timeout < 1 { + invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) + } + if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 1 { + invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHealthyThreshold sets the HealthyThreshold field's value. +func (s *HealthCheckConfiguration) SetHealthyThreshold(v int64) *HealthCheckConfiguration { + s.HealthyThreshold = &v + return s +} + +// SetInterval sets the Interval field's value. +func (s *HealthCheckConfiguration) SetInterval(v int64) *HealthCheckConfiguration { + s.Interval = &v + return s +} + +// SetPath sets the Path field's value. +func (s *HealthCheckConfiguration) SetPath(v string) *HealthCheckConfiguration { + s.Path = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *HealthCheckConfiguration) SetProtocol(v string) *HealthCheckConfiguration { + s.Protocol = &v + return s +} + +// SetTimeout sets the Timeout field's value. +func (s *HealthCheckConfiguration) SetTimeout(v int64) *HealthCheckConfiguration { + s.Timeout = &v + return s +} + +// SetUnhealthyThreshold sets the UnhealthyThreshold field's value. +func (s *HealthCheckConfiguration) SetUnhealthyThreshold(v int64) *HealthCheckConfiguration { + s.UnhealthyThreshold = &v + return s +} + +// Describes the configuration that AWS App Runner uses to run an App Runner +// service using an image pulled from a source image repository. +type ImageConfiguration struct { + _ struct{} `type:"structure"` + + // The port that your application listens to in the container. + // + // Default: 8080 + Port *string `type:"string"` + + // Environment variables that are available to your running App Runner service. + // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved + // for system use and aren't valid. + RuntimeEnvironmentVariables map[string]*string `type:"map"` + + // An optional command that App Runner runs to start the application in the + // source image. If specified, this command overrides the Docker image’s default + // start command. + StartCommand *string `type:"string"` +} + +// String returns the string representation +func (s ImageConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageConfiguration) GoString() string { + return s.String() +} + +// SetPort sets the Port field's value. +func (s *ImageConfiguration) SetPort(v string) *ImageConfiguration { + s.Port = &v + return s +} + +// SetRuntimeEnvironmentVariables sets the RuntimeEnvironmentVariables field's value. +func (s *ImageConfiguration) SetRuntimeEnvironmentVariables(v map[string]*string) *ImageConfiguration { + s.RuntimeEnvironmentVariables = v + return s +} + +// SetStartCommand sets the StartCommand field's value. +func (s *ImageConfiguration) SetStartCommand(v string) *ImageConfiguration { + s.StartCommand = &v + return s +} + +// Describes a source image repository. +type ImageRepository struct { + _ struct{} `type:"structure"` + + // Configuration for running the identified image. + ImageConfiguration *ImageConfiguration `type:"structure"` + + // The identifier of an image. + // + // For an image in Amazon Elastic Container Registry (Amazon ECR), this is an + // image name. For the image name format, see Pulling an image (https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-pull-ecr-image.html) + // in the Amazon ECR User Guide. + // + // ImageIdentifier is a required field + ImageIdentifier *string `min:"1" type:"string" required:"true"` + + // The type of the image repository. This reflects the repository provider and + // whether the repository is private or public. + // + // ImageRepositoryType is a required field + ImageRepositoryType *string `type:"string" required:"true" enum:"ImageRepositoryType"` +} + +// String returns the string representation +func (s ImageRepository) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageRepository) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImageRepository) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImageRepository"} + if s.ImageIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ImageIdentifier")) + } + if s.ImageIdentifier != nil && len(*s.ImageIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImageIdentifier", 1)) + } + if s.ImageRepositoryType == nil { + invalidParams.Add(request.NewErrParamRequired("ImageRepositoryType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetImageConfiguration sets the ImageConfiguration field's value. +func (s *ImageRepository) SetImageConfiguration(v *ImageConfiguration) *ImageRepository { + s.ImageConfiguration = v + return s +} + +// SetImageIdentifier sets the ImageIdentifier field's value. +func (s *ImageRepository) SetImageIdentifier(v string) *ImageRepository { + s.ImageIdentifier = &v + return s +} + +// SetImageRepositoryType sets the ImageRepositoryType field's value. +func (s *ImageRepository) SetImageRepositoryType(v string) *ImageRepository { + s.ImageRepositoryType = &v + return s +} + +// Describes the runtime configuration of an AWS App Runner service instance +// (scaling unit). +type InstanceConfiguration struct { + _ struct{} `type:"structure"` + + // The number of CPU units reserved for each instance of your App Runner service. + // + // Default: 1 vCPU + Cpu *string `min:"4" type:"string"` + + // The Amazon Resource Name (ARN) of an IAM role that provides permissions to + // your App Runner service. These are permissions that your code needs when + // it calls any AWS APIs. + InstanceRoleArn *string `min:"29" type:"string"` + + // The amount of memory, in MB or GB, reserved for each instance of your App + // Runner service. + // + // Default: 2 GB + Memory *string `min:"4" type:"string"` +} + +// String returns the string representation +func (s InstanceConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceConfiguration"} + if s.Cpu != nil && len(*s.Cpu) < 4 { + invalidParams.Add(request.NewErrParamMinLen("Cpu", 4)) + } + if s.InstanceRoleArn != nil && len(*s.InstanceRoleArn) < 29 { + invalidParams.Add(request.NewErrParamMinLen("InstanceRoleArn", 29)) + } + if s.Memory != nil && len(*s.Memory) < 4 { + invalidParams.Add(request.NewErrParamMinLen("Memory", 4)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCpu sets the Cpu field's value. +func (s *InstanceConfiguration) SetCpu(v string) *InstanceConfiguration { + s.Cpu = &v + return s +} + +// SetInstanceRoleArn sets the InstanceRoleArn field's value. +func (s *InstanceConfiguration) SetInstanceRoleArn(v string) *InstanceConfiguration { + s.InstanceRoleArn = &v + return s +} + +// SetMemory sets the Memory field's value. +func (s *InstanceConfiguration) SetMemory(v string) *InstanceConfiguration { + s.Memory = &v + return s +} + +// An unexpected service exception occurred. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s *InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s *InternalServiceErrorException) 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 *InternalServiceErrorException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServiceErrorException) RequestID() string { + return s.RespMetadata.RequestID +} + +// One or more input parameters aren't valid. Refer to the API action's document +// page, correct the input parameters, and try the action again. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s *InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidRequestException) OrigErr() error { + return nil +} + +func (s *InvalidRequestException) 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 *InvalidRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + +// You can't perform this action when the resource is in its current state. +type InvalidStateException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s *InvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidStateException) OrigErr() error { + return nil +} + +func (s *InvalidStateException) 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 *InvalidStateException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidStateException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListAutoScalingConfigurationsInput struct { + _ struct{} `type:"structure"` + + // The name of the App Runner auto scaling configuration that you want to list. + // If specified, App Runner lists revisions that share this name. If not specified, + // App Runner returns revisions of all configurations. + AutoScalingConfigurationName *string `min:"4" type:"string"` + + // Set to true to list only the latest revision for each requested configuration + // name. + // + // Keep as false to list all revisions for each requested configuration name. + // + // Default: false + LatestOnly *bool `type:"boolean"` + + // The maximum number of results to include in each response (result page). + // It's used for a paginated request. + // + // If you don't specify MaxResults, the request retrieves all available results + // in a single response. + MaxResults *int64 `min:"1" type:"integer"` + + // A token from a previous result page. It's used for a paginated request. The + // request retrieves the next result page. All other parameter values must be + // identical to the ones that are specified in the initial request. + // + // If you don't specify NextToken, the request retrieves the first result page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAutoScalingConfigurationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAutoScalingConfigurationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAutoScalingConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAutoScalingConfigurationsInput"} + if s.AutoScalingConfigurationName != nil && len(*s.AutoScalingConfigurationName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationName", 4)) + } + 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 +} + +// SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. +func (s *ListAutoScalingConfigurationsInput) SetAutoScalingConfigurationName(v string) *ListAutoScalingConfigurationsInput { + s.AutoScalingConfigurationName = &v + return s +} + +// SetLatestOnly sets the LatestOnly field's value. +func (s *ListAutoScalingConfigurationsInput) SetLatestOnly(v bool) *ListAutoScalingConfigurationsInput { + s.LatestOnly = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAutoScalingConfigurationsInput) SetMaxResults(v int64) *ListAutoScalingConfigurationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAutoScalingConfigurationsInput) SetNextToken(v string) *ListAutoScalingConfigurationsInput { + s.NextToken = &v + return s +} + +type ListAutoScalingConfigurationsOutput struct { + _ struct{} `type:"structure"` + + // A list of summary information records for auto scaling configurations. In + // a paginated request, the request returns up to MaxResults records for each + // call. + // + // AutoScalingConfigurationSummaryList is a required field + AutoScalingConfigurationSummaryList []*AutoScalingConfigurationSummary `type:"list" required:"true"` + + // The token that you can pass in a subsequent request to get the next result + // page. It's returned in a paginated request. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListAutoScalingConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAutoScalingConfigurationsOutput) GoString() string { + return s.String() +} + +// SetAutoScalingConfigurationSummaryList sets the AutoScalingConfigurationSummaryList field's value. +func (s *ListAutoScalingConfigurationsOutput) SetAutoScalingConfigurationSummaryList(v []*AutoScalingConfigurationSummary) *ListAutoScalingConfigurationsOutput { + s.AutoScalingConfigurationSummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAutoScalingConfigurationsOutput) SetNextToken(v string) *ListAutoScalingConfigurationsOutput { + s.NextToken = &v + return s +} + +type ListConnectionsInput struct { + _ struct{} `type:"structure"` + + // If specified, only this connection is returned. If not specified, the result + // isn't filtered by name. + ConnectionName *string `min:"4" type:"string"` + + // The maximum number of results to include in each response (result page). + // Used for a paginated request. + // + // If you don't specify MaxResults, the request retrieves all available results + // in a single response. + MaxResults *int64 `min:"1" type:"integer"` + + // A token from a previous result page. Used for a paginated request. The request + // retrieves the next result page. All other parameter values must be identical + // to the ones specified in the initial request. + // + // If you don't specify NextToken, the request retrieves the first result page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListConnectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConnectionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"} + if s.ConnectionName != nil && len(*s.ConnectionName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 4)) + } + 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 +} + +// SetConnectionName sets the ConnectionName field's value. +func (s *ListConnectionsInput) SetConnectionName(v string) *ListConnectionsInput { + s.ConnectionName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListConnectionsInput) SetMaxResults(v int64) *ListConnectionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConnectionsInput) SetNextToken(v string) *ListConnectionsInput { + s.NextToken = &v + return s +} + +type ListConnectionsOutput struct { + _ struct{} `type:"structure"` + + // A list of summary information records for connections. In a paginated request, + // the request returns up to MaxResults records for each call. + // + // ConnectionSummaryList is a required field + ConnectionSummaryList []*ConnectionSummary `type:"list" required:"true"` + + // The token that you can pass in a subsequent request to get the next result + // page. Returned in a paginated request. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListConnectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListConnectionsOutput) GoString() string { + return s.String() +} + +// SetConnectionSummaryList sets the ConnectionSummaryList field's value. +func (s *ListConnectionsOutput) SetConnectionSummaryList(v []*ConnectionSummary) *ListConnectionsOutput { + s.ConnectionSummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { + s.NextToken = &v + return s +} + +type ListOperationsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to include in each response (result page). + // It's used for a paginated request. + // + // If you don't specify MaxResults, the request retrieves all available results + // in a single response. + MaxResults *int64 `min:"1" type:"integer"` + + // A token from a previous result page. It's used for a paginated request. The + // request retrieves the next result page. All other parameter values must be + // identical to the ones specified in the initial request. + // + // If you don't specify NextToken, the request retrieves the first result page. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want a + // list of operations for. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListOperationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListOperationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListOperationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListOperationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListOperationsInput) SetMaxResults(v int64) *ListOperationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOperationsInput) SetNextToken(v string) *ListOperationsInput { + s.NextToken = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *ListOperationsInput) SetServiceArn(v string) *ListOperationsInput { + s.ServiceArn = &v + return s +} + +type ListOperationsOutput struct { + _ struct{} `type:"structure"` + + // The token that you can pass in a subsequent request to get the next result + // page. It's returned in a paginated request. + NextToken *string `type:"string"` + + // A list of operation summary information records. In a paginated request, + // the request returns up to MaxResults records for each call. + OperationSummaryList []*OperationSummary `type:"list"` +} + +// String returns the string representation +func (s ListOperationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListOperationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOperationsOutput) SetNextToken(v string) *ListOperationsOutput { + s.NextToken = &v + return s +} + +// SetOperationSummaryList sets the OperationSummaryList field's value. +func (s *ListOperationsOutput) SetOperationSummaryList(v []*OperationSummary) *ListOperationsOutput { + s.OperationSummaryList = v + return s +} + +type ListServicesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to include in each response (result page). + // It's used for a paginated request. + // + // If you don't specify MaxResults, the request retrieves all available results + // in a single response. + MaxResults *int64 `min:"1" type:"integer"` + + // A token from a previous result page. Used for a paginated request. The request + // retrieves the next result page. All other parameter values must be identical + // to the ones specified in the initial request. + // + // If you don't specify NextToken, the request retrieves the first result page. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListServicesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServicesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServicesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { + s.NextToken = &v + return s +} + +type ListServicesOutput struct { + _ struct{} `type:"structure"` + + // The token that you can pass in a subsequent request to get the next result + // page. It's returned in a paginated request. + NextToken *string `type:"string"` + + // A list of service summary information records. In a paginated request, the + // request returns up to MaxResults records for each call. + // + // ServiceSummaryList is a required field + ServiceSummaryList []*ServiceSummary `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListServicesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServicesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { + s.NextToken = &v + return s +} + +// SetServiceSummaryList sets the ServiceSummaryList field's value. +func (s *ListServicesOutput) SetServiceSummaryList(v []*ServiceSummary) *ListServicesOutput { + s.ServiceSummaryList = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource that a tag list is requested + // for. + // + // It must be the ARN of an App Runner resource. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of the tag key-value pairs that are associated with the resource. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// Provides summary information for an operation that occurred on an AWS App +// Runner service. +type OperationSummary struct { + _ struct{} `type:"structure"` + + // The time when the operation ended. It's in the Unix time stamp format. + EndedAt *time.Time `type:"timestamp"` + + // A unique ID of this operation. It's unique in the scope of the App Runner + // service. + Id *string `min:"36" type:"string"` + + // The time when the operation started. It's in the Unix time stamp format. + StartedAt *time.Time `type:"timestamp"` + + // The current state of the operation. + Status *string `type:"string" enum:"OperationStatus"` + + // The Amazon Resource Name (ARN) of the resource that the operation acted on + // (for example, an App Runner service). + TargetArn *string `min:"1" type:"string"` + + // The type of operation. It indicates a specific action that occured. + Type *string `type:"string" enum:"OperationType"` + + // The time when the operation was last updated. It's in the Unix time stamp + // format. + UpdatedAt *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s OperationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationSummary) GoString() string { + return s.String() +} + +// SetEndedAt sets the EndedAt field's value. +func (s *OperationSummary) SetEndedAt(v time.Time) *OperationSummary { + s.EndedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *OperationSummary) SetId(v string) *OperationSummary { + s.Id = &v + return s +} + +// SetStartedAt sets the StartedAt field's value. +func (s *OperationSummary) SetStartedAt(v time.Time) *OperationSummary { + s.StartedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OperationSummary) SetStatus(v string) *OperationSummary { + s.Status = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *OperationSummary) SetTargetArn(v string) *OperationSummary { + s.TargetArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *OperationSummary) SetType(v string) *OperationSummary { + s.Type = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *OperationSummary) SetUpdatedAt(v time.Time) *OperationSummary { + s.UpdatedAt = &v + return s +} + +type PauseServiceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // pause. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s PauseServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PauseServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PauseServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PauseServiceInput"} + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *PauseServiceInput) SetServiceArn(v string) *PauseServiceInput { + s.ServiceArn = &v + return s +} + +type PauseServiceOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the asynchronous operation that this request started. You + // can use it combined with the ListOperations call to track the operation's + // progress. + OperationId *string `min:"36" type:"string"` + + // A description of the App Runner service that this request just paused. + // + // Service is a required field + Service *Service `type:"structure" required:"true"` +} + +// String returns the string representation +func (s PauseServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PauseServiceOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *PauseServiceOutput) SetOperationId(v string) *PauseServiceOutput { + s.OperationId = &v + return s +} + +// SetService sets the Service field's value. +func (s *PauseServiceOutput) SetService(v *Service) *PauseServiceOutput { + s.Service = v + return s +} + +// A resource doesn't exist for the specified Amazon Resource Name (ARN) in +// your AWS account. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type ResumeServiceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // resume. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ResumeServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResumeServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResumeServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResumeServiceInput"} + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *ResumeServiceInput) SetServiceArn(v string) *ResumeServiceInput { + s.ServiceArn = &v + return s +} + +type ResumeServiceOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the asynchronous operation that this request started. You + // can use it combined with the ListOperations call to track the operation's + // progress. + OperationId *string `min:"36" type:"string"` + + // A description of the App Runner service that this request just resumed. + // + // Service is a required field + Service *Service `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ResumeServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResumeServiceOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *ResumeServiceOutput) SetOperationId(v string) *ResumeServiceOutput { + s.OperationId = &v + return s +} + +// SetService sets the Service field's value. +func (s *ResumeServiceOutput) SetService(v *Service) *ResumeServiceOutput { + s.Service = v + return s +} + +// Describes an AWS App Runner service. It can describe a service in any state, +// including deleted services. +// +// This type contains the full information about a service, including configuration +// details. It's returned by the CreateService (https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html), +// DescribeService (https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html), +// and DeleteService (https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html) +// actions. A subset of this information is returned by the ListServices (https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html) +// action using the ServiceSummary (https://docs.aws.amazon.com/apprunner/latest/api/API_ServiceSummary.html) +// type. +type Service struct { + _ struct{} `type:"structure"` + + // Summary information for the App Runner automatic scaling configuration resource + // that's associated with this service. + // + // AutoScalingConfigurationSummary is a required field + AutoScalingConfigurationSummary *AutoScalingConfigurationSummary `type:"structure" required:"true"` + + // The time when the App Runner service was created. It's in the Unix time stamp + // format. + // + // CreatedAt is a required field + CreatedAt *time.Time `type:"timestamp" required:"true"` + + // The time when the App Runner service was deleted. It's in the Unix time stamp + // format. + DeletedAt *time.Time `type:"timestamp"` + + // The encryption key that App Runner uses to encrypt the service logs and the + // copy of the source repository that App Runner maintains for the service. + // It can be either a customer-provided encryption key or an AWS managed CMK. + EncryptionConfiguration *EncryptionConfiguration `type:"structure"` + + // The settings for the health check that App Runner performs to monitor the + // health of this service. + HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` + + // The runtime configuration of instances (scaling units) of this service. + // + // InstanceConfiguration is a required field + InstanceConfiguration *InstanceConfiguration `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of this service. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` + + // An ID that App Runner generated for this service. It's unique within the + // AWS Region. + // + // ServiceId is a required field + ServiceId *string `min:"32" type:"string" required:"true"` + + // The customer-provided service name. + // + // ServiceName is a required field + ServiceName *string `min:"4" type:"string" required:"true"` + + // A subdomain URL that App Runner generated for this service. You can use this + // URL to access your service web application. + // + // ServiceUrl is a required field + ServiceUrl *string `type:"string" required:"true"` + + // The source deployed to the App Runner service. It can be a code or an image + // repository. + // + // SourceConfiguration is a required field + SourceConfiguration *SourceConfiguration `type:"structure" required:"true"` + + // The current state of the App Runner service. These particular values mean + // the following. + // + // * CREATE_FAILED – The service failed to create. To troubleshoot this + // failure, read the failure events and logs, change any parameters that + // need to be fixed, and retry the call to create the service. The failed + // service isn't usable, and still counts towards your service quota. When + // you're done analyzing the failure, delete the service. + // + // * DELETE_FAILED – The service failed to delete and can't be successfully + // recovered. Retry the service deletion call to ensure that all related + // resources are removed. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"ServiceStatus"` + + // The time when the App Runner service was last updated at. It's in the Unix + // time stamp format. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s Service) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Service) GoString() string { + return s.String() +} + +// SetAutoScalingConfigurationSummary sets the AutoScalingConfigurationSummary field's value. +func (s *Service) SetAutoScalingConfigurationSummary(v *AutoScalingConfigurationSummary) *Service { + s.AutoScalingConfigurationSummary = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Service) SetCreatedAt(v time.Time) *Service { + s.CreatedAt = &v + return s +} + +// SetDeletedAt sets the DeletedAt field's value. +func (s *Service) SetDeletedAt(v time.Time) *Service { + s.DeletedAt = &v + return s +} + +// SetEncryptionConfiguration sets the EncryptionConfiguration field's value. +func (s *Service) SetEncryptionConfiguration(v *EncryptionConfiguration) *Service { + s.EncryptionConfiguration = v + return s +} + +// SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. +func (s *Service) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *Service { + s.HealthCheckConfiguration = v + return s +} + +// SetInstanceConfiguration sets the InstanceConfiguration field's value. +func (s *Service) SetInstanceConfiguration(v *InstanceConfiguration) *Service { + s.InstanceConfiguration = v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *Service) SetServiceArn(v string) *Service { + s.ServiceArn = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *Service) SetServiceId(v string) *Service { + s.ServiceId = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *Service) SetServiceName(v string) *Service { + s.ServiceName = &v + return s +} + +// SetServiceUrl sets the ServiceUrl field's value. +func (s *Service) SetServiceUrl(v string) *Service { + s.ServiceUrl = &v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *Service) SetSourceConfiguration(v *SourceConfiguration) *Service { + s.SourceConfiguration = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Service) SetStatus(v string) *Service { + s.Status = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Service) SetUpdatedAt(v time.Time) *Service { + s.UpdatedAt = &v + return s +} + +// App Runner can't create this resource. You've reached your account quota +// for this resource type. +// +// For App Runner per-resource quotas, see AWS App Runner endpoints and quotas +// (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS +// General Reference. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) 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 *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Provides summary information for an AWS App Runner service. +// +// This type contains limited information about a service. It doesn't include +// configuration details. It's returned by the ListServices (https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html) +// action. Complete service information is returned by the CreateService (https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html), +// DescribeService (https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html), +// and DeleteService (https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html) +// actions using the Service (https://docs.aws.amazon.com/apprunner/latest/api/API_Service.html) +// type. +type ServiceSummary struct { + _ struct{} `type:"structure"` + + // The time when the App Runner service was created. It's in the Unix time stamp + // format. + CreatedAt *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of this service. + ServiceArn *string `min:"1" type:"string"` + + // An ID that App Runner generated for this service. It's unique within the + // AWS Region. + ServiceId *string `min:"32" type:"string"` + + // The customer-provided service name. + ServiceName *string `min:"4" type:"string"` + + // A subdomain URL that App Runner generated for this service. You can use this + // URL to access your service web application. + ServiceUrl *string `type:"string"` + + // The current state of the App Runner service. These particular values mean + // the following. + // + // * CREATE_FAILED – The service failed to create. Read the failure events + // and logs, change any parameters that need to be fixed, and retry the call + // to create the service. The failed service isn't usable, and still counts + // towards your service quota. When you're done analyzing the failure, delete + // the service. + // + // * DELETE_FAILED – The service failed to delete and can't be successfully + // recovered. Retry the service deletion call to ensure that all related + // resources are removed. + Status *string `type:"string" enum:"ServiceStatus"` + + // The time when the App Runner service was last updated. It's in theUnix time + // stamp format. + UpdatedAt *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ServiceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceSummary) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *ServiceSummary) SetCreatedAt(v time.Time) *ServiceSummary { + s.CreatedAt = &v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *ServiceSummary) SetServiceArn(v string) *ServiceSummary { + s.ServiceArn = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *ServiceSummary) SetServiceId(v string) *ServiceSummary { + s.ServiceId = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ServiceSummary) SetServiceName(v string) *ServiceSummary { + s.ServiceName = &v + return s +} + +// SetServiceUrl sets the ServiceUrl field's value. +func (s *ServiceSummary) SetServiceUrl(v string) *ServiceSummary { + s.ServiceUrl = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ServiceSummary) SetStatus(v string) *ServiceSummary { + s.Status = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *ServiceSummary) SetUpdatedAt(v time.Time) *ServiceSummary { + s.UpdatedAt = &v + return s +} + +// Identifies a version of code that AWS App Runner refers to within a source +// code repository. +type SourceCodeVersion struct { + _ struct{} `type:"structure"` + + // The type of version identifier. + // + // For a git-based repository, branches represent versions. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"SourceCodeVersionType"` + + // A source code version. + // + // For a git-based repository, a branch name maps to a specific version. App + // Runner uses the most recent commit to the branch. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s SourceCodeVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceCodeVersion) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceCodeVersion) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceCodeVersion"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetType sets the Type field's value. +func (s *SourceCodeVersion) SetType(v string) *SourceCodeVersion { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *SourceCodeVersion) SetValue(v string) *SourceCodeVersion { + s.Value = &v + return s +} + +// Describes the source deployed to an AWS App Runner service. It can be a code +// or an image repository. +type SourceConfiguration struct { + _ struct{} `type:"structure"` + + // Describes the resources that are needed to authenticate access to some source + // repositories. + AuthenticationConfiguration *AuthenticationConfiguration `type:"structure"` + + // If true, continuous integration from the source repository is enabled for + // the App Runner service. Each repository change (source code commit or new + // image version) starts a deployment. + // + // Default: true + AutoDeploymentsEnabled *bool `type:"boolean"` + + // The description of a source code repository. + // + // You must provide either this member or ImageRepository (but not both). + CodeRepository *CodeRepository `type:"structure"` + + // The description of a source image repository. + // + // You must provide either this member or CodeRepository (but not both). + ImageRepository *ImageRepository `type:"structure"` +} + +// String returns the string representation +func (s SourceConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} + if s.AuthenticationConfiguration != nil { + if err := s.AuthenticationConfiguration.Validate(); err != nil { + invalidParams.AddNested("AuthenticationConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.CodeRepository != nil { + if err := s.CodeRepository.Validate(); err != nil { + invalidParams.AddNested("CodeRepository", err.(request.ErrInvalidParams)) + } + } + if s.ImageRepository != nil { + if err := s.ImageRepository.Validate(); err != nil { + invalidParams.AddNested("ImageRepository", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthenticationConfiguration sets the AuthenticationConfiguration field's value. +func (s *SourceConfiguration) SetAuthenticationConfiguration(v *AuthenticationConfiguration) *SourceConfiguration { + s.AuthenticationConfiguration = v + return s +} + +// SetAutoDeploymentsEnabled sets the AutoDeploymentsEnabled field's value. +func (s *SourceConfiguration) SetAutoDeploymentsEnabled(v bool) *SourceConfiguration { + s.AutoDeploymentsEnabled = &v + return s +} + +// SetCodeRepository sets the CodeRepository field's value. +func (s *SourceConfiguration) SetCodeRepository(v *CodeRepository) *SourceConfiguration { + s.CodeRepository = v + return s +} + +// SetImageRepository sets the ImageRepository field's value. +func (s *SourceConfiguration) SetImageRepository(v *ImageRepository) *SourceConfiguration { + s.ImageRepository = v + return s +} + +type StartDeploymentInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // manually deploy to. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartDeploymentInput"} + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *StartDeploymentInput) SetServiceArn(v string) *StartDeploymentInput { + s.ServiceArn = &v + return s +} + +type StartDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the asynchronous operation that this request started. You + // can use it combined with the ListOperations call to track the operation's + // progress. + // + // OperationId is a required field + OperationId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDeploymentOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *StartDeploymentOutput) SetOperationId(v string) *StartDeploymentOutput { + s.OperationId = &v + return s +} + +// Describes a tag that is applied to an AWS App Runner resource. A tag is a +// metadata item consisting of a key-value pair. +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag. + Key *string `min:"1" type:"string"` + + // The value of the tag. + Value *string `type:"string"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource that you want to update tags + // for. + // + // It must be the ARN of an App Runner resource. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // A list of tag key-value pairs to add or update. If a key is new to the resource, + // the tag is added with the provided value. If a key is already associated + // with the resource, the value of the tag is updated. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource that you want to remove tags + // from. + // + // It must be the ARN of an App Runner resource. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // A list of tag keys that you want to remove. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +type UpdateServiceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration + // resource that you want to associate with your service. + AutoScalingConfigurationArn *string `min:"1" type:"string"` + + // The settings for the health check that AWS App Runner performs to monitor + // the health of your service. + HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` + + // The runtime configuration to apply to instances (scaling units) of the App + // Runner service. + InstanceConfiguration *InstanceConfiguration `type:"structure"` + + // The Amazon Resource Name (ARN) of the App Runner service that you want to + // update. + // + // ServiceArn is a required field + ServiceArn *string `min:"1" type:"string" required:"true"` + + // The source configuration to apply to the App Runner service. + // + // You can change the configuration of the code or image repository that the + // service uses. However, you can't switch from code to image or the other way + // around. This means that you must provide the same structure member of SourceConfiguration + // that you originally included when you created the service. Specifically, + // you can include either CodeRepository or ImageRepository. To update the source + // configuration, set the values to members of the structure that you include. + SourceConfiguration *SourceConfiguration `type:"structure"` +} + +// String returns the string representation +func (s UpdateServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateServiceInput"} + if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) + } + if s.ServiceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceArn")) + } + if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) + } + if s.HealthCheckConfiguration != nil { + if err := s.HealthCheckConfiguration.Validate(); err != nil { + invalidParams.AddNested("HealthCheckConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.InstanceConfiguration != nil { + if err := s.InstanceConfiguration.Validate(); err != nil { + invalidParams.AddNested("InstanceConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SourceConfiguration != nil { + if err := s.SourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. +func (s *UpdateServiceInput) SetAutoScalingConfigurationArn(v string) *UpdateServiceInput { + s.AutoScalingConfigurationArn = &v + return s +} + +// SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. +func (s *UpdateServiceInput) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *UpdateServiceInput { + s.HealthCheckConfiguration = v + return s +} + +// SetInstanceConfiguration sets the InstanceConfiguration field's value. +func (s *UpdateServiceInput) SetInstanceConfiguration(v *InstanceConfiguration) *UpdateServiceInput { + s.InstanceConfiguration = v + return s +} + +// SetServiceArn sets the ServiceArn field's value. +func (s *UpdateServiceInput) SetServiceArn(v string) *UpdateServiceInput { + s.ServiceArn = &v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *UpdateServiceInput) SetSourceConfiguration(v *SourceConfiguration) *UpdateServiceInput { + s.SourceConfiguration = v + return s +} + +type UpdateServiceOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the asynchronous operation that this request started. You + // can use it combined with the ListOperations call to track the operation's + // progress. + // + // OperationId is a required field + OperationId *string `min:"36" type:"string" required:"true"` + + // A description of the App Runner service updated by this request. All configuration + // values in the returned Service structure reflect configuration changes that + // are being applied by this request. + // + // Service is a required field + Service *Service `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *UpdateServiceOutput) SetOperationId(v string) *UpdateServiceOutput { + s.OperationId = &v + return s +} + +// SetService sets the Service field's value. +func (s *UpdateServiceOutput) SetService(v *Service) *UpdateServiceOutput { + s.Service = v + return s +} + +const ( + // AutoScalingConfigurationStatusActive is a AutoScalingConfigurationStatus enum value + AutoScalingConfigurationStatusActive = "ACTIVE" + + // AutoScalingConfigurationStatusInactive is a AutoScalingConfigurationStatus enum value + AutoScalingConfigurationStatusInactive = "INACTIVE" +) + +// AutoScalingConfigurationStatus_Values returns all elements of the AutoScalingConfigurationStatus enum +func AutoScalingConfigurationStatus_Values() []string { + return []string{ + AutoScalingConfigurationStatusActive, + AutoScalingConfigurationStatusInactive, + } +} + +const ( + // CertificateValidationRecordStatusPendingValidation is a CertificateValidationRecordStatus enum value + CertificateValidationRecordStatusPendingValidation = "PENDING_VALIDATION" + + // CertificateValidationRecordStatusSuccess is a CertificateValidationRecordStatus enum value + CertificateValidationRecordStatusSuccess = "SUCCESS" + + // CertificateValidationRecordStatusFailed is a CertificateValidationRecordStatus enum value + CertificateValidationRecordStatusFailed = "FAILED" +) + +// CertificateValidationRecordStatus_Values returns all elements of the CertificateValidationRecordStatus enum +func CertificateValidationRecordStatus_Values() []string { + return []string{ + CertificateValidationRecordStatusPendingValidation, + CertificateValidationRecordStatusSuccess, + CertificateValidationRecordStatusFailed, + } +} + +const ( + // ConfigurationSourceRepository is a ConfigurationSource enum value + ConfigurationSourceRepository = "REPOSITORY" + + // ConfigurationSourceApi is a ConfigurationSource enum value + ConfigurationSourceApi = "API" +) + +// ConfigurationSource_Values returns all elements of the ConfigurationSource enum +func ConfigurationSource_Values() []string { + return []string{ + ConfigurationSourceRepository, + ConfigurationSourceApi, + } +} + +const ( + // ConnectionStatusPendingHandshake is a ConnectionStatus enum value + ConnectionStatusPendingHandshake = "PENDING_HANDSHAKE" + + // ConnectionStatusAvailable is a ConnectionStatus enum value + ConnectionStatusAvailable = "AVAILABLE" + + // ConnectionStatusError is a ConnectionStatus enum value + ConnectionStatusError = "ERROR" + + // ConnectionStatusDeleted is a ConnectionStatus enum value + ConnectionStatusDeleted = "DELETED" +) + +// ConnectionStatus_Values returns all elements of the ConnectionStatus enum +func ConnectionStatus_Values() []string { + return []string{ + ConnectionStatusPendingHandshake, + ConnectionStatusAvailable, + ConnectionStatusError, + ConnectionStatusDeleted, + } +} + +const ( + // CustomDomainAssociationStatusCreating is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusCreating = "CREATING" + + // CustomDomainAssociationStatusCreateFailed is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusCreateFailed = "CREATE_FAILED" + + // CustomDomainAssociationStatusActive is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusActive = "ACTIVE" + + // CustomDomainAssociationStatusDeleting is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusDeleting = "DELETING" + + // CustomDomainAssociationStatusDeleteFailed is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusDeleteFailed = "DELETE_FAILED" + + // CustomDomainAssociationStatusPendingCertificateDnsValidation is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusPendingCertificateDnsValidation = "PENDING_CERTIFICATE_DNS_VALIDATION" + + // CustomDomainAssociationStatusBindingCertificate is a CustomDomainAssociationStatus enum value + CustomDomainAssociationStatusBindingCertificate = "BINDING_CERTIFICATE" +) + +// CustomDomainAssociationStatus_Values returns all elements of the CustomDomainAssociationStatus enum +func CustomDomainAssociationStatus_Values() []string { + return []string{ + CustomDomainAssociationStatusCreating, + CustomDomainAssociationStatusCreateFailed, + CustomDomainAssociationStatusActive, + CustomDomainAssociationStatusDeleting, + CustomDomainAssociationStatusDeleteFailed, + CustomDomainAssociationStatusPendingCertificateDnsValidation, + CustomDomainAssociationStatusBindingCertificate, + } +} + +const ( + // HealthCheckProtocolTcp is a HealthCheckProtocol enum value + HealthCheckProtocolTcp = "TCP" + + // HealthCheckProtocolHttp is a HealthCheckProtocol enum value + HealthCheckProtocolHttp = "HTTP" +) + +// HealthCheckProtocol_Values returns all elements of the HealthCheckProtocol enum +func HealthCheckProtocol_Values() []string { + return []string{ + HealthCheckProtocolTcp, + HealthCheckProtocolHttp, + } +} + +const ( + // ImageRepositoryTypeEcr is a ImageRepositoryType enum value + ImageRepositoryTypeEcr = "ECR" + + // ImageRepositoryTypeEcrPublic is a ImageRepositoryType enum value + ImageRepositoryTypeEcrPublic = "ECR_PUBLIC" +) + +// ImageRepositoryType_Values returns all elements of the ImageRepositoryType enum +func ImageRepositoryType_Values() []string { + return []string{ + ImageRepositoryTypeEcr, + ImageRepositoryTypeEcrPublic, + } +} + +const ( + // OperationStatusPending is a OperationStatus enum value + OperationStatusPending = "PENDING" + + // OperationStatusInProgress is a OperationStatus enum value + OperationStatusInProgress = "IN_PROGRESS" + + // OperationStatusFailed is a OperationStatus enum value + OperationStatusFailed = "FAILED" + + // OperationStatusSucceeded is a OperationStatus enum value + OperationStatusSucceeded = "SUCCEEDED" + + // OperationStatusRollbackInProgress is a OperationStatus enum value + OperationStatusRollbackInProgress = "ROLLBACK_IN_PROGRESS" + + // OperationStatusRollbackFailed is a OperationStatus enum value + OperationStatusRollbackFailed = "ROLLBACK_FAILED" + + // OperationStatusRollbackSucceeded is a OperationStatus enum value + OperationStatusRollbackSucceeded = "ROLLBACK_SUCCEEDED" +) + +// OperationStatus_Values returns all elements of the OperationStatus enum +func OperationStatus_Values() []string { + return []string{ + OperationStatusPending, + OperationStatusInProgress, + OperationStatusFailed, + OperationStatusSucceeded, + OperationStatusRollbackInProgress, + OperationStatusRollbackFailed, + OperationStatusRollbackSucceeded, + } +} + +const ( + // OperationTypeStartDeployment is a OperationType enum value + OperationTypeStartDeployment = "START_DEPLOYMENT" + + // OperationTypeCreateService is a OperationType enum value + OperationTypeCreateService = "CREATE_SERVICE" + + // OperationTypePauseService is a OperationType enum value + OperationTypePauseService = "PAUSE_SERVICE" + + // OperationTypeResumeService is a OperationType enum value + OperationTypeResumeService = "RESUME_SERVICE" + + // OperationTypeDeleteService is a OperationType enum value + OperationTypeDeleteService = "DELETE_SERVICE" +) + +// OperationType_Values returns all elements of the OperationType enum +func OperationType_Values() []string { + return []string{ + OperationTypeStartDeployment, + OperationTypeCreateService, + OperationTypePauseService, + OperationTypeResumeService, + OperationTypeDeleteService, + } +} + +const ( + // ProviderTypeGithub is a ProviderType enum value + ProviderTypeGithub = "GITHUB" +) + +// ProviderType_Values returns all elements of the ProviderType enum +func ProviderType_Values() []string { + return []string{ + ProviderTypeGithub, + } +} + +const ( + // RuntimePython3 is a Runtime enum value + RuntimePython3 = "PYTHON_3" + + // RuntimeNodejs12 is a Runtime enum value + RuntimeNodejs12 = "NODEJS_12" +) + +// Runtime_Values returns all elements of the Runtime enum +func Runtime_Values() []string { + return []string{ + RuntimePython3, + RuntimeNodejs12, + } +} + +const ( + // ServiceStatusCreateFailed is a ServiceStatus enum value + ServiceStatusCreateFailed = "CREATE_FAILED" + + // ServiceStatusRunning is a ServiceStatus enum value + ServiceStatusRunning = "RUNNING" + + // ServiceStatusDeleted is a ServiceStatus enum value + ServiceStatusDeleted = "DELETED" + + // ServiceStatusDeleteFailed is a ServiceStatus enum value + ServiceStatusDeleteFailed = "DELETE_FAILED" + + // ServiceStatusPaused is a ServiceStatus enum value + ServiceStatusPaused = "PAUSED" + + // ServiceStatusOperationInProgress is a ServiceStatus enum value + ServiceStatusOperationInProgress = "OPERATION_IN_PROGRESS" +) + +// ServiceStatus_Values returns all elements of the ServiceStatus enum +func ServiceStatus_Values() []string { + return []string{ + ServiceStatusCreateFailed, + ServiceStatusRunning, + ServiceStatusDeleted, + ServiceStatusDeleteFailed, + ServiceStatusPaused, + ServiceStatusOperationInProgress, + } +} + +const ( + // SourceCodeVersionTypeBranch is a SourceCodeVersionType enum value + SourceCodeVersionTypeBranch = "BRANCH" +) + +// SourceCodeVersionType_Values returns all elements of the SourceCodeVersionType enum +func SourceCodeVersionType_Values() []string { + return []string{ + SourceCodeVersionTypeBranch, + } +} diff --git a/service/apprunner/apprunneriface/interface.go b/service/apprunner/apprunneriface/interface.go new file mode 100644 index 00000000000..27a78750f6e --- /dev/null +++ b/service/apprunner/apprunneriface/interface.go @@ -0,0 +1,167 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package apprunneriface provides an interface to enable mocking the AWS App Runner 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 apprunneriface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/apprunner" +) + +// AppRunnerAPI provides an interface to enable mocking the +// apprunner.AppRunner 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 App Runner. +// func myFunc(svc apprunneriface.AppRunnerAPI) bool { +// // Make svc.AssociateCustomDomain request +// } +// +// func main() { +// sess := session.New() +// svc := apprunner.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockAppRunnerClient struct { +// apprunneriface.AppRunnerAPI +// } +// func (m *mockAppRunnerClient) AssociateCustomDomain(input *apprunner.AssociateCustomDomainInput) (*apprunner.AssociateCustomDomainOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockAppRunnerClient{} +// +// 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 AppRunnerAPI interface { + AssociateCustomDomain(*apprunner.AssociateCustomDomainInput) (*apprunner.AssociateCustomDomainOutput, error) + AssociateCustomDomainWithContext(aws.Context, *apprunner.AssociateCustomDomainInput, ...request.Option) (*apprunner.AssociateCustomDomainOutput, error) + AssociateCustomDomainRequest(*apprunner.AssociateCustomDomainInput) (*request.Request, *apprunner.AssociateCustomDomainOutput) + + CreateAutoScalingConfiguration(*apprunner.CreateAutoScalingConfigurationInput) (*apprunner.CreateAutoScalingConfigurationOutput, error) + CreateAutoScalingConfigurationWithContext(aws.Context, *apprunner.CreateAutoScalingConfigurationInput, ...request.Option) (*apprunner.CreateAutoScalingConfigurationOutput, error) + CreateAutoScalingConfigurationRequest(*apprunner.CreateAutoScalingConfigurationInput) (*request.Request, *apprunner.CreateAutoScalingConfigurationOutput) + + CreateConnection(*apprunner.CreateConnectionInput) (*apprunner.CreateConnectionOutput, error) + CreateConnectionWithContext(aws.Context, *apprunner.CreateConnectionInput, ...request.Option) (*apprunner.CreateConnectionOutput, error) + CreateConnectionRequest(*apprunner.CreateConnectionInput) (*request.Request, *apprunner.CreateConnectionOutput) + + CreateService(*apprunner.CreateServiceInput) (*apprunner.CreateServiceOutput, error) + CreateServiceWithContext(aws.Context, *apprunner.CreateServiceInput, ...request.Option) (*apprunner.CreateServiceOutput, error) + CreateServiceRequest(*apprunner.CreateServiceInput) (*request.Request, *apprunner.CreateServiceOutput) + + DeleteAutoScalingConfiguration(*apprunner.DeleteAutoScalingConfigurationInput) (*apprunner.DeleteAutoScalingConfigurationOutput, error) + DeleteAutoScalingConfigurationWithContext(aws.Context, *apprunner.DeleteAutoScalingConfigurationInput, ...request.Option) (*apprunner.DeleteAutoScalingConfigurationOutput, error) + DeleteAutoScalingConfigurationRequest(*apprunner.DeleteAutoScalingConfigurationInput) (*request.Request, *apprunner.DeleteAutoScalingConfigurationOutput) + + DeleteConnection(*apprunner.DeleteConnectionInput) (*apprunner.DeleteConnectionOutput, error) + DeleteConnectionWithContext(aws.Context, *apprunner.DeleteConnectionInput, ...request.Option) (*apprunner.DeleteConnectionOutput, error) + DeleteConnectionRequest(*apprunner.DeleteConnectionInput) (*request.Request, *apprunner.DeleteConnectionOutput) + + DeleteService(*apprunner.DeleteServiceInput) (*apprunner.DeleteServiceOutput, error) + DeleteServiceWithContext(aws.Context, *apprunner.DeleteServiceInput, ...request.Option) (*apprunner.DeleteServiceOutput, error) + DeleteServiceRequest(*apprunner.DeleteServiceInput) (*request.Request, *apprunner.DeleteServiceOutput) + + DescribeAutoScalingConfiguration(*apprunner.DescribeAutoScalingConfigurationInput) (*apprunner.DescribeAutoScalingConfigurationOutput, error) + DescribeAutoScalingConfigurationWithContext(aws.Context, *apprunner.DescribeAutoScalingConfigurationInput, ...request.Option) (*apprunner.DescribeAutoScalingConfigurationOutput, error) + DescribeAutoScalingConfigurationRequest(*apprunner.DescribeAutoScalingConfigurationInput) (*request.Request, *apprunner.DescribeAutoScalingConfigurationOutput) + + DescribeCustomDomains(*apprunner.DescribeCustomDomainsInput) (*apprunner.DescribeCustomDomainsOutput, error) + DescribeCustomDomainsWithContext(aws.Context, *apprunner.DescribeCustomDomainsInput, ...request.Option) (*apprunner.DescribeCustomDomainsOutput, error) + DescribeCustomDomainsRequest(*apprunner.DescribeCustomDomainsInput) (*request.Request, *apprunner.DescribeCustomDomainsOutput) + + DescribeCustomDomainsPages(*apprunner.DescribeCustomDomainsInput, func(*apprunner.DescribeCustomDomainsOutput, bool) bool) error + DescribeCustomDomainsPagesWithContext(aws.Context, *apprunner.DescribeCustomDomainsInput, func(*apprunner.DescribeCustomDomainsOutput, bool) bool, ...request.Option) error + + DescribeService(*apprunner.DescribeServiceInput) (*apprunner.DescribeServiceOutput, error) + DescribeServiceWithContext(aws.Context, *apprunner.DescribeServiceInput, ...request.Option) (*apprunner.DescribeServiceOutput, error) + DescribeServiceRequest(*apprunner.DescribeServiceInput) (*request.Request, *apprunner.DescribeServiceOutput) + + DisassociateCustomDomain(*apprunner.DisassociateCustomDomainInput) (*apprunner.DisassociateCustomDomainOutput, error) + DisassociateCustomDomainWithContext(aws.Context, *apprunner.DisassociateCustomDomainInput, ...request.Option) (*apprunner.DisassociateCustomDomainOutput, error) + DisassociateCustomDomainRequest(*apprunner.DisassociateCustomDomainInput) (*request.Request, *apprunner.DisassociateCustomDomainOutput) + + ListAutoScalingConfigurations(*apprunner.ListAutoScalingConfigurationsInput) (*apprunner.ListAutoScalingConfigurationsOutput, error) + ListAutoScalingConfigurationsWithContext(aws.Context, *apprunner.ListAutoScalingConfigurationsInput, ...request.Option) (*apprunner.ListAutoScalingConfigurationsOutput, error) + ListAutoScalingConfigurationsRequest(*apprunner.ListAutoScalingConfigurationsInput) (*request.Request, *apprunner.ListAutoScalingConfigurationsOutput) + + ListAutoScalingConfigurationsPages(*apprunner.ListAutoScalingConfigurationsInput, func(*apprunner.ListAutoScalingConfigurationsOutput, bool) bool) error + ListAutoScalingConfigurationsPagesWithContext(aws.Context, *apprunner.ListAutoScalingConfigurationsInput, func(*apprunner.ListAutoScalingConfigurationsOutput, bool) bool, ...request.Option) error + + ListConnections(*apprunner.ListConnectionsInput) (*apprunner.ListConnectionsOutput, error) + ListConnectionsWithContext(aws.Context, *apprunner.ListConnectionsInput, ...request.Option) (*apprunner.ListConnectionsOutput, error) + ListConnectionsRequest(*apprunner.ListConnectionsInput) (*request.Request, *apprunner.ListConnectionsOutput) + + ListConnectionsPages(*apprunner.ListConnectionsInput, func(*apprunner.ListConnectionsOutput, bool) bool) error + ListConnectionsPagesWithContext(aws.Context, *apprunner.ListConnectionsInput, func(*apprunner.ListConnectionsOutput, bool) bool, ...request.Option) error + + ListOperations(*apprunner.ListOperationsInput) (*apprunner.ListOperationsOutput, error) + ListOperationsWithContext(aws.Context, *apprunner.ListOperationsInput, ...request.Option) (*apprunner.ListOperationsOutput, error) + ListOperationsRequest(*apprunner.ListOperationsInput) (*request.Request, *apprunner.ListOperationsOutput) + + ListOperationsPages(*apprunner.ListOperationsInput, func(*apprunner.ListOperationsOutput, bool) bool) error + ListOperationsPagesWithContext(aws.Context, *apprunner.ListOperationsInput, func(*apprunner.ListOperationsOutput, bool) bool, ...request.Option) error + + ListServices(*apprunner.ListServicesInput) (*apprunner.ListServicesOutput, error) + ListServicesWithContext(aws.Context, *apprunner.ListServicesInput, ...request.Option) (*apprunner.ListServicesOutput, error) + ListServicesRequest(*apprunner.ListServicesInput) (*request.Request, *apprunner.ListServicesOutput) + + ListServicesPages(*apprunner.ListServicesInput, func(*apprunner.ListServicesOutput, bool) bool) error + ListServicesPagesWithContext(aws.Context, *apprunner.ListServicesInput, func(*apprunner.ListServicesOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*apprunner.ListTagsForResourceInput) (*apprunner.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *apprunner.ListTagsForResourceInput, ...request.Option) (*apprunner.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*apprunner.ListTagsForResourceInput) (*request.Request, *apprunner.ListTagsForResourceOutput) + + PauseService(*apprunner.PauseServiceInput) (*apprunner.PauseServiceOutput, error) + PauseServiceWithContext(aws.Context, *apprunner.PauseServiceInput, ...request.Option) (*apprunner.PauseServiceOutput, error) + PauseServiceRequest(*apprunner.PauseServiceInput) (*request.Request, *apprunner.PauseServiceOutput) + + ResumeService(*apprunner.ResumeServiceInput) (*apprunner.ResumeServiceOutput, error) + ResumeServiceWithContext(aws.Context, *apprunner.ResumeServiceInput, ...request.Option) (*apprunner.ResumeServiceOutput, error) + ResumeServiceRequest(*apprunner.ResumeServiceInput) (*request.Request, *apprunner.ResumeServiceOutput) + + StartDeployment(*apprunner.StartDeploymentInput) (*apprunner.StartDeploymentOutput, error) + StartDeploymentWithContext(aws.Context, *apprunner.StartDeploymentInput, ...request.Option) (*apprunner.StartDeploymentOutput, error) + StartDeploymentRequest(*apprunner.StartDeploymentInput) (*request.Request, *apprunner.StartDeploymentOutput) + + TagResource(*apprunner.TagResourceInput) (*apprunner.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *apprunner.TagResourceInput, ...request.Option) (*apprunner.TagResourceOutput, error) + TagResourceRequest(*apprunner.TagResourceInput) (*request.Request, *apprunner.TagResourceOutput) + + UntagResource(*apprunner.UntagResourceInput) (*apprunner.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *apprunner.UntagResourceInput, ...request.Option) (*apprunner.UntagResourceOutput, error) + UntagResourceRequest(*apprunner.UntagResourceInput) (*request.Request, *apprunner.UntagResourceOutput) + + UpdateService(*apprunner.UpdateServiceInput) (*apprunner.UpdateServiceOutput, error) + UpdateServiceWithContext(aws.Context, *apprunner.UpdateServiceInput, ...request.Option) (*apprunner.UpdateServiceOutput, error) + UpdateServiceRequest(*apprunner.UpdateServiceInput) (*request.Request, *apprunner.UpdateServiceOutput) +} + +var _ AppRunnerAPI = (*apprunner.AppRunner)(nil) diff --git a/service/apprunner/doc.go b/service/apprunner/doc.go new file mode 100644 index 00000000000..5c6abef8547 --- /dev/null +++ b/service/apprunner/doc.go @@ -0,0 +1,50 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package apprunner provides the client and types for making API +// requests to AWS App Runner. +// +// AWS App Runner is an application service that provides a fast, simple, and +// cost-effective way to go directly from an existing container image or source +// code to a running service in the AWS cloud in seconds. You don't need to +// learn new technologies, decide which compute service to use, or understand +// how to provision and configure AWS resources. +// +// App Runner connects directly to your container registry or source code repository. +// It provides an automatic delivery pipeline with fully managed operations, +// high performance, scalability, and security. +// +// For more information about App Runner, see the AWS App Runner Developer Guide +// (https://docs.aws.amazon.com/apprunner/latest/dg/). For release information, +// see the AWS App Runner Release Notes (https://docs.aws.amazon.com/apprunner/latest/relnotes/). +// +// To install the Software Development Kits (SDKs), Integrated Development Environment +// (IDE) Toolkits, and command line tools that you can use to access the API, +// see Tools for Amazon Web Services (http://aws.amazon.com/tools/). +// +// Endpoints +// +// For a list of Region-specific endpoints that App Runner supports, see AWS +// App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) +// in the AWS General Reference. +// +// See https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15 for more information on this service. +// +// See apprunner package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/apprunner/ +// +// Using the Client +// +// To contact AWS App Runner 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 App Runner client AppRunner for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/apprunner/#New +package apprunner diff --git a/service/apprunner/errors.go b/service/apprunner/errors.go new file mode 100644 index 00000000000..5f5d96f702d --- /dev/null +++ b/service/apprunner/errors.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package apprunner + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeInternalServiceErrorException for service response error code + // "InternalServiceErrorException". + // + // An unexpected service exception occurred. + ErrCodeInternalServiceErrorException = "InternalServiceErrorException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // One or more input parameters aren't valid. Refer to the API action's document + // page, correct the input parameters, and try the action again. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeInvalidStateException for service response error code + // "InvalidStateException". + // + // You can't perform this action when the resource is in its current state. + ErrCodeInvalidStateException = "InvalidStateException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // A resource doesn't exist for the specified Amazon Resource Name (ARN) in + // your AWS account. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // App Runner can't create this resource. You've reached your account quota + // for this resource type. + // + // For App Runner per-resource quotas, see AWS App Runner endpoints and quotas + // (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS + // General Reference. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidStateException": newErrorInvalidStateException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, +} diff --git a/service/apprunner/service.go b/service/apprunner/service.go new file mode 100644 index 00000000000..7075fef697a --- /dev/null +++ b/service/apprunner/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package apprunner + +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/jsonrpc" +) + +// AppRunner provides the API operation methods for making requests to +// AWS App Runner. See this package's package overview docs +// for details on the service. +// +// AppRunner methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type AppRunner 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 = "AppRunner" // Name of service. + EndpointsID = "apprunner" // ID to lookup a service endpoint with. + ServiceID = "AppRunner" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the AppRunner 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 AppRunner client from just a session. +// svc := apprunner.New(mySession) +// +// // Create a AppRunner client with additional configuration +// svc := apprunner.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppRunner { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "apprunner" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppRunner { + svc := &AppRunner{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2020-05-15", + JSONVersion: "1.0", + TargetPrefix: "AppRunner", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a AppRunner operation and runs any +// custom request initialization. +func (c *AppRunner) 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 +} diff --git a/service/computeoptimizer/api.go b/service/computeoptimizer/api.go index 0adac6bc1b1..c5dd270e41e 100644 --- a/service/computeoptimizer/api.go +++ b/service/computeoptimizer/api.go @@ -226,6 +226,115 @@ func (c *ComputeOptimizer) ExportAutoScalingGroupRecommendationsWithContext(ctx return out, req.Send() } +const opExportEBSVolumeRecommendations = "ExportEBSVolumeRecommendations" + +// ExportEBSVolumeRecommendationsRequest generates a "aws/request.Request" representing the +// client's request for the ExportEBSVolumeRecommendations 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 ExportEBSVolumeRecommendations for more information on using the ExportEBSVolumeRecommendations +// 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 ExportEBSVolumeRecommendationsRequest method. +// req, resp := client.ExportEBSVolumeRecommendationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportEBSVolumeRecommendations +func (c *ComputeOptimizer) ExportEBSVolumeRecommendationsRequest(input *ExportEBSVolumeRecommendationsInput) (req *request.Request, output *ExportEBSVolumeRecommendationsOutput) { + op := &request.Operation{ + Name: opExportEBSVolumeRecommendations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExportEBSVolumeRecommendationsInput{} + } + + output = &ExportEBSVolumeRecommendationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExportEBSVolumeRecommendations API operation for AWS Compute Optimizer. +// +// Exports optimization recommendations for Amazon EBS volumes. +// +// Recommendations are exported in a comma-separated values (.csv) file, and +// its metadata in a JavaScript Object Notation (.json) file, to an existing +// Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more +// information, see Exporting Recommendations (https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html) +// in the Compute Optimizer User Guide. +// +// You can have only one Amazon EBS volume export job in progress per AWS Region. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Compute Optimizer's +// API operation ExportEBSVolumeRecommendations for usage and error information. +// +// Returned Error Types: +// * OptInRequiredException +// The account is not opted in to AWS Compute Optimizer. +// +// * InternalServerException +// An internal error has occurred. Try your call again. +// +// * ServiceUnavailableException +// The request has failed due to a temporary failure of the server. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * InvalidParameterValueException +// An invalid or out-of-range value was supplied for the input parameter. +// +// * MissingAuthenticationToken +// The request must contain either a valid (registered) AWS access key ID or +// X.509 certificate. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * LimitExceededException +// The request exceeds a limit of the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportEBSVolumeRecommendations +func (c *ComputeOptimizer) ExportEBSVolumeRecommendations(input *ExportEBSVolumeRecommendationsInput) (*ExportEBSVolumeRecommendationsOutput, error) { + req, out := c.ExportEBSVolumeRecommendationsRequest(input) + return out, req.Send() +} + +// ExportEBSVolumeRecommendationsWithContext is the same as ExportEBSVolumeRecommendations with the addition of +// the ability to pass a context and additional request options. +// +// See ExportEBSVolumeRecommendations 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 *ComputeOptimizer) ExportEBSVolumeRecommendationsWithContext(ctx aws.Context, input *ExportEBSVolumeRecommendationsInput, opts ...request.Option) (*ExportEBSVolumeRecommendationsOutput, error) { + req, out := c.ExportEBSVolumeRecommendationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opExportEC2InstanceRecommendations = "ExportEC2InstanceRecommendations" // ExportEC2InstanceRecommendationsRequest generates a "aws/request.Request" representing the @@ -336,6 +445,115 @@ func (c *ComputeOptimizer) ExportEC2InstanceRecommendationsWithContext(ctx aws.C return out, req.Send() } +const opExportLambdaFunctionRecommendations = "ExportLambdaFunctionRecommendations" + +// ExportLambdaFunctionRecommendationsRequest generates a "aws/request.Request" representing the +// client's request for the ExportLambdaFunctionRecommendations 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 ExportLambdaFunctionRecommendations for more information on using the ExportLambdaFunctionRecommendations +// 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 ExportLambdaFunctionRecommendationsRequest method. +// req, resp := client.ExportLambdaFunctionRecommendationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportLambdaFunctionRecommendations +func (c *ComputeOptimizer) ExportLambdaFunctionRecommendationsRequest(input *ExportLambdaFunctionRecommendationsInput) (req *request.Request, output *ExportLambdaFunctionRecommendationsOutput) { + op := &request.Operation{ + Name: opExportLambdaFunctionRecommendations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExportLambdaFunctionRecommendationsInput{} + } + + output = &ExportLambdaFunctionRecommendationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExportLambdaFunctionRecommendations API operation for AWS Compute Optimizer. +// +// Exports optimization recommendations for AWS Lambda functions. +// +// Recommendations are exported in a comma-separated values (.csv) file, and +// its metadata in a JavaScript Object Notation (.json) file, to an existing +// Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more +// information, see Exporting Recommendations (https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html) +// in the Compute Optimizer User Guide. +// +// You can have only one Lambda function export job in progress per AWS Region. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Compute Optimizer's +// API operation ExportLambdaFunctionRecommendations for usage and error information. +// +// Returned Error Types: +// * OptInRequiredException +// The account is not opted in to AWS Compute Optimizer. +// +// * InternalServerException +// An internal error has occurred. Try your call again. +// +// * ServiceUnavailableException +// The request has failed due to a temporary failure of the server. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * InvalidParameterValueException +// An invalid or out-of-range value was supplied for the input parameter. +// +// * MissingAuthenticationToken +// The request must contain either a valid (registered) AWS access key ID or +// X.509 certificate. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * LimitExceededException +// The request exceeds a limit of the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportLambdaFunctionRecommendations +func (c *ComputeOptimizer) ExportLambdaFunctionRecommendations(input *ExportLambdaFunctionRecommendationsInput) (*ExportLambdaFunctionRecommendationsOutput, error) { + req, out := c.ExportLambdaFunctionRecommendationsRequest(input) + return out, req.Send() +} + +// ExportLambdaFunctionRecommendationsWithContext is the same as ExportLambdaFunctionRecommendations with the addition of +// the ability to pass a context and additional request options. +// +// See ExportLambdaFunctionRecommendations 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 *ComputeOptimizer) ExportLambdaFunctionRecommendationsWithContext(ctx aws.Context, input *ExportLambdaFunctionRecommendationsInput, opts ...request.Option) (*ExportLambdaFunctionRecommendationsOutput, error) { + req, out := c.ExportLambdaFunctionRecommendationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetAutoScalingGroupRecommendations = "GetAutoScalingGroupRecommendations" // GetAutoScalingGroupRecommendationsRequest generates a "aws/request.Request" representing the @@ -1127,13 +1345,13 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusRequest(input *UpdateEnrollment // // You must have the appropriate permissions to opt in to Compute Optimizer, // to view its recommendations, and to opt out. For more information, see Controlling -// access with AWS Identity and Access Management (https://docs.aws.amazon.com/compute-optimizer/ug/security-iam.html) -// in the Compute Optimizer User Guide. +// access with AWS Identity and Access Management (https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html) +// in the AWS Compute Optimizer User Guide. // // When you opt in, Compute Optimizer automatically creates a Service-Linked // Role in your account to access its data. For more information, see Using -// Service-Linked Roles for AWS Compute Optimizer (https://docs.aws.amazon.com/compute-optimizer/ug/using-service-linked-roles.html) -// in the Compute Optimizer User Guide. +// Service-Linked Roles for AWS Compute Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/using-service-linked-roles.html) +// in the AWS Compute Optimizer User 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 @@ -1709,7 +1927,11 @@ type ExportAutoScalingGroupRecommendationsInput struct { // accounts of the organization if your account is the management account of // an organization. // - // The member accounts must also be opted in to Compute Optimizer. + // The member accounts must also be opted in to Compute Optimizer, and trusted + // access for Compute Optimizer must be enabled in the organization account. + // For more information, see Compute Optimizer and AWS Organizations trusted + // access (https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access) + // in the AWS Compute Optimizer User Guide. // // Recommendations for member accounts of the organization are not included // in the export file if this parameter is omitted. @@ -1859,6 +2081,170 @@ func (s *ExportDestination) SetS3(v *S3Destination) *ExportDestination { return s } +type ExportEBSVolumeRecommendationsInput struct { + _ struct{} `type:"structure"` + + // The IDs of the AWS accounts for which to export Amazon EBS volume recommendations. + // + // If your account is the management account of an organization, use this parameter + // to specify the member account for which you want to export recommendations. + // + // This parameter cannot be specified together with the include member accounts + // parameter. The parameters are mutually exclusive. + // + // Recommendations for member accounts are not included in the export if this + // parameter, or the include member accounts parameter, is omitted. + // + // You can specify multiple account IDs per request. + AccountIds []*string `locationName:"accountIds" type:"list"` + + // The recommendations data to include in the export file. For more information + // about the fields that can be exported, see Exported files (https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files) + // in the Compute Optimizer User Guide. + FieldsToExport []*string `locationName:"fieldsToExport" type:"list"` + + // The format of the export file. + // + // The only export file format currently supported is Csv. + FileFormat *string `locationName:"fileFormat" type:"string" enum:"FileFormat"` + + // An array of objects that describe a filter to export a more specific set + // of Amazon EBS volume recommendations. + Filters []*EBSFilter `locationName:"filters" type:"list"` + + // Indicates whether to include recommendations for resources in all member + // accounts of the organization if your account is the management account of + // an organization. + // + // The member accounts must also be opted in to Compute Optimizer, and trusted + // access for Compute Optimizer must be enabled in the organization account. + // For more information, see Compute Optimizer and AWS Organizations trusted + // access (https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access) + // in the AWS Compute Optimizer User Guide. + // + // Recommendations for member accounts of the organization are not included + // in the export file if this parameter is omitted. + // + // This parameter cannot be specified together with the account IDs parameter. + // The parameters are mutually exclusive. + // + // Recommendations for member accounts are not included in the export if this + // parameter, or the account IDs parameter, is omitted. + IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"` + + // Describes the destination Amazon Simple Storage Service (Amazon S3) bucket + // name and key prefix for a recommendations export job. + // + // You must create the destination Amazon S3 bucket for your recommendations + // export before you create the export job. Compute Optimizer does not create + // the S3 bucket for you. After you create the S3 bucket, ensure that it has + // the required permission policy to allow Compute Optimizer to write the export + // file to it. If you plan to specify an object prefix when you create the export + // job, you must include the object prefix in the policy that you add to the + // S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute + // Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html) + // in the Compute Optimizer user guide. + // + // S3DestinationConfig is a required field + S3DestinationConfig *S3DestinationConfig `locationName:"s3DestinationConfig" type:"structure" required:"true"` +} + +// String returns the string representation +func (s ExportEBSVolumeRecommendationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportEBSVolumeRecommendationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportEBSVolumeRecommendationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportEBSVolumeRecommendationsInput"} + if s.S3DestinationConfig == nil { + invalidParams.Add(request.NewErrParamRequired("S3DestinationConfig")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountIds sets the AccountIds field's value. +func (s *ExportEBSVolumeRecommendationsInput) SetAccountIds(v []*string) *ExportEBSVolumeRecommendationsInput { + s.AccountIds = v + return s +} + +// SetFieldsToExport sets the FieldsToExport field's value. +func (s *ExportEBSVolumeRecommendationsInput) SetFieldsToExport(v []*string) *ExportEBSVolumeRecommendationsInput { + s.FieldsToExport = v + return s +} + +// SetFileFormat sets the FileFormat field's value. +func (s *ExportEBSVolumeRecommendationsInput) SetFileFormat(v string) *ExportEBSVolumeRecommendationsInput { + s.FileFormat = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ExportEBSVolumeRecommendationsInput) SetFilters(v []*EBSFilter) *ExportEBSVolumeRecommendationsInput { + s.Filters = v + return s +} + +// SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value. +func (s *ExportEBSVolumeRecommendationsInput) SetIncludeMemberAccounts(v bool) *ExportEBSVolumeRecommendationsInput { + s.IncludeMemberAccounts = &v + return s +} + +// SetS3DestinationConfig sets the S3DestinationConfig field's value. +func (s *ExportEBSVolumeRecommendationsInput) SetS3DestinationConfig(v *S3DestinationConfig) *ExportEBSVolumeRecommendationsInput { + s.S3DestinationConfig = v + return s +} + +type ExportEBSVolumeRecommendationsOutput struct { + _ struct{} `type:"structure"` + + // The identification number of the export job. + // + // Use the DescribeRecommendationExportJobs action, and specify the job ID to + // view the status of an export job. + JobId *string `locationName:"jobId" type:"string"` + + // Describes the destination Amazon Simple Storage Service (Amazon S3) bucket + // name and object keys of a recommendations export file, and its associated + // metadata file. + S3Destination *S3Destination `locationName:"s3Destination" type:"structure"` +} + +// String returns the string representation +func (s ExportEBSVolumeRecommendationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportEBSVolumeRecommendationsOutput) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *ExportEBSVolumeRecommendationsOutput) SetJobId(v string) *ExportEBSVolumeRecommendationsOutput { + s.JobId = &v + return s +} + +// SetS3Destination sets the S3Destination field's value. +func (s *ExportEBSVolumeRecommendationsOutput) SetS3Destination(v *S3Destination) *ExportEBSVolumeRecommendationsOutput { + s.S3Destination = v + return s +} + type ExportEC2InstanceRecommendationsInput struct { _ struct{} `type:"structure"` @@ -1894,7 +2280,11 @@ type ExportEC2InstanceRecommendationsInput struct { // accounts of the organization if your account is the management account of // an organization. // - // The member accounts must also be opted in to Compute Optimizer. + // The member accounts must also be opted in to Compute Optimizer, and trusted + // access for Compute Optimizer must be enabled in the organization account. + // For more information, see Compute Optimizer and AWS Organizations trusted + // access (https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access) + // in the AWS Compute Optimizer User Guide. // // Recommendations for member accounts of the organization are not included // in the export file if this parameter is omitted. @@ -2015,6 +2405,170 @@ func (s *ExportEC2InstanceRecommendationsOutput) SetS3Destination(v *S3Destinati return s } +type ExportLambdaFunctionRecommendationsInput struct { + _ struct{} `type:"structure"` + + // The IDs of the AWS accounts for which to export Lambda function recommendations. + // + // If your account is the management account of an organization, use this parameter + // to specify the member account for which you want to export recommendations. + // + // This parameter cannot be specified together with the include member accounts + // parameter. The parameters are mutually exclusive. + // + // Recommendations for member accounts are not included in the export if this + // parameter, or the include member accounts parameter, is omitted. + // + // You can specify multiple account IDs per request. + AccountIds []*string `locationName:"accountIds" type:"list"` + + // The recommendations data to include in the export file. For more information + // about the fields that can be exported, see Exported files (https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files) + // in the Compute Optimizer User Guide. + FieldsToExport []*string `locationName:"fieldsToExport" type:"list"` + + // The format of the export file. + // + // The only export file format currently supported is Csv. + FileFormat *string `locationName:"fileFormat" type:"string" enum:"FileFormat"` + + // An array of objects that describe a filter to export a more specific set + // of Lambda function recommendations. + Filters []*LambdaFunctionRecommendationFilter `locationName:"filters" type:"list"` + + // Indicates whether to include recommendations for resources in all member + // accounts of the organization if your account is the management account of + // an organization. + // + // The member accounts must also be opted in to Compute Optimizer, and trusted + // access for Compute Optimizer must be enabled in the organization account. + // For more information, see Compute Optimizer and AWS Organizations trusted + // access (https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access) + // in the AWS Compute Optimizer User Guide. + // + // Recommendations for member accounts of the organization are not included + // in the export file if this parameter is omitted. + // + // This parameter cannot be specified together with the account IDs parameter. + // The parameters are mutually exclusive. + // + // Recommendations for member accounts are not included in the export if this + // parameter, or the account IDs parameter, is omitted. + IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"` + + // Describes the destination Amazon Simple Storage Service (Amazon S3) bucket + // name and key prefix for a recommendations export job. + // + // You must create the destination Amazon S3 bucket for your recommendations + // export before you create the export job. Compute Optimizer does not create + // the S3 bucket for you. After you create the S3 bucket, ensure that it has + // the required permission policy to allow Compute Optimizer to write the export + // file to it. If you plan to specify an object prefix when you create the export + // job, you must include the object prefix in the policy that you add to the + // S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute + // Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html) + // in the Compute Optimizer user guide. + // + // S3DestinationConfig is a required field + S3DestinationConfig *S3DestinationConfig `locationName:"s3DestinationConfig" type:"structure" required:"true"` +} + +// String returns the string representation +func (s ExportLambdaFunctionRecommendationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportLambdaFunctionRecommendationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportLambdaFunctionRecommendationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportLambdaFunctionRecommendationsInput"} + if s.S3DestinationConfig == nil { + invalidParams.Add(request.NewErrParamRequired("S3DestinationConfig")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountIds sets the AccountIds field's value. +func (s *ExportLambdaFunctionRecommendationsInput) SetAccountIds(v []*string) *ExportLambdaFunctionRecommendationsInput { + s.AccountIds = v + return s +} + +// SetFieldsToExport sets the FieldsToExport field's value. +func (s *ExportLambdaFunctionRecommendationsInput) SetFieldsToExport(v []*string) *ExportLambdaFunctionRecommendationsInput { + s.FieldsToExport = v + return s +} + +// SetFileFormat sets the FileFormat field's value. +func (s *ExportLambdaFunctionRecommendationsInput) SetFileFormat(v string) *ExportLambdaFunctionRecommendationsInput { + s.FileFormat = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ExportLambdaFunctionRecommendationsInput) SetFilters(v []*LambdaFunctionRecommendationFilter) *ExportLambdaFunctionRecommendationsInput { + s.Filters = v + return s +} + +// SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value. +func (s *ExportLambdaFunctionRecommendationsInput) SetIncludeMemberAccounts(v bool) *ExportLambdaFunctionRecommendationsInput { + s.IncludeMemberAccounts = &v + return s +} + +// SetS3DestinationConfig sets the S3DestinationConfig field's value. +func (s *ExportLambdaFunctionRecommendationsInput) SetS3DestinationConfig(v *S3DestinationConfig) *ExportLambdaFunctionRecommendationsInput { + s.S3DestinationConfig = v + return s +} + +type ExportLambdaFunctionRecommendationsOutput struct { + _ struct{} `type:"structure"` + + // The identification number of the export job. + // + // Use the DescribeRecommendationExportJobs action, and specify the job ID to + // view the status of an export job. + JobId *string `locationName:"jobId" type:"string"` + + // Describes the destination Amazon Simple Storage Service (Amazon S3) bucket + // name and object keys of a recommendations export file, and its associated + // metadata file. + S3Destination *S3Destination `locationName:"s3Destination" type:"structure"` +} + +// String returns the string representation +func (s ExportLambdaFunctionRecommendationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportLambdaFunctionRecommendationsOutput) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *ExportLambdaFunctionRecommendationsOutput) SetJobId(v string) *ExportLambdaFunctionRecommendationsOutput { + s.JobId = &v + return s +} + +// SetS3Destination sets the S3Destination field's value. +func (s *ExportLambdaFunctionRecommendationsOutput) SetS3Destination(v *S3Destination) *ExportLambdaFunctionRecommendationsOutput { + s.S3Destination = v + return s +} + // Describes a filter that returns a more specific list of recommendations. // // This filter is used with the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations @@ -4358,8 +4912,8 @@ type UpdateEnrollmentStatusInput struct { // * Active - Opts in your account to the Compute Optimizer service. Compute // Optimizer begins analyzing the configuration and utilization metrics of // your AWS resources after you opt in. For more information, see Metrics - // analyzed by AWS Compute Optimizer (https://docs.aws.amazon.com/compute-optimizer/ug/metrics.html) - // in the Compute Optimizer User Guide. + // analyzed by AWS Compute Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html) + // in the AWS Compute Optimizer User Guide. // // * Inactive - Opts out your account from the Compute Optimizer service. // Your account's recommendations and related metrics data will be deleted @@ -5099,6 +5653,206 @@ func ExportableInstanceField_Values() []string { } } +const ( + // ExportableLambdaFunctionFieldAccountId is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldAccountId = "AccountId" + + // ExportableLambdaFunctionFieldFunctionArn is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldFunctionArn = "FunctionArn" + + // ExportableLambdaFunctionFieldFunctionVersion is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldFunctionVersion = "FunctionVersion" + + // ExportableLambdaFunctionFieldFinding is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldFinding = "Finding" + + // ExportableLambdaFunctionFieldFindingReasonCodes is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldFindingReasonCodes = "FindingReasonCodes" + + // ExportableLambdaFunctionFieldNumberOfInvocations is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldNumberOfInvocations = "NumberOfInvocations" + + // ExportableLambdaFunctionFieldUtilizationMetricsDurationMaximum is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldUtilizationMetricsDurationMaximum = "UtilizationMetricsDurationMaximum" + + // ExportableLambdaFunctionFieldUtilizationMetricsDurationAverage is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldUtilizationMetricsDurationAverage = "UtilizationMetricsDurationAverage" + + // ExportableLambdaFunctionFieldUtilizationMetricsMemoryMaximum is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldUtilizationMetricsMemoryMaximum = "UtilizationMetricsMemoryMaximum" + + // ExportableLambdaFunctionFieldUtilizationMetricsMemoryAverage is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldUtilizationMetricsMemoryAverage = "UtilizationMetricsMemoryAverage" + + // ExportableLambdaFunctionFieldLookbackPeriodInDays is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldLookbackPeriodInDays = "LookbackPeriodInDays" + + // ExportableLambdaFunctionFieldCurrentConfigurationMemorySize is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldCurrentConfigurationMemorySize = "CurrentConfigurationMemorySize" + + // ExportableLambdaFunctionFieldCurrentConfigurationTimeout is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldCurrentConfigurationTimeout = "CurrentConfigurationTimeout" + + // ExportableLambdaFunctionFieldCurrentCostTotal is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldCurrentCostTotal = "CurrentCostTotal" + + // ExportableLambdaFunctionFieldCurrentCostAverage is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldCurrentCostAverage = "CurrentCostAverage" + + // ExportableLambdaFunctionFieldRecommendationOptionsConfigurationMemorySize is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldRecommendationOptionsConfigurationMemorySize = "RecommendationOptionsConfigurationMemorySize" + + // ExportableLambdaFunctionFieldRecommendationOptionsCostLow is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldRecommendationOptionsCostLow = "RecommendationOptionsCostLow" + + // ExportableLambdaFunctionFieldRecommendationOptionsCostHigh is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldRecommendationOptionsCostHigh = "RecommendationOptionsCostHigh" + + // ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationLowerBound is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationLowerBound = "RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound" + + // ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationUpperBound is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationUpperBound = "RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound" + + // ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationExpected is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationExpected = "RecommendationOptionsProjectedUtilizationMetricsDurationExpected" + + // ExportableLambdaFunctionFieldLastRefreshTimestamp is a ExportableLambdaFunctionField enum value + ExportableLambdaFunctionFieldLastRefreshTimestamp = "LastRefreshTimestamp" +) + +// ExportableLambdaFunctionField_Values returns all elements of the ExportableLambdaFunctionField enum +func ExportableLambdaFunctionField_Values() []string { + return []string{ + ExportableLambdaFunctionFieldAccountId, + ExportableLambdaFunctionFieldFunctionArn, + ExportableLambdaFunctionFieldFunctionVersion, + ExportableLambdaFunctionFieldFinding, + ExportableLambdaFunctionFieldFindingReasonCodes, + ExportableLambdaFunctionFieldNumberOfInvocations, + ExportableLambdaFunctionFieldUtilizationMetricsDurationMaximum, + ExportableLambdaFunctionFieldUtilizationMetricsDurationAverage, + ExportableLambdaFunctionFieldUtilizationMetricsMemoryMaximum, + ExportableLambdaFunctionFieldUtilizationMetricsMemoryAverage, + ExportableLambdaFunctionFieldLookbackPeriodInDays, + ExportableLambdaFunctionFieldCurrentConfigurationMemorySize, + ExportableLambdaFunctionFieldCurrentConfigurationTimeout, + ExportableLambdaFunctionFieldCurrentCostTotal, + ExportableLambdaFunctionFieldCurrentCostAverage, + ExportableLambdaFunctionFieldRecommendationOptionsConfigurationMemorySize, + ExportableLambdaFunctionFieldRecommendationOptionsCostLow, + ExportableLambdaFunctionFieldRecommendationOptionsCostHigh, + ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationLowerBound, + ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationUpperBound, + ExportableLambdaFunctionFieldRecommendationOptionsProjectedUtilizationMetricsDurationExpected, + ExportableLambdaFunctionFieldLastRefreshTimestamp, + } +} + +const ( + // ExportableVolumeFieldAccountId is a ExportableVolumeField enum value + ExportableVolumeFieldAccountId = "AccountId" + + // ExportableVolumeFieldVolumeArn is a ExportableVolumeField enum value + ExportableVolumeFieldVolumeArn = "VolumeArn" + + // ExportableVolumeFieldFinding is a ExportableVolumeField enum value + ExportableVolumeFieldFinding = "Finding" + + // ExportableVolumeFieldUtilizationMetricsVolumeReadOpsPerSecondMaximum is a ExportableVolumeField enum value + ExportableVolumeFieldUtilizationMetricsVolumeReadOpsPerSecondMaximum = "UtilizationMetricsVolumeReadOpsPerSecondMaximum" + + // ExportableVolumeFieldUtilizationMetricsVolumeWriteOpsPerSecondMaximum is a ExportableVolumeField enum value + ExportableVolumeFieldUtilizationMetricsVolumeWriteOpsPerSecondMaximum = "UtilizationMetricsVolumeWriteOpsPerSecondMaximum" + + // ExportableVolumeFieldUtilizationMetricsVolumeReadBytesPerSecondMaximum is a ExportableVolumeField enum value + ExportableVolumeFieldUtilizationMetricsVolumeReadBytesPerSecondMaximum = "UtilizationMetricsVolumeReadBytesPerSecondMaximum" + + // ExportableVolumeFieldUtilizationMetricsVolumeWriteBytesPerSecondMaximum is a ExportableVolumeField enum value + ExportableVolumeFieldUtilizationMetricsVolumeWriteBytesPerSecondMaximum = "UtilizationMetricsVolumeWriteBytesPerSecondMaximum" + + // ExportableVolumeFieldLookbackPeriodInDays is a ExportableVolumeField enum value + ExportableVolumeFieldLookbackPeriodInDays = "LookbackPeriodInDays" + + // ExportableVolumeFieldCurrentConfigurationVolumeType is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentConfigurationVolumeType = "CurrentConfigurationVolumeType" + + // ExportableVolumeFieldCurrentConfigurationVolumeBaselineIops is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentConfigurationVolumeBaselineIops = "CurrentConfigurationVolumeBaselineIOPS" + + // ExportableVolumeFieldCurrentConfigurationVolumeBaselineThroughput is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentConfigurationVolumeBaselineThroughput = "CurrentConfigurationVolumeBaselineThroughput" + + // ExportableVolumeFieldCurrentConfigurationVolumeBurstIops is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentConfigurationVolumeBurstIops = "CurrentConfigurationVolumeBurstIOPS" + + // ExportableVolumeFieldCurrentConfigurationVolumeBurstThroughput is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentConfigurationVolumeBurstThroughput = "CurrentConfigurationVolumeBurstThroughput" + + // ExportableVolumeFieldCurrentConfigurationVolumeSize is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentConfigurationVolumeSize = "CurrentConfigurationVolumeSize" + + // ExportableVolumeFieldCurrentMonthlyPrice is a ExportableVolumeField enum value + ExportableVolumeFieldCurrentMonthlyPrice = "CurrentMonthlyPrice" + + // ExportableVolumeFieldRecommendationOptionsConfigurationVolumeType is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeType = "RecommendationOptionsConfigurationVolumeType" + + // ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBaselineIops is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBaselineIops = "RecommendationOptionsConfigurationVolumeBaselineIOPS" + + // ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBaselineThroughput is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBaselineThroughput = "RecommendationOptionsConfigurationVolumeBaselineThroughput" + + // ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBurstIops is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBurstIops = "RecommendationOptionsConfigurationVolumeBurstIOPS" + + // ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBurstThroughput is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBurstThroughput = "RecommendationOptionsConfigurationVolumeBurstThroughput" + + // ExportableVolumeFieldRecommendationOptionsConfigurationVolumeSize is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeSize = "RecommendationOptionsConfigurationVolumeSize" + + // ExportableVolumeFieldRecommendationOptionsMonthlyPrice is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsMonthlyPrice = "RecommendationOptionsMonthlyPrice" + + // ExportableVolumeFieldRecommendationOptionsPerformanceRisk is a ExportableVolumeField enum value + ExportableVolumeFieldRecommendationOptionsPerformanceRisk = "RecommendationOptionsPerformanceRisk" + + // ExportableVolumeFieldLastRefreshTimestamp is a ExportableVolumeField enum value + ExportableVolumeFieldLastRefreshTimestamp = "LastRefreshTimestamp" +) + +// ExportableVolumeField_Values returns all elements of the ExportableVolumeField enum +func ExportableVolumeField_Values() []string { + return []string{ + ExportableVolumeFieldAccountId, + ExportableVolumeFieldVolumeArn, + ExportableVolumeFieldFinding, + ExportableVolumeFieldUtilizationMetricsVolumeReadOpsPerSecondMaximum, + ExportableVolumeFieldUtilizationMetricsVolumeWriteOpsPerSecondMaximum, + ExportableVolumeFieldUtilizationMetricsVolumeReadBytesPerSecondMaximum, + ExportableVolumeFieldUtilizationMetricsVolumeWriteBytesPerSecondMaximum, + ExportableVolumeFieldLookbackPeriodInDays, + ExportableVolumeFieldCurrentConfigurationVolumeType, + ExportableVolumeFieldCurrentConfigurationVolumeBaselineIops, + ExportableVolumeFieldCurrentConfigurationVolumeBaselineThroughput, + ExportableVolumeFieldCurrentConfigurationVolumeBurstIops, + ExportableVolumeFieldCurrentConfigurationVolumeBurstThroughput, + ExportableVolumeFieldCurrentConfigurationVolumeSize, + ExportableVolumeFieldCurrentMonthlyPrice, + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeType, + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBaselineIops, + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBaselineThroughput, + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBurstIops, + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeBurstThroughput, + ExportableVolumeFieldRecommendationOptionsConfigurationVolumeSize, + ExportableVolumeFieldRecommendationOptionsMonthlyPrice, + ExportableVolumeFieldRecommendationOptionsPerformanceRisk, + ExportableVolumeFieldLastRefreshTimestamp, + } +} + const ( // FileFormatCsv is a FileFormat enum value FileFormatCsv = "Csv" @@ -5409,6 +6163,12 @@ const ( // ResourceTypeAutoScalingGroup is a ResourceType enum value ResourceTypeAutoScalingGroup = "AutoScalingGroup" + + // ResourceTypeEbsVolume is a ResourceType enum value + ResourceTypeEbsVolume = "EbsVolume" + + // ResourceTypeLambdaFunction is a ResourceType enum value + ResourceTypeLambdaFunction = "LambdaFunction" ) // ResourceType_Values returns all elements of the ResourceType enum @@ -5416,6 +6176,8 @@ func ResourceType_Values() []string { return []string{ ResourceTypeEc2instance, ResourceTypeAutoScalingGroup, + ResourceTypeEbsVolume, + ResourceTypeLambdaFunction, } } diff --git a/service/computeoptimizer/computeoptimizeriface/interface.go b/service/computeoptimizer/computeoptimizeriface/interface.go index 552016e7f7b..0ba632a6771 100644 --- a/service/computeoptimizer/computeoptimizeriface/interface.go +++ b/service/computeoptimizer/computeoptimizeriface/interface.go @@ -68,10 +68,18 @@ type ComputeOptimizerAPI interface { ExportAutoScalingGroupRecommendationsWithContext(aws.Context, *computeoptimizer.ExportAutoScalingGroupRecommendationsInput, ...request.Option) (*computeoptimizer.ExportAutoScalingGroupRecommendationsOutput, error) ExportAutoScalingGroupRecommendationsRequest(*computeoptimizer.ExportAutoScalingGroupRecommendationsInput) (*request.Request, *computeoptimizer.ExportAutoScalingGroupRecommendationsOutput) + ExportEBSVolumeRecommendations(*computeoptimizer.ExportEBSVolumeRecommendationsInput) (*computeoptimizer.ExportEBSVolumeRecommendationsOutput, error) + ExportEBSVolumeRecommendationsWithContext(aws.Context, *computeoptimizer.ExportEBSVolumeRecommendationsInput, ...request.Option) (*computeoptimizer.ExportEBSVolumeRecommendationsOutput, error) + ExportEBSVolumeRecommendationsRequest(*computeoptimizer.ExportEBSVolumeRecommendationsInput) (*request.Request, *computeoptimizer.ExportEBSVolumeRecommendationsOutput) + ExportEC2InstanceRecommendations(*computeoptimizer.ExportEC2InstanceRecommendationsInput) (*computeoptimizer.ExportEC2InstanceRecommendationsOutput, error) ExportEC2InstanceRecommendationsWithContext(aws.Context, *computeoptimizer.ExportEC2InstanceRecommendationsInput, ...request.Option) (*computeoptimizer.ExportEC2InstanceRecommendationsOutput, error) ExportEC2InstanceRecommendationsRequest(*computeoptimizer.ExportEC2InstanceRecommendationsInput) (*request.Request, *computeoptimizer.ExportEC2InstanceRecommendationsOutput) + ExportLambdaFunctionRecommendations(*computeoptimizer.ExportLambdaFunctionRecommendationsInput) (*computeoptimizer.ExportLambdaFunctionRecommendationsOutput, error) + ExportLambdaFunctionRecommendationsWithContext(aws.Context, *computeoptimizer.ExportLambdaFunctionRecommendationsInput, ...request.Option) (*computeoptimizer.ExportLambdaFunctionRecommendationsOutput, error) + ExportLambdaFunctionRecommendationsRequest(*computeoptimizer.ExportLambdaFunctionRecommendationsInput) (*request.Request, *computeoptimizer.ExportLambdaFunctionRecommendationsOutput) + GetAutoScalingGroupRecommendations(*computeoptimizer.GetAutoScalingGroupRecommendationsInput) (*computeoptimizer.GetAutoScalingGroupRecommendationsOutput, error) GetAutoScalingGroupRecommendationsWithContext(aws.Context, *computeoptimizer.GetAutoScalingGroupRecommendationsInput, ...request.Option) (*computeoptimizer.GetAutoScalingGroupRecommendationsOutput, error) GetAutoScalingGroupRecommendationsRequest(*computeoptimizer.GetAutoScalingGroupRecommendationsInput) (*request.Request, *computeoptimizer.GetAutoScalingGroupRecommendationsOutput) diff --git a/service/iotsitewise/api.go b/service/iotsitewise/api.go index 0785428df3d..624037bd4b9 100644 --- a/service/iotsitewise/api.go +++ b/service/iotsitewise/api.go @@ -385,9 +385,9 @@ func (c *IoTSiteWise) BatchPutAssetPropertyValueRequest(input *BatchPutAssetProp // To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). // // With respect to Unix epoch time, AWS IoT SiteWise accepts only TQVs that -// have a timestamp of no more than 7 days in the past and no more than 5 minutes +// have a timestamp of no more than 7 days in the past and no more than 10 minutes // in the future. AWS IoT SiteWise rejects timestamps outside of the inclusive -// range of [-7 days, +5 minutes] and returns a TimestampOutOfRangeException +// range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException // error. // // For each asset property, AWS IoT SiteWise overwrites TQVs with duplicate @@ -3592,6 +3592,8 @@ func (c *IoTSiteWise) GetInterpolatedAssetPropertyValuesRequest(input *GetInterp // the interpolated temperature values for a wind turbine every 24 hours over // a duration of 7 days. // +// This API isn't available in China (Beijing). +// // To identify an asset property, you must specify one of the following: // // * The assetId and propertyId of an asset property. diff --git a/service/lexmodelsv2/api.go b/service/lexmodelsv2/api.go index 08610b6a00c..7dedc954f11 100644 --- a/service/lexmodelsv2/api.go +++ b/service/lexmodelsv2/api.go @@ -468,6 +468,103 @@ func (c *LexModelsV2) CreateBotVersionWithContext(ctx aws.Context, input *Create return out, req.Send() } +const opCreateExport = "CreateExport" + +// CreateExportRequest generates a "aws/request.Request" representing the +// client's request for the CreateExport 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 CreateExport for more information on using the CreateExport +// 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 CreateExportRequest method. +// req, resp := client.CreateExportRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateExport +func (c *LexModelsV2) CreateExportRequest(input *CreateExportInput) (req *request.Request, output *CreateExportOutput) { + op := &request.Operation{ + Name: opCreateExport, + HTTPMethod: "PUT", + HTTPPath: "/exports/", + } + + if input == nil { + input = &CreateExportInput{} + } + + output = &CreateExportOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateExport API operation for Amazon Lex Model Building V2. +// +// Creates a zip archive containing the contents of a bot or a bot locale. The +// archive contains a directory structure that contains JSON files that define +// the bot. +// +// You can create an archive that contains the complete definition of a bot, +// or you can specify that the archive contain only the definition of a single +// bot locale. +// +// For more information about exporting bots, and about the structure of the +// export archive, see Importing and exporting bots (https://docs.aws.amazon.com/lexv2/latest/dg/importing-exporting.html) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lex Model Building V2's +// API operation CreateExport for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * ResourceNotFoundException +// +// * ConflictException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateExport +func (c *LexModelsV2) CreateExport(input *CreateExportInput) (*CreateExportOutput, error) { + req, out := c.CreateExportRequest(input) + return out, req.Send() +} + +// CreateExportWithContext is the same as CreateExport with the addition of +// the ability to pass a context and additional request options. +// +// See CreateExport 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 *LexModelsV2) CreateExportWithContext(ctx aws.Context, input *CreateExportInput, opts ...request.Option) (*CreateExportOutput, error) { + req, out := c.CreateExportRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateIntent = "CreateIntent" // CreateIntentRequest generates a "aws/request.Request" representing the @@ -766,6 +863,93 @@ func (c *LexModelsV2) CreateSlotTypeWithContext(ctx aws.Context, input *CreateSl return out, req.Send() } +const opCreateUploadUrl = "CreateUploadUrl" + +// CreateUploadUrlRequest generates a "aws/request.Request" representing the +// client's request for the CreateUploadUrl 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 CreateUploadUrl for more information on using the CreateUploadUrl +// 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 CreateUploadUrlRequest method. +// req, resp := client.CreateUploadUrlRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrl +func (c *LexModelsV2) CreateUploadUrlRequest(input *CreateUploadUrlInput) (req *request.Request, output *CreateUploadUrlOutput) { + op := &request.Operation{ + Name: opCreateUploadUrl, + HTTPMethod: "POST", + HTTPPath: "/createuploadurl/", + } + + if input == nil { + input = &CreateUploadUrlInput{} + } + + output = &CreateUploadUrlOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateUploadUrl API operation for Amazon Lex Model Building V2. +// +// Gets a pre-signed S3 write URL that you use to upload the zip archive when +// importing a bot or a bot locale. +// +// 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 Lex Model Building V2's +// API operation CreateUploadUrl for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ValidationException +// +// * ResourceNotFoundException +// +// * ConflictException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrl +func (c *LexModelsV2) CreateUploadUrl(input *CreateUploadUrlInput) (*CreateUploadUrlOutput, error) { + req, out := c.CreateUploadUrlRequest(input) + return out, req.Send() +} + +// CreateUploadUrlWithContext is the same as CreateUploadUrl with the addition of +// the ability to pass a context and additional request options. +// +// See CreateUploadUrl 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 *LexModelsV2) CreateUploadUrlWithContext(ctx aws.Context, input *CreateUploadUrlInput, opts ...request.Option) (*CreateUploadUrlOutput, error) { + req, out := c.CreateUploadUrlRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteBot = "DeleteBot" // DeleteBotRequest generates a "aws/request.Request" representing the @@ -1131,61 +1315,58 @@ func (c *LexModelsV2) DeleteBotVersionWithContext(ctx aws.Context, input *Delete return out, req.Send() } -const opDeleteIntent = "DeleteIntent" +const opDeleteExport = "DeleteExport" -// DeleteIntentRequest generates a "aws/request.Request" representing the -// client's request for the DeleteIntent operation. The "output" return +// DeleteExportRequest generates a "aws/request.Request" representing the +// client's request for the DeleteExport 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 DeleteIntent for more information on using the DeleteIntent +// See DeleteExport for more information on using the DeleteExport // 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 DeleteIntentRequest method. -// req, resp := client.DeleteIntentRequest(params) +// // Example sending a request using the DeleteExportRequest method. +// req, resp := client.DeleteExportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteIntent -func (c *LexModelsV2) DeleteIntentRequest(input *DeleteIntentInput) (req *request.Request, output *DeleteIntentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExport +func (c *LexModelsV2) DeleteExportRequest(input *DeleteExportInput) (req *request.Request, output *DeleteExportOutput) { op := &request.Operation{ - Name: opDeleteIntent, + Name: opDeleteExport, HTTPMethod: "DELETE", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/", + HTTPPath: "/exports/{exportId}/", } if input == nil { - input = &DeleteIntentInput{} + input = &DeleteExportInput{} } - output = &DeleteIntentOutput{} + output = &DeleteExportOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteIntent API operation for Amazon Lex Model Building V2. -// -// Removes the specified intent. +// DeleteExport API operation for Amazon Lex Model Building V2. // -// Deleting an intent also deletes the slots associated with the intent. +// Removes a previous export and the associated files stored in an S3 bucket. // // 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 Lex Model Building V2's -// API operation DeleteIntent for usage and error information. +// API operation DeleteExport for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -1194,87 +1375,84 @@ func (c *LexModelsV2) DeleteIntentRequest(input *DeleteIntentInput) (req *reques // // * ValidationException // -// * ConflictException -// // * PreconditionFailedException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteIntent -func (c *LexModelsV2) DeleteIntent(input *DeleteIntentInput) (*DeleteIntentOutput, error) { - req, out := c.DeleteIntentRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteExport +func (c *LexModelsV2) DeleteExport(input *DeleteExportInput) (*DeleteExportOutput, error) { + req, out := c.DeleteExportRequest(input) return out, req.Send() } -// DeleteIntentWithContext is the same as DeleteIntent with the addition of +// DeleteExportWithContext is the same as DeleteExport with the addition of // the ability to pass a context and additional request options. // -// See DeleteIntent for details on how to use this API operation. +// See DeleteExport 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 *LexModelsV2) DeleteIntentWithContext(ctx aws.Context, input *DeleteIntentInput, opts ...request.Option) (*DeleteIntentOutput, error) { - req, out := c.DeleteIntentRequest(input) +func (c *LexModelsV2) DeleteExportWithContext(ctx aws.Context, input *DeleteExportInput, opts ...request.Option) (*DeleteExportOutput, error) { + req, out := c.DeleteExportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteSlot = "DeleteSlot" +const opDeleteImport = "DeleteImport" -// DeleteSlotRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSlot operation. The "output" return +// DeleteImportRequest generates a "aws/request.Request" representing the +// client's request for the DeleteImport 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 DeleteSlot for more information on using the DeleteSlot +// See DeleteImport for more information on using the DeleteImport // 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 DeleteSlotRequest method. -// req, resp := client.DeleteSlotRequest(params) +// // Example sending a request using the DeleteImportRequest method. +// req, resp := client.DeleteImportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlot -func (c *LexModelsV2) DeleteSlotRequest(input *DeleteSlotInput) (req *request.Request, output *DeleteSlotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImport +func (c *LexModelsV2) DeleteImportRequest(input *DeleteImportInput) (req *request.Request, output *DeleteImportOutput) { op := &request.Operation{ - Name: opDeleteSlot, + Name: opDeleteImport, HTTPMethod: "DELETE", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}/", + HTTPPath: "/imports/{importId}/", } if input == nil { - input = &DeleteSlotInput{} + input = &DeleteImportInput{} } - output = &DeleteSlotOutput{} + output = &DeleteImportOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteSlot API operation for Amazon Lex Model Building V2. +// DeleteImport API operation for Amazon Lex Model Building V2. // -// Deletes the specified slot from an intent. +// Removes a previous import and the associated file stored in an S3 bucket. // // 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 Lex Model Building V2's -// API operation DeleteSlot for usage and error information. +// API operation DeleteImport for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -1283,91 +1461,87 @@ func (c *LexModelsV2) DeleteSlotRequest(input *DeleteSlotInput) (req *request.Re // // * ValidationException // -// * ConflictException -// // * PreconditionFailedException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlot -func (c *LexModelsV2) DeleteSlot(input *DeleteSlotInput) (*DeleteSlotOutput, error) { - req, out := c.DeleteSlotRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteImport +func (c *LexModelsV2) DeleteImport(input *DeleteImportInput) (*DeleteImportOutput, error) { + req, out := c.DeleteImportRequest(input) return out, req.Send() } -// DeleteSlotWithContext is the same as DeleteSlot with the addition of +// DeleteImportWithContext is the same as DeleteImport with the addition of // the ability to pass a context and additional request options. // -// See DeleteSlot for details on how to use this API operation. +// See DeleteImport 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 *LexModelsV2) DeleteSlotWithContext(ctx aws.Context, input *DeleteSlotInput, opts ...request.Option) (*DeleteSlotOutput, error) { - req, out := c.DeleteSlotRequest(input) +func (c *LexModelsV2) DeleteImportWithContext(ctx aws.Context, input *DeleteImportInput, opts ...request.Option) (*DeleteImportOutput, error) { + req, out := c.DeleteImportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteSlotType = "DeleteSlotType" +const opDeleteIntent = "DeleteIntent" -// DeleteSlotTypeRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSlotType operation. The "output" return +// DeleteIntentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteIntent 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 DeleteSlotType for more information on using the DeleteSlotType +// See DeleteIntent for more information on using the DeleteIntent // 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 DeleteSlotTypeRequest method. -// req, resp := client.DeleteSlotTypeRequest(params) +// // Example sending a request using the DeleteIntentRequest method. +// req, resp := client.DeleteIntentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlotType -func (c *LexModelsV2) DeleteSlotTypeRequest(input *DeleteSlotTypeInput) (req *request.Request, output *DeleteSlotTypeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteIntent +func (c *LexModelsV2) DeleteIntentRequest(input *DeleteIntentInput) (req *request.Request, output *DeleteIntentOutput) { op := &request.Operation{ - Name: opDeleteSlotType, + Name: opDeleteIntent, HTTPMethod: "DELETE", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/", } if input == nil { - input = &DeleteSlotTypeInput{} + input = &DeleteIntentInput{} } - output = &DeleteSlotTypeOutput{} + output = &DeleteIntentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteSlotType API operation for Amazon Lex Model Building V2. +// DeleteIntent API operation for Amazon Lex Model Building V2. // -// Deletes a slot type from a bot locale. +// Removes the specified intent. // -// If a slot is using the slot type, Amazon Lex throws a ResourceInUseException -// exception. To avoid the exception, set the skipResourceInUseCheck parameter -// to true. +// Deleting an intent also deletes the slots associated with the intent. // // 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 Lex Model Building V2's -// API operation DeleteSlotType for usage and error information. +// API operation DeleteIntent for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -1382,63 +1556,245 @@ func (c *LexModelsV2) DeleteSlotTypeRequest(input *DeleteSlotTypeInput) (req *re // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlotType -func (c *LexModelsV2) DeleteSlotType(input *DeleteSlotTypeInput) (*DeleteSlotTypeOutput, error) { - req, out := c.DeleteSlotTypeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteIntent +func (c *LexModelsV2) DeleteIntent(input *DeleteIntentInput) (*DeleteIntentOutput, error) { + req, out := c.DeleteIntentRequest(input) return out, req.Send() } -// DeleteSlotTypeWithContext is the same as DeleteSlotType with the addition of +// DeleteIntentWithContext is the same as DeleteIntent with the addition of // the ability to pass a context and additional request options. // -// See DeleteSlotType for details on how to use this API operation. +// See DeleteIntent 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 *LexModelsV2) DeleteSlotTypeWithContext(ctx aws.Context, input *DeleteSlotTypeInput, opts ...request.Option) (*DeleteSlotTypeOutput, error) { - req, out := c.DeleteSlotTypeRequest(input) +func (c *LexModelsV2) DeleteIntentWithContext(ctx aws.Context, input *DeleteIntentInput, opts ...request.Option) (*DeleteIntentOutput, error) { + req, out := c.DeleteIntentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeBot = "DescribeBot" +const opDeleteSlot = "DeleteSlot" -// DescribeBotRequest generates a "aws/request.Request" representing the -// client's request for the DescribeBot operation. The "output" return +// DeleteSlotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSlot 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 DescribeBot for more information on using the DescribeBot +// See DeleteSlot for more information on using the DeleteSlot // 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 DescribeBotRequest method. -// req, resp := client.DescribeBotRequest(params) +// // Example sending a request using the DeleteSlotRequest method. +// req, resp := client.DeleteSlotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBot -func (c *LexModelsV2) DescribeBotRequest(input *DescribeBotInput) (req *request.Request, output *DescribeBotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlot +func (c *LexModelsV2) DeleteSlotRequest(input *DeleteSlotInput) (req *request.Request, output *DeleteSlotOutput) { op := &request.Operation{ - Name: opDescribeBot, - HTTPMethod: "GET", - HTTPPath: "/bots/{botId}/", + Name: opDeleteSlot, + HTTPMethod: "DELETE", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}/", } if input == nil { - input = &DescribeBotInput{} + input = &DeleteSlotInput{} + } + + output = &DeleteSlotOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSlot API operation for Amazon Lex Model Building V2. +// +// Deletes the specified slot from an intent. +// +// 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 Lex Model Building V2's +// API operation DeleteSlot for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * ConflictException +// +// * PreconditionFailedException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlot +func (c *LexModelsV2) DeleteSlot(input *DeleteSlotInput) (*DeleteSlotOutput, error) { + req, out := c.DeleteSlotRequest(input) + return out, req.Send() +} + +// DeleteSlotWithContext is the same as DeleteSlot with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSlot 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 *LexModelsV2) DeleteSlotWithContext(ctx aws.Context, input *DeleteSlotInput, opts ...request.Option) (*DeleteSlotOutput, error) { + req, out := c.DeleteSlotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSlotType = "DeleteSlotType" + +// DeleteSlotTypeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSlotType 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 DeleteSlotType for more information on using the DeleteSlotType +// 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 DeleteSlotTypeRequest method. +// req, resp := client.DeleteSlotTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlotType +func (c *LexModelsV2) DeleteSlotTypeRequest(input *DeleteSlotTypeInput) (req *request.Request, output *DeleteSlotTypeOutput) { + op := &request.Operation{ + Name: opDeleteSlotType, + HTTPMethod: "DELETE", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/", + } + + if input == nil { + input = &DeleteSlotTypeInput{} + } + + output = &DeleteSlotTypeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSlotType API operation for Amazon Lex Model Building V2. +// +// Deletes a slot type from a bot locale. +// +// If a slot is using the slot type, Amazon Lex throws a ResourceInUseException +// exception. To avoid the exception, set the skipResourceInUseCheck parameter +// to true. +// +// 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 Lex Model Building V2's +// API operation DeleteSlotType for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * ConflictException +// +// * PreconditionFailedException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteSlotType +func (c *LexModelsV2) DeleteSlotType(input *DeleteSlotTypeInput) (*DeleteSlotTypeOutput, error) { + req, out := c.DeleteSlotTypeRequest(input) + return out, req.Send() +} + +// DeleteSlotTypeWithContext is the same as DeleteSlotType with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSlotType 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 *LexModelsV2) DeleteSlotTypeWithContext(ctx aws.Context, input *DeleteSlotTypeInput, opts ...request.Option) (*DeleteSlotTypeOutput, error) { + req, out := c.DeleteSlotTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeBot = "DescribeBot" + +// DescribeBotRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBot 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 DescribeBot for more information on using the DescribeBot +// 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 DescribeBotRequest method. +// req, resp := client.DescribeBotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBot +func (c *LexModelsV2) DescribeBotRequest(input *DescribeBotInput) (req *request.Request, output *DescribeBotOutput) { + op := &request.Operation{ + Name: opDescribeBot, + HTTPMethod: "GET", + HTTPPath: "/bots/{botId}/", + } + + if input == nil { + input = &DescribeBotInput{} } output = &DescribeBotOutput{} @@ -1748,221 +2104,389 @@ func (c *LexModelsV2) DescribeBotVersionWithContext(ctx aws.Context, input *Desc return out, req.Send() } -const opDescribeIntent = "DescribeIntent" +const opDescribeExport = "DescribeExport" -// DescribeIntentRequest generates a "aws/request.Request" representing the -// client's request for the DescribeIntent operation. The "output" return +// DescribeExportRequest generates a "aws/request.Request" representing the +// client's request for the DescribeExport 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 DescribeIntent for more information on using the DescribeIntent +// See DescribeExport for more information on using the DescribeExport // 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 DescribeIntentRequest method. -// req, resp := client.DescribeIntentRequest(params) +// // Example sending a request using the DescribeExportRequest method. +// req, resp := client.DescribeExportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntent -func (c *LexModelsV2) DescribeIntentRequest(input *DescribeIntentInput) (req *request.Request, output *DescribeIntentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport +func (c *LexModelsV2) DescribeExportRequest(input *DescribeExportInput) (req *request.Request, output *DescribeExportOutput) { op := &request.Operation{ - Name: opDescribeIntent, + Name: opDescribeExport, HTTPMethod: "GET", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/", + HTTPPath: "/exports/{exportId}/", } if input == nil { - input = &DescribeIntentInput{} + input = &DescribeExportInput{} } - output = &DescribeIntentOutput{} + output = &DescribeExportOutput{} req = c.newRequest(op, input, output) return } -// DescribeIntent API operation for Amazon Lex Model Building V2. +// DescribeExport API operation for Amazon Lex Model Building V2. // -// Returns metadata about an intent. +// Gets information about a specific export. // // 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 Lex Model Building V2's -// API operation DescribeIntent for usage and error information. +// API operation DescribeExport for usage and error information. // // Returned Error Types: // * ThrottlingException // -// * ServiceQuotaExceededException -// // * ValidationException // // * ResourceNotFoundException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntent -func (c *LexModelsV2) DescribeIntent(input *DescribeIntentInput) (*DescribeIntentOutput, error) { - req, out := c.DescribeIntentRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport +func (c *LexModelsV2) DescribeExport(input *DescribeExportInput) (*DescribeExportOutput, error) { + req, out := c.DescribeExportRequest(input) return out, req.Send() } -// DescribeIntentWithContext is the same as DescribeIntent with the addition of +// DescribeExportWithContext is the same as DescribeExport with the addition of // the ability to pass a context and additional request options. // -// See DescribeIntent for details on how to use this API operation. +// See DescribeExport 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 *LexModelsV2) DescribeIntentWithContext(ctx aws.Context, input *DescribeIntentInput, opts ...request.Option) (*DescribeIntentOutput, error) { - req, out := c.DescribeIntentRequest(input) +func (c *LexModelsV2) DescribeExportWithContext(ctx aws.Context, input *DescribeExportInput, opts ...request.Option) (*DescribeExportOutput, error) { + req, out := c.DescribeExportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeSlot = "DescribeSlot" +const opDescribeImport = "DescribeImport" -// DescribeSlotRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSlot operation. The "output" return +// DescribeImportRequest generates a "aws/request.Request" representing the +// client's request for the DescribeImport 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 DescribeSlot for more information on using the DescribeSlot +// See DescribeImport for more information on using the DescribeImport // 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 DescribeSlotRequest method. -// req, resp := client.DescribeSlotRequest(params) +// // Example sending a request using the DescribeImportRequest method. +// req, resp := client.DescribeImportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlot -func (c *LexModelsV2) DescribeSlotRequest(input *DescribeSlotInput) (req *request.Request, output *DescribeSlotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport +func (c *LexModelsV2) DescribeImportRequest(input *DescribeImportInput) (req *request.Request, output *DescribeImportOutput) { op := &request.Operation{ - Name: opDescribeSlot, + Name: opDescribeImport, HTTPMethod: "GET", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}/", + HTTPPath: "/imports/{importId}/", } if input == nil { - input = &DescribeSlotInput{} + input = &DescribeImportInput{} } - output = &DescribeSlotOutput{} + output = &DescribeImportOutput{} req = c.newRequest(op, input, output) return } -// DescribeSlot API operation for Amazon Lex Model Building V2. +// DescribeImport API operation for Amazon Lex Model Building V2. // -// Gets metadata information about a slot. +// Gets information about a specific import. // // 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 Lex Model Building V2's -// API operation DescribeSlot for usage and error information. +// API operation DescribeImport for usage and error information. // // Returned Error Types: // * ThrottlingException // -// * ServiceQuotaExceededException -// // * ValidationException // // * ResourceNotFoundException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlot -func (c *LexModelsV2) DescribeSlot(input *DescribeSlotInput) (*DescribeSlotOutput, error) { - req, out := c.DescribeSlotRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport +func (c *LexModelsV2) DescribeImport(input *DescribeImportInput) (*DescribeImportOutput, error) { + req, out := c.DescribeImportRequest(input) return out, req.Send() } -// DescribeSlotWithContext is the same as DescribeSlot with the addition of +// DescribeImportWithContext is the same as DescribeImport with the addition of // the ability to pass a context and additional request options. // -// See DescribeSlot for details on how to use this API operation. +// See DescribeImport 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 *LexModelsV2) DescribeSlotWithContext(ctx aws.Context, input *DescribeSlotInput, opts ...request.Option) (*DescribeSlotOutput, error) { - req, out := c.DescribeSlotRequest(input) +func (c *LexModelsV2) DescribeImportWithContext(ctx aws.Context, input *DescribeImportInput, opts ...request.Option) (*DescribeImportOutput, error) { + req, out := c.DescribeImportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeSlotType = "DescribeSlotType" +const opDescribeIntent = "DescribeIntent" -// DescribeSlotTypeRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSlotType operation. The "output" return +// DescribeIntentRequest generates a "aws/request.Request" representing the +// client's request for the DescribeIntent 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 DescribeSlotType for more information on using the DescribeSlotType +// See DescribeIntent for more information on using the DescribeIntent // 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 DescribeSlotTypeRequest method. -// req, resp := client.DescribeSlotTypeRequest(params) +// // Example sending a request using the DescribeIntentRequest method. +// req, resp := client.DescribeIntentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotType -func (c *LexModelsV2) DescribeSlotTypeRequest(input *DescribeSlotTypeInput) (req *request.Request, output *DescribeSlotTypeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntent +func (c *LexModelsV2) DescribeIntentRequest(input *DescribeIntentInput) (req *request.Request, output *DescribeIntentOutput) { op := &request.Operation{ - Name: opDescribeSlotType, + Name: opDescribeIntent, HTTPMethod: "GET", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/", } if input == nil { - input = &DescribeSlotTypeInput{} + input = &DescribeIntentInput{} } - output = &DescribeSlotTypeOutput{} + output = &DescribeIntentOutput{} req = c.newRequest(op, input, output) return } -// DescribeSlotType API operation for Amazon Lex Model Building V2. +// DescribeIntent API operation for Amazon Lex Model Building V2. +// +// Returns metadata about an intent. +// +// 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 Lex Model Building V2's +// API operation DescribeIntent for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * ResourceNotFoundException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeIntent +func (c *LexModelsV2) DescribeIntent(input *DescribeIntentInput) (*DescribeIntentOutput, error) { + req, out := c.DescribeIntentRequest(input) + return out, req.Send() +} + +// DescribeIntentWithContext is the same as DescribeIntent with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeIntent 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 *LexModelsV2) DescribeIntentWithContext(ctx aws.Context, input *DescribeIntentInput, opts ...request.Option) (*DescribeIntentOutput, error) { + req, out := c.DescribeIntentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeSlot = "DescribeSlot" + +// DescribeSlotRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSlot 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 DescribeSlot for more information on using the DescribeSlot +// 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 DescribeSlotRequest method. +// req, resp := client.DescribeSlotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlot +func (c *LexModelsV2) DescribeSlotRequest(input *DescribeSlotInput) (req *request.Request, output *DescribeSlotOutput) { + op := &request.Operation{ + Name: opDescribeSlot, + HTTPMethod: "GET", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}/", + } + + if input == nil { + input = &DescribeSlotInput{} + } + + output = &DescribeSlotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSlot API operation for Amazon Lex Model Building V2. +// +// Gets metadata information about a slot. +// +// 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 Lex Model Building V2's +// API operation DescribeSlot for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * ResourceNotFoundException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlot +func (c *LexModelsV2) DescribeSlot(input *DescribeSlotInput) (*DescribeSlotOutput, error) { + req, out := c.DescribeSlotRequest(input) + return out, req.Send() +} + +// DescribeSlotWithContext is the same as DescribeSlot with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSlot 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 *LexModelsV2) DescribeSlotWithContext(ctx aws.Context, input *DescribeSlotInput, opts ...request.Option) (*DescribeSlotOutput, error) { + req, out := c.DescribeSlotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeSlotType = "DescribeSlotType" + +// DescribeSlotTypeRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSlotType 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 DescribeSlotType for more information on using the DescribeSlotType +// 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 DescribeSlotTypeRequest method. +// req, resp := client.DescribeSlotTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotType +func (c *LexModelsV2) DescribeSlotTypeRequest(input *DescribeSlotTypeInput) (req *request.Request, output *DescribeSlotTypeOutput) { + op := &request.Operation{ + Name: opDescribeSlotType, + HTTPMethod: "GET", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/", + } + + if input == nil { + input = &DescribeSlotTypeInput{} + } + + output = &DescribeSlotTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSlotType API operation for Amazon Lex Model Building V2. // // Gets metadata information about a slot type. // @@ -2871,37 +3395,37 @@ func (c *LexModelsV2) ListBuiltInSlotTypesPagesWithContext(ctx aws.Context, inpu return p.Err() } -const opListIntents = "ListIntents" +const opListExports = "ListExports" -// ListIntentsRequest generates a "aws/request.Request" representing the -// client's request for the ListIntents operation. The "output" return +// ListExportsRequest generates a "aws/request.Request" representing the +// client's request for the ListExports 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 ListIntents for more information on using the ListIntents +// See ListExports for more information on using the ListExports // 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 ListIntentsRequest method. -// req, resp := client.ListIntentsRequest(params) +// // Example sending a request using the ListExportsRequest method. +// req, resp := client.ListExportsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntents -func (c *LexModelsV2) ListIntentsRequest(input *ListIntentsInput) (req *request.Request, output *ListIntentsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports +func (c *LexModelsV2) ListExportsRequest(input *ListExportsInput) (req *request.Request, output *ListExportsOutput) { op := &request.Operation{ - Name: opListIntents, + Name: opListExports, HTTPMethod: "POST", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/", + HTTPPath: "/exports/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -2911,93 +3435,92 @@ func (c *LexModelsV2) ListIntentsRequest(input *ListIntentsInput) (req *request. } if input == nil { - input = &ListIntentsInput{} + input = &ListExportsInput{} } - output = &ListIntentsOutput{} + output = &ListExportsOutput{} req = c.newRequest(op, input, output) return } -// ListIntents API operation for Amazon Lex Model Building V2. +// ListExports API operation for Amazon Lex Model Building V2. // -// Get a list of intents that meet the specified criteria. +// Lists the exports for a bot or bot locale. Exports are kept in the list for +// 7 days. // // 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 Lex Model Building V2's -// API operation ListIntents for usage and error information. +// API operation ListExports for usage and error information. // // Returned Error Types: // * ThrottlingException // -// * ServiceQuotaExceededException -// // * ValidationException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntents -func (c *LexModelsV2) ListIntents(input *ListIntentsInput) (*ListIntentsOutput, error) { - req, out := c.ListIntentsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports +func (c *LexModelsV2) ListExports(input *ListExportsInput) (*ListExportsOutput, error) { + req, out := c.ListExportsRequest(input) return out, req.Send() } -// ListIntentsWithContext is the same as ListIntents with the addition of +// ListExportsWithContext is the same as ListExports with the addition of // the ability to pass a context and additional request options. // -// See ListIntents for details on how to use this API operation. +// See ListExports 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 *LexModelsV2) ListIntentsWithContext(ctx aws.Context, input *ListIntentsInput, opts ...request.Option) (*ListIntentsOutput, error) { - req, out := c.ListIntentsRequest(input) +func (c *LexModelsV2) ListExportsWithContext(ctx aws.Context, input *ListExportsInput, opts ...request.Option) (*ListExportsOutput, error) { + req, out := c.ListExportsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListIntentsPages iterates over the pages of a ListIntents operation, +// ListExportsPages iterates over the pages of a ListExports operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListIntents method for more information on how to use this operation. +// See ListExports 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 ListIntents operation. +// // Example iterating over at most 3 pages of a ListExports operation. // pageNum := 0 -// err := client.ListIntentsPages(params, -// func(page *lexmodelsv2.ListIntentsOutput, lastPage bool) bool { +// err := client.ListExportsPages(params, +// func(page *lexmodelsv2.ListExportsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *LexModelsV2) ListIntentsPages(input *ListIntentsInput, fn func(*ListIntentsOutput, bool) bool) error { - return c.ListIntentsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LexModelsV2) ListExportsPages(input *ListExportsInput, fn func(*ListExportsOutput, bool) bool) error { + return c.ListExportsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListIntentsPagesWithContext same as ListIntentsPages except +// ListExportsPagesWithContext same as ListExportsPages 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 *LexModelsV2) ListIntentsPagesWithContext(ctx aws.Context, input *ListIntentsInput, fn func(*ListIntentsOutput, bool) bool, opts ...request.Option) error { +func (c *LexModelsV2) ListExportsPagesWithContext(ctx aws.Context, input *ListExportsInput, fn func(*ListExportsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListIntentsInput + var inCpy *ListExportsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListIntentsRequest(inCpy) + req, _ := c.ListExportsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3005,7 +3528,7 @@ func (c *LexModelsV2) ListIntentsPagesWithContext(ctx aws.Context, input *ListIn } for p.Next() { - if !fn(p.Page().(*ListIntentsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListExportsOutput), !p.HasNextPage()) { break } } @@ -3013,37 +3536,37 @@ func (c *LexModelsV2) ListIntentsPagesWithContext(ctx aws.Context, input *ListIn return p.Err() } -const opListSlotTypes = "ListSlotTypes" +const opListImports = "ListImports" -// ListSlotTypesRequest generates a "aws/request.Request" representing the -// client's request for the ListSlotTypes operation. The "output" return +// ListImportsRequest generates a "aws/request.Request" representing the +// client's request for the ListImports 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 ListSlotTypes for more information on using the ListSlotTypes +// See ListImports for more information on using the ListImports // 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 ListSlotTypesRequest method. -// req, resp := client.ListSlotTypesRequest(params) +// // Example sending a request using the ListImportsRequest method. +// req, resp := client.ListImportsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes -func (c *LexModelsV2) ListSlotTypesRequest(input *ListSlotTypesInput) (req *request.Request, output *ListSlotTypesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports +func (c *LexModelsV2) ListImportsRequest(input *ListImportsInput) (req *request.Request, output *ListImportsOutput) { op := &request.Operation{ - Name: opListSlotTypes, + Name: opListImports, HTTPMethod: "POST", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/", + HTTPPath: "/imports/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -3053,93 +3576,92 @@ func (c *LexModelsV2) ListSlotTypesRequest(input *ListSlotTypesInput) (req *requ } if input == nil { - input = &ListSlotTypesInput{} + input = &ListImportsInput{} } - output = &ListSlotTypesOutput{} + output = &ListImportsOutput{} req = c.newRequest(op, input, output) return } -// ListSlotTypes API operation for Amazon Lex Model Building V2. +// ListImports API operation for Amazon Lex Model Building V2. // -// Gets a list of slot types that match the specified criteria. +// Lists the imports for a bot or bot locale. Imports are kept in the list for +// 7 days. // // 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 Lex Model Building V2's -// API operation ListSlotTypes for usage and error information. +// API operation ListImports for usage and error information. // // Returned Error Types: // * ThrottlingException // -// * ServiceQuotaExceededException -// // * ValidationException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes -func (c *LexModelsV2) ListSlotTypes(input *ListSlotTypesInput) (*ListSlotTypesOutput, error) { - req, out := c.ListSlotTypesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports +func (c *LexModelsV2) ListImports(input *ListImportsInput) (*ListImportsOutput, error) { + req, out := c.ListImportsRequest(input) return out, req.Send() } -// ListSlotTypesWithContext is the same as ListSlotTypes with the addition of +// ListImportsWithContext is the same as ListImports with the addition of // the ability to pass a context and additional request options. // -// See ListSlotTypes for details on how to use this API operation. +// See ListImports 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 *LexModelsV2) ListSlotTypesWithContext(ctx aws.Context, input *ListSlotTypesInput, opts ...request.Option) (*ListSlotTypesOutput, error) { - req, out := c.ListSlotTypesRequest(input) +func (c *LexModelsV2) ListImportsWithContext(ctx aws.Context, input *ListImportsInput, opts ...request.Option) (*ListImportsOutput, error) { + req, out := c.ListImportsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSlotTypesPages iterates over the pages of a ListSlotTypes operation, +// ListImportsPages iterates over the pages of a ListImports operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListSlotTypes method for more information on how to use this operation. +// See ListImports 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 ListSlotTypes operation. +// // Example iterating over at most 3 pages of a ListImports operation. // pageNum := 0 -// err := client.ListSlotTypesPages(params, -// func(page *lexmodelsv2.ListSlotTypesOutput, lastPage bool) bool { +// err := client.ListImportsPages(params, +// func(page *lexmodelsv2.ListImportsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *LexModelsV2) ListSlotTypesPages(input *ListSlotTypesInput, fn func(*ListSlotTypesOutput, bool) bool) error { - return c.ListSlotTypesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LexModelsV2) ListImportsPages(input *ListImportsInput, fn func(*ListImportsOutput, bool) bool) error { + return c.ListImportsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListSlotTypesPagesWithContext same as ListSlotTypesPages except +// ListImportsPagesWithContext same as ListImportsPages 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 *LexModelsV2) ListSlotTypesPagesWithContext(ctx aws.Context, input *ListSlotTypesInput, fn func(*ListSlotTypesOutput, bool) bool, opts ...request.Option) error { +func (c *LexModelsV2) ListImportsPagesWithContext(ctx aws.Context, input *ListImportsInput, fn func(*ListImportsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListSlotTypesInput + var inCpy *ListImportsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListSlotTypesRequest(inCpy) + req, _ := c.ListImportsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3147,7 +3669,7 @@ func (c *LexModelsV2) ListSlotTypesPagesWithContext(ctx aws.Context, input *List } for p.Next() { - if !fn(p.Page().(*ListSlotTypesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListImportsOutput), !p.HasNextPage()) { break } } @@ -3155,37 +3677,37 @@ func (c *LexModelsV2) ListSlotTypesPagesWithContext(ctx aws.Context, input *List return p.Err() } -const opListSlots = "ListSlots" +const opListIntents = "ListIntents" -// ListSlotsRequest generates a "aws/request.Request" representing the -// client's request for the ListSlots operation. The "output" return +// ListIntentsRequest generates a "aws/request.Request" representing the +// client's request for the ListIntents 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 ListSlots for more information on using the ListSlots +// See ListIntents for more information on using the ListIntents // 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 ListSlotsRequest method. -// req, resp := client.ListSlotsRequest(params) -// +// // Example sending a request using the ListIntentsRequest method. +// req, resp := client.ListIntentsRequest(params) +// // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlots -func (c *LexModelsV2) ListSlotsRequest(input *ListSlotsInput) (req *request.Request, output *ListSlotsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntents +func (c *LexModelsV2) ListIntentsRequest(input *ListIntentsInput) (req *request.Request, output *ListIntentsOutput) { op := &request.Operation{ - Name: opListSlots, + Name: opListIntents, HTTPMethod: "POST", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, @@ -3195,24 +3717,24 @@ func (c *LexModelsV2) ListSlotsRequest(input *ListSlotsInput) (req *request.Requ } if input == nil { - input = &ListSlotsInput{} + input = &ListIntentsInput{} } - output = &ListSlotsOutput{} + output = &ListIntentsOutput{} req = c.newRequest(op, input, output) return } -// ListSlots API operation for Amazon Lex Model Building V2. +// ListIntents API operation for Amazon Lex Model Building V2. // -// Gets a list of slots that match the specified criteria. +// Get a list of intents that meet the specified criteria. // // 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 Lex Model Building V2's -// API operation ListSlots for usage and error information. +// API operation ListIntents for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -3223,65 +3745,65 @@ func (c *LexModelsV2) ListSlotsRequest(input *ListSlotsInput) (req *request.Requ // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlots -func (c *LexModelsV2) ListSlots(input *ListSlotsInput) (*ListSlotsOutput, error) { - req, out := c.ListSlotsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntents +func (c *LexModelsV2) ListIntents(input *ListIntentsInput) (*ListIntentsOutput, error) { + req, out := c.ListIntentsRequest(input) return out, req.Send() } -// ListSlotsWithContext is the same as ListSlots with the addition of +// ListIntentsWithContext is the same as ListIntents with the addition of // the ability to pass a context and additional request options. // -// See ListSlots for details on how to use this API operation. +// See ListIntents 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 *LexModelsV2) ListSlotsWithContext(ctx aws.Context, input *ListSlotsInput, opts ...request.Option) (*ListSlotsOutput, error) { - req, out := c.ListSlotsRequest(input) +func (c *LexModelsV2) ListIntentsWithContext(ctx aws.Context, input *ListIntentsInput, opts ...request.Option) (*ListIntentsOutput, error) { + req, out := c.ListIntentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSlotsPages iterates over the pages of a ListSlots operation, +// ListIntentsPages iterates over the pages of a ListIntents operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListSlots method for more information on how to use this operation. +// See ListIntents 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 ListSlots operation. +// // Example iterating over at most 3 pages of a ListIntents operation. // pageNum := 0 -// err := client.ListSlotsPages(params, -// func(page *lexmodelsv2.ListSlotsOutput, lastPage bool) bool { +// err := client.ListIntentsPages(params, +// func(page *lexmodelsv2.ListIntentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *LexModelsV2) ListSlotsPages(input *ListSlotsInput, fn func(*ListSlotsOutput, bool) bool) error { - return c.ListSlotsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *LexModelsV2) ListIntentsPages(input *ListIntentsInput, fn func(*ListIntentsOutput, bool) bool) error { + return c.ListIntentsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListSlotsPagesWithContext same as ListSlotsPages except +// ListIntentsPagesWithContext same as ListIntentsPages 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 *LexModelsV2) ListSlotsPagesWithContext(ctx aws.Context, input *ListSlotsInput, fn func(*ListSlotsOutput, bool) bool, opts ...request.Option) error { +func (c *LexModelsV2) ListIntentsPagesWithContext(ctx aws.Context, input *ListIntentsInput, fn func(*ListIntentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListSlotsInput + var inCpy *ListIntentsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListSlotsRequest(inCpy) + req, _ := c.ListIntentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3289,7 +3811,7 @@ func (c *LexModelsV2) ListSlotsPagesWithContext(ctx aws.Context, input *ListSlot } for p.Next() { - if !fn(p.Page().(*ListSlotsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListIntentsOutput), !p.HasNextPage()) { break } } @@ -3297,230 +3819,343 @@ func (c *LexModelsV2) ListSlotsPagesWithContext(ctx aws.Context, input *ListSlot return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListSlotTypes = "ListSlotTypes" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// ListSlotTypesRequest generates a "aws/request.Request" representing the +// client's request for the ListSlotTypes 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 ListTagsForResource for more information on using the ListTagsForResource +// See ListSlotTypes for more information on using the ListSlotTypes // 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 ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the ListSlotTypesRequest method. +// req, resp := client.ListSlotTypesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListTagsForResource -func (c *LexModelsV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes +func (c *LexModelsV2) ListSlotTypesRequest(input *ListSlotTypesInput) (req *request.Request, output *ListSlotTypesOutput) { op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "GET", - HTTPPath: "/tags/{resourceARN}", + Name: opListSlotTypes, + HTTPMethod: "POST", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListSlotTypesInput{} } - output = &ListTagsForResourceOutput{} + output = &ListSlotTypesOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for Amazon Lex Model Building V2. +// ListSlotTypes API operation for Amazon Lex Model Building V2. // -// Gets a list of tags associated with a resource. Only bots, bot aliases, and -// bot channels can have tags associated with them. +// Gets a list of slot types that match the specified criteria. // // 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 Lex Model Building V2's -// API operation ListTagsForResource for usage and error information. +// API operation ListSlotTypes for usage and error information. // // Returned Error Types: -// * InternalServerException -// // * ThrottlingException // -// * ResourceNotFoundException +// * ServiceQuotaExceededException // // * ValidationException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListTagsForResource -func (c *LexModelsV2) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes +func (c *LexModelsV2) ListSlotTypes(input *ListSlotTypesInput) (*ListSlotTypesOutput, error) { + req, out := c.ListSlotTypesRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListSlotTypesWithContext is the same as ListSlotTypes with the addition of // the ability to pass a context and additional request options. // -// See ListTagsForResource for details on how to use this API operation. +// See ListSlotTypes 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 *LexModelsV2) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *LexModelsV2) ListSlotTypesWithContext(ctx aws.Context, input *ListSlotTypesInput, opts ...request.Option) (*ListSlotTypesOutput, error) { + req, out := c.ListSlotTypesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// ListSlotTypesPages iterates over the pages of a ListSlotTypes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSlotTypes 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 ListSlotTypes operation. +// pageNum := 0 +// err := client.ListSlotTypesPages(params, +// func(page *lexmodelsv2.ListSlotTypesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LexModelsV2) ListSlotTypesPages(input *ListSlotTypesInput, fn func(*ListSlotTypesOutput, bool) bool) error { + return c.ListSlotTypesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// ListSlotTypesPagesWithContext same as ListSlotTypesPages 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 *LexModelsV2) ListSlotTypesPagesWithContext(ctx aws.Context, input *ListSlotTypesInput, fn func(*ListSlotTypesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSlotTypesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSlotTypesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSlotTypesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSlots = "ListSlots" + +// ListSlotsRequest generates a "aws/request.Request" representing the +// client's request for the ListSlots 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 TagResource for more information on using the TagResource +// See ListSlots for more information on using the ListSlots // 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 TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the ListSlotsRequest method. +// req, resp := client.ListSlotsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TagResource -func (c *LexModelsV2) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlots +func (c *LexModelsV2) ListSlotsRequest(input *ListSlotsInput) (req *request.Request, output *ListSlotsOutput) { op := &request.Operation{ - Name: opTagResource, + Name: opListSlots, HTTPMethod: "POST", - HTTPPath: "/tags/{resourceARN}", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &TagResourceInput{} + input = &ListSlotsInput{} } - output = &TagResourceOutput{} + output = &ListSlotsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for Amazon Lex Model Building V2. +// ListSlots API operation for Amazon Lex Model Building V2. // -// Adds the specified tags to the specified resource. If a tag key already exists, -// the existing value is replaced with the new value. +// Gets a list of slots that match the specified criteria. // // 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 Lex Model Building V2's -// API operation TagResource for usage and error information. +// API operation ListSlots for usage and error information. // // Returned Error Types: -// * InternalServerException -// // * ThrottlingException // -// * ResourceNotFoundException +// * ServiceQuotaExceededException // // * ValidationException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TagResource -func (c *LexModelsV2) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlots +func (c *LexModelsV2) ListSlots(input *ListSlotsInput) (*ListSlotsOutput, error) { + req, out := c.ListSlotsRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// ListSlotsWithContext is the same as ListSlots with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See ListSlots 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 *LexModelsV2) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *LexModelsV2) ListSlotsWithContext(ctx aws.Context, input *ListSlotsInput, opts ...request.Option) (*ListSlotsOutput, error) { + req, out := c.ListSlotsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" - -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource 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. +// ListSlotsPages iterates over the pages of a ListSlots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// See UntagResource for more information on using the UntagResource -// API call, and error handling. +// See ListSlots method for more information on how to use this operation. // -// 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. +// Note: This operation can generate multiple requests to a service. // +// // Example iterating over at most 3 pages of a ListSlots operation. +// pageNum := 0 +// err := client.ListSlotsPages(params, +// func(page *lexmodelsv2.ListSlotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +func (c *LexModelsV2) ListSlotsPages(input *ListSlotsInput, fn func(*ListSlotsOutput, bool) bool) error { + return c.ListSlotsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSlotsPagesWithContext same as ListSlotsPages 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 *LexModelsV2) ListSlotsPagesWithContext(ctx aws.Context, input *ListSlotsInput, fn func(*ListSlotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSlotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSlotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSlotsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource +// 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 ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UntagResource -func (c *LexModelsV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListTagsForResource +func (c *LexModelsV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", + Name: opListTagsForResource, + HTTPMethod: "GET", HTTPPath: "/tags/{resourceARN}", } if input == nil { - input = &UntagResourceInput{} + input = &ListTagsForResourceInput{} } - output = &UntagResourceOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for Amazon Lex Model Building V2. +// ListTagsForResource API operation for Amazon Lex Model Building V2. // -// Removes tags from a bot, bot alias, or bot channel. +// Gets a list of tags associated with a resource. Only bots, bot aliases, and +// bot channels can have tags associated with them. // // 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 Lex Model Building V2's -// API operation UntagResource for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * InternalServerException @@ -3531,80 +4166,81 @@ func (c *LexModelsV2) UntagResourceRequest(input *UntagResourceInput) (req *requ // // * ValidationException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UntagResource -func (c *LexModelsV2) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListTagsForResource +func (c *LexModelsV2) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See ListTagsForResource 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 *LexModelsV2) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *LexModelsV2) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateBot = "UpdateBot" +const opStartImport = "StartImport" -// UpdateBotRequest generates a "aws/request.Request" representing the -// client's request for the UpdateBot operation. The "output" return +// StartImportRequest generates a "aws/request.Request" representing the +// client's request for the StartImport 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 UpdateBot for more information on using the UpdateBot +// See StartImport for more information on using the StartImport // 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 UpdateBotRequest method. -// req, resp := client.UpdateBotRequest(params) +// // Example sending a request using the StartImportRequest method. +// req, resp := client.StartImportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBot -func (c *LexModelsV2) UpdateBotRequest(input *UpdateBotInput) (req *request.Request, output *UpdateBotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImport +func (c *LexModelsV2) StartImportRequest(input *StartImportInput) (req *request.Request, output *StartImportOutput) { op := &request.Operation{ - Name: opUpdateBot, + Name: opStartImport, HTTPMethod: "PUT", - HTTPPath: "/bots/{botId}/", + HTTPPath: "/imports/", } if input == nil { - input = &UpdateBotInput{} + input = &StartImportInput{} } - output = &UpdateBotOutput{} + output = &StartImportOutput{} req = c.newRequest(op, input, output) return } -// UpdateBot API operation for Amazon Lex Model Building V2. +// StartImport API operation for Amazon Lex Model Building V2. // -// Updates the configuration of an existing bot. +// Starts importing a bot or bot locale from a zip archive that you uploaded +// to an S3 bucket. // // 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 Lex Model Building V2's -// API operation UpdateBot for usage and error information. +// API operation StartImport for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -3613,262 +4249,257 @@ func (c *LexModelsV2) UpdateBotRequest(input *UpdateBotInput) (req *request.Requ // // * ValidationException // -// * PreconditionFailedException +// * ResourceNotFoundException // // * ConflictException // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBot -func (c *LexModelsV2) UpdateBot(input *UpdateBotInput) (*UpdateBotOutput, error) { - req, out := c.UpdateBotRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImport +func (c *LexModelsV2) StartImport(input *StartImportInput) (*StartImportOutput, error) { + req, out := c.StartImportRequest(input) return out, req.Send() } -// UpdateBotWithContext is the same as UpdateBot with the addition of +// StartImportWithContext is the same as StartImport with the addition of // the ability to pass a context and additional request options. // -// See UpdateBot for details on how to use this API operation. +// See StartImport 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 *LexModelsV2) UpdateBotWithContext(ctx aws.Context, input *UpdateBotInput, opts ...request.Option) (*UpdateBotOutput, error) { - req, out := c.UpdateBotRequest(input) +func (c *LexModelsV2) StartImportWithContext(ctx aws.Context, input *StartImportInput, opts ...request.Option) (*StartImportOutput, error) { + req, out := c.StartImportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateBotAlias = "UpdateBotAlias" +const opTagResource = "TagResource" -// UpdateBotAliasRequest generates a "aws/request.Request" representing the -// client's request for the UpdateBotAlias operation. The "output" return +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource 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 UpdateBotAlias for more information on using the UpdateBotAlias +// See TagResource for more information on using the TagResource // 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 UpdateBotAliasRequest method. -// req, resp := client.UpdateBotAliasRequest(params) +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotAlias -func (c *LexModelsV2) UpdateBotAliasRequest(input *UpdateBotAliasInput) (req *request.Request, output *UpdateBotAliasOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TagResource +func (c *LexModelsV2) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opUpdateBotAlias, - HTTPMethod: "PUT", - HTTPPath: "/bots/{botId}/botaliases/{botAliasId}/", + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceARN}", } if input == nil { - input = &UpdateBotAliasInput{} + input = &TagResourceInput{} } - output = &UpdateBotAliasOutput{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateBotAlias API operation for Amazon Lex Model Building V2. +// TagResource API operation for Amazon Lex Model Building V2. // -// Updates the configuration of an existing bot alias. +// Adds the specified tags to the specified resource. If a tag key already exists, +// the existing value is replaced with the new value. // // 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 Lex Model Building V2's -// API operation UpdateBotAlias for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Types: +// * InternalServerException +// // * ThrottlingException // -// * ServiceQuotaExceededException +// * ResourceNotFoundException // // * ValidationException // -// * PreconditionFailedException -// -// * ConflictException -// -// * InternalServerException -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotAlias -func (c *LexModelsV2) UpdateBotAlias(input *UpdateBotAliasInput) (*UpdateBotAliasOutput, error) { - req, out := c.UpdateBotAliasRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TagResource +func (c *LexModelsV2) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// UpdateBotAliasWithContext is the same as UpdateBotAlias with the addition of +// TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateBotAlias for details on how to use this API operation. +// See TagResource 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 *LexModelsV2) UpdateBotAliasWithContext(ctx aws.Context, input *UpdateBotAliasInput, opts ...request.Option) (*UpdateBotAliasOutput, error) { - req, out := c.UpdateBotAliasRequest(input) +func (c *LexModelsV2) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateBotLocale = "UpdateBotLocale" +const opUntagResource = "UntagResource" -// UpdateBotLocaleRequest generates a "aws/request.Request" representing the -// client's request for the UpdateBotLocale operation. The "output" return +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource 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 UpdateBotLocale for more information on using the UpdateBotLocale +// See UntagResource for more information on using the UntagResource // 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 UpdateBotLocaleRequest method. -// req, resp := client.UpdateBotLocaleRequest(params) +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale -func (c *LexModelsV2) UpdateBotLocaleRequest(input *UpdateBotLocaleInput) (req *request.Request, output *UpdateBotLocaleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UntagResource +func (c *LexModelsV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opUpdateBotLocale, - HTTPMethod: "PUT", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/", + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceARN}", } if input == nil { - input = &UpdateBotLocaleInput{} + input = &UntagResourceInput{} } - output = &UpdateBotLocaleOutput{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateBotLocale API operation for Amazon Lex Model Building V2. +// UntagResource API operation for Amazon Lex Model Building V2. // -// Updates the settings that a bot has for a specific locale. +// Removes tags from a bot, bot alias, or bot channel. // // 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 Lex Model Building V2's -// API operation UpdateBotLocale for usage and error information. +// API operation UntagResource for usage and error information. // // Returned Error Types: +// * InternalServerException +// // * ThrottlingException // -// * ServiceQuotaExceededException +// * ResourceNotFoundException // // * ValidationException // -// * PreconditionFailedException -// -// * ConflictException -// -// * InternalServerException -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale -func (c *LexModelsV2) UpdateBotLocale(input *UpdateBotLocaleInput) (*UpdateBotLocaleOutput, error) { - req, out := c.UpdateBotLocaleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UntagResource +func (c *LexModelsV2) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) return out, req.Send() } -// UpdateBotLocaleWithContext is the same as UpdateBotLocale with the addition of +// UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateBotLocale for details on how to use this API operation. +// See UntagResource 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 *LexModelsV2) UpdateBotLocaleWithContext(ctx aws.Context, input *UpdateBotLocaleInput, opts ...request.Option) (*UpdateBotLocaleOutput, error) { - req, out := c.UpdateBotLocaleRequest(input) +func (c *LexModelsV2) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateIntent = "UpdateIntent" +const opUpdateBot = "UpdateBot" -// UpdateIntentRequest generates a "aws/request.Request" representing the -// client's request for the UpdateIntent operation. The "output" return +// UpdateBotRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBot 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 UpdateIntent for more information on using the UpdateIntent +// See UpdateBot for more information on using the UpdateBot // 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 UpdateIntentRequest method. -// req, resp := client.UpdateIntentRequest(params) +// // Example sending a request using the UpdateBotRequest method. +// req, resp := client.UpdateBotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateIntent -func (c *LexModelsV2) UpdateIntentRequest(input *UpdateIntentInput) (req *request.Request, output *UpdateIntentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBot +func (c *LexModelsV2) UpdateBotRequest(input *UpdateBotInput) (req *request.Request, output *UpdateBotOutput) { op := &request.Operation{ - Name: opUpdateIntent, + Name: opUpdateBot, HTTPMethod: "PUT", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/", + HTTPPath: "/bots/{botId}/", } if input == nil { - input = &UpdateIntentInput{} + input = &UpdateBotInput{} } - output = &UpdateIntentOutput{} + output = &UpdateBotOutput{} req = c.newRequest(op, input, output) return } -// UpdateIntent API operation for Amazon Lex Model Building V2. +// UpdateBot API operation for Amazon Lex Model Building V2. // -// Updates the settings for an intent. +// Updates the configuration of an existing bot. // // 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 Lex Model Building V2's -// API operation UpdateIntent for usage and error information. +// API operation UpdateBot for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -3883,80 +4514,80 @@ func (c *LexModelsV2) UpdateIntentRequest(input *UpdateIntentInput) (req *reques // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateIntent -func (c *LexModelsV2) UpdateIntent(input *UpdateIntentInput) (*UpdateIntentOutput, error) { - req, out := c.UpdateIntentRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBot +func (c *LexModelsV2) UpdateBot(input *UpdateBotInput) (*UpdateBotOutput, error) { + req, out := c.UpdateBotRequest(input) return out, req.Send() } -// UpdateIntentWithContext is the same as UpdateIntent with the addition of +// UpdateBotWithContext is the same as UpdateBot with the addition of // the ability to pass a context and additional request options. // -// See UpdateIntent for details on how to use this API operation. +// See UpdateBot 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 *LexModelsV2) UpdateIntentWithContext(ctx aws.Context, input *UpdateIntentInput, opts ...request.Option) (*UpdateIntentOutput, error) { - req, out := c.UpdateIntentRequest(input) +func (c *LexModelsV2) UpdateBotWithContext(ctx aws.Context, input *UpdateBotInput, opts ...request.Option) (*UpdateBotOutput, error) { + req, out := c.UpdateBotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSlot = "UpdateSlot" +const opUpdateBotAlias = "UpdateBotAlias" -// UpdateSlotRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSlot operation. The "output" return +// UpdateBotAliasRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBotAlias 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 UpdateSlot for more information on using the UpdateSlot +// See UpdateBotAlias for more information on using the UpdateBotAlias // 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 UpdateSlotRequest method. -// req, resp := client.UpdateSlotRequest(params) +// // Example sending a request using the UpdateBotAliasRequest method. +// req, resp := client.UpdateBotAliasRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlot -func (c *LexModelsV2) UpdateSlotRequest(input *UpdateSlotInput) (req *request.Request, output *UpdateSlotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotAlias +func (c *LexModelsV2) UpdateBotAliasRequest(input *UpdateBotAliasInput) (req *request.Request, output *UpdateBotAliasOutput) { op := &request.Operation{ - Name: opUpdateSlot, + Name: opUpdateBotAlias, HTTPMethod: "PUT", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}/", + HTTPPath: "/bots/{botId}/botaliases/{botAliasId}/", } if input == nil { - input = &UpdateSlotInput{} + input = &UpdateBotAliasInput{} } - output = &UpdateSlotOutput{} + output = &UpdateBotAliasOutput{} req = c.newRequest(op, input, output) return } -// UpdateSlot API operation for Amazon Lex Model Building V2. +// UpdateBotAlias API operation for Amazon Lex Model Building V2. // -// Updates the settings for a slot. +// Updates the configuration of an existing bot alias. // // 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 Lex Model Building V2's -// API operation UpdateSlot for usage and error information. +// API operation UpdateBotAlias for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -3971,80 +4602,80 @@ func (c *LexModelsV2) UpdateSlotRequest(input *UpdateSlotInput) (req *request.Re // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlot -func (c *LexModelsV2) UpdateSlot(input *UpdateSlotInput) (*UpdateSlotOutput, error) { - req, out := c.UpdateSlotRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotAlias +func (c *LexModelsV2) UpdateBotAlias(input *UpdateBotAliasInput) (*UpdateBotAliasOutput, error) { + req, out := c.UpdateBotAliasRequest(input) return out, req.Send() } -// UpdateSlotWithContext is the same as UpdateSlot with the addition of +// UpdateBotAliasWithContext is the same as UpdateBotAlias with the addition of // the ability to pass a context and additional request options. // -// See UpdateSlot for details on how to use this API operation. +// See UpdateBotAlias 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 *LexModelsV2) UpdateSlotWithContext(ctx aws.Context, input *UpdateSlotInput, opts ...request.Option) (*UpdateSlotOutput, error) { - req, out := c.UpdateSlotRequest(input) +func (c *LexModelsV2) UpdateBotAliasWithContext(ctx aws.Context, input *UpdateBotAliasInput, opts ...request.Option) (*UpdateBotAliasOutput, error) { + req, out := c.UpdateBotAliasRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSlotType = "UpdateSlotType" +const opUpdateBotLocale = "UpdateBotLocale" -// UpdateSlotTypeRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSlotType operation. The "output" return +// UpdateBotLocaleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBotLocale 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 UpdateSlotType for more information on using the UpdateSlotType +// See UpdateBotLocale for more information on using the UpdateBotLocale // 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 UpdateSlotTypeRequest method. -// req, resp := client.UpdateSlotTypeRequest(params) +// // Example sending a request using the UpdateBotLocaleRequest method. +// req, resp := client.UpdateBotLocaleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType -func (c *LexModelsV2) UpdateSlotTypeRequest(input *UpdateSlotTypeInput) (req *request.Request, output *UpdateSlotTypeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale +func (c *LexModelsV2) UpdateBotLocaleRequest(input *UpdateBotLocaleInput) (req *request.Request, output *UpdateBotLocaleOutput) { op := &request.Operation{ - Name: opUpdateSlotType, + Name: opUpdateBotLocale, HTTPMethod: "PUT", - HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/", } if input == nil { - input = &UpdateSlotTypeInput{} + input = &UpdateBotLocaleInput{} } - output = &UpdateSlotTypeOutput{} + output = &UpdateBotLocaleOutput{} req = c.newRequest(op, input, output) return } -// UpdateSlotType API operation for Amazon Lex Model Building V2. +// UpdateBotLocale API operation for Amazon Lex Model Building V2. // -// Updates the configuration of an existing slot type. +// Updates the settings that a bot has for a specific locale. // // 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 Lex Model Building V2's -// API operation UpdateSlotType for usage and error information. +// API operation UpdateBotLocale for usage and error information. // // Returned Error Types: // * ThrottlingException @@ -4059,101 +4690,453 @@ func (c *LexModelsV2) UpdateSlotTypeRequest(input *UpdateSlotTypeInput) (req *re // // * InternalServerException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType -func (c *LexModelsV2) UpdateSlotType(input *UpdateSlotTypeInput) (*UpdateSlotTypeOutput, error) { - req, out := c.UpdateSlotTypeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale +func (c *LexModelsV2) UpdateBotLocale(input *UpdateBotLocaleInput) (*UpdateBotLocaleOutput, error) { + req, out := c.UpdateBotLocaleRequest(input) return out, req.Send() } -// UpdateSlotTypeWithContext is the same as UpdateSlotType with the addition of +// UpdateBotLocaleWithContext is the same as UpdateBotLocale with the addition of // the ability to pass a context and additional request options. // -// See UpdateSlotType for details on how to use this API operation. +// See UpdateBotLocale 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 *LexModelsV2) UpdateSlotTypeWithContext(ctx aws.Context, input *UpdateSlotTypeInput, opts ...request.Option) (*UpdateSlotTypeOutput, error) { - req, out := c.UpdateSlotTypeRequest(input) +func (c *LexModelsV2) UpdateBotLocaleWithContext(ctx aws.Context, input *UpdateBotLocaleInput, opts ...request.Option) (*UpdateBotLocaleOutput, error) { + req, out := c.UpdateBotLocaleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// The location of audio log files collected when conversation logging is enabled -// for a bot. -type AudioLogDestination struct { - _ struct{} `type:"structure"` +const opUpdateExport = "UpdateExport" - // The Amazon S3 bucket where the audio log files are stored. The IAM role specified - // in the roleArn parameter of the CreateBot operation must have permission - // to write to this bucket. - // - // S3Bucket is a required field - S3Bucket *S3BucketLogDestination `locationName:"s3Bucket" type:"structure" required:"true"` -} +// UpdateExportRequest generates a "aws/request.Request" representing the +// client's request for the UpdateExport 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 UpdateExport for more information on using the UpdateExport +// 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 UpdateExportRequest method. +// req, resp := client.UpdateExportRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExport +func (c *LexModelsV2) UpdateExportRequest(input *UpdateExportInput) (req *request.Request, output *UpdateExportOutput) { + op := &request.Operation{ + Name: opUpdateExport, + HTTPMethod: "PUT", + HTTPPath: "/exports/{exportId}/", + } -// String returns the string representation -func (s AudioLogDestination) String() string { - return awsutil.Prettify(s) -} + if input == nil { + input = &UpdateExportInput{} + } -// GoString returns the string representation -func (s AudioLogDestination) GoString() string { - return s.String() + output = &UpdateExportOutput{} + req = c.newRequest(op, input, output) + return } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AudioLogDestination) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AudioLogDestination"} - if s.S3Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("S3Bucket")) - } - if s.S3Bucket != nil { - if err := s.S3Bucket.Validate(); err != nil { - invalidParams.AddNested("S3Bucket", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// UpdateExport API operation for Amazon Lex Model Building V2. +// +// Updates the password used to encrypt an export zip archive. +// +// 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 Lex Model Building V2's +// API operation UpdateExport for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * ResourceNotFoundException +// +// * ConflictException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateExport +func (c *LexModelsV2) UpdateExport(input *UpdateExportInput) (*UpdateExportOutput, error) { + req, out := c.UpdateExportRequest(input) + return out, req.Send() } -// SetS3Bucket sets the S3Bucket field's value. -func (s *AudioLogDestination) SetS3Bucket(v *S3BucketLogDestination) *AudioLogDestination { - s.S3Bucket = v - return s +// UpdateExportWithContext is the same as UpdateExport with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateExport 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 *LexModelsV2) UpdateExportWithContext(ctx aws.Context, input *UpdateExportInput, opts ...request.Option) (*UpdateExportOutput, error) { + req, out := c.UpdateExportRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// Settings for logging audio of conversations between Amazon Lex and a user. -// You specify whether to log audio and the Amazon S3 bucket where the audio -// file is stored. -type AudioLogSetting struct { - _ struct{} `type:"structure"` +const opUpdateIntent = "UpdateIntent" - // The location of audio log files collected when conversation logging is enabled - // for a bot. - // - // Destination is a required field - Destination *AudioLogDestination `locationName:"destination" type:"structure" required:"true"` +// UpdateIntentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateIntent 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 UpdateIntent for more information on using the UpdateIntent +// 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 UpdateIntentRequest method. +// req, resp := client.UpdateIntentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateIntent +func (c *LexModelsV2) UpdateIntentRequest(input *UpdateIntentInput) (req *request.Request, output *UpdateIntentOutput) { + op := &request.Operation{ + Name: opUpdateIntent, + HTTPMethod: "PUT", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/", + } - // Determines whether audio logging in enabled for the bot. - // - // Enabled is a required field - Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` -} + if input == nil { + input = &UpdateIntentInput{} + } -// String returns the string representation -func (s AudioLogSetting) String() string { - return awsutil.Prettify(s) + output = &UpdateIntentOutput{} + req = c.newRequest(op, input, output) + return } -// GoString returns the string representation -func (s AudioLogSetting) GoString() string { - return s.String() +// UpdateIntent API operation for Amazon Lex Model Building V2. +// +// Updates the settings for an intent. +// +// 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 Lex Model Building V2's +// API operation UpdateIntent for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * PreconditionFailedException +// +// * ConflictException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateIntent +func (c *LexModelsV2) UpdateIntent(input *UpdateIntentInput) (*UpdateIntentOutput, error) { + req, out := c.UpdateIntentRequest(input) + return out, req.Send() +} + +// UpdateIntentWithContext is the same as UpdateIntent with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateIntent 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 *LexModelsV2) UpdateIntentWithContext(ctx aws.Context, input *UpdateIntentInput, opts ...request.Option) (*UpdateIntentOutput, error) { + req, out := c.UpdateIntentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSlot = "UpdateSlot" + +// UpdateSlotRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSlot 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 UpdateSlot for more information on using the UpdateSlot +// 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 UpdateSlotRequest method. +// req, resp := client.UpdateSlotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlot +func (c *LexModelsV2) UpdateSlotRequest(input *UpdateSlotInput) (req *request.Request, output *UpdateSlotOutput) { + op := &request.Operation{ + Name: opUpdateSlot, + HTTPMethod: "PUT", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId}/", + } + + if input == nil { + input = &UpdateSlotInput{} + } + + output = &UpdateSlotOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSlot API operation for Amazon Lex Model Building V2. +// +// Updates the settings for a slot. +// +// 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 Lex Model Building V2's +// API operation UpdateSlot for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * PreconditionFailedException +// +// * ConflictException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlot +func (c *LexModelsV2) UpdateSlot(input *UpdateSlotInput) (*UpdateSlotOutput, error) { + req, out := c.UpdateSlotRequest(input) + return out, req.Send() +} + +// UpdateSlotWithContext is the same as UpdateSlot with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSlot 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 *LexModelsV2) UpdateSlotWithContext(ctx aws.Context, input *UpdateSlotInput, opts ...request.Option) (*UpdateSlotOutput, error) { + req, out := c.UpdateSlotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSlotType = "UpdateSlotType" + +// UpdateSlotTypeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSlotType 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 UpdateSlotType for more information on using the UpdateSlotType +// 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 UpdateSlotTypeRequest method. +// req, resp := client.UpdateSlotTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType +func (c *LexModelsV2) UpdateSlotTypeRequest(input *UpdateSlotTypeInput) (req *request.Request, output *UpdateSlotTypeOutput) { + op := &request.Operation{ + Name: opUpdateSlotType, + HTTPMethod: "PUT", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/", + } + + if input == nil { + input = &UpdateSlotTypeInput{} + } + + output = &UpdateSlotTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSlotType API operation for Amazon Lex Model Building V2. +// +// Updates the configuration of an existing slot type. +// +// 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 Lex Model Building V2's +// API operation UpdateSlotType for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// +// * ServiceQuotaExceededException +// +// * ValidationException +// +// * PreconditionFailedException +// +// * ConflictException +// +// * InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType +func (c *LexModelsV2) UpdateSlotType(input *UpdateSlotTypeInput) (*UpdateSlotTypeOutput, error) { + req, out := c.UpdateSlotTypeRequest(input) + return out, req.Send() +} + +// UpdateSlotTypeWithContext is the same as UpdateSlotType with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSlotType 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 *LexModelsV2) UpdateSlotTypeWithContext(ctx aws.Context, input *UpdateSlotTypeInput, opts ...request.Option) (*UpdateSlotTypeOutput, error) { + req, out := c.UpdateSlotTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The location of audio log files collected when conversation logging is enabled +// for a bot. +type AudioLogDestination struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket where the audio log files are stored. The IAM role specified + // in the roleArn parameter of the CreateBot operation must have permission + // to write to this bucket. + // + // S3Bucket is a required field + S3Bucket *S3BucketLogDestination `locationName:"s3Bucket" type:"structure" required:"true"` +} + +// String returns the string representation +func (s AudioLogDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AudioLogDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AudioLogDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AudioLogDestination"} + if s.S3Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("S3Bucket")) + } + if s.S3Bucket != nil { + if err := s.S3Bucket.Validate(); err != nil { + invalidParams.AddNested("S3Bucket", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *AudioLogDestination) SetS3Bucket(v *S3BucketLogDestination) *AudioLogDestination { + s.S3Bucket = v + return s +} + +// Settings for logging audio of conversations between Amazon Lex and a user. +// You specify whether to log audio and the Amazon S3 bucket where the audio +// file is stored. +type AudioLogSetting struct { + _ struct{} `type:"structure"` + + // The location of audio log files collected when conversation logging is enabled + // for a bot. + // + // Destination is a required field + Destination *AudioLogDestination `locationName:"destination" type:"structure" required:"true"` + + // Determines whether audio logging in enabled for the bot. + // + // Enabled is a required field + Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` +} + +// String returns the string representation +func (s AudioLogSetting) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AudioLogSetting) GoString() string { + return s.String() } // Validate inspects the fields of the type to determine if they are valid. @@ -4308,111 +5291,367 @@ type BotAliasSummary struct { // A timestamp of the date and time that the bot alias was created. CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` - // The description of the bot alias. - Description *string `locationName:"description" type:"string"` + // The description of the bot alias. + Description *string `locationName:"description" type:"string"` + + // A timestamp of the date and time that the bot alias was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` +} + +// String returns the string representation +func (s BotAliasSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BotAliasSummary) GoString() string { + return s.String() +} + +// SetBotAliasId sets the BotAliasId field's value. +func (s *BotAliasSummary) SetBotAliasId(v string) *BotAliasSummary { + s.BotAliasId = &v + return s +} + +// SetBotAliasName sets the BotAliasName field's value. +func (s *BotAliasSummary) SetBotAliasName(v string) *BotAliasSummary { + s.BotAliasName = &v + return s +} + +// SetBotAliasStatus sets the BotAliasStatus field's value. +func (s *BotAliasSummary) SetBotAliasStatus(v string) *BotAliasSummary { + s.BotAliasStatus = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *BotAliasSummary) SetBotVersion(v string) *BotAliasSummary { + s.BotVersion = &v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *BotAliasSummary) SetCreationDateTime(v time.Time) *BotAliasSummary { + s.CreationDateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *BotAliasSummary) SetDescription(v string) *BotAliasSummary { + s.Description = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *BotAliasSummary) SetLastUpdatedDateTime(v time.Time) *BotAliasSummary { + s.LastUpdatedDateTime = &v + return s +} + +// Provided the identity of a the bot that was exported. +type BotExportSpecification struct { + _ struct{} `type:"structure"` + + // The identifier of the bot assigned by Amazon Lex. + // + // BotId is a required field + BotId *string `locationName:"botId" min:"10" type:"string" required:"true"` + + // The version of the bot that was exported. This will be either DRAFT or the + // version number. + // + // BotVersion is a required field + BotVersion *string `locationName:"botVersion" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s BotExportSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BotExportSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BotExportSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BotExportSpecification"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *BotExportSpecification) SetBotId(v string) *BotExportSpecification { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *BotExportSpecification) SetBotVersion(v string) *BotExportSpecification { + s.BotVersion = &v + return s +} + +// Filters the responses returned by the ListBots operation. +type BotFilter struct { + _ struct{} `type:"structure"` + + // The name of the field to filter the list of bots. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true" enum:"BotFilterName"` + + // The operator to use for the filter. Specify EQ when the ListBots operation + // should return only aliases that equal the specified value. Specify CO when + // the ListBots operation should return aliases that contain the specified value. + // + // Operator is a required field + Operator *string `locationName:"operator" type:"string" required:"true" enum:"BotFilterOperator"` + + // The value to use for filtering the list of bots. + // + // Values is a required field + Values []*string `locationName:"values" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BotFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BotFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BotFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BotFilter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Operator == nil { + invalidParams.Add(request.NewErrParamRequired("Operator")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *BotFilter) SetName(v string) *BotFilter { + s.Name = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *BotFilter) SetOperator(v string) *BotFilter { + s.Operator = &v + return s +} + +// SetValues sets the Values field's value. +func (s *BotFilter) SetValues(v []*string) *BotFilter { + s.Values = v + return s +} + +// Provides the bot parameters required for importing a bot. +type BotImportSpecification struct { + _ struct{} `type:"structure"` + + // The name that Amazon Lex should use for the bot. + // + // BotName is a required field + BotName *string `locationName:"botName" min:"1" type:"string" required:"true"` + + // A list of tags to add to the bot. You can only add tags when you import a + // bot. You can't use the UpdateBot operation to update tags. To update tags, + // use the TagResource operation. + BotTags map[string]*string `locationName:"botTags" type:"map"` + + // By default, data stored by Amazon Lex is encrypted. The DataPrivacy structure + // provides settings that determine how Amazon Lex handles special cases of + // securing the data for your bot. + // + // DataPrivacy is a required field + DataPrivacy *DataPrivacy `locationName:"dataPrivacy" type:"structure" required:"true"` + + // The time, in seconds, that Amazon Lex should keep information about a user's + // conversation with the bot. + // + // A user interaction remains active for the amount of time specified. If no + // conversation occurs during this time, the session expires and Amazon Lex + // deletes any data provided before the timeout. + // + // You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. + IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"` + + // The Amazon Resource Name (ARN) of the IAM role used to build and run the + // bot. + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"32" type:"string" required:"true"` - // A timestamp of the date and time that the bot alias was last updated. - LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + // A list of tags to add to the test alias for a bot. You can only add tags + // when you import a bot. You can't use the UpdateAlias operation to update + // tags. To update tags on the test alias, use the TagResource operation. + TestBotAliasTags map[string]*string `locationName:"testBotAliasTags" type:"map"` } // String returns the string representation -func (s BotAliasSummary) String() string { +func (s BotImportSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BotAliasSummary) GoString() string { +func (s BotImportSpecification) GoString() string { return s.String() } -// SetBotAliasId sets the BotAliasId field's value. -func (s *BotAliasSummary) SetBotAliasId(v string) *BotAliasSummary { - s.BotAliasId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *BotImportSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BotImportSpecification"} + if s.BotName == nil { + invalidParams.Add(request.NewErrParamRequired("BotName")) + } + if s.BotName != nil && len(*s.BotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotName", 1)) + } + if s.DataPrivacy == nil { + invalidParams.Add(request.NewErrParamRequired("DataPrivacy")) + } + if s.IdleSessionTTLInSeconds != nil && *s.IdleSessionTTLInSeconds < 60 { + invalidParams.Add(request.NewErrParamMinValue("IdleSessionTTLInSeconds", 60)) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 32 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 32)) + } + if s.DataPrivacy != nil { + if err := s.DataPrivacy.Validate(); err != nil { + invalidParams.AddNested("DataPrivacy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetBotAliasName sets the BotAliasName field's value. -func (s *BotAliasSummary) SetBotAliasName(v string) *BotAliasSummary { - s.BotAliasName = &v +// SetBotName sets the BotName field's value. +func (s *BotImportSpecification) SetBotName(v string) *BotImportSpecification { + s.BotName = &v return s } -// SetBotAliasStatus sets the BotAliasStatus field's value. -func (s *BotAliasSummary) SetBotAliasStatus(v string) *BotAliasSummary { - s.BotAliasStatus = &v +// SetBotTags sets the BotTags field's value. +func (s *BotImportSpecification) SetBotTags(v map[string]*string) *BotImportSpecification { + s.BotTags = v return s } -// SetBotVersion sets the BotVersion field's value. -func (s *BotAliasSummary) SetBotVersion(v string) *BotAliasSummary { - s.BotVersion = &v +// SetDataPrivacy sets the DataPrivacy field's value. +func (s *BotImportSpecification) SetDataPrivacy(v *DataPrivacy) *BotImportSpecification { + s.DataPrivacy = v return s } -// SetCreationDateTime sets the CreationDateTime field's value. -func (s *BotAliasSummary) SetCreationDateTime(v time.Time) *BotAliasSummary { - s.CreationDateTime = &v +// SetIdleSessionTTLInSeconds sets the IdleSessionTTLInSeconds field's value. +func (s *BotImportSpecification) SetIdleSessionTTLInSeconds(v int64) *BotImportSpecification { + s.IdleSessionTTLInSeconds = &v return s } -// SetDescription sets the Description field's value. -func (s *BotAliasSummary) SetDescription(v string) *BotAliasSummary { - s.Description = &v +// SetRoleArn sets the RoleArn field's value. +func (s *BotImportSpecification) SetRoleArn(v string) *BotImportSpecification { + s.RoleArn = &v return s } -// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. -func (s *BotAliasSummary) SetLastUpdatedDateTime(v time.Time) *BotAliasSummary { - s.LastUpdatedDateTime = &v +// SetTestBotAliasTags sets the TestBotAliasTags field's value. +func (s *BotImportSpecification) SetTestBotAliasTags(v map[string]*string) *BotImportSpecification { + s.TestBotAliasTags = v return s } -// Filters the responses returned by the ListBots operation. -type BotFilter struct { +// Provides the bot locale parameters required for exporting a bot locale. +type BotLocaleExportSpecification struct { _ struct{} `type:"structure"` - // The name of the field to filter the list of bots. + // The identifier of the bot to create the locale for. // - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true" enum:"BotFilterName"` + // BotId is a required field + BotId *string `locationName:"botId" min:"10" type:"string" required:"true"` - // The operator to use for the filter. Specify EQ when the ListBots operation - // should return only aliases that equal the specified value. Specify CO when - // the ListBots operation should return aliases that contain the specified value. + // The version of the bot to export. // - // Operator is a required field - Operator *string `locationName:"operator" type:"string" required:"true" enum:"BotFilterOperator"` + // BotVersion is a required field + BotVersion *string `locationName:"botVersion" min:"1" type:"string" required:"true"` - // The value to use for filtering the list of bots. + // The identifier of the language and locale to export. The string must match + // one of the locales in the bot. // - // Values is a required field - Values []*string `locationName:"values" min:"1" type:"list" required:"true"` + // LocaleId is a required field + LocaleId *string `locationName:"localeId" type:"string" required:"true"` } // String returns the string representation -func (s BotFilter) String() string { +func (s BotLocaleExportSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BotFilter) GoString() string { +func (s BotLocaleExportSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BotFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BotFilter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *BotLocaleExportSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BotLocaleExportSpecification"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) } - if s.Operator == nil { - invalidParams.Add(request.NewErrParamRequired("Operator")) + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) } - if s.Values != nil && len(s.Values) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) } if invalidParams.Len() > 0 { @@ -4421,21 +5660,21 @@ func (s *BotFilter) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *BotFilter) SetName(v string) *BotFilter { - s.Name = &v +// SetBotId sets the BotId field's value. +func (s *BotLocaleExportSpecification) SetBotId(v string) *BotLocaleExportSpecification { + s.BotId = &v return s } -// SetOperator sets the Operator field's value. -func (s *BotFilter) SetOperator(v string) *BotFilter { - s.Operator = &v +// SetBotVersion sets the BotVersion field's value. +func (s *BotLocaleExportSpecification) SetBotVersion(v string) *BotLocaleExportSpecification { + s.BotVersion = &v return s } -// SetValues sets the Values field's value. -func (s *BotFilter) SetValues(v []*string) *BotFilter { - s.Values = v +// SetLocaleId sets the LocaleId field's value. +func (s *BotLocaleExportSpecification) SetLocaleId(v string) *BotLocaleExportSpecification { + s.LocaleId = &v return s } @@ -4506,46 +5745,162 @@ func (s *BotLocaleFilter) SetOperator(v string) *BotLocaleFilter { return s } -// SetValues sets the Values field's value. -func (s *BotLocaleFilter) SetValues(v []*string) *BotLocaleFilter { - s.Values = v +// SetValues sets the Values field's value. +func (s *BotLocaleFilter) SetValues(v []*string) *BotLocaleFilter { + s.Values = v + return s +} + +// Provides information about an event that occurred affecting the bot locale. +type BotLocaleHistoryEvent struct { + _ struct{} `type:"structure"` + + // A description of the event that occurred. + // + // Event is a required field + Event *string `locationName:"event" type:"string" required:"true"` + + // A timestamp of the date and time that the event occurred. + // + // EventDate is a required field + EventDate *time.Time `locationName:"eventDate" type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s BotLocaleHistoryEvent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BotLocaleHistoryEvent) GoString() string { + return s.String() +} + +// SetEvent sets the Event field's value. +func (s *BotLocaleHistoryEvent) SetEvent(v string) *BotLocaleHistoryEvent { + s.Event = &v + return s +} + +// SetEventDate sets the EventDate field's value. +func (s *BotLocaleHistoryEvent) SetEventDate(v time.Time) *BotLocaleHistoryEvent { + s.EventDate = &v + return s +} + +// Provides the bot locale parameters required for importing a bot locale. +type BotLocaleImportSpecification struct { + _ struct{} `type:"structure"` + + // The identifier of the bot to import the locale to. + // + // BotId is a required field + BotId *string `locationName:"botId" min:"10" type:"string" required:"true"` + + // The version of the bot to import the locale to. This can only be the DRAFT + // version of the bot. + // + // BotVersion is a required field + BotVersion *string `locationName:"botVersion" min:"5" type:"string" required:"true"` + + // The identifier of the language and locale that the bot will be used in. The + // string must match one of the supported locales. All of the intents, slot + // types, and slots used in the bot must have the same locale. For more information, + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). + // + // LocaleId is a required field + LocaleId *string `locationName:"localeId" type:"string" required:"true"` + + // Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent, + // AMAZON.KendraSearchIntent, or both when returning alternative intents. AMAZON.FallbackIntent + // and AMAZON.KendraSearchIntent are only inserted if they are configured for + // the bot. + // + // For example, suppose a bot is configured with the confidence threshold of + // 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns three alternative + // intents with the following confidence scores: IntentA (0.70), IntentB (0.60), + // IntentC (0.50). The response from the PostText operation would be: + // + // * AMAZON.FallbackIntent + // + // * IntentA + // + // * IntentB + // + // * IntentC + NluIntentConfidenceThreshold *float64 `locationName:"nluIntentConfidenceThreshold" type:"double"` + + // Defines settings for using an Amazon Polly voice to communicate with a user. + VoiceSettings *VoiceSettings `locationName:"voiceSettings" type:"structure"` +} + +// String returns the string representation +func (s BotLocaleImportSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BotLocaleImportSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BotLocaleImportSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BotLocaleImportSpecification"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 5 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 5)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + if s.VoiceSettings != nil { + if err := s.VoiceSettings.Validate(); err != nil { + invalidParams.AddNested("VoiceSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *BotLocaleImportSpecification) SetBotId(v string) *BotLocaleImportSpecification { + s.BotId = &v return s } -// Provides information about an event that occurred affecting the bot locale. -type BotLocaleHistoryEvent struct { - _ struct{} `type:"structure"` - - // A description of the event that occurred. - // - // Event is a required field - Event *string `locationName:"event" type:"string" required:"true"` - - // A timestamp of the date and time that the event occurred. - // - // EventDate is a required field - EventDate *time.Time `locationName:"eventDate" type:"timestamp" required:"true"` -} - -// String returns the string representation -func (s BotLocaleHistoryEvent) String() string { - return awsutil.Prettify(s) +// SetBotVersion sets the BotVersion field's value. +func (s *BotLocaleImportSpecification) SetBotVersion(v string) *BotLocaleImportSpecification { + s.BotVersion = &v + return s } -// GoString returns the string representation -func (s BotLocaleHistoryEvent) GoString() string { - return s.String() +// SetLocaleId sets the LocaleId field's value. +func (s *BotLocaleImportSpecification) SetLocaleId(v string) *BotLocaleImportSpecification { + s.LocaleId = &v + return s } -// SetEvent sets the Event field's value. -func (s *BotLocaleHistoryEvent) SetEvent(v string) *BotLocaleHistoryEvent { - s.Event = &v +// SetNluIntentConfidenceThreshold sets the NluIntentConfidenceThreshold field's value. +func (s *BotLocaleImportSpecification) SetNluIntentConfidenceThreshold(v float64) *BotLocaleImportSpecification { + s.NluIntentConfidenceThreshold = &v return s } -// SetEventDate sets the EventDate field's value. -func (s *BotLocaleHistoryEvent) SetEventDate(v time.Time) *BotLocaleHistoryEvent { - s.EventDate = &v +// SetVoiceSettings sets the VoiceSettings field's value. +func (s *BotLocaleImportSpecification) SetVoiceSettings(v *VoiceSettings) *BotLocaleImportSpecification { + s.VoiceSettings = v return s } @@ -4971,7 +6326,7 @@ type BuildBotLocaleInput struct { // The identifier of the language and locale that the bot will be used in. The // string must match one of the supported locales. All of the intents, slot // types, and slots used in the bot must have the same locale. For more information, - // see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -5984,7 +7339,7 @@ type CreateBotLocaleInput struct { // The identifier of the language and locale that the bot will be used in. The // string must match one of the supported locales. All of the intents, slot // types, and slots used in the bot must have the same locale. For more information, - // see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `locationName:"localeId" type:"string" required:"true"` @@ -6459,6 +7814,139 @@ func (s *CreateBotVersionOutput) SetDescription(v string) *CreateBotVersionOutpu return s } +type CreateExportInput struct { + _ struct{} `type:"structure"` + + // The file format of the bot or bot locale definition files. + // + // FileFormat is a required field + FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"ImportExportFileFormat"` + + // An password to use to encrypt the exported archive. Using a password is optional, + // but you should encrypt the archive to protect the data in transit between + // Amazon Lex and your local computer. + FilePassword *string `locationName:"filePassword" min:"1" type:"string" sensitive:"true"` + + // Specifies the type of resource to export, either a bot or a bot locale. You + // can only specify one type of resource to export. + // + // ResourceSpecification is a required field + ResourceSpecification *ExportResourceSpecification `locationName:"resourceSpecification" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateExportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateExportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateExportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateExportInput"} + if s.FileFormat == nil { + invalidParams.Add(request.NewErrParamRequired("FileFormat")) + } + if s.FilePassword != nil && len(*s.FilePassword) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilePassword", 1)) + } + if s.ResourceSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceSpecification")) + } + if s.ResourceSpecification != nil { + if err := s.ResourceSpecification.Validate(); err != nil { + invalidParams.AddNested("ResourceSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileFormat sets the FileFormat field's value. +func (s *CreateExportInput) SetFileFormat(v string) *CreateExportInput { + s.FileFormat = &v + return s +} + +// SetFilePassword sets the FilePassword field's value. +func (s *CreateExportInput) SetFilePassword(v string) *CreateExportInput { + s.FilePassword = &v + return s +} + +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *CreateExportInput) SetResourceSpecification(v *ExportResourceSpecification) *CreateExportInput { + s.ResourceSpecification = v + return s +} + +type CreateExportOutput struct { + _ struct{} `type:"structure"` + + // The date and time that the request to export a bot was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // An identifier for a specific request to create an export. + ExportId *string `locationName:"exportId" min:"10" type:"string"` + + // The status of the export. When the status is Completed, you can use the operation + // to get the pre-signed S3 URL link to your exported bot or bot locale. + ExportStatus *string `locationName:"exportStatus" type:"string" enum:"ExportStatus"` + + // The file format used for the bot or bot locale definition files. + FileFormat *string `locationName:"fileFormat" type:"string" enum:"ImportExportFileFormat"` + + // A description of the type of resource that was exported, either a bot or + // a bot locale. + ResourceSpecification *ExportResourceSpecification `locationName:"resourceSpecification" type:"structure"` +} + +// String returns the string representation +func (s CreateExportOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateExportOutput) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *CreateExportOutput) SetCreationDateTime(v time.Time) *CreateExportOutput { + s.CreationDateTime = &v + return s +} + +// SetExportId sets the ExportId field's value. +func (s *CreateExportOutput) SetExportId(v string) *CreateExportOutput { + s.ExportId = &v + return s +} + +// SetExportStatus sets the ExportStatus field's value. +func (s *CreateExportOutput) SetExportStatus(v string) *CreateExportOutput { + s.ExportStatus = &v + return s +} + +// SetFileFormat sets the FileFormat field's value. +func (s *CreateExportOutput) SetFileFormat(v string) *CreateExportOutput { + s.FileFormat = &v + return s +} + +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *CreateExportOutput) SetResourceSpecification(v *ExportResourceSpecification) *CreateExportOutput { + s.ResourceSpecification = v + return s +} + type CreateIntentInput struct { _ struct{} `type:"structure"` @@ -6536,7 +8024,7 @@ type CreateIntentInput struct { // The identifier of the language and locale where this intent is used. All // of the bots, slot types, and slots used by the intent must have the same - // locale. + // locale. For more information, see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -6929,7 +8417,7 @@ type CreateSlotInput struct { // The identifier of the language and locale that the slot will be used in. // The string must match one of the supported locales. All of the bots, intents, // slot types used by the slot must have the same locale. For more information, - // see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -7219,8 +8707,7 @@ type CreateSlotTypeInput struct { // The identifier of the language and locale that the slot type will be used // in. The string must match one of the supported locales. All of the bots, // intents, and slots used by the slot type must have the same locale. For more - // information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // information, see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -7479,6 +8966,53 @@ func (s *CreateSlotTypeOutput) SetValueSelectionSetting(v *SlotValueSelectionSet return s } +type CreateUploadUrlInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateUploadUrlInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUploadUrlInput) GoString() string { + return s.String() +} + +type CreateUploadUrlOutput struct { + _ struct{} `type:"structure"` + + // An identifier for a unique import job. Use it when you call the operation. + ImportId *string `locationName:"importId" min:"10" type:"string"` + + // A pre-signed S3 write URL. Upload the zip archive file that contains the + // definition of your bot or bot locale. + UploadUrl *string `locationName:"uploadUrl" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateUploadUrlOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUploadUrlOutput) GoString() string { + return s.String() +} + +// SetImportId sets the ImportId field's value. +func (s *CreateUploadUrlOutput) SetImportId(v string) *CreateUploadUrlOutput { + s.ImportId = &v + return s +} + +// SetUploadUrl sets the UploadUrl field's value. +func (s *CreateUploadUrlOutput) SetUploadUrl(v string) *CreateUploadUrlOutput { + s.UploadUrl = &v + return s +} + // A custom response string that Amazon Lex sends to your application. You define // the content and structure the string. type CustomPayload struct { @@ -7759,8 +9293,8 @@ type DeleteBotLocaleInput struct { BotVersion *string `location:"uri" locationName:"botVersion" min:"5" type:"string" required:"true"` // The identifier of the language and locale that will be deleted. The string - // must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -7977,44 +9511,194 @@ func (s *DeleteBotVersionInput) SetSkipResourceInUseCheck(v bool) *DeleteBotVers return s } -type DeleteBotVersionOutput struct { +type DeleteBotVersionOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the bot that is being deleted. + BotId *string `locationName:"botId" min:"10" type:"string"` + + // The current status of the bot. + BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + + // The version of the bot that is being deleted. + BotVersion *string `locationName:"botVersion" min:"1" type:"string"` +} + +// String returns the string representation +func (s DeleteBotVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBotVersionOutput) GoString() string { + return s.String() +} + +// SetBotId sets the BotId field's value. +func (s *DeleteBotVersionOutput) SetBotId(v string) *DeleteBotVersionOutput { + s.BotId = &v + return s +} + +// SetBotStatus sets the BotStatus field's value. +func (s *DeleteBotVersionOutput) SetBotStatus(v string) *DeleteBotVersionOutput { + s.BotStatus = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *DeleteBotVersionOutput) SetBotVersion(v string) *DeleteBotVersionOutput { + s.BotVersion = &v + return s +} + +type DeleteExportInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the export to delete. + // + // ExportId is a required field + ExportId *string `location:"uri" locationName:"exportId" min:"10" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteExportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteExportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteExportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteExportInput"} + if s.ExportId == nil { + invalidParams.Add(request.NewErrParamRequired("ExportId")) + } + if s.ExportId != nil && len(*s.ExportId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ExportId", 10)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExportId sets the ExportId field's value. +func (s *DeleteExportInput) SetExportId(v string) *DeleteExportInput { + s.ExportId = &v + return s +} + +type DeleteExportOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the deleted export. + ExportId *string `locationName:"exportId" min:"10" type:"string"` + + // The current status of the deletion. When the deletion is complete, the export + // will no longer be returned by the operation and calls to the with the export + // identifier will fail. + ExportStatus *string `locationName:"exportStatus" type:"string" enum:"ExportStatus"` +} + +// String returns the string representation +func (s DeleteExportOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteExportOutput) GoString() string { + return s.String() +} + +// SetExportId sets the ExportId field's value. +func (s *DeleteExportOutput) SetExportId(v string) *DeleteExportOutput { + s.ExportId = &v + return s +} + +// SetExportStatus sets the ExportStatus field's value. +func (s *DeleteExportOutput) SetExportStatus(v string) *DeleteExportOutput { + s.ExportStatus = &v + return s +} + +type DeleteImportInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the import to delete. + // + // ImportId is a required field + ImportId *string `location:"uri" locationName:"importId" min:"10" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteImportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteImportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteImportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteImportInput"} + if s.ImportId == nil { + invalidParams.Add(request.NewErrParamRequired("ImportId")) + } + if s.ImportId != nil && len(*s.ImportId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ImportId", 10)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetImportId sets the ImportId field's value. +func (s *DeleteImportInput) SetImportId(v string) *DeleteImportInput { + s.ImportId = &v + return s +} + +type DeleteImportOutput struct { _ struct{} `type:"structure"` - // The identifier of the bot that is being deleted. - BotId *string `locationName:"botId" min:"10" type:"string"` - - // The current status of the bot. - BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + // The unique identifier of the deleted import. + ImportId *string `locationName:"importId" min:"10" type:"string"` - // The version of the bot that is being deleted. - BotVersion *string `locationName:"botVersion" min:"1" type:"string"` + // The current status of the deletion. When the deletion is complete, the import + // will no longer be returned by the operation and calls to the with the import + // identifier will fail. + ImportStatus *string `locationName:"importStatus" type:"string" enum:"ImportStatus"` } // String returns the string representation -func (s DeleteBotVersionOutput) String() string { +func (s DeleteImportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteBotVersionOutput) GoString() string { +func (s DeleteImportOutput) GoString() string { return s.String() } -// SetBotId sets the BotId field's value. -func (s *DeleteBotVersionOutput) SetBotId(v string) *DeleteBotVersionOutput { - s.BotId = &v - return s -} - -// SetBotStatus sets the BotStatus field's value. -func (s *DeleteBotVersionOutput) SetBotStatus(v string) *DeleteBotVersionOutput { - s.BotStatus = &v +// SetImportId sets the ImportId field's value. +func (s *DeleteImportOutput) SetImportId(v string) *DeleteImportOutput { + s.ImportId = &v return s } -// SetBotVersion sets the BotVersion field's value. -func (s *DeleteBotVersionOutput) SetBotVersion(v string) *DeleteBotVersionOutput { - s.BotVersion = &v +// SetImportStatus sets the ImportStatus field's value. +func (s *DeleteImportOutput) SetImportStatus(v string) *DeleteImportOutput { + s.ImportStatus = &v return s } @@ -8038,7 +9722,7 @@ type DeleteIntentInput struct { // The identifier of the language and locale where the bot will be deleted. // The string must match one of the supported locales. For more information, - // see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -8146,7 +9830,7 @@ type DeleteSlotInput struct { // The identifier of the language and locale that the slot will be deleted from. // The string must match one of the supported locales. For more information, - // see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -8266,7 +9950,7 @@ type DeleteSlotTypeInput struct { // The identifier of the language and locale that the slot type will be deleted // from. The string must match one of the supported locales. For more information, - // see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -8407,8 +10091,245 @@ func (s *DescribeBotAliasInput) Validate() error { if s.BotId == nil { invalidParams.Add(request.NewErrParamRequired("BotId")) } - if s.BotId != nil && len(*s.BotId) < 10 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotAliasId sets the BotAliasId field's value. +func (s *DescribeBotAliasInput) SetBotAliasId(v string) *DescribeBotAliasInput { + s.BotAliasId = &v + return s +} + +// SetBotId sets the BotId field's value. +func (s *DescribeBotAliasInput) SetBotId(v string) *DescribeBotAliasInput { + s.BotId = &v + return s +} + +type DescribeBotAliasOutput struct { + _ struct{} `type:"structure"` + + // A list of events that affect a bot alias. For example, an event is recorded + // when the version that the alias points to changes. + BotAliasHistoryEvents []*BotAliasHistoryEvent `locationName:"botAliasHistoryEvents" type:"list"` + + // The identifier of the bot alias. + BotAliasId *string `locationName:"botAliasId" min:"10" type:"string"` + + // The locale settings that are unique to the alias. + BotAliasLocaleSettings map[string]*BotAliasLocaleSettings `locationName:"botAliasLocaleSettings" min:"1" type:"map"` + + // The name of the bot alias. + BotAliasName *string `locationName:"botAliasName" min:"1" type:"string"` + + // The current status of the alias. When the alias is Available, the alias is + // ready for use with your bot. + BotAliasStatus *string `locationName:"botAliasStatus" type:"string" enum:"BotAliasStatus"` + + // The identifier of the bot associated with the bot alias. + BotId *string `locationName:"botId" min:"10" type:"string"` + + // The version of the bot associated with the bot alias. + BotVersion *string `locationName:"botVersion" min:"1" type:"string"` + + // Specifics of how Amazon Lex logs text and audio conversations with the bot + // associated with the alias. + ConversationLogSettings *ConversationLogSettings `locationName:"conversationLogSettings" type:"structure"` + + // A timestamp of the date and time that the alias was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // The description of the bot alias. + Description *string `locationName:"description" type:"string"` + + // A timestamp of the date and time that the alias was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + + // Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment + // of user utterances. + SentimentAnalysisSettings *SentimentAnalysisSettings `locationName:"sentimentAnalysisSettings" type:"structure"` +} + +// String returns the string representation +func (s DescribeBotAliasOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBotAliasOutput) GoString() string { + return s.String() +} + +// SetBotAliasHistoryEvents sets the BotAliasHistoryEvents field's value. +func (s *DescribeBotAliasOutput) SetBotAliasHistoryEvents(v []*BotAliasHistoryEvent) *DescribeBotAliasOutput { + s.BotAliasHistoryEvents = v + return s +} + +// SetBotAliasId sets the BotAliasId field's value. +func (s *DescribeBotAliasOutput) SetBotAliasId(v string) *DescribeBotAliasOutput { + s.BotAliasId = &v + return s +} + +// SetBotAliasLocaleSettings sets the BotAliasLocaleSettings field's value. +func (s *DescribeBotAliasOutput) SetBotAliasLocaleSettings(v map[string]*BotAliasLocaleSettings) *DescribeBotAliasOutput { + s.BotAliasLocaleSettings = v + return s +} + +// SetBotAliasName sets the BotAliasName field's value. +func (s *DescribeBotAliasOutput) SetBotAliasName(v string) *DescribeBotAliasOutput { + s.BotAliasName = &v + return s +} + +// SetBotAliasStatus sets the BotAliasStatus field's value. +func (s *DescribeBotAliasOutput) SetBotAliasStatus(v string) *DescribeBotAliasOutput { + s.BotAliasStatus = &v + return s +} + +// SetBotId sets the BotId field's value. +func (s *DescribeBotAliasOutput) SetBotId(v string) *DescribeBotAliasOutput { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *DescribeBotAliasOutput) SetBotVersion(v string) *DescribeBotAliasOutput { + s.BotVersion = &v + return s +} + +// SetConversationLogSettings sets the ConversationLogSettings field's value. +func (s *DescribeBotAliasOutput) SetConversationLogSettings(v *ConversationLogSettings) *DescribeBotAliasOutput { + s.ConversationLogSettings = v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeBotAliasOutput) SetCreationDateTime(v time.Time) *DescribeBotAliasOutput { + s.CreationDateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeBotAliasOutput) SetDescription(v string) *DescribeBotAliasOutput { + s.Description = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *DescribeBotAliasOutput) SetLastUpdatedDateTime(v time.Time) *DescribeBotAliasOutput { + s.LastUpdatedDateTime = &v + return s +} + +// SetSentimentAnalysisSettings sets the SentimentAnalysisSettings field's value. +func (s *DescribeBotAliasOutput) SetSentimentAnalysisSettings(v *SentimentAnalysisSettings) *DescribeBotAliasOutput { + s.SentimentAnalysisSettings = v + return s +} + +type DescribeBotInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the bot to describe. + // + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBotInput"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *DescribeBotInput) SetBotId(v string) *DescribeBotInput { + s.BotId = &v + return s +} + +type DescribeBotLocaleInput struct { + _ struct{} `type:"structure"` + + // The identifier of the bot associated with the locale. + // + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` + + // The identifier of the version of the bot associated with the locale. + // + // BotVersion is a required field + BotVersion *string `location:"uri" locationName:"botVersion" min:"1" type:"string" required:"true"` + + // The unique identifier of the locale to describe. The string must match one + // of the supported locales. For more information, see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). + // + // LocaleId is a required field + LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeBotLocaleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBotLocaleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBotLocaleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBotLocaleInput"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + if s.LocaleId != nil && len(*s.LocaleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) } if invalidParams.Len() > 0 { @@ -8417,219 +10338,304 @@ func (s *DescribeBotAliasInput) Validate() error { return nil } -// SetBotAliasId sets the BotAliasId field's value. -func (s *DescribeBotAliasInput) SetBotAliasId(v string) *DescribeBotAliasInput { - s.BotAliasId = &v - return s -} - // SetBotId sets the BotId field's value. -func (s *DescribeBotAliasInput) SetBotId(v string) *DescribeBotAliasInput { +func (s *DescribeBotLocaleInput) SetBotId(v string) *DescribeBotLocaleInput { s.BotId = &v return s } -type DescribeBotAliasOutput struct { - _ struct{} `type:"structure"` - - // A list of events that affect a bot alias. For example, an event is recorded - // when the version that the alias points to changes. - BotAliasHistoryEvents []*BotAliasHistoryEvent `locationName:"botAliasHistoryEvents" type:"list"` +// SetBotVersion sets the BotVersion field's value. +func (s *DescribeBotLocaleInput) SetBotVersion(v string) *DescribeBotLocaleInput { + s.BotVersion = &v + return s +} - // The identifier of the bot alias. - BotAliasId *string `locationName:"botAliasId" min:"10" type:"string"` +// SetLocaleId sets the LocaleId field's value. +func (s *DescribeBotLocaleInput) SetLocaleId(v string) *DescribeBotLocaleInput { + s.LocaleId = &v + return s +} - // The locale settings that are unique to the alias. - BotAliasLocaleSettings map[string]*BotAliasLocaleSettings `locationName:"botAliasLocaleSettings" min:"1" type:"map"` +type DescribeBotLocaleOutput struct { + _ struct{} `type:"structure"` - // The name of the bot alias. - BotAliasName *string `locationName:"botAliasName" min:"1" type:"string"` + // The identifier of the bot associated with the locale. + BotId *string `locationName:"botId" min:"10" type:"string"` - // The current status of the alias. When the alias is Available, the alias is - // ready for use with your bot. - BotAliasStatus *string `locationName:"botAliasStatus" type:"string" enum:"BotAliasStatus"` + // History of changes, such as when a locale is used in an alias, that have + // taken place for the locale. + BotLocaleHistoryEvents []*BotLocaleHistoryEvent `locationName:"botLocaleHistoryEvents" type:"list"` - // The identifier of the bot associated with the bot alias. - BotId *string `locationName:"botId" min:"10" type:"string"` + // The status of the bot. If the status is Failed, the reasons for the failure + // are listed in the failureReasons field. + BotLocaleStatus *string `locationName:"botLocaleStatus" type:"string" enum:"BotLocaleStatus"` - // The version of the bot associated with the bot alias. + // The identifier of the version of the bot associated with the locale. BotVersion *string `locationName:"botVersion" min:"1" type:"string"` - // Specifics of how Amazon Lex logs text and audio conversations with the bot - // associated with the alias. - ConversationLogSettings *ConversationLogSettings `locationName:"conversationLogSettings" type:"structure"` - - // A timestamp of the date and time that the alias was created. + // The date and time that the locale was created. CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` - // The description of the bot alias. + // The description of the locale. Description *string `locationName:"description" type:"string"` - // A timestamp of the date and time that the alias was last updated. + // if botLocaleStatus is Failed, Amazon Lex explains why it failed to build + // the bot. + FailureReasons []*string `locationName:"failureReasons" type:"list"` + + // The number of intents defined for the locale. + IntentsCount *int64 `locationName:"intentsCount" type:"integer"` + + // The date and time that the locale was last submitted for building. + LastBuildSubmittedDateTime *time.Time `locationName:"lastBuildSubmittedDateTime" type:"timestamp"` + + // The date and time that the locale was last updated. LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` - // Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment - // of user utterances. - SentimentAnalysisSettings *SentimentAnalysisSettings `locationName:"sentimentAnalysisSettings" type:"structure"` + // The unique identifier of the described locale. + LocaleId *string `locationName:"localeId" type:"string"` + + // The name of the locale. + LocaleName *string `locationName:"localeName" type:"string"` + + // The confidence threshold where Amazon Lex inserts the AMAZON.FallbackIntent + // and AMAZON.KendraSearchIntent intents in the list of possible intents for + // an utterance. + NluIntentConfidenceThreshold *float64 `locationName:"nluIntentConfidenceThreshold" type:"double"` + + // The number of slot types defined for the locale. + SlotTypesCount *int64 `locationName:"slotTypesCount" type:"integer"` + + // The Amazon Polly voice Amazon Lex uses for voice interaction with the user. + VoiceSettings *VoiceSettings `locationName:"voiceSettings" type:"structure"` } // String returns the string representation -func (s DescribeBotAliasOutput) String() string { +func (s DescribeBotLocaleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeBotAliasOutput) GoString() string { +func (s DescribeBotLocaleOutput) GoString() string { return s.String() } -// SetBotAliasHistoryEvents sets the BotAliasHistoryEvents field's value. -func (s *DescribeBotAliasOutput) SetBotAliasHistoryEvents(v []*BotAliasHistoryEvent) *DescribeBotAliasOutput { - s.BotAliasHistoryEvents = v +// SetBotId sets the BotId field's value. +func (s *DescribeBotLocaleOutput) SetBotId(v string) *DescribeBotLocaleOutput { + s.BotId = &v return s } -// SetBotAliasId sets the BotAliasId field's value. -func (s *DescribeBotAliasOutput) SetBotAliasId(v string) *DescribeBotAliasOutput { - s.BotAliasId = &v +// SetBotLocaleHistoryEvents sets the BotLocaleHistoryEvents field's value. +func (s *DescribeBotLocaleOutput) SetBotLocaleHistoryEvents(v []*BotLocaleHistoryEvent) *DescribeBotLocaleOutput { + s.BotLocaleHistoryEvents = v return s } -// SetBotAliasLocaleSettings sets the BotAliasLocaleSettings field's value. -func (s *DescribeBotAliasOutput) SetBotAliasLocaleSettings(v map[string]*BotAliasLocaleSettings) *DescribeBotAliasOutput { - s.BotAliasLocaleSettings = v +// SetBotLocaleStatus sets the BotLocaleStatus field's value. +func (s *DescribeBotLocaleOutput) SetBotLocaleStatus(v string) *DescribeBotLocaleOutput { + s.BotLocaleStatus = &v return s } -// SetBotAliasName sets the BotAliasName field's value. -func (s *DescribeBotAliasOutput) SetBotAliasName(v string) *DescribeBotAliasOutput { - s.BotAliasName = &v +// SetBotVersion sets the BotVersion field's value. +func (s *DescribeBotLocaleOutput) SetBotVersion(v string) *DescribeBotLocaleOutput { + s.BotVersion = &v return s } -// SetBotAliasStatus sets the BotAliasStatus field's value. -func (s *DescribeBotAliasOutput) SetBotAliasStatus(v string) *DescribeBotAliasOutput { - s.BotAliasStatus = &v +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeBotLocaleOutput) SetCreationDateTime(v time.Time) *DescribeBotLocaleOutput { + s.CreationDateTime = &v return s } -// SetBotId sets the BotId field's value. -func (s *DescribeBotAliasOutput) SetBotId(v string) *DescribeBotAliasOutput { - s.BotId = &v +// SetDescription sets the Description field's value. +func (s *DescribeBotLocaleOutput) SetDescription(v string) *DescribeBotLocaleOutput { + s.Description = &v return s } -// SetBotVersion sets the BotVersion field's value. -func (s *DescribeBotAliasOutput) SetBotVersion(v string) *DescribeBotAliasOutput { - s.BotVersion = &v +// SetFailureReasons sets the FailureReasons field's value. +func (s *DescribeBotLocaleOutput) SetFailureReasons(v []*string) *DescribeBotLocaleOutput { + s.FailureReasons = v return s } -// SetConversationLogSettings sets the ConversationLogSettings field's value. -func (s *DescribeBotAliasOutput) SetConversationLogSettings(v *ConversationLogSettings) *DescribeBotAliasOutput { - s.ConversationLogSettings = v +// SetIntentsCount sets the IntentsCount field's value. +func (s *DescribeBotLocaleOutput) SetIntentsCount(v int64) *DescribeBotLocaleOutput { + s.IntentsCount = &v return s } -// SetCreationDateTime sets the CreationDateTime field's value. -func (s *DescribeBotAliasOutput) SetCreationDateTime(v time.Time) *DescribeBotAliasOutput { - s.CreationDateTime = &v +// SetLastBuildSubmittedDateTime sets the LastBuildSubmittedDateTime field's value. +func (s *DescribeBotLocaleOutput) SetLastBuildSubmittedDateTime(v time.Time) *DescribeBotLocaleOutput { + s.LastBuildSubmittedDateTime = &v return s } -// SetDescription sets the Description field's value. -func (s *DescribeBotAliasOutput) SetDescription(v string) *DescribeBotAliasOutput { - s.Description = &v +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *DescribeBotLocaleOutput) SetLastUpdatedDateTime(v time.Time) *DescribeBotLocaleOutput { + s.LastUpdatedDateTime = &v return s } -// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. -func (s *DescribeBotAliasOutput) SetLastUpdatedDateTime(v time.Time) *DescribeBotAliasOutput { - s.LastUpdatedDateTime = &v +// SetLocaleId sets the LocaleId field's value. +func (s *DescribeBotLocaleOutput) SetLocaleId(v string) *DescribeBotLocaleOutput { + s.LocaleId = &v return s } -// SetSentimentAnalysisSettings sets the SentimentAnalysisSettings field's value. -func (s *DescribeBotAliasOutput) SetSentimentAnalysisSettings(v *SentimentAnalysisSettings) *DescribeBotAliasOutput { - s.SentimentAnalysisSettings = v +// SetLocaleName sets the LocaleName field's value. +func (s *DescribeBotLocaleOutput) SetLocaleName(v string) *DescribeBotLocaleOutput { + s.LocaleName = &v return s } -type DescribeBotInput struct { +// SetNluIntentConfidenceThreshold sets the NluIntentConfidenceThreshold field's value. +func (s *DescribeBotLocaleOutput) SetNluIntentConfidenceThreshold(v float64) *DescribeBotLocaleOutput { + s.NluIntentConfidenceThreshold = &v + return s +} + +// SetSlotTypesCount sets the SlotTypesCount field's value. +func (s *DescribeBotLocaleOutput) SetSlotTypesCount(v int64) *DescribeBotLocaleOutput { + s.SlotTypesCount = &v + return s +} + +// SetVoiceSettings sets the VoiceSettings field's value. +func (s *DescribeBotLocaleOutput) SetVoiceSettings(v *VoiceSettings) *DescribeBotLocaleOutput { + s.VoiceSettings = v + return s +} + +type DescribeBotOutput struct { _ struct{} `type:"structure"` - // The unique identifier of the bot to describe. - // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` + // The unique identifier of the bot. + BotId *string `locationName:"botId" min:"10" type:"string"` + + // The name of the bot. + BotName *string `locationName:"botName" min:"1" type:"string"` + + // The current status of the bot. When the status is Available the bot is ready + // to be used in conversations with users. + BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + + // A timestamp of the date and time that the bot was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // Settings for managing data privacy of the bot and its conversations with + // users. + DataPrivacy *DataPrivacy `locationName:"dataPrivacy" type:"structure"` + + // The description of the bot. + Description *string `locationName:"description" type:"string"` + + // The maximum time in seconds that Amazon Lex retains the data gathered in + // a conversation. + IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"` + + // A timestamp of the date and time that the bot was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + + // The Amazon Resource Name (ARN) of an IAM role that has permission to access + // the bot. + RoleArn *string `locationName:"roleArn" min:"32" type:"string"` +} + +// String returns the string representation +func (s DescribeBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBotOutput) GoString() string { + return s.String() +} + +// SetBotId sets the BotId field's value. +func (s *DescribeBotOutput) SetBotId(v string) *DescribeBotOutput { + s.BotId = &v + return s +} + +// SetBotName sets the BotName field's value. +func (s *DescribeBotOutput) SetBotName(v string) *DescribeBotOutput { + s.BotName = &v + return s +} + +// SetBotStatus sets the BotStatus field's value. +func (s *DescribeBotOutput) SetBotStatus(v string) *DescribeBotOutput { + s.BotStatus = &v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeBotOutput) SetCreationDateTime(v time.Time) *DescribeBotOutput { + s.CreationDateTime = &v + return s } -// String returns the string representation -func (s DescribeBotInput) String() string { - return awsutil.Prettify(s) +// SetDataPrivacy sets the DataPrivacy field's value. +func (s *DescribeBotOutput) SetDataPrivacy(v *DataPrivacy) *DescribeBotOutput { + s.DataPrivacy = v + return s } -// GoString returns the string representation -func (s DescribeBotInput) GoString() string { - return s.String() +// SetDescription sets the Description field's value. +func (s *DescribeBotOutput) SetDescription(v string) *DescribeBotOutput { + s.Description = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeBotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeBotInput"} - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) - } - if s.BotId != nil && len(*s.BotId) < 10 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) - } +// SetIdleSessionTTLInSeconds sets the IdleSessionTTLInSeconds field's value. +func (s *DescribeBotOutput) SetIdleSessionTTLInSeconds(v int64) *DescribeBotOutput { + s.IdleSessionTTLInSeconds = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *DescribeBotOutput) SetLastUpdatedDateTime(v time.Time) *DescribeBotOutput { + s.LastUpdatedDateTime = &v + return s } -// SetBotId sets the BotId field's value. -func (s *DescribeBotInput) SetBotId(v string) *DescribeBotInput { - s.BotId = &v +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeBotOutput) SetRoleArn(v string) *DescribeBotOutput { + s.RoleArn = &v return s } -type DescribeBotLocaleInput struct { +type DescribeBotVersionInput struct { _ struct{} `type:"structure"` - // The identifier of the bot associated with the locale. + // The identifier of the bot containing the version to return metadata for. // // BotId is a required field BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` - // The identifier of the version of the bot associated with the locale. + // The version of the bot to return metadata for. // // BotVersion is a required field BotVersion *string `location:"uri" locationName:"botVersion" min:"1" type:"string" required:"true"` - - // The unique identifier of the locale to describe. The string must match one - // of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). - // - // LocaleId is a required field - LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` } // String returns the string representation -func (s DescribeBotLocaleInput) String() string { +func (s DescribeBotVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeBotLocaleInput) GoString() string { +func (s DescribeBotVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeBotLocaleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeBotLocaleInput"} +func (s *DescribeBotVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBotVersionInput"} if s.BotId == nil { invalidParams.Add(request.NewErrParamRequired("BotId")) } @@ -8642,12 +10648,6 @@ func (s *DescribeBotLocaleInput) Validate() error { if s.BotVersion != nil && len(*s.BotVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) } - if s.LocaleId == nil { - invalidParams.Add(request.NewErrParamRequired("LocaleId")) - } - if s.LocaleId != nil && len(*s.LocaleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -8656,314 +10656,282 @@ func (s *DescribeBotLocaleInput) Validate() error { } // SetBotId sets the BotId field's value. -func (s *DescribeBotLocaleInput) SetBotId(v string) *DescribeBotLocaleInput { +func (s *DescribeBotVersionInput) SetBotId(v string) *DescribeBotVersionInput { s.BotId = &v return s } // SetBotVersion sets the BotVersion field's value. -func (s *DescribeBotLocaleInput) SetBotVersion(v string) *DescribeBotLocaleInput { +func (s *DescribeBotVersionInput) SetBotVersion(v string) *DescribeBotVersionInput { s.BotVersion = &v return s } -// SetLocaleId sets the LocaleId field's value. -func (s *DescribeBotLocaleInput) SetLocaleId(v string) *DescribeBotLocaleInput { - s.LocaleId = &v - return s -} - -type DescribeBotLocaleOutput struct { +type DescribeBotVersionOutput struct { _ struct{} `type:"structure"` - // The identifier of the bot associated with the locale. + // The identifier of the bot that contains the version. BotId *string `locationName:"botId" min:"10" type:"string"` - // History of changes, such as when a locale is used in an alias, that have - // taken place for the locale. - BotLocaleHistoryEvents []*BotLocaleHistoryEvent `locationName:"botLocaleHistoryEvents" type:"list"` + // The name of the bot that contains the version. + BotName *string `locationName:"botName" min:"1" type:"string"` - // The status of the bot. If the status is Failed, the reasons for the failure - // are listed in the failureReasons field. - BotLocaleStatus *string `locationName:"botLocaleStatus" type:"string" enum:"BotLocaleStatus"` + // The current status of the bot. When the status is Available, the bot version + // is ready for use. + BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` - // The identifier of the version of the bot associated with the locale. + // The version of the bot to describe. BotVersion *string `locationName:"botVersion" min:"1" type:"string"` - // The date and time that the locale was created. + // A timestamp of the date and time that the bot version was created. CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` - // The description of the locale. + // Data privacy settings for the bot version. + DataPrivacy *DataPrivacy `locationName:"dataPrivacy" type:"structure"` + + // The description specified for the bot. Description *string `locationName:"description" type:"string"` - // if botLocaleStatus is Failed, Amazon Lex explains why it failed to build - // the bot. + // If the botStatus is Failed, this contains a list of reasons that the version + // couldn't be built. FailureReasons []*string `locationName:"failureReasons" type:"list"` - // The number of intents defined for the locale. - IntentsCount *int64 `locationName:"intentsCount" type:"integer"` - - // The date and time that the locale was last submitted for building. - LastBuildSubmittedDateTime *time.Time `locationName:"lastBuildSubmittedDateTime" type:"timestamp"` - - // The date and time that the locale was last updated. - LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` - - // The unique identifier of the described locale. - LocaleId *string `locationName:"localeId" type:"string"` - - // The name of the locale. - LocaleName *string `locationName:"localeName" type:"string"` - - // The confidence threshold where Amazon Lex inserts the AMAZON.FallbackIntent - // and AMAZON.KendraSearchIntent intents in the list of possible intents for - // an utterance. - NluIntentConfidenceThreshold *float64 `locationName:"nluIntentConfidenceThreshold" type:"double"` - - // The number of slot types defined for the locale. - SlotTypesCount *int64 `locationName:"slotTypesCount" type:"integer"` + // The number of seconds that a session with the bot remains active before it + // is discarded by Amazon Lex. + IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"` - // The Amazon Polly voice Amazon Lex uses for voice interaction with the user. - VoiceSettings *VoiceSettings `locationName:"voiceSettings" type:"structure"` + // The Amazon Resource Name (ARN) of an IAM role that has permission to access + // the bot version. + RoleArn *string `locationName:"roleArn" min:"32" type:"string"` } // String returns the string representation -func (s DescribeBotLocaleOutput) String() string { +func (s DescribeBotVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeBotLocaleOutput) GoString() string { +func (s DescribeBotVersionOutput) GoString() string { return s.String() } // SetBotId sets the BotId field's value. -func (s *DescribeBotLocaleOutput) SetBotId(v string) *DescribeBotLocaleOutput { +func (s *DescribeBotVersionOutput) SetBotId(v string) *DescribeBotVersionOutput { s.BotId = &v return s } -// SetBotLocaleHistoryEvents sets the BotLocaleHistoryEvents field's value. -func (s *DescribeBotLocaleOutput) SetBotLocaleHistoryEvents(v []*BotLocaleHistoryEvent) *DescribeBotLocaleOutput { - s.BotLocaleHistoryEvents = v +// SetBotName sets the BotName field's value. +func (s *DescribeBotVersionOutput) SetBotName(v string) *DescribeBotVersionOutput { + s.BotName = &v return s } -// SetBotLocaleStatus sets the BotLocaleStatus field's value. -func (s *DescribeBotLocaleOutput) SetBotLocaleStatus(v string) *DescribeBotLocaleOutput { - s.BotLocaleStatus = &v +// SetBotStatus sets the BotStatus field's value. +func (s *DescribeBotVersionOutput) SetBotStatus(v string) *DescribeBotVersionOutput { + s.BotStatus = &v return s } // SetBotVersion sets the BotVersion field's value. -func (s *DescribeBotLocaleOutput) SetBotVersion(v string) *DescribeBotLocaleOutput { +func (s *DescribeBotVersionOutput) SetBotVersion(v string) *DescribeBotVersionOutput { s.BotVersion = &v return s } // SetCreationDateTime sets the CreationDateTime field's value. -func (s *DescribeBotLocaleOutput) SetCreationDateTime(v time.Time) *DescribeBotLocaleOutput { +func (s *DescribeBotVersionOutput) SetCreationDateTime(v time.Time) *DescribeBotVersionOutput { s.CreationDateTime = &v return s } +// SetDataPrivacy sets the DataPrivacy field's value. +func (s *DescribeBotVersionOutput) SetDataPrivacy(v *DataPrivacy) *DescribeBotVersionOutput { + s.DataPrivacy = v + return s +} + // SetDescription sets the Description field's value. -func (s *DescribeBotLocaleOutput) SetDescription(v string) *DescribeBotLocaleOutput { +func (s *DescribeBotVersionOutput) SetDescription(v string) *DescribeBotVersionOutput { s.Description = &v return s } // SetFailureReasons sets the FailureReasons field's value. -func (s *DescribeBotLocaleOutput) SetFailureReasons(v []*string) *DescribeBotLocaleOutput { +func (s *DescribeBotVersionOutput) SetFailureReasons(v []*string) *DescribeBotVersionOutput { s.FailureReasons = v return s } -// SetIntentsCount sets the IntentsCount field's value. -func (s *DescribeBotLocaleOutput) SetIntentsCount(v int64) *DescribeBotLocaleOutput { - s.IntentsCount = &v +// SetIdleSessionTTLInSeconds sets the IdleSessionTTLInSeconds field's value. +func (s *DescribeBotVersionOutput) SetIdleSessionTTLInSeconds(v int64) *DescribeBotVersionOutput { + s.IdleSessionTTLInSeconds = &v return s } -// SetLastBuildSubmittedDateTime sets the LastBuildSubmittedDateTime field's value. -func (s *DescribeBotLocaleOutput) SetLastBuildSubmittedDateTime(v time.Time) *DescribeBotLocaleOutput { - s.LastBuildSubmittedDateTime = &v +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeBotVersionOutput) SetRoleArn(v string) *DescribeBotVersionOutput { + s.RoleArn = &v return s } -// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. -func (s *DescribeBotLocaleOutput) SetLastUpdatedDateTime(v time.Time) *DescribeBotLocaleOutput { - s.LastUpdatedDateTime = &v - return s -} +type DescribeExportInput struct { + _ struct{} `type:"structure"` -// SetLocaleId sets the LocaleId field's value. -func (s *DescribeBotLocaleOutput) SetLocaleId(v string) *DescribeBotLocaleOutput { - s.LocaleId = &v - return s + // The unique identifier of the export to describe. + // + // ExportId is a required field + ExportId *string `location:"uri" locationName:"exportId" min:"10" type:"string" required:"true"` } -// SetLocaleName sets the LocaleName field's value. -func (s *DescribeBotLocaleOutput) SetLocaleName(v string) *DescribeBotLocaleOutput { - s.LocaleName = &v - return s +// String returns the string representation +func (s DescribeExportInput) String() string { + return awsutil.Prettify(s) } -// SetNluIntentConfidenceThreshold sets the NluIntentConfidenceThreshold field's value. -func (s *DescribeBotLocaleOutput) SetNluIntentConfidenceThreshold(v float64) *DescribeBotLocaleOutput { - s.NluIntentConfidenceThreshold = &v - return s +// GoString returns the string representation +func (s DescribeExportInput) GoString() string { + return s.String() } -// SetSlotTypesCount sets the SlotTypesCount field's value. -func (s *DescribeBotLocaleOutput) SetSlotTypesCount(v int64) *DescribeBotLocaleOutput { - s.SlotTypesCount = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeExportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeExportInput"} + if s.ExportId == nil { + invalidParams.Add(request.NewErrParamRequired("ExportId")) + } + if s.ExportId != nil && len(*s.ExportId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ExportId", 10)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetVoiceSettings sets the VoiceSettings field's value. -func (s *DescribeBotLocaleOutput) SetVoiceSettings(v *VoiceSettings) *DescribeBotLocaleOutput { - s.VoiceSettings = v +// SetExportId sets the ExportId field's value. +func (s *DescribeExportInput) SetExportId(v string) *DescribeExportInput { + s.ExportId = &v return s } -type DescribeBotOutput struct { +type DescribeExportOutput struct { _ struct{} `type:"structure"` - // The unique identifier of the bot. - BotId *string `locationName:"botId" min:"10" type:"string"` - - // The name of the bot. - BotName *string `locationName:"botName" min:"1" type:"string"` + // The date and time that the export was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` - // The current status of the bot. When the status is Available the bot is ready - // to be used in conversations with users. - BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + // A pre-signed S3 URL that points to the bot or bot locale archive. The URL + // is only available for 5 minutes after calling the DescribeExport operation. + DownloadUrl *string `locationName:"downloadUrl" min:"1" type:"string"` - // A timestamp of the date and time that the bot was created. - CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + // The unique identifier of the described export. + ExportId *string `locationName:"exportId" min:"10" type:"string"` - // Settings for managing data privacy of the bot and its conversations with - // users. - DataPrivacy *DataPrivacy `locationName:"dataPrivacy" type:"structure"` + // The status of the export. When the status is Complete the export archive + // file is available for download. + ExportStatus *string `locationName:"exportStatus" type:"string" enum:"ExportStatus"` - // The description of the bot. - Description *string `locationName:"description" type:"string"` + // If the exportStatus is failed, contains one or more reasons why the export + // could not be completed. + FailureReasons []*string `locationName:"failureReasons" type:"list"` - // The maximum time in seconds that Amazon Lex retains the data gathered in - // a conversation. - IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"` + // The file format used in the files that describe the bot or bot locale. + FileFormat *string `locationName:"fileFormat" type:"string" enum:"ImportExportFileFormat"` - // A timestamp of the date and time that the bot was last updated. + // The last date and time that the export was updated. LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` - // The Amazon Resource Name (ARN) of an IAM role that has permission to access - // the bot. - RoleArn *string `locationName:"roleArn" min:"32" type:"string"` + // The bot, bot ID, and optional locale ID of the exported bot or bot locale. + ResourceSpecification *ExportResourceSpecification `locationName:"resourceSpecification" type:"structure"` } // String returns the string representation -func (s DescribeBotOutput) String() string { +func (s DescribeExportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeBotOutput) GoString() string { +func (s DescribeExportOutput) GoString() string { return s.String() -} - -// SetBotId sets the BotId field's value. -func (s *DescribeBotOutput) SetBotId(v string) *DescribeBotOutput { - s.BotId = &v - return s -} - -// SetBotName sets the BotName field's value. -func (s *DescribeBotOutput) SetBotName(v string) *DescribeBotOutput { - s.BotName = &v +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeExportOutput) SetCreationDateTime(v time.Time) *DescribeExportOutput { + s.CreationDateTime = &v return s } -// SetBotStatus sets the BotStatus field's value. -func (s *DescribeBotOutput) SetBotStatus(v string) *DescribeBotOutput { - s.BotStatus = &v +// SetDownloadUrl sets the DownloadUrl field's value. +func (s *DescribeExportOutput) SetDownloadUrl(v string) *DescribeExportOutput { + s.DownloadUrl = &v return s } -// SetCreationDateTime sets the CreationDateTime field's value. -func (s *DescribeBotOutput) SetCreationDateTime(v time.Time) *DescribeBotOutput { - s.CreationDateTime = &v +// SetExportId sets the ExportId field's value. +func (s *DescribeExportOutput) SetExportId(v string) *DescribeExportOutput { + s.ExportId = &v return s } -// SetDataPrivacy sets the DataPrivacy field's value. -func (s *DescribeBotOutput) SetDataPrivacy(v *DataPrivacy) *DescribeBotOutput { - s.DataPrivacy = v +// SetExportStatus sets the ExportStatus field's value. +func (s *DescribeExportOutput) SetExportStatus(v string) *DescribeExportOutput { + s.ExportStatus = &v return s } -// SetDescription sets the Description field's value. -func (s *DescribeBotOutput) SetDescription(v string) *DescribeBotOutput { - s.Description = &v +// SetFailureReasons sets the FailureReasons field's value. +func (s *DescribeExportOutput) SetFailureReasons(v []*string) *DescribeExportOutput { + s.FailureReasons = v return s } -// SetIdleSessionTTLInSeconds sets the IdleSessionTTLInSeconds field's value. -func (s *DescribeBotOutput) SetIdleSessionTTLInSeconds(v int64) *DescribeBotOutput { - s.IdleSessionTTLInSeconds = &v +// SetFileFormat sets the FileFormat field's value. +func (s *DescribeExportOutput) SetFileFormat(v string) *DescribeExportOutput { + s.FileFormat = &v return s } // SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. -func (s *DescribeBotOutput) SetLastUpdatedDateTime(v time.Time) *DescribeBotOutput { +func (s *DescribeExportOutput) SetLastUpdatedDateTime(v time.Time) *DescribeExportOutput { s.LastUpdatedDateTime = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeBotOutput) SetRoleArn(v string) *DescribeBotOutput { - s.RoleArn = &v +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *DescribeExportOutput) SetResourceSpecification(v *ExportResourceSpecification) *DescribeExportOutput { + s.ResourceSpecification = v return s } -type DescribeBotVersionInput struct { +type DescribeImportInput struct { _ struct{} `type:"structure"` - // The identifier of the bot containing the version to return metadata for. - // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` - - // The version of the bot to return metadata for. + // The unique identifier of the import to describe. // - // BotVersion is a required field - BotVersion *string `location:"uri" locationName:"botVersion" min:"1" type:"string" required:"true"` + // ImportId is a required field + ImportId *string `location:"uri" locationName:"importId" min:"10" type:"string" required:"true"` } // String returns the string representation -func (s DescribeBotVersionInput) String() string { +func (s DescribeImportInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeBotVersionInput) GoString() string { +func (s DescribeImportInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeBotVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeBotVersionInput"} - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) +func (s *DescribeImportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeImportInput"} + if s.ImportId == nil { + invalidParams.Add(request.NewErrParamRequired("ImportId")) } - if s.BotId != nil && len(*s.BotId) < 10 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) - } - if s.BotVersion == nil { - invalidParams.Add(request.NewErrParamRequired("BotVersion")) - } - if s.BotVersion != nil && len(*s.BotVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + if s.ImportId != nil && len(*s.ImportId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ImportId", 10)) } if invalidParams.Len() > 0 { @@ -8972,123 +10940,109 @@ func (s *DescribeBotVersionInput) Validate() error { return nil } -// SetBotId sets the BotId field's value. -func (s *DescribeBotVersionInput) SetBotId(v string) *DescribeBotVersionInput { - s.BotId = &v - return s -} - -// SetBotVersion sets the BotVersion field's value. -func (s *DescribeBotVersionInput) SetBotVersion(v string) *DescribeBotVersionInput { - s.BotVersion = &v +// SetImportId sets the ImportId field's value. +func (s *DescribeImportInput) SetImportId(v string) *DescribeImportInput { + s.ImportId = &v return s } -type DescribeBotVersionOutput struct { +type DescribeImportOutput struct { _ struct{} `type:"structure"` - // The identifier of the bot that contains the version. - BotId *string `locationName:"botId" min:"10" type:"string"` - - // The name of the bot that contains the version. - BotName *string `locationName:"botName" min:"1" type:"string"` + // The date and time that the import was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` - // The current status of the bot. When the status is Available, the bot version - // is ready for use. - BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + // If the importStatus field is Failed, this provides one or more reasons for + // the failture. + FailureReasons []*string `locationName:"failureReasons" type:"list"` - // The version of the bot to describe. - BotVersion *string `locationName:"botVersion" min:"1" type:"string"` + // The unique identifier of the described import. + ImportId *string `locationName:"importId" min:"10" type:"string"` - // A timestamp of the date and time that the bot version was created. - CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + // The status of the import process. When the status is Completed the resource + // is imported and ready for use. + ImportStatus *string `locationName:"importStatus" type:"string" enum:"ImportStatus"` - // Data privacy settings for the bot version. - DataPrivacy *DataPrivacy `locationName:"dataPrivacy" type:"structure"` + // The unique identifier that Amazon Lex assigned to the resource created by + // the import. + ImportedResourceId *string `locationName:"importedResourceId" min:"5" type:"string"` - // The description specified for the bot. - Description *string `locationName:"description" type:"string"` + // The name of the imported resource. + ImportedResourceName *string `locationName:"importedResourceName" min:"1" type:"string"` - // If the botStatus is Failed, this contains a list of reasons that the version - // couldn't be built. - FailureReasons []*string `locationName:"failureReasons" type:"list"` + // The date and time that the import was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` - // The number of seconds that a session with the bot remains active before it - // is discarded by Amazon Lex. - IdleSessionTTLInSeconds *int64 `locationName:"idleSessionTTLInSeconds" min:"60" type:"integer"` + // The strategy used when there was a name conflict between the imported resource + // and an existing resource. When the merge strategy is FailOnConflict existing + // resources are not overwritten and the import fails. + MergeStrategy *string `locationName:"mergeStrategy" type:"string" enum:"MergeStrategy"` - // The Amazon Resource Name (ARN) of an IAM role that has permission to access - // the bot version. - RoleArn *string `locationName:"roleArn" min:"32" type:"string"` + // The specifications of the imported bot or bot locale. + ResourceSpecification *ImportResourceSpecification `locationName:"resourceSpecification" type:"structure"` } // String returns the string representation -func (s DescribeBotVersionOutput) String() string { +func (s DescribeImportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeBotVersionOutput) GoString() string { +func (s DescribeImportOutput) GoString() string { return s.String() } -// SetBotId sets the BotId field's value. -func (s *DescribeBotVersionOutput) SetBotId(v string) *DescribeBotVersionOutput { - s.BotId = &v - return s -} - -// SetBotName sets the BotName field's value. -func (s *DescribeBotVersionOutput) SetBotName(v string) *DescribeBotVersionOutput { - s.BotName = &v +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeImportOutput) SetCreationDateTime(v time.Time) *DescribeImportOutput { + s.CreationDateTime = &v return s } -// SetBotStatus sets the BotStatus field's value. -func (s *DescribeBotVersionOutput) SetBotStatus(v string) *DescribeBotVersionOutput { - s.BotStatus = &v +// SetFailureReasons sets the FailureReasons field's value. +func (s *DescribeImportOutput) SetFailureReasons(v []*string) *DescribeImportOutput { + s.FailureReasons = v return s } -// SetBotVersion sets the BotVersion field's value. -func (s *DescribeBotVersionOutput) SetBotVersion(v string) *DescribeBotVersionOutput { - s.BotVersion = &v +// SetImportId sets the ImportId field's value. +func (s *DescribeImportOutput) SetImportId(v string) *DescribeImportOutput { + s.ImportId = &v return s } -// SetCreationDateTime sets the CreationDateTime field's value. -func (s *DescribeBotVersionOutput) SetCreationDateTime(v time.Time) *DescribeBotVersionOutput { - s.CreationDateTime = &v +// SetImportStatus sets the ImportStatus field's value. +func (s *DescribeImportOutput) SetImportStatus(v string) *DescribeImportOutput { + s.ImportStatus = &v return s } -// SetDataPrivacy sets the DataPrivacy field's value. -func (s *DescribeBotVersionOutput) SetDataPrivacy(v *DataPrivacy) *DescribeBotVersionOutput { - s.DataPrivacy = v +// SetImportedResourceId sets the ImportedResourceId field's value. +func (s *DescribeImportOutput) SetImportedResourceId(v string) *DescribeImportOutput { + s.ImportedResourceId = &v return s } -// SetDescription sets the Description field's value. -func (s *DescribeBotVersionOutput) SetDescription(v string) *DescribeBotVersionOutput { - s.Description = &v +// SetImportedResourceName sets the ImportedResourceName field's value. +func (s *DescribeImportOutput) SetImportedResourceName(v string) *DescribeImportOutput { + s.ImportedResourceName = &v return s } -// SetFailureReasons sets the FailureReasons field's value. -func (s *DescribeBotVersionOutput) SetFailureReasons(v []*string) *DescribeBotVersionOutput { - s.FailureReasons = v +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *DescribeImportOutput) SetLastUpdatedDateTime(v time.Time) *DescribeImportOutput { + s.LastUpdatedDateTime = &v return s } -// SetIdleSessionTTLInSeconds sets the IdleSessionTTLInSeconds field's value. -func (s *DescribeBotVersionOutput) SetIdleSessionTTLInSeconds(v int64) *DescribeBotVersionOutput { - s.IdleSessionTTLInSeconds = &v +// SetMergeStrategy sets the MergeStrategy field's value. +func (s *DescribeImportOutput) SetMergeStrategy(v string) *DescribeImportOutput { + s.MergeStrategy = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeBotVersionOutput) SetRoleArn(v string) *DescribeBotVersionOutput { - s.RoleArn = &v +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *DescribeImportOutput) SetResourceSpecification(v *ImportResourceSpecification) *DescribeImportOutput { + s.ResourceSpecification = v return s } @@ -9112,7 +11066,7 @@ type DescribeIntentInput struct { // The identifier of the language and locale of the intent to describe. The // string must match one of the supported locales. For more information, see - // https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -9384,8 +11338,8 @@ type DescribeSlotInput struct { IntentId *string `location:"uri" locationName:"intentId" min:"10" type:"string" required:"true"` // The identifier of the language and locale of the slot to describe. The string - // must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -9615,7 +11569,7 @@ type DescribeSlotTypeInput struct { // The identifier of the language and locale of the slot type to describe. The // string must match one of the supported locales. For more information, see - // https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -9803,38 +11757,213 @@ func (s *DescribeSlotTypeOutput) SetSlotTypeValues(v []*SlotTypeValue) *Describe return s } -// SetValueSelectionSetting sets the ValueSelectionSetting field's value. -func (s *DescribeSlotTypeOutput) SetValueSelectionSetting(v *SlotValueSelectionSetting) *DescribeSlotTypeOutput { - s.ValueSelectionSetting = v +// SetValueSelectionSetting sets the ValueSelectionSetting field's value. +func (s *DescribeSlotTypeOutput) SetValueSelectionSetting(v *SlotValueSelectionSetting) *DescribeSlotTypeOutput { + s.ValueSelectionSetting = v + return s +} + +// Settings that determine the Lambda function that Amazon Lex uses for processing +// user responses. +type DialogCodeHookSettings struct { + _ struct{} `type:"structure"` + + // Enables the dialog code hook so that it processes user requests. + // + // Enabled is a required field + Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` +} + +// String returns the string representation +func (s DialogCodeHookSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DialogCodeHookSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DialogCodeHookSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DialogCodeHookSettings"} + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnabled sets the Enabled field's value. +func (s *DialogCodeHookSettings) SetEnabled(v bool) *DialogCodeHookSettings { + s.Enabled = &v + return s +} + +// Filtes the response form the operation +type ExportFilter struct { + _ struct{} `type:"structure"` + + // The name of the field to use for filtering. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true" enum:"ExportFilterName"` + + // The operator to use for the filter. Specify EQ when the ListExports operation + // should return only resource types that equal the specified value. Specify + // CO when the ListExports operation should return resource types that contain + // the specified value. + // + // Operator is a required field + Operator *string `locationName:"operator" type:"string" required:"true" enum:"ExportFilterOperator"` + + // The values to use to fileter the response. + // + // Values is a required field + Values []*string `locationName:"values" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s ExportFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportFilter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Operator == nil { + invalidParams.Add(request.NewErrParamRequired("Operator")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *ExportFilter) SetName(v string) *ExportFilter { + s.Name = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *ExportFilter) SetOperator(v string) *ExportFilter { + s.Operator = &v + return s +} + +// SetValues sets the Values field's value. +func (s *ExportFilter) SetValues(v []*string) *ExportFilter { + s.Values = v + return s +} + +// Provides information about the bot or bot locale that you want to export. +// You can specify the botExportSpecification or the botLocaleExportSpecification, +// but not both. +type ExportResourceSpecification struct { + _ struct{} `type:"structure"` + + // Parameters for exporting a bot. + BotExportSpecification *BotExportSpecification `locationName:"botExportSpecification" type:"structure"` + + // Parameters for exporting a bot locale. + BotLocaleExportSpecification *BotLocaleExportSpecification `locationName:"botLocaleExportSpecification" type:"structure"` +} + +// String returns the string representation +func (s ExportResourceSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportResourceSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportResourceSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportResourceSpecification"} + if s.BotExportSpecification != nil { + if err := s.BotExportSpecification.Validate(); err != nil { + invalidParams.AddNested("BotExportSpecification", err.(request.ErrInvalidParams)) + } + } + if s.BotLocaleExportSpecification != nil { + if err := s.BotLocaleExportSpecification.Validate(); err != nil { + invalidParams.AddNested("BotLocaleExportSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotExportSpecification sets the BotExportSpecification field's value. +func (s *ExportResourceSpecification) SetBotExportSpecification(v *BotExportSpecification) *ExportResourceSpecification { + s.BotExportSpecification = v + return s +} + +// SetBotLocaleExportSpecification sets the BotLocaleExportSpecification field's value. +func (s *ExportResourceSpecification) SetBotLocaleExportSpecification(v *BotLocaleExportSpecification) *ExportResourceSpecification { + s.BotLocaleExportSpecification = v return s } -// Settings that determine the Lambda function that Amazon Lex uses for processing -// user responses. -type DialogCodeHookSettings struct { +// Provides information about sorting a list of exports. +type ExportSortBy struct { _ struct{} `type:"structure"` - // Enables the dialog code hook so that it processes user requests. + // The export field to use for sorting. // - // Enabled is a required field - Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` + // Attribute is a required field + Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"ExportSortAttribute"` + + // The order to sort the list. + // + // Order is a required field + Order *string `locationName:"order" type:"string" required:"true" enum:"SortOrder"` } // String returns the string representation -func (s DialogCodeHookSettings) String() string { +func (s ExportSortBy) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DialogCodeHookSettings) GoString() string { +func (s ExportSortBy) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DialogCodeHookSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DialogCodeHookSettings"} - if s.Enabled == nil { - invalidParams.Add(request.NewErrParamRequired("Enabled")) +func (s *ExportSortBy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportSortBy"} + if s.Attribute == nil { + invalidParams.Add(request.NewErrParamRequired("Attribute")) + } + if s.Order == nil { + invalidParams.Add(request.NewErrParamRequired("Order")) } if invalidParams.Len() > 0 { @@ -9843,9 +11972,85 @@ func (s *DialogCodeHookSettings) Validate() error { return nil } -// SetEnabled sets the Enabled field's value. -func (s *DialogCodeHookSettings) SetEnabled(v bool) *DialogCodeHookSettings { - s.Enabled = &v +// SetAttribute sets the Attribute field's value. +func (s *ExportSortBy) SetAttribute(v string) *ExportSortBy { + s.Attribute = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *ExportSortBy) SetOrder(v string) *ExportSortBy { + s.Order = &v + return s +} + +// Provides summary information about an export in an export list. +type ExportSummary struct { + _ struct{} `type:"structure"` + + // The date and time that the export was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // The unique identifier that Amazon Lex assigned to the export. + ExportId *string `locationName:"exportId" min:"10" type:"string"` + + // The status of the export. When the status is Completed the export is ready + // to download. + ExportStatus *string `locationName:"exportStatus" type:"string" enum:"ExportStatus"` + + // The file format used in the export files. + FileFormat *string `locationName:"fileFormat" type:"string" enum:"ImportExportFileFormat"` + + // The date and time that the export was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + + // Information about the bot or bot locale that was exported. + ResourceSpecification *ExportResourceSpecification `locationName:"resourceSpecification" type:"structure"` +} + +// String returns the string representation +func (s ExportSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportSummary) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *ExportSummary) SetCreationDateTime(v time.Time) *ExportSummary { + s.CreationDateTime = &v + return s +} + +// SetExportId sets the ExportId field's value. +func (s *ExportSummary) SetExportId(v string) *ExportSummary { + s.ExportId = &v + return s +} + +// SetExportStatus sets the ExportStatus field's value. +func (s *ExportSummary) SetExportStatus(v string) *ExportSummary { + s.ExportStatus = &v + return s +} + +// SetFileFormat sets the FileFormat field's value. +func (s *ExportSummary) SetFileFormat(v string) *ExportSummary { + s.FileFormat = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *ExportSummary) SetLastUpdatedDateTime(v time.Time) *ExportSummary { + s.LastUpdatedDateTime = &v + return s +} + +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *ExportSummary) SetResourceSpecification(v *ExportResourceSpecification) *ExportSummary { + s.ResourceSpecification = v return s } @@ -9977,9 +12182,270 @@ func (s *ImageResponseCard) SetSubtitle(v string) *ImageResponseCard { return s } -// SetTitle sets the Title field's value. -func (s *ImageResponseCard) SetTitle(v string) *ImageResponseCard { - s.Title = &v +// SetTitle sets the Title field's value. +func (s *ImageResponseCard) SetTitle(v string) *ImageResponseCard { + s.Title = &v + return s +} + +// Filters the response from the operation. +type ImportFilter struct { + _ struct{} `type:"structure"` + + // The name of the field to use for filtering. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true" enum:"ImportFilterName"` + + // The operator to use for the filter. Specify EQ when the ListImports operation + // should return only resource types that equal the specified value. Specify + // CO when the ListImports operation should return resource types that contain + // the specified value. + // + // Operator is a required field + Operator *string `locationName:"operator" type:"string" required:"true" enum:"ImportFilterOperator"` + + // The values to use to filter the response. + // + // Values is a required field + Values []*string `locationName:"values" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s ImportFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportFilter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Operator == nil { + invalidParams.Add(request.NewErrParamRequired("Operator")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *ImportFilter) SetName(v string) *ImportFilter { + s.Name = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *ImportFilter) SetOperator(v string) *ImportFilter { + s.Operator = &v + return s +} + +// SetValues sets the Values field's value. +func (s *ImportFilter) SetValues(v []*string) *ImportFilter { + s.Values = v + return s +} + +// Provides information about the bot or bot locale that you want to import. +// You can sepcifiy the botImportSpecification or the botLocaleImportSpecification, +// but not both. +type ImportResourceSpecification struct { + _ struct{} `type:"structure"` + + // Parameters for importing a bot. + BotImportSpecification *BotImportSpecification `locationName:"botImportSpecification" type:"structure"` + + // Parameters for importing a bot locale. + BotLocaleImportSpecification *BotLocaleImportSpecification `locationName:"botLocaleImportSpecification" type:"structure"` +} + +// String returns the string representation +func (s ImportResourceSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportResourceSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportResourceSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportResourceSpecification"} + if s.BotImportSpecification != nil { + if err := s.BotImportSpecification.Validate(); err != nil { + invalidParams.AddNested("BotImportSpecification", err.(request.ErrInvalidParams)) + } + } + if s.BotLocaleImportSpecification != nil { + if err := s.BotLocaleImportSpecification.Validate(); err != nil { + invalidParams.AddNested("BotLocaleImportSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotImportSpecification sets the BotImportSpecification field's value. +func (s *ImportResourceSpecification) SetBotImportSpecification(v *BotImportSpecification) *ImportResourceSpecification { + s.BotImportSpecification = v + return s +} + +// SetBotLocaleImportSpecification sets the BotLocaleImportSpecification field's value. +func (s *ImportResourceSpecification) SetBotLocaleImportSpecification(v *BotLocaleImportSpecification) *ImportResourceSpecification { + s.BotLocaleImportSpecification = v + return s +} + +// Provides information for sorting a list of imports. +type ImportSortBy struct { + _ struct{} `type:"structure"` + + // The export field to use for sorting. + // + // Attribute is a required field + Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"ImportSortAttribute"` + + // The order to sort the list. + // + // Order is a required field + Order *string `locationName:"order" type:"string" required:"true" enum:"SortOrder"` +} + +// String returns the string representation +func (s ImportSortBy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportSortBy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportSortBy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportSortBy"} + if s.Attribute == nil { + invalidParams.Add(request.NewErrParamRequired("Attribute")) + } + if s.Order == nil { + invalidParams.Add(request.NewErrParamRequired("Order")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttribute sets the Attribute field's value. +func (s *ImportSortBy) SetAttribute(v string) *ImportSortBy { + s.Attribute = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *ImportSortBy) SetOrder(v string) *ImportSortBy { + s.Order = &v + return s +} + +// Provides summary information about an import in an import list. +type ImportSummary struct { + _ struct{} `type:"structure"` + + // The date and time that the import was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // The unique identifier that Amazon Lex assigned to the import. + ImportId *string `locationName:"importId" min:"10" type:"string"` + + // The status of the resource. When the status is Completed the resource is + // ready to build. + ImportStatus *string `locationName:"importStatus" type:"string" enum:"ImportStatus"` + + // The unique identifier that Amazon Lex assigned to the imported resource. + ImportedResourceId *string `locationName:"importedResourceId" min:"5" type:"string"` + + // The name that you gave the imported resource. + ImportedResourceName *string `locationName:"importedResourceName" min:"1" type:"string"` + + // The date and time that the import was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + + // The strategy used to merge existing bot or bot locale definitions with the + // imported definition. + MergeStrategy *string `locationName:"mergeStrategy" type:"string" enum:"MergeStrategy"` +} + +// String returns the string representation +func (s ImportSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportSummary) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *ImportSummary) SetCreationDateTime(v time.Time) *ImportSummary { + s.CreationDateTime = &v + return s +} + +// SetImportId sets the ImportId field's value. +func (s *ImportSummary) SetImportId(v string) *ImportSummary { + s.ImportId = &v + return s +} + +// SetImportStatus sets the ImportStatus field's value. +func (s *ImportSummary) SetImportStatus(v string) *ImportSummary { + s.ImportStatus = &v + return s +} + +// SetImportedResourceId sets the ImportedResourceId field's value. +func (s *ImportSummary) SetImportedResourceId(v string) *ImportSummary { + s.ImportedResourceId = &v + return s +} + +// SetImportedResourceName sets the ImportedResourceName field's value. +func (s *ImportSummary) SetImportedResourceName(v string) *ImportSummary { + s.ImportedResourceName = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *ImportSummary) SetLastUpdatedDateTime(v time.Time) *ImportSummary { + s.LastUpdatedDateTime = &v + return s +} + +// SetMergeStrategy sets the MergeStrategy field's value. +func (s *ImportSummary) SetMergeStrategy(v string) *ImportSummary { + s.MergeStrategy = &v return s } @@ -10995,18 +13461,271 @@ func (s *ListBotsInput) Validate() error { 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SortBy != nil { + if err := s.SortBy.Validate(); err != nil { + invalidParams.AddNested("SortBy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListBotsInput) SetFilters(v []*BotFilter) *ListBotsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBotsInput) SetMaxResults(v int64) *ListBotsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBotsInput) SetNextToken(v string) *ListBotsInput { + s.NextToken = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListBotsInput) SetSortBy(v *BotSortBy) *ListBotsInput { + s.SortBy = v + return s +} + +type ListBotsOutput struct { + _ struct{} `type:"structure"` + + // Summary information for the bots that meet the filter criteria specified + // in the request. The length of the list is specified in the maxResults parameter + // of the request. If there are more bots available, the nextToken field contains + // a token to the next page of results. + BotSummaries []*BotSummary `locationName:"botSummaries" type:"list"` + + // A token that indicates whether there are more results to return in a response + // to the ListBots operation. If the nextToken field is present, you send the + // contents as the nextToken parameter of a ListBots operation request to get + // the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBotsOutput) GoString() string { + return s.String() +} + +// SetBotSummaries sets the BotSummaries field's value. +func (s *ListBotsOutput) SetBotSummaries(v []*BotSummary) *ListBotsOutput { + s.BotSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBotsOutput) SetNextToken(v string) *ListBotsOutput { + s.NextToken = &v + return s +} + +type ListBuiltInIntentsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the language and locale of the intents to list. The string + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). + // + // LocaleId is a required field + LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` + + // The maximum number of built-in intents to return in each page of results. + // If there are fewer results than the max page size, only the actual number + // of results are returned. + MaxResults *int64 `locationName:"maxResults" min:"20" type:"integer"` + + // If the response from the ListBuiltInIntents operation contains more results + // than specified in the maxResults parameter, a token is returned in the response. + // Use that token in the nextToken parameter to return the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // Specifies sorting parameters for the list of built-in intents. You can specify + // that the list be sorted by the built-in intent signature in either ascending + // or descending order. + SortBy *BuiltInIntentSortBy `locationName:"sortBy" type:"structure"` +} + +// String returns the string representation +func (s ListBuiltInIntentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuiltInIntentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBuiltInIntentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBuiltInIntentsInput"} + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + if s.LocaleId != nil && len(*s.LocaleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 20 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 20)) + } + if s.SortBy != nil { + if err := s.SortBy.Validate(); err != nil { + invalidParams.AddNested("SortBy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocaleId sets the LocaleId field's value. +func (s *ListBuiltInIntentsInput) SetLocaleId(v string) *ListBuiltInIntentsInput { + s.LocaleId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBuiltInIntentsInput) SetMaxResults(v int64) *ListBuiltInIntentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuiltInIntentsInput) SetNextToken(v string) *ListBuiltInIntentsInput { + s.NextToken = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListBuiltInIntentsInput) SetSortBy(v *BuiltInIntentSortBy) *ListBuiltInIntentsInput { + s.SortBy = v + return s +} + +type ListBuiltInIntentsOutput struct { + _ struct{} `type:"structure"` + + // Summary information for the built-in intents that meet the filter criteria + // specified in the request. The length of the list is specified in the maxResults + // parameter of the request. If there are more intents available, the nextToken + // field contains a token to get the next page of results. + BuiltInIntentSummaries []*BuiltInIntentSummary `locationName:"builtInIntentSummaries" type:"list"` + + // The language and locale of the intents in the list. + LocaleId *string `locationName:"localeId" type:"string"` + + // A token that indicates whether there are more results to return in a response + // to the ListBuiltInIntents operation. If the nextToken field is present, you + // send the contents as the nextToken parameter of a ListBotAliases operation + // request to get the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBuiltInIntentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuiltInIntentsOutput) GoString() string { + return s.String() +} + +// SetBuiltInIntentSummaries sets the BuiltInIntentSummaries field's value. +func (s *ListBuiltInIntentsOutput) SetBuiltInIntentSummaries(v []*BuiltInIntentSummary) *ListBuiltInIntentsOutput { + s.BuiltInIntentSummaries = v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *ListBuiltInIntentsOutput) SetLocaleId(v string) *ListBuiltInIntentsOutput { + s.LocaleId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBuiltInIntentsOutput) SetNextToken(v string) *ListBuiltInIntentsOutput { + s.NextToken = &v + return s +} + +type ListBuiltInSlotTypesInput struct { + _ struct{} `type:"structure"` + + // The identifier of the language and locale of the slot types to list. The + // string must match one of the supported locales. For more information, see + // Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). + // + // LocaleId is a required field + LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` + + // The maximum number of built-in slot types to return in each page of results. + // If there are fewer results than the max page size, only the actual number + // of results are returned. + MaxResults *int64 `locationName:"maxResults" min:"20" type:"integer"` + + // If the response from the ListBuiltInSlotTypes operation contains more results + // than specified in the maxResults parameter, a token is returned in the response. + // Use that token in the nextToken parameter to return the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // Determines the sort order for the response from the ListBuiltInSlotTypes + // operation. You can choose to sort by the slot type signature in either ascending + // or descending order. + SortBy *BuiltInSlotTypeSortBy `locationName:"sortBy" type:"structure"` +} + +// String returns the string representation +func (s ListBuiltInSlotTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBuiltInSlotTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBuiltInSlotTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBuiltInSlotTypesInput"} + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + if s.LocaleId != nil && len(*s.LocaleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) } - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } + if s.MaxResults != nil && *s.MaxResults < 20 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 20)) } if s.SortBy != nil { if err := s.SortBy.Validate(); err != nil { @@ -11020,115 +13739,140 @@ func (s *ListBotsInput) Validate() error { return nil } -// SetFilters sets the Filters field's value. -func (s *ListBotsInput) SetFilters(v []*BotFilter) *ListBotsInput { - s.Filters = v +// SetLocaleId sets the LocaleId field's value. +func (s *ListBuiltInSlotTypesInput) SetLocaleId(v string) *ListBuiltInSlotTypesInput { + s.LocaleId = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListBotsInput) SetMaxResults(v int64) *ListBotsInput { +func (s *ListBuiltInSlotTypesInput) SetMaxResults(v int64) *ListBuiltInSlotTypesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBotsInput) SetNextToken(v string) *ListBotsInput { +func (s *ListBuiltInSlotTypesInput) SetNextToken(v string) *ListBuiltInSlotTypesInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. -func (s *ListBotsInput) SetSortBy(v *BotSortBy) *ListBotsInput { +func (s *ListBuiltInSlotTypesInput) SetSortBy(v *BuiltInSlotTypeSortBy) *ListBuiltInSlotTypesInput { s.SortBy = v return s } -type ListBotsOutput struct { +type ListBuiltInSlotTypesOutput struct { _ struct{} `type:"structure"` - // Summary information for the bots that meet the filter criteria specified - // in the request. The length of the list is specified in the maxResults parameter - // of the request. If there are more bots available, the nextToken field contains - // a token to the next page of results. - BotSummaries []*BotSummary `locationName:"botSummaries" type:"list"` + // Summary information for the built-in slot types that meet the filter criteria + // specified in the request. The length of the list is specified in the maxResults + // parameter of the request. If there are more slot types available, the nextToken + // field contains a token to get the next page of results. + BuiltInSlotTypeSummaries []*BuiltInSlotTypeSummary `locationName:"builtInSlotTypeSummaries" type:"list"` + + // The language and locale of the slot types in the list. + LocaleId *string `locationName:"localeId" type:"string"` // A token that indicates whether there are more results to return in a response - // to the ListBots operation. If the nextToken field is present, you send the - // contents as the nextToken parameter of a ListBots operation request to get - // the next page of results. + // to the ListBuiltInSlotTypes operation. If the nextToken field is present, + // you send the contents as the nextToken parameter of a LIstBuiltInSlotTypes + // operation request to get the next page of results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s ListBotsOutput) String() string { +func (s ListBuiltInSlotTypesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBotsOutput) GoString() string { +func (s ListBuiltInSlotTypesOutput) GoString() string { return s.String() } -// SetBotSummaries sets the BotSummaries field's value. -func (s *ListBotsOutput) SetBotSummaries(v []*BotSummary) *ListBotsOutput { - s.BotSummaries = v +// SetBuiltInSlotTypeSummaries sets the BuiltInSlotTypeSummaries field's value. +func (s *ListBuiltInSlotTypesOutput) SetBuiltInSlotTypeSummaries(v []*BuiltInSlotTypeSummary) *ListBuiltInSlotTypesOutput { + s.BuiltInSlotTypeSummaries = v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *ListBuiltInSlotTypesOutput) SetLocaleId(v string) *ListBuiltInSlotTypesOutput { + s.LocaleId = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBotsOutput) SetNextToken(v string) *ListBotsOutput { +func (s *ListBuiltInSlotTypesOutput) SetNextToken(v string) *ListBuiltInSlotTypesOutput { s.NextToken = &v return s } -type ListBuiltInIntentsInput struct { +type ListExportsInput struct { _ struct{} `type:"structure"` - // The identifier of the language and locale of the intents to list. The string - // must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). - // - // LocaleId is a required field - LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` + // The unique identifier that Amazon Lex assigned to the bot. + BotId *string `locationName:"botId" min:"10" type:"string"` - // The maximum number of built-in intents to return in each page of results. - // If there are fewer results than the max page size, only the actual number - // of results are returned. - MaxResults *int64 `locationName:"maxResults" min:"20" type:"integer"` + // The version of the bot to list exports for. + BotVersion *string `locationName:"botVersion" min:"1" type:"string"` - // If the response from the ListBuiltInIntents operation contains more results - // than specified in the maxResults parameter, a token is returned in the response. + // Provides the specification of a filter used to limit the exports in the response + // to only those that match the filter specification. You can only specify one + // filter and one string to filter on. + Filters []*ExportFilter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of exports to return in each page of results. If there + // are fewer results than the max page size, only the actual number of results + // are returned. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // If the response from the ListExports operation contans more results that + // specified in the maxResults parameter, a token is returned in the response. // Use that token in the nextToken parameter to return the next page of results. NextToken *string `locationName:"nextToken" type:"string"` - // Specifies sorting parameters for the list of built-in intents. You can specify - // that the list be sorted by the built-in intent signature in either ascending - // or descending order. - SortBy *BuiltInIntentSortBy `locationName:"sortBy" type:"structure"` + // Determines the field that the list of exports is sorted by. You can sort + // by the LastUpdatedDateTime field in ascending or descending order. + SortBy *ExportSortBy `locationName:"sortBy" type:"structure"` } // String returns the string representation -func (s ListBuiltInIntentsInput) String() string { +func (s ListExportsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBuiltInIntentsInput) GoString() string { +func (s ListExportsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListBuiltInIntentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListBuiltInIntentsInput"} - if s.LocaleId == nil { - invalidParams.Add(request.NewErrParamRequired("LocaleId")) +func (s *ListExportsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListExportsInput"} + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) } - if s.LocaleId != nil && len(*s.LocaleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) } - if s.MaxResults != nil && *s.MaxResults < 20 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 20)) + 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.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } } if s.SortBy != nil { if err := s.SortBy.Validate(); err != nil { @@ -11142,124 +13886,161 @@ func (s *ListBuiltInIntentsInput) Validate() error { return nil } -// SetLocaleId sets the LocaleId field's value. -func (s *ListBuiltInIntentsInput) SetLocaleId(v string) *ListBuiltInIntentsInput { - s.LocaleId = &v +// SetBotId sets the BotId field's value. +func (s *ListExportsInput) SetBotId(v string) *ListExportsInput { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *ListExportsInput) SetBotVersion(v string) *ListExportsInput { + s.BotVersion = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListExportsInput) SetFilters(v []*ExportFilter) *ListExportsInput { + s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListBuiltInIntentsInput) SetMaxResults(v int64) *ListBuiltInIntentsInput { +func (s *ListExportsInput) SetMaxResults(v int64) *ListExportsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBuiltInIntentsInput) SetNextToken(v string) *ListBuiltInIntentsInput { +func (s *ListExportsInput) SetNextToken(v string) *ListExportsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. -func (s *ListBuiltInIntentsInput) SetSortBy(v *BuiltInIntentSortBy) *ListBuiltInIntentsInput { +func (s *ListExportsInput) SetSortBy(v *ExportSortBy) *ListExportsInput { s.SortBy = v return s } -type ListBuiltInIntentsOutput struct { +type ListExportsOutput struct { _ struct{} `type:"structure"` - // Summary information for the built-in intents that meet the filter criteria - // specified in the request. The length of the list is specified in the maxResults - // parameter of the request. If there are more intents available, the nextToken - // field contains a token to get the next page of results. - BuiltInIntentSummaries []*BuiltInIntentSummary `locationName:"builtInIntentSummaries" type:"list"` + // The unique identifier assigned to the bot by Amazon Lex. + BotId *string `locationName:"botId" min:"10" type:"string"` - // The language and locale of the intents in the list. - LocaleId *string `locationName:"localeId" type:"string"` + // The version of the bot that was exported. + BotVersion *string `locationName:"botVersion" min:"1" type:"string"` + + // Summary information for the exports that meet the filter criteria specified + // in the request. The length of the list is specified in the maxResults parameter. + // If there are more exports available, the nextToken field contains a token + // to get the next page of results. + ExportSummaries []*ExportSummary `locationName:"exportSummaries" type:"list"` // A token that indicates whether there are more results to return in a response - // to the ListBuiltInIntents operation. If the nextToken field is present, you - // send the contents as the nextToken parameter of a ListBotAliases operation - // request to get the next page of results. + // to the ListExports operation. If the nextToken field is present, you send + // the contents as the nextToken parameter of a ListExports operation request + // to get the next page of results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s ListBuiltInIntentsOutput) String() string { +func (s ListExportsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBuiltInIntentsOutput) GoString() string { +func (s ListExportsOutput) GoString() string { return s.String() } -// SetBuiltInIntentSummaries sets the BuiltInIntentSummaries field's value. -func (s *ListBuiltInIntentsOutput) SetBuiltInIntentSummaries(v []*BuiltInIntentSummary) *ListBuiltInIntentsOutput { - s.BuiltInIntentSummaries = v +// SetBotId sets the BotId field's value. +func (s *ListExportsOutput) SetBotId(v string) *ListExportsOutput { + s.BotId = &v return s } -// SetLocaleId sets the LocaleId field's value. -func (s *ListBuiltInIntentsOutput) SetLocaleId(v string) *ListBuiltInIntentsOutput { - s.LocaleId = &v +// SetBotVersion sets the BotVersion field's value. +func (s *ListExportsOutput) SetBotVersion(v string) *ListExportsOutput { + s.BotVersion = &v + return s +} + +// SetExportSummaries sets the ExportSummaries field's value. +func (s *ListExportsOutput) SetExportSummaries(v []*ExportSummary) *ListExportsOutput { + s.ExportSummaries = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBuiltInIntentsOutput) SetNextToken(v string) *ListBuiltInIntentsOutput { +func (s *ListExportsOutput) SetNextToken(v string) *ListExportsOutput { s.NextToken = &v return s } -type ListBuiltInSlotTypesInput struct { +type ListImportsInput struct { _ struct{} `type:"structure"` - // The identifier of the language and locale of the slot types to list. The - // string must match one of the supported locales. For more information, see - // https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). - // - // LocaleId is a required field - LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` + // The unique identifier that Amazon Lex assigned to the bot. + BotId *string `locationName:"botId" min:"10" type:"string"` - // The maximum number of built-in slot types to return in each page of results. - // If there are fewer results than the max page size, only the actual number - // of results are returned. - MaxResults *int64 `locationName:"maxResults" min:"20" type:"integer"` + // The version of the bot to list imports for. + BotVersion *string `locationName:"botVersion" min:"5" type:"string"` - // If the response from the ListBuiltInSlotTypes operation contains more results - // than specified in the maxResults parameter, a token is returned in the response. + // Provides the specification of a filter used to limit the bots in the response + // to only those that match the filter specification. You can only specify one + // filter and one string to filter on. + Filters []*ImportFilter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of imports to return in each page of results. If there + // are fewer results than the max page size, only the actual number of results + // are returned. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // If the response from the ListImports operation contains more results than + // specified in the maxResults parameter, a token is returned in the response. // Use that token in the nextToken parameter to return the next page of results. NextToken *string `locationName:"nextToken" type:"string"` - // Determines the sort order for the response from the ListBuiltInSlotTypes - // operation. You can choose to sort by the slot type signature in either ascending - // or descending order. - SortBy *BuiltInSlotTypeSortBy `locationName:"sortBy" type:"structure"` + // Determines the field that the list of imports is sorted by. You can sort + // by the LastUpdatedDateTime field in ascending or descending order. + SortBy *ImportSortBy `locationName:"sortBy" type:"structure"` } // String returns the string representation -func (s ListBuiltInSlotTypesInput) String() string { +func (s ListImportsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBuiltInSlotTypesInput) GoString() string { +func (s ListImportsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListBuiltInSlotTypesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListBuiltInSlotTypesInput"} - if s.LocaleId == nil { - invalidParams.Add(request.NewErrParamRequired("LocaleId")) +func (s *ListImportsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListImportsInput"} + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) } - if s.LocaleId != nil && len(*s.LocaleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) + if s.BotVersion != nil && len(*s.BotVersion) < 5 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 5)) } - if s.MaxResults != nil && *s.MaxResults < 20 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 20)) + 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.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } } if s.SortBy != nil { if err := s.SortBy.Validate(); err != nil { @@ -11273,73 +14054,94 @@ func (s *ListBuiltInSlotTypesInput) Validate() error { return nil } -// SetLocaleId sets the LocaleId field's value. -func (s *ListBuiltInSlotTypesInput) SetLocaleId(v string) *ListBuiltInSlotTypesInput { - s.LocaleId = &v +// SetBotId sets the BotId field's value. +func (s *ListImportsInput) SetBotId(v string) *ListImportsInput { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *ListImportsInput) SetBotVersion(v string) *ListImportsInput { + s.BotVersion = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListImportsInput) SetFilters(v []*ImportFilter) *ListImportsInput { + s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListBuiltInSlotTypesInput) SetMaxResults(v int64) *ListBuiltInSlotTypesInput { +func (s *ListImportsInput) SetMaxResults(v int64) *ListImportsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBuiltInSlotTypesInput) SetNextToken(v string) *ListBuiltInSlotTypesInput { +func (s *ListImportsInput) SetNextToken(v string) *ListImportsInput { s.NextToken = &v return s } // SetSortBy sets the SortBy field's value. -func (s *ListBuiltInSlotTypesInput) SetSortBy(v *BuiltInSlotTypeSortBy) *ListBuiltInSlotTypesInput { +func (s *ListImportsInput) SetSortBy(v *ImportSortBy) *ListImportsInput { s.SortBy = v return s } -type ListBuiltInSlotTypesOutput struct { +type ListImportsOutput struct { _ struct{} `type:"structure"` - // Summary information for the built-in slot types that meet the filter criteria - // specified in the request. The length of the list is specified in the maxResults - // parameter of the request. If there are more slot types available, the nextToken - // field contains a token to get the next page of results. - BuiltInSlotTypeSummaries []*BuiltInSlotTypeSummary `locationName:"builtInSlotTypeSummaries" type:"list"` + // The unique identifier assigned by Amazon Lex to the bot. + BotId *string `locationName:"botId" min:"10" type:"string"` + + // The version of the bot that was imported. It will always be DRAFT. + BotVersion *string `locationName:"botVersion" min:"5" type:"string"` - // The language and locale of the slot types in the list. - LocaleId *string `locationName:"localeId" type:"string"` + // Summary information for the imports that meet the filter criteria specified + // in the request. The length of the list is specified in the maxResults parameter. + // If there are more imports available, the nextToken field contains a token + // to get the next page of results. + ImportSummaries []*ImportSummary `locationName:"importSummaries" type:"list"` // A token that indicates whether there are more results to return in a response - // to the ListBuiltInSlotTypes operation. If the nextToken field is present, - // you send the contents as the nextToken parameter of a LIstBuiltInSlotTypes - // operation request to get the next page of results. + // to the ListImports operation. If the nextToken field is present, you send + // the contents as the nextToken parameter of a ListImports operation request + // to get the next page of results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s ListBuiltInSlotTypesOutput) String() string { +func (s ListImportsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBuiltInSlotTypesOutput) GoString() string { +func (s ListImportsOutput) GoString() string { return s.String() } -// SetBuiltInSlotTypeSummaries sets the BuiltInSlotTypeSummaries field's value. -func (s *ListBuiltInSlotTypesOutput) SetBuiltInSlotTypeSummaries(v []*BuiltInSlotTypeSummary) *ListBuiltInSlotTypesOutput { - s.BuiltInSlotTypeSummaries = v +// SetBotId sets the BotId field's value. +func (s *ListImportsOutput) SetBotId(v string) *ListImportsOutput { + s.BotId = &v return s } -// SetLocaleId sets the LocaleId field's value. -func (s *ListBuiltInSlotTypesOutput) SetLocaleId(v string) *ListBuiltInSlotTypesOutput { - s.LocaleId = &v +// SetBotVersion sets the BotVersion field's value. +func (s *ListImportsOutput) SetBotVersion(v string) *ListImportsOutput { + s.BotVersion = &v + return s +} + +// SetImportSummaries sets the ImportSummaries field's value. +func (s *ListImportsOutput) SetImportSummaries(v []*ImportSummary) *ListImportsOutput { + s.ImportSummaries = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBuiltInSlotTypesOutput) SetNextToken(v string) *ListBuiltInSlotTypesOutput { +func (s *ListImportsOutput) SetNextToken(v string) *ListImportsOutput { s.NextToken = &v return s } @@ -11363,8 +14165,8 @@ type ListIntentsInput struct { Filters []*IntentFilter `locationName:"filters" min:"1" type:"list"` // The identifier of the language and locale of the intents to list. The string - // must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -11571,7 +14373,7 @@ type ListSlotTypesInput struct { // The identifier of the language and locale of the slot types to list. The // string must match one of the supported locales. For more information, see - // https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -11782,8 +14584,8 @@ type ListSlotsInput struct { IntentId *string `location:"uri" locationName:"intentId" min:"10" type:"string" required:"true"` // The identifier of the language and locale of the slots to list. The string - // must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -13737,6 +16539,159 @@ func (s *SlotValueSelectionSetting) SetResolutionStrategy(v string) *SlotValueSe return s } +type StartImportInput struct { + _ struct{} `type:"structure"` + + // The password used to encrypt the zip archive that contains the bot or bot + // locale definition. You should always encrypt the zip archive to protect it + // during transit between your site and Amazon Lex. + FilePassword *string `locationName:"filePassword" min:"1" type:"string" sensitive:"true"` + + // The unique identifier for the import. It is included in the response from + // the operation. + // + // ImportId is a required field + ImportId *string `locationName:"importId" min:"10" type:"string" required:"true"` + + // The strategy to use when there is a name conflict between the imported resource + // and an existing resource. When the merge strategy is FailOnConflict existing + // resources are not overwritten and the import fails. + // + // MergeStrategy is a required field + MergeStrategy *string `locationName:"mergeStrategy" type:"string" required:"true" enum:"MergeStrategy"` + + // Parameters for creating the bot or bot locale. + // + // ResourceSpecification is a required field + ResourceSpecification *ImportResourceSpecification `locationName:"resourceSpecification" type:"structure" required:"true"` +} + +// String returns the string representation +func (s StartImportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartImportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartImportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartImportInput"} + if s.FilePassword != nil && len(*s.FilePassword) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilePassword", 1)) + } + if s.ImportId == nil { + invalidParams.Add(request.NewErrParamRequired("ImportId")) + } + if s.ImportId != nil && len(*s.ImportId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ImportId", 10)) + } + if s.MergeStrategy == nil { + invalidParams.Add(request.NewErrParamRequired("MergeStrategy")) + } + if s.ResourceSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceSpecification")) + } + if s.ResourceSpecification != nil { + if err := s.ResourceSpecification.Validate(); err != nil { + invalidParams.AddNested("ResourceSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilePassword sets the FilePassword field's value. +func (s *StartImportInput) SetFilePassword(v string) *StartImportInput { + s.FilePassword = &v + return s +} + +// SetImportId sets the ImportId field's value. +func (s *StartImportInput) SetImportId(v string) *StartImportInput { + s.ImportId = &v + return s +} + +// SetMergeStrategy sets the MergeStrategy field's value. +func (s *StartImportInput) SetMergeStrategy(v string) *StartImportInput { + s.MergeStrategy = &v + return s +} + +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *StartImportInput) SetResourceSpecification(v *ImportResourceSpecification) *StartImportInput { + s.ResourceSpecification = v + return s +} + +type StartImportOutput struct { + _ struct{} `type:"structure"` + + // The date and time that the import request was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // A unique identifier for the import. + ImportId *string `locationName:"importId" min:"10" type:"string"` + + // The current status of the import. When the status is Complete the bot or + // bot alias is ready to use. + ImportStatus *string `locationName:"importStatus" type:"string" enum:"ImportStatus"` + + // The strategy used when there was a name conflict between the imported resource + // and an existing resource. When the merge strategy is FailOnConflict existing + // resources are not overwritten and the import fails. + MergeStrategy *string `locationName:"mergeStrategy" type:"string" enum:"MergeStrategy"` + + // The parameters used when importing the bot or bot locale. + ResourceSpecification *ImportResourceSpecification `locationName:"resourceSpecification" type:"structure"` +} + +// String returns the string representation +func (s StartImportOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartImportOutput) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *StartImportOutput) SetCreationDateTime(v time.Time) *StartImportOutput { + s.CreationDateTime = &v + return s +} + +// SetImportId sets the ImportId field's value. +func (s *StartImportOutput) SetImportId(v string) *StartImportOutput { + s.ImportId = &v + return s +} + +// SetImportStatus sets the ImportStatus field's value. +func (s *StartImportOutput) SetImportStatus(v string) *StartImportOutput { + s.ImportStatus = &v + return s +} + +// SetMergeStrategy sets the MergeStrategy field's value. +func (s *StartImportOutput) SetMergeStrategy(v string) *StartImportOutput { + s.MergeStrategy = &v + return s +} + +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *StartImportOutput) SetResourceSpecification(v *ImportResourceSpecification) *StartImportOutput { + s.ResourceSpecification = v + return s +} + // Defines the messages that Amazon Lex sends to a user to remind them that // the bot is waiting for a response. type StillWaitingResponseSpecification struct { @@ -14552,8 +17507,8 @@ type UpdateBotLocaleInput struct { Description *string `locationName:"description" type:"string"` // The identifier of the language and locale to update. The string must match - // one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // one of the supported locales. For more information, see Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -14867,6 +17822,129 @@ func (s *UpdateBotOutput) SetRoleArn(v string) *UpdateBotOutput { return s } +type UpdateExportInput struct { + _ struct{} `type:"structure"` + + // The unique identifier Amazon Lex assigned to the export. + // + // ExportId is a required field + ExportId *string `location:"uri" locationName:"exportId" min:"10" type:"string" required:"true"` + + // The new password to use to encrypt the export zip archive. + FilePassword *string `locationName:"filePassword" min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s UpdateExportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateExportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateExportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateExportInput"} + if s.ExportId == nil { + invalidParams.Add(request.NewErrParamRequired("ExportId")) + } + if s.ExportId != nil && len(*s.ExportId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ExportId", 10)) + } + if s.FilePassword != nil && len(*s.FilePassword) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilePassword", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExportId sets the ExportId field's value. +func (s *UpdateExportInput) SetExportId(v string) *UpdateExportInput { + s.ExportId = &v + return s +} + +// SetFilePassword sets the FilePassword field's value. +func (s *UpdateExportInput) SetFilePassword(v string) *UpdateExportInput { + s.FilePassword = &v + return s +} + +type UpdateExportOutput struct { + _ struct{} `type:"structure"` + + // The date and time that the export was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // The unique identifier Amazon Lex assigned to the export. + ExportId *string `locationName:"exportId" min:"10" type:"string"` + + // The status of the export. When the status is Completed the export archive + // is available for download. + ExportStatus *string `locationName:"exportStatus" type:"string" enum:"ExportStatus"` + + // The file format used for the files that define the resource. + FileFormat *string `locationName:"fileFormat" type:"string" enum:"ImportExportFileFormat"` + + // The date and time that the export was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + + // A description of the type of resource that was exported, either a bot or + // a bot locale. + ResourceSpecification *ExportResourceSpecification `locationName:"resourceSpecification" type:"structure"` +} + +// String returns the string representation +func (s UpdateExportOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateExportOutput) GoString() string { + return s.String() +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *UpdateExportOutput) SetCreationDateTime(v time.Time) *UpdateExportOutput { + s.CreationDateTime = &v + return s +} + +// SetExportId sets the ExportId field's value. +func (s *UpdateExportOutput) SetExportId(v string) *UpdateExportOutput { + s.ExportId = &v + return s +} + +// SetExportStatus sets the ExportStatus field's value. +func (s *UpdateExportOutput) SetExportStatus(v string) *UpdateExportOutput { + s.ExportStatus = &v + return s +} + +// SetFileFormat sets the FileFormat field's value. +func (s *UpdateExportOutput) SetFileFormat(v string) *UpdateExportOutput { + s.FileFormat = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *UpdateExportOutput) SetLastUpdatedDateTime(v time.Time) *UpdateExportOutput { + s.LastUpdatedDateTime = &v + return s +} + +// SetResourceSpecification sets the ResourceSpecification field's value. +func (s *UpdateExportOutput) SetResourceSpecification(v *ExportResourceSpecification) *UpdateExportOutput { + s.ResourceSpecification = v + return s +} + type UpdateIntentInput struct { _ struct{} `type:"structure"` @@ -14917,7 +17995,7 @@ type UpdateIntentInput struct { // The identifier of the language and locale where this intent is used. The // string must match one of the supported locales. For more information, see - // https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -15350,8 +18428,8 @@ type UpdateSlotInput struct { IntentId *string `location:"uri" locationName:"intentId" min:"10" type:"string" required:"true"` // The identifier of the language and locale that contains the slot. The string - // must match one of the supported locales. For more information, see https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html - // (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -15660,7 +18738,7 @@ type UpdateSlotTypeInput struct { // The identifier of the language and locale that contains the slot type. The // string must match one of the supported locales. For more information, see - // https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html (https://docs.aws.amazon.com/lex/latest/dg/supported-locales.html). + // Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). // // LocaleId is a required field LocaleId *string `location:"uri" locationName:"localeId" type:"string" required:"true"` @@ -16218,6 +19296,9 @@ const ( // BotLocaleStatusNotBuilt is a BotLocaleStatus enum value BotLocaleStatusNotBuilt = "NotBuilt" + + // BotLocaleStatusImporting is a BotLocaleStatus enum value + BotLocaleStatusImporting = "Importing" ) // BotLocaleStatus_Values returns all elements of the BotLocaleStatus enum @@ -16230,6 +19311,7 @@ func BotLocaleStatus_Values() []string { BotLocaleStatusFailed, BotLocaleStatusDeleting, BotLocaleStatusNotBuilt, + BotLocaleStatusImporting, } } @@ -16263,6 +19345,9 @@ const ( // BotStatusVersioning is a BotStatus enum value BotStatusVersioning = "Versioning" + + // BotStatusImporting is a BotStatus enum value + BotStatusImporting = "Importing" ) // BotStatus_Values returns all elements of the BotStatus enum @@ -16274,6 +19359,7 @@ func BotStatus_Values() []string { BotStatusDeleting, BotStatusFailed, BotStatusVersioning, + BotStatusImporting, } } @@ -16313,6 +19399,146 @@ func BuiltInSlotTypeSortAttribute_Values() []string { } } +const ( + // ExportFilterNameExportResourceType is a ExportFilterName enum value + ExportFilterNameExportResourceType = "ExportResourceType" +) + +// ExportFilterName_Values returns all elements of the ExportFilterName enum +func ExportFilterName_Values() []string { + return []string{ + ExportFilterNameExportResourceType, + } +} + +const ( + // ExportFilterOperatorCo is a ExportFilterOperator enum value + ExportFilterOperatorCo = "CO" + + // ExportFilterOperatorEq is a ExportFilterOperator enum value + ExportFilterOperatorEq = "EQ" +) + +// ExportFilterOperator_Values returns all elements of the ExportFilterOperator enum +func ExportFilterOperator_Values() []string { + return []string{ + ExportFilterOperatorCo, + ExportFilterOperatorEq, + } +} + +const ( + // ExportSortAttributeLastUpdatedDateTime is a ExportSortAttribute enum value + ExportSortAttributeLastUpdatedDateTime = "LastUpdatedDateTime" +) + +// ExportSortAttribute_Values returns all elements of the ExportSortAttribute enum +func ExportSortAttribute_Values() []string { + return []string{ + ExportSortAttributeLastUpdatedDateTime, + } +} + +const ( + // ExportStatusInProgress is a ExportStatus enum value + ExportStatusInProgress = "InProgress" + + // ExportStatusCompleted is a ExportStatus enum value + ExportStatusCompleted = "Completed" + + // ExportStatusFailed is a ExportStatus enum value + ExportStatusFailed = "Failed" + + // ExportStatusDeleting is a ExportStatus enum value + ExportStatusDeleting = "Deleting" +) + +// ExportStatus_Values returns all elements of the ExportStatus enum +func ExportStatus_Values() []string { + return []string{ + ExportStatusInProgress, + ExportStatusCompleted, + ExportStatusFailed, + ExportStatusDeleting, + } +} + +const ( + // ImportExportFileFormatLexJson is a ImportExportFileFormat enum value + ImportExportFileFormatLexJson = "LexJson" +) + +// ImportExportFileFormat_Values returns all elements of the ImportExportFileFormat enum +func ImportExportFileFormat_Values() []string { + return []string{ + ImportExportFileFormatLexJson, + } +} + +const ( + // ImportFilterNameImportResourceType is a ImportFilterName enum value + ImportFilterNameImportResourceType = "ImportResourceType" +) + +// ImportFilterName_Values returns all elements of the ImportFilterName enum +func ImportFilterName_Values() []string { + return []string{ + ImportFilterNameImportResourceType, + } +} + +const ( + // ImportFilterOperatorCo is a ImportFilterOperator enum value + ImportFilterOperatorCo = "CO" + + // ImportFilterOperatorEq is a ImportFilterOperator enum value + ImportFilterOperatorEq = "EQ" +) + +// ImportFilterOperator_Values returns all elements of the ImportFilterOperator enum +func ImportFilterOperator_Values() []string { + return []string{ + ImportFilterOperatorCo, + ImportFilterOperatorEq, + } +} + +const ( + // ImportSortAttributeLastUpdatedDateTime is a ImportSortAttribute enum value + ImportSortAttributeLastUpdatedDateTime = "LastUpdatedDateTime" +) + +// ImportSortAttribute_Values returns all elements of the ImportSortAttribute enum +func ImportSortAttribute_Values() []string { + return []string{ + ImportSortAttributeLastUpdatedDateTime, + } +} + +const ( + // ImportStatusInProgress is a ImportStatus enum value + ImportStatusInProgress = "InProgress" + + // ImportStatusCompleted is a ImportStatus enum value + ImportStatusCompleted = "Completed" + + // ImportStatusFailed is a ImportStatus enum value + ImportStatusFailed = "Failed" + + // ImportStatusDeleting is a ImportStatus enum value + ImportStatusDeleting = "Deleting" +) + +// ImportStatus_Values returns all elements of the ImportStatus enum +func ImportStatus_Values() []string { + return []string{ + ImportStatusInProgress, + ImportStatusCompleted, + ImportStatusFailed, + ImportStatusDeleting, + } +} + const ( // IntentFilterNameIntentName is a IntentFilterName enum value IntentFilterNameIntentName = "IntentName" @@ -16357,6 +19583,22 @@ func IntentSortAttribute_Values() []string { } } +const ( + // MergeStrategyOverwrite is a MergeStrategy enum value + MergeStrategyOverwrite = "Overwrite" + + // MergeStrategyFailOnConflict is a MergeStrategy enum value + MergeStrategyFailOnConflict = "FailOnConflict" +) + +// MergeStrategy_Values returns all elements of the MergeStrategy enum +func MergeStrategy_Values() []string { + return []string{ + MergeStrategyOverwrite, + MergeStrategyFailOnConflict, + } +} + const ( // ObfuscationSettingTypeNone is a ObfuscationSettingType enum value ObfuscationSettingTypeNone = "None" diff --git a/service/lexmodelsv2/lexmodelsv2iface/interface.go b/service/lexmodelsv2/lexmodelsv2iface/interface.go index 6306cc2e98e..ad59f388ae2 100644 --- a/service/lexmodelsv2/lexmodelsv2iface/interface.go +++ b/service/lexmodelsv2/lexmodelsv2iface/interface.go @@ -80,6 +80,10 @@ type LexModelsV2API interface { CreateBotVersionWithContext(aws.Context, *lexmodelsv2.CreateBotVersionInput, ...request.Option) (*lexmodelsv2.CreateBotVersionOutput, error) CreateBotVersionRequest(*lexmodelsv2.CreateBotVersionInput) (*request.Request, *lexmodelsv2.CreateBotVersionOutput) + CreateExport(*lexmodelsv2.CreateExportInput) (*lexmodelsv2.CreateExportOutput, error) + CreateExportWithContext(aws.Context, *lexmodelsv2.CreateExportInput, ...request.Option) (*lexmodelsv2.CreateExportOutput, error) + CreateExportRequest(*lexmodelsv2.CreateExportInput) (*request.Request, *lexmodelsv2.CreateExportOutput) + CreateIntent(*lexmodelsv2.CreateIntentInput) (*lexmodelsv2.CreateIntentOutput, error) CreateIntentWithContext(aws.Context, *lexmodelsv2.CreateIntentInput, ...request.Option) (*lexmodelsv2.CreateIntentOutput, error) CreateIntentRequest(*lexmodelsv2.CreateIntentInput) (*request.Request, *lexmodelsv2.CreateIntentOutput) @@ -92,6 +96,10 @@ type LexModelsV2API interface { CreateSlotTypeWithContext(aws.Context, *lexmodelsv2.CreateSlotTypeInput, ...request.Option) (*lexmodelsv2.CreateSlotTypeOutput, error) CreateSlotTypeRequest(*lexmodelsv2.CreateSlotTypeInput) (*request.Request, *lexmodelsv2.CreateSlotTypeOutput) + CreateUploadUrl(*lexmodelsv2.CreateUploadUrlInput) (*lexmodelsv2.CreateUploadUrlOutput, error) + CreateUploadUrlWithContext(aws.Context, *lexmodelsv2.CreateUploadUrlInput, ...request.Option) (*lexmodelsv2.CreateUploadUrlOutput, error) + CreateUploadUrlRequest(*lexmodelsv2.CreateUploadUrlInput) (*request.Request, *lexmodelsv2.CreateUploadUrlOutput) + DeleteBot(*lexmodelsv2.DeleteBotInput) (*lexmodelsv2.DeleteBotOutput, error) DeleteBotWithContext(aws.Context, *lexmodelsv2.DeleteBotInput, ...request.Option) (*lexmodelsv2.DeleteBotOutput, error) DeleteBotRequest(*lexmodelsv2.DeleteBotInput) (*request.Request, *lexmodelsv2.DeleteBotOutput) @@ -108,6 +116,14 @@ type LexModelsV2API interface { DeleteBotVersionWithContext(aws.Context, *lexmodelsv2.DeleteBotVersionInput, ...request.Option) (*lexmodelsv2.DeleteBotVersionOutput, error) DeleteBotVersionRequest(*lexmodelsv2.DeleteBotVersionInput) (*request.Request, *lexmodelsv2.DeleteBotVersionOutput) + DeleteExport(*lexmodelsv2.DeleteExportInput) (*lexmodelsv2.DeleteExportOutput, error) + DeleteExportWithContext(aws.Context, *lexmodelsv2.DeleteExportInput, ...request.Option) (*lexmodelsv2.DeleteExportOutput, error) + DeleteExportRequest(*lexmodelsv2.DeleteExportInput) (*request.Request, *lexmodelsv2.DeleteExportOutput) + + DeleteImport(*lexmodelsv2.DeleteImportInput) (*lexmodelsv2.DeleteImportOutput, error) + DeleteImportWithContext(aws.Context, *lexmodelsv2.DeleteImportInput, ...request.Option) (*lexmodelsv2.DeleteImportOutput, error) + DeleteImportRequest(*lexmodelsv2.DeleteImportInput) (*request.Request, *lexmodelsv2.DeleteImportOutput) + DeleteIntent(*lexmodelsv2.DeleteIntentInput) (*lexmodelsv2.DeleteIntentOutput, error) DeleteIntentWithContext(aws.Context, *lexmodelsv2.DeleteIntentInput, ...request.Option) (*lexmodelsv2.DeleteIntentOutput, error) DeleteIntentRequest(*lexmodelsv2.DeleteIntentInput) (*request.Request, *lexmodelsv2.DeleteIntentOutput) @@ -136,6 +152,14 @@ type LexModelsV2API interface { DescribeBotVersionWithContext(aws.Context, *lexmodelsv2.DescribeBotVersionInput, ...request.Option) (*lexmodelsv2.DescribeBotVersionOutput, error) DescribeBotVersionRequest(*lexmodelsv2.DescribeBotVersionInput) (*request.Request, *lexmodelsv2.DescribeBotVersionOutput) + DescribeExport(*lexmodelsv2.DescribeExportInput) (*lexmodelsv2.DescribeExportOutput, error) + DescribeExportWithContext(aws.Context, *lexmodelsv2.DescribeExportInput, ...request.Option) (*lexmodelsv2.DescribeExportOutput, error) + DescribeExportRequest(*lexmodelsv2.DescribeExportInput) (*request.Request, *lexmodelsv2.DescribeExportOutput) + + DescribeImport(*lexmodelsv2.DescribeImportInput) (*lexmodelsv2.DescribeImportOutput, error) + DescribeImportWithContext(aws.Context, *lexmodelsv2.DescribeImportInput, ...request.Option) (*lexmodelsv2.DescribeImportOutput, error) + DescribeImportRequest(*lexmodelsv2.DescribeImportInput) (*request.Request, *lexmodelsv2.DescribeImportOutput) + DescribeIntent(*lexmodelsv2.DescribeIntentInput) (*lexmodelsv2.DescribeIntentOutput, error) DescribeIntentWithContext(aws.Context, *lexmodelsv2.DescribeIntentInput, ...request.Option) (*lexmodelsv2.DescribeIntentOutput, error) DescribeIntentRequest(*lexmodelsv2.DescribeIntentInput) (*request.Request, *lexmodelsv2.DescribeIntentOutput) @@ -190,6 +214,20 @@ type LexModelsV2API interface { ListBuiltInSlotTypesPages(*lexmodelsv2.ListBuiltInSlotTypesInput, func(*lexmodelsv2.ListBuiltInSlotTypesOutput, bool) bool) error ListBuiltInSlotTypesPagesWithContext(aws.Context, *lexmodelsv2.ListBuiltInSlotTypesInput, func(*lexmodelsv2.ListBuiltInSlotTypesOutput, bool) bool, ...request.Option) error + ListExports(*lexmodelsv2.ListExportsInput) (*lexmodelsv2.ListExportsOutput, error) + ListExportsWithContext(aws.Context, *lexmodelsv2.ListExportsInput, ...request.Option) (*lexmodelsv2.ListExportsOutput, error) + ListExportsRequest(*lexmodelsv2.ListExportsInput) (*request.Request, *lexmodelsv2.ListExportsOutput) + + ListExportsPages(*lexmodelsv2.ListExportsInput, func(*lexmodelsv2.ListExportsOutput, bool) bool) error + ListExportsPagesWithContext(aws.Context, *lexmodelsv2.ListExportsInput, func(*lexmodelsv2.ListExportsOutput, bool) bool, ...request.Option) error + + ListImports(*lexmodelsv2.ListImportsInput) (*lexmodelsv2.ListImportsOutput, error) + ListImportsWithContext(aws.Context, *lexmodelsv2.ListImportsInput, ...request.Option) (*lexmodelsv2.ListImportsOutput, error) + ListImportsRequest(*lexmodelsv2.ListImportsInput) (*request.Request, *lexmodelsv2.ListImportsOutput) + + ListImportsPages(*lexmodelsv2.ListImportsInput, func(*lexmodelsv2.ListImportsOutput, bool) bool) error + ListImportsPagesWithContext(aws.Context, *lexmodelsv2.ListImportsInput, func(*lexmodelsv2.ListImportsOutput, bool) bool, ...request.Option) error + ListIntents(*lexmodelsv2.ListIntentsInput) (*lexmodelsv2.ListIntentsOutput, error) ListIntentsWithContext(aws.Context, *lexmodelsv2.ListIntentsInput, ...request.Option) (*lexmodelsv2.ListIntentsOutput, error) ListIntentsRequest(*lexmodelsv2.ListIntentsInput) (*request.Request, *lexmodelsv2.ListIntentsOutput) @@ -215,6 +253,10 @@ type LexModelsV2API interface { ListTagsForResourceWithContext(aws.Context, *lexmodelsv2.ListTagsForResourceInput, ...request.Option) (*lexmodelsv2.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*lexmodelsv2.ListTagsForResourceInput) (*request.Request, *lexmodelsv2.ListTagsForResourceOutput) + StartImport(*lexmodelsv2.StartImportInput) (*lexmodelsv2.StartImportOutput, error) + StartImportWithContext(aws.Context, *lexmodelsv2.StartImportInput, ...request.Option) (*lexmodelsv2.StartImportOutput, error) + StartImportRequest(*lexmodelsv2.StartImportInput) (*request.Request, *lexmodelsv2.StartImportOutput) + TagResource(*lexmodelsv2.TagResourceInput) (*lexmodelsv2.TagResourceOutput, error) TagResourceWithContext(aws.Context, *lexmodelsv2.TagResourceInput, ...request.Option) (*lexmodelsv2.TagResourceOutput, error) TagResourceRequest(*lexmodelsv2.TagResourceInput) (*request.Request, *lexmodelsv2.TagResourceOutput) @@ -235,6 +277,10 @@ type LexModelsV2API interface { UpdateBotLocaleWithContext(aws.Context, *lexmodelsv2.UpdateBotLocaleInput, ...request.Option) (*lexmodelsv2.UpdateBotLocaleOutput, error) UpdateBotLocaleRequest(*lexmodelsv2.UpdateBotLocaleInput) (*request.Request, *lexmodelsv2.UpdateBotLocaleOutput) + UpdateExport(*lexmodelsv2.UpdateExportInput) (*lexmodelsv2.UpdateExportOutput, error) + UpdateExportWithContext(aws.Context, *lexmodelsv2.UpdateExportInput, ...request.Option) (*lexmodelsv2.UpdateExportOutput, error) + UpdateExportRequest(*lexmodelsv2.UpdateExportInput) (*request.Request, *lexmodelsv2.UpdateExportOutput) + UpdateIntent(*lexmodelsv2.UpdateIntentInput) (*lexmodelsv2.UpdateIntentOutput, error) UpdateIntentWithContext(aws.Context, *lexmodelsv2.UpdateIntentInput, ...request.Option) (*lexmodelsv2.UpdateIntentOutput, error) UpdateIntentRequest(*lexmodelsv2.UpdateIntentInput) (*request.Request, *lexmodelsv2.UpdateIntentOutput) diff --git a/service/licensemanager/api.go b/service/licensemanager/api.go index cf02e63ea97..2f197e474d5 100644 --- a/service/licensemanager/api.go +++ b/service/licensemanager/api.go @@ -821,6 +821,107 @@ func (c *LicenseManager) CreateLicenseConfigurationWithContext(ctx aws.Context, return out, req.Send() } +const opCreateLicenseManagerReportGenerator = "CreateLicenseManagerReportGenerator" + +// CreateLicenseManagerReportGeneratorRequest generates a "aws/request.Request" representing the +// client's request for the CreateLicenseManagerReportGenerator 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 CreateLicenseManagerReportGenerator for more information on using the CreateLicenseManagerReportGenerator +// 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 CreateLicenseManagerReportGeneratorRequest method. +// req, resp := client.CreateLicenseManagerReportGeneratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseManagerReportGenerator +func (c *LicenseManager) CreateLicenseManagerReportGeneratorRequest(input *CreateLicenseManagerReportGeneratorInput) (req *request.Request, output *CreateLicenseManagerReportGeneratorOutput) { + op := &request.Operation{ + Name: opCreateLicenseManagerReportGenerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLicenseManagerReportGeneratorInput{} + } + + output = &CreateLicenseManagerReportGeneratorOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLicenseManagerReportGenerator API operation for AWS License Manager. +// +// Creates a new report generator. +// +// 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 License Manager's +// API operation CreateLicenseManagerReportGenerator for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The provided input is not valid. Try your request again. +// +// * InvalidParameterValueException +// One or more parameter values are not valid. +// +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// +// * ServerInternalException +// The server experienced an internal error. Try again. +// +// * AuthorizationException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * RateLimitExceededException +// Too many requests have been submitted. Try again after a brief wait. +// +// * AccessDeniedException +// Access to resource denied. +// +// * ResourceNotFoundException +// The resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseManagerReportGenerator +func (c *LicenseManager) CreateLicenseManagerReportGenerator(input *CreateLicenseManagerReportGeneratorInput) (*CreateLicenseManagerReportGeneratorOutput, error) { + req, out := c.CreateLicenseManagerReportGeneratorRequest(input) + return out, req.Send() +} + +// CreateLicenseManagerReportGeneratorWithContext is the same as CreateLicenseManagerReportGenerator with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLicenseManagerReportGenerator 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 *LicenseManager) CreateLicenseManagerReportGeneratorWithContext(ctx aws.Context, input *CreateLicenseManagerReportGeneratorInput, opts ...request.Option) (*CreateLicenseManagerReportGeneratorOutput, error) { + req, out := c.CreateLicenseManagerReportGeneratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateLicenseVersion = "CreateLicenseVersion" // CreateLicenseVersionRequest generates a "aws/request.Request" representing the @@ -1321,6 +1422,112 @@ func (c *LicenseManager) DeleteLicenseConfigurationWithContext(ctx aws.Context, return out, req.Send() } +const opDeleteLicenseManagerReportGenerator = "DeleteLicenseManagerReportGenerator" + +// DeleteLicenseManagerReportGeneratorRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLicenseManagerReportGenerator 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 DeleteLicenseManagerReportGenerator for more information on using the DeleteLicenseManagerReportGenerator +// 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 DeleteLicenseManagerReportGeneratorRequest method. +// req, resp := client.DeleteLicenseManagerReportGeneratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseManagerReportGenerator +func (c *LicenseManager) DeleteLicenseManagerReportGeneratorRequest(input *DeleteLicenseManagerReportGeneratorInput) (req *request.Request, output *DeleteLicenseManagerReportGeneratorOutput) { + op := &request.Operation{ + Name: opDeleteLicenseManagerReportGenerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLicenseManagerReportGeneratorInput{} + } + + output = &DeleteLicenseManagerReportGeneratorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteLicenseManagerReportGenerator API operation for AWS License Manager. +// +// Delete an existing report generator. +// +// This action deletes the report generator, which stops it from generating +// future reports and cannot be reversed. However, the previous reports from +// this generator will remain in your S3 bucket. +// +// 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 License Manager's +// API operation DeleteLicenseManagerReportGenerator for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The provided input is not valid. Try your request again. +// +// * InvalidParameterValueException +// One or more parameter values are not valid. +// +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// +// * ServerInternalException +// The server experienced an internal error. Try again. +// +// * AuthorizationException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * RateLimitExceededException +// Too many requests have been submitted. Try again after a brief wait. +// +// * AccessDeniedException +// Access to resource denied. +// +// * ResourceNotFoundException +// The resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseManagerReportGenerator +func (c *LicenseManager) DeleteLicenseManagerReportGenerator(input *DeleteLicenseManagerReportGeneratorInput) (*DeleteLicenseManagerReportGeneratorOutput, error) { + req, out := c.DeleteLicenseManagerReportGeneratorRequest(input) + return out, req.Send() +} + +// DeleteLicenseManagerReportGeneratorWithContext is the same as DeleteLicenseManagerReportGenerator with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLicenseManagerReportGenerator 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 *LicenseManager) DeleteLicenseManagerReportGeneratorWithContext(ctx aws.Context, input *DeleteLicenseManagerReportGeneratorInput, opts ...request.Option) (*DeleteLicenseManagerReportGeneratorOutput, error) { + req, out := c.DeleteLicenseManagerReportGeneratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteToken = "DeleteToken" // DeleteTokenRequest generates a "aws/request.Request" representing the @@ -1896,6 +2103,107 @@ func (c *LicenseManager) GetLicenseConfigurationWithContext(ctx aws.Context, inp return out, req.Send() } +const opGetLicenseManagerReportGenerator = "GetLicenseManagerReportGenerator" + +// GetLicenseManagerReportGeneratorRequest generates a "aws/request.Request" representing the +// client's request for the GetLicenseManagerReportGenerator 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 GetLicenseManagerReportGenerator for more information on using the GetLicenseManagerReportGenerator +// 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 GetLicenseManagerReportGeneratorRequest method. +// req, resp := client.GetLicenseManagerReportGeneratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseManagerReportGenerator +func (c *LicenseManager) GetLicenseManagerReportGeneratorRequest(input *GetLicenseManagerReportGeneratorInput) (req *request.Request, output *GetLicenseManagerReportGeneratorOutput) { + op := &request.Operation{ + Name: opGetLicenseManagerReportGenerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetLicenseManagerReportGeneratorInput{} + } + + output = &GetLicenseManagerReportGeneratorOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLicenseManagerReportGenerator API operation for AWS License Manager. +// +// Gets information on the specified report generator. +// +// 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 License Manager's +// API operation GetLicenseManagerReportGenerator for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The provided input is not valid. Try your request again. +// +// * InvalidParameterValueException +// One or more parameter values are not valid. +// +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// +// * ServerInternalException +// The server experienced an internal error. Try again. +// +// * AuthorizationException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * RateLimitExceededException +// Too many requests have been submitted. Try again after a brief wait. +// +// * AccessDeniedException +// Access to resource denied. +// +// * ResourceNotFoundException +// The resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseManagerReportGenerator +func (c *LicenseManager) GetLicenseManagerReportGenerator(input *GetLicenseManagerReportGeneratorInput) (*GetLicenseManagerReportGeneratorOutput, error) { + req, out := c.GetLicenseManagerReportGeneratorRequest(input) + return out, req.Send() +} + +// GetLicenseManagerReportGeneratorWithContext is the same as GetLicenseManagerReportGenerator with the addition of +// the ability to pass a context and additional request options. +// +// See GetLicenseManagerReportGenerator 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 *LicenseManager) GetLicenseManagerReportGeneratorWithContext(ctx aws.Context, input *GetLicenseManagerReportGeneratorInput, opts ...request.Option) (*GetLicenseManagerReportGeneratorOutput, error) { + req, out := c.GetLicenseManagerReportGeneratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetLicenseUsage = "GetLicenseUsage" // GetLicenseUsageRequest generates a "aws/request.Request" representing the @@ -2464,6 +2772,107 @@ func (c *LicenseManager) ListLicenseConfigurationsWithContext(ctx aws.Context, i return out, req.Send() } +const opListLicenseManagerReportGenerators = "ListLicenseManagerReportGenerators" + +// ListLicenseManagerReportGeneratorsRequest generates a "aws/request.Request" representing the +// client's request for the ListLicenseManagerReportGenerators 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 ListLicenseManagerReportGenerators for more information on using the ListLicenseManagerReportGenerators +// 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 ListLicenseManagerReportGeneratorsRequest method. +// req, resp := client.ListLicenseManagerReportGeneratorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseManagerReportGenerators +func (c *LicenseManager) ListLicenseManagerReportGeneratorsRequest(input *ListLicenseManagerReportGeneratorsInput) (req *request.Request, output *ListLicenseManagerReportGeneratorsOutput) { + op := &request.Operation{ + Name: opListLicenseManagerReportGenerators, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListLicenseManagerReportGeneratorsInput{} + } + + output = &ListLicenseManagerReportGeneratorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLicenseManagerReportGenerators API operation for AWS License Manager. +// +// Lists the report generators for your account. +// +// 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 License Manager's +// API operation ListLicenseManagerReportGenerators for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The provided input is not valid. Try your request again. +// +// * InvalidParameterValueException +// One or more parameter values are not valid. +// +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// +// * ServerInternalException +// The server experienced an internal error. Try again. +// +// * AuthorizationException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * RateLimitExceededException +// Too many requests have been submitted. Try again after a brief wait. +// +// * AccessDeniedException +// Access to resource denied. +// +// * ResourceNotFoundException +// The resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseManagerReportGenerators +func (c *LicenseManager) ListLicenseManagerReportGenerators(input *ListLicenseManagerReportGeneratorsInput) (*ListLicenseManagerReportGeneratorsOutput, error) { + req, out := c.ListLicenseManagerReportGeneratorsRequest(input) + return out, req.Send() +} + +// ListLicenseManagerReportGeneratorsWithContext is the same as ListLicenseManagerReportGenerators with the addition of +// the ability to pass a context and additional request options. +// +// See ListLicenseManagerReportGenerators 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 *LicenseManager) ListLicenseManagerReportGeneratorsWithContext(ctx aws.Context, input *ListLicenseManagerReportGeneratorsInput, opts ...request.Option) (*ListLicenseManagerReportGeneratorsOutput, error) { + req, out := c.ListLicenseManagerReportGeneratorsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListLicenseSpecificationsForResource = "ListLicenseSpecificationsForResource" // ListLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the @@ -3654,12 +4063,117 @@ func (c *LicenseManager) UpdateLicenseConfigurationRequest(input *UpdateLicenseC // the error. // // See the AWS API reference guide for AWS License Manager's -// API operation UpdateLicenseConfiguration for usage and error information. +// API operation UpdateLicenseConfiguration for usage and error information. +// +// Returned Error Types: +// * InvalidParameterValueException +// One or more parameter values are not valid. +// +// * ServerInternalException +// The server experienced an internal error. Try again. +// +// * AuthorizationException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * AccessDeniedException +// Access to resource denied. +// +// * RateLimitExceededException +// Too many requests have been submitted. Try again after a brief wait. +// +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration +func (c *LicenseManager) UpdateLicenseConfiguration(input *UpdateLicenseConfigurationInput) (*UpdateLicenseConfigurationOutput, error) { + req, out := c.UpdateLicenseConfigurationRequest(input) + return out, req.Send() +} + +// UpdateLicenseConfigurationWithContext is the same as UpdateLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLicenseConfiguration 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 *LicenseManager) UpdateLicenseConfigurationWithContext(ctx aws.Context, input *UpdateLicenseConfigurationInput, opts ...request.Option) (*UpdateLicenseConfigurationOutput, error) { + req, out := c.UpdateLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLicenseManagerReportGenerator = "UpdateLicenseManagerReportGenerator" + +// UpdateLicenseManagerReportGeneratorRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLicenseManagerReportGenerator 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 UpdateLicenseManagerReportGenerator for more information on using the UpdateLicenseManagerReportGenerator +// 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 UpdateLicenseManagerReportGeneratorRequest method. +// req, resp := client.UpdateLicenseManagerReportGeneratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseManagerReportGenerator +func (c *LicenseManager) UpdateLicenseManagerReportGeneratorRequest(input *UpdateLicenseManagerReportGeneratorInput) (req *request.Request, output *UpdateLicenseManagerReportGeneratorOutput) { + op := &request.Operation{ + Name: opUpdateLicenseManagerReportGenerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateLicenseManagerReportGeneratorInput{} + } + + output = &UpdateLicenseManagerReportGeneratorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateLicenseManagerReportGenerator API operation for AWS License Manager. +// +// Updates a report generator. +// +// After you make changes to a report generator, it will start generating new +// reports within 60 minutes of being updated. +// +// 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 License Manager's +// API operation UpdateLicenseManagerReportGenerator for usage and error information. // // Returned Error Types: +// * ValidationException +// The provided input is not valid. Try your request again. +// // * InvalidParameterValueException // One or more parameter values are not valid. // +// * RateLimitExceededException +// Too many requests have been submitted. Try again after a brief wait. +// // * ServerInternalException // The server experienced an internal error. Try again. // @@ -3670,29 +4184,29 @@ func (c *LicenseManager) UpdateLicenseConfigurationRequest(input *UpdateLicenseC // * AccessDeniedException // Access to resource denied. // -// * RateLimitExceededException -// Too many requests have been submitted. Try again after a brief wait. +// * ResourceNotFoundException +// The resource cannot be found. // // * ResourceLimitExceededException // Your resource limits have been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration -func (c *LicenseManager) UpdateLicenseConfiguration(input *UpdateLicenseConfigurationInput) (*UpdateLicenseConfigurationOutput, error) { - req, out := c.UpdateLicenseConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseManagerReportGenerator +func (c *LicenseManager) UpdateLicenseManagerReportGenerator(input *UpdateLicenseManagerReportGeneratorInput) (*UpdateLicenseManagerReportGeneratorOutput, error) { + req, out := c.UpdateLicenseManagerReportGeneratorRequest(input) return out, req.Send() } -// UpdateLicenseConfigurationWithContext is the same as UpdateLicenseConfiguration with the addition of +// UpdateLicenseManagerReportGeneratorWithContext is the same as UpdateLicenseManagerReportGenerator with the addition of // the ability to pass a context and additional request options. // -// See UpdateLicenseConfiguration for details on how to use this API operation. +// See UpdateLicenseManagerReportGenerator 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 *LicenseManager) UpdateLicenseConfigurationWithContext(ctx aws.Context, input *UpdateLicenseConfigurationInput, opts ...request.Option) (*UpdateLicenseConfigurationOutput, error) { - req, out := c.UpdateLicenseConfigurationRequest(input) +func (c *LicenseManager) UpdateLicenseManagerReportGeneratorWithContext(ctx aws.Context, input *UpdateLicenseManagerReportGeneratorInput, opts ...request.Option) (*UpdateLicenseManagerReportGeneratorOutput, error) { + req, out := c.UpdateLicenseManagerReportGeneratorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() @@ -5435,6 +5949,160 @@ func (s *CreateLicenseInput) SetValidity(v *DatetimeRange) *CreateLicenseInput { return s } +type CreateLicenseManagerReportGeneratorInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + // + // ClientToken is a required field + ClientToken *string `min:"1" type:"string" required:"true"` + + // Description of the report generator. + Description *string `type:"string"` + + // Defines the type of license configuration the report generator tracks. + // + // ReportContext is a required field + ReportContext *ReportContext `type:"structure" required:"true"` + + // Frequency by which reports are generated. Reports can be generated daily, + // monthly, or weekly. + // + // ReportFrequency is a required field + ReportFrequency *ReportFrequency `type:"structure" required:"true"` + + // Name of the report generator. + // + // ReportGeneratorName is a required field + ReportGeneratorName *string `min:"1" type:"string" required:"true"` + + // Tags to add to the report generator. + Tags []*Tag `type:"list"` + + // Type of reports to generate. The following report types an be generated: + // + // * License configuration report - Reports on the number and details of + // consumed licenses for a license configuration. + // + // * Resource report - Reports on the tracked licenses and resource consumption + // for a license configuration. + // + // Type is a required field + Type []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateLicenseManagerReportGeneratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLicenseManagerReportGeneratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLicenseManagerReportGeneratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLicenseManagerReportGeneratorInput"} + if s.ClientToken == nil { + invalidParams.Add(request.NewErrParamRequired("ClientToken")) + } + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.ReportContext == nil { + invalidParams.Add(request.NewErrParamRequired("ReportContext")) + } + if s.ReportFrequency == nil { + invalidParams.Add(request.NewErrParamRequired("ReportFrequency")) + } + if s.ReportGeneratorName == nil { + invalidParams.Add(request.NewErrParamRequired("ReportGeneratorName")) + } + if s.ReportGeneratorName != nil && len(*s.ReportGeneratorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReportGeneratorName", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.ReportContext != nil { + if err := s.ReportContext.Validate(); err != nil { + invalidParams.AddNested("ReportContext", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetClientToken(v string) *CreateLicenseManagerReportGeneratorInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetDescription(v string) *CreateLicenseManagerReportGeneratorInput { + s.Description = &v + return s +} + +// SetReportContext sets the ReportContext field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetReportContext(v *ReportContext) *CreateLicenseManagerReportGeneratorInput { + s.ReportContext = v + return s +} + +// SetReportFrequency sets the ReportFrequency field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetReportFrequency(v *ReportFrequency) *CreateLicenseManagerReportGeneratorInput { + s.ReportFrequency = v + return s +} + +// SetReportGeneratorName sets the ReportGeneratorName field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetReportGeneratorName(v string) *CreateLicenseManagerReportGeneratorInput { + s.ReportGeneratorName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetTags(v []*Tag) *CreateLicenseManagerReportGeneratorInput { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateLicenseManagerReportGeneratorInput) SetType(v []*string) *CreateLicenseManagerReportGeneratorInput { + s.Type = v + return s +} + +type CreateLicenseManagerReportGeneratorOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Number (ARN) of the new report generator. + LicenseManagerReportGeneratorArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateLicenseManagerReportGeneratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLicenseManagerReportGeneratorOutput) GoString() string { + return s.String() +} + +// SetLicenseManagerReportGeneratorArn sets the LicenseManagerReportGeneratorArn field's value. +func (s *CreateLicenseManagerReportGeneratorOutput) SetLicenseManagerReportGeneratorArn(v string) *CreateLicenseManagerReportGeneratorOutput { + s.LicenseManagerReportGeneratorArn = &v + return s +} + type CreateLicenseOutput struct { _ struct{} `type:"structure"` @@ -6096,6 +6764,58 @@ func (s *DeleteLicenseInput) SetSourceVersion(v string) *DeleteLicenseInput { return s } +type DeleteLicenseManagerReportGeneratorInput struct { + _ struct{} `type:"structure"` + + // Amazon Resource Number (ARN) of the report generator that will be deleted. + // + // LicenseManagerReportGeneratorArn is a required field + LicenseManagerReportGeneratorArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteLicenseManagerReportGeneratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLicenseManagerReportGeneratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLicenseManagerReportGeneratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLicenseManagerReportGeneratorInput"} + if s.LicenseManagerReportGeneratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseManagerReportGeneratorArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseManagerReportGeneratorArn sets the LicenseManagerReportGeneratorArn field's value. +func (s *DeleteLicenseManagerReportGeneratorInput) SetLicenseManagerReportGeneratorArn(v string) *DeleteLicenseManagerReportGeneratorInput { + s.LicenseManagerReportGeneratorArn = &v + return s +} + +type DeleteLicenseManagerReportGeneratorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteLicenseManagerReportGeneratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLicenseManagerReportGeneratorOutput) GoString() string { + return s.String() +} + type DeleteLicenseOutput struct { _ struct{} `type:"structure"` @@ -7066,6 +7786,68 @@ func (s *GetLicenseInput) SetVersion(v string) *GetLicenseInput { return s } +type GetLicenseManagerReportGeneratorInput struct { + _ struct{} `type:"structure"` + + // mazon Resource Number (ARN) of the report generator to retrieve information + // on. + // + // LicenseManagerReportGeneratorArn is a required field + LicenseManagerReportGeneratorArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLicenseManagerReportGeneratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLicenseManagerReportGeneratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLicenseManagerReportGeneratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLicenseManagerReportGeneratorInput"} + if s.LicenseManagerReportGeneratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseManagerReportGeneratorArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseManagerReportGeneratorArn sets the LicenseManagerReportGeneratorArn field's value. +func (s *GetLicenseManagerReportGeneratorInput) SetLicenseManagerReportGeneratorArn(v string) *GetLicenseManagerReportGeneratorInput { + s.LicenseManagerReportGeneratorArn = &v + return s +} + +type GetLicenseManagerReportGeneratorOutput struct { + _ struct{} `type:"structure"` + + // A report generator that creates periodic reports on your license configurations. + ReportGenerator *ReportGenerator `type:"structure"` +} + +// String returns the string representation +func (s GetLicenseManagerReportGeneratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLicenseManagerReportGeneratorOutput) GoString() string { + return s.String() +} + +// SetReportGenerator sets the ReportGenerator field's value. +func (s *GetLicenseManagerReportGeneratorOutput) SetReportGenerator(v *ReportGenerator) *GetLicenseManagerReportGeneratorOutput { + s.ReportGenerator = v + return s +} + type GetLicenseOutput struct { _ struct{} `type:"structure"` @@ -7171,7 +7953,7 @@ type GetServiceSettingsOutput struct { EnableCrossAccountsDiscovery *bool `type:"boolean"` // Amazon Resource Name (ARN) of the AWS resource share. The License Manager - // master account will provide member accounts with access to this share. + // management account provides member accounts with access to this share. LicenseManagerResourceShareArn *string `type:"string"` // Indicates whether AWS Organizations is integrated with License Manager for @@ -8511,13 +9293,15 @@ type ListDistributedGrantsInput struct { // Filters to scope the results. The following filters are supported: // - // * LicenseARN + // * LicenseArn // - // * Status + // * GrantStatus // - // * PrincipalARN + // * GranteePrincipalARN + // + // * ProductSKU // - // * ParentARN + // * LicenseIssuerName Filters []*Filter `type:"list"` // Amazon Resource Names (ARNs) of the grants. @@ -8790,6 +9574,94 @@ func (s *ListLicenseConfigurationsOutput) SetNextToken(v string) *ListLicenseCon return s } +type ListLicenseManagerReportGeneratorsInput struct { + _ struct{} `type:"structure"` + + // Filters to scope the results. The following filters are supported: + // + // * LicenseConfigurationArn + Filters []*Filter `type:"list"` + + // Maximum number of results to return in a single call. + MaxResults *int64 `min:"1" type:"integer"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLicenseManagerReportGeneratorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLicenseManagerReportGeneratorsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLicenseManagerReportGeneratorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLicenseManagerReportGeneratorsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListLicenseManagerReportGeneratorsInput) SetFilters(v []*Filter) *ListLicenseManagerReportGeneratorsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLicenseManagerReportGeneratorsInput) SetMaxResults(v int64) *ListLicenseManagerReportGeneratorsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLicenseManagerReportGeneratorsInput) SetNextToken(v string) *ListLicenseManagerReportGeneratorsInput { + s.NextToken = &v + return s +} + +type ListLicenseManagerReportGeneratorsOutput struct { + _ struct{} `type:"structure"` + + // Token for the next set of results. + NextToken *string `type:"string"` + + // A report generator that creates periodic reports on your license configurations. + ReportGenerators []*ReportGenerator `type:"list"` +} + +// String returns the string representation +func (s ListLicenseManagerReportGeneratorsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLicenseManagerReportGeneratorsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLicenseManagerReportGeneratorsOutput) SetNextToken(v string) *ListLicenseManagerReportGeneratorsOutput { + s.NextToken = &v + return s +} + +// SetReportGenerators sets the ReportGenerators field's value. +func (s *ListLicenseManagerReportGeneratorsOutput) SetReportGenerators(v []*ReportGenerator) *ListLicenseManagerReportGeneratorsOutput { + s.ReportGenerators = v + return s +} + type ListLicenseSpecificationsForResourceInput struct { _ struct{} `type:"structure"` @@ -8978,7 +9850,7 @@ type ListLicensesInput struct { // // * ProductSKU // - // * KeyFingerprint + // * Fingerprint // // * Status Filters []*Filter `type:"list"` @@ -9077,9 +9949,15 @@ type ListReceivedGrantsInput struct { // Filters to scope the results. The following filters are supported: // - // * LicenseARN + // * ProductSKU // - // * Status + // * LicenseIssuerName + // + // * LicenseArn + // + // * GrantStatus + // + // * GranterAccountId Filters []*Filter `type:"list"` // Amazon Resource Names (ARNs) of the grants. @@ -9180,9 +10058,11 @@ type ListReceivedLicensesInput struct { // // * Status // - // * KeyFingerprint + // * Fingerprint + // + // * IssuerName // - // * Issuer + // * Beneficiary Filters []*Filter `type:"list"` // Amazon Resource Names (ARNs) of the licenses. @@ -9454,7 +10334,7 @@ type ListTokensInput struct { // Filters to scope the results. The following filter is supported: // - // * licenseArns + // * LicenseArns Filters []*Filter `type:"list"` // Maximum number of results to return in a single call. @@ -9819,10 +10699,15 @@ func (s *OrganizationConfiguration) SetEnableIntegration(v bool) *OrganizationCo type ProductInformation struct { _ struct{} `type:"structure"` - // Product information filters. + // A Product information filter consists of a ProductInformationFilterComparator + // which is a logical operator, a ProductInformationFilterName which specifies + // the type of filter being declared, and a ProductInformationFilterValue that + // specifies the value to filter on. // - // The following filters and logical operators are supported when the resource - // type is SSM_MANAGED: + // Accepted values for ProductInformationFilterName are listed here along with + // descriptions and valid options for ProductInformationFilterComparator. + // + // The following filters and are supported when the resource type is SSM_MANAGED: // // * Application Name - The name of the application. Logical operator is // EQUALS. @@ -9837,6 +10722,15 @@ type ProductInformation struct { // // * Platform Type - The platform type. Logical operator is EQUALS. // + // * Tag:key - The key of a tag attached to an AWS resource you wish to exclude + // from automated discovery. Logical operator is NOT_EQUALS. The key for + // your tag must be appended to Tag: following the example: Tag:name-of-your-key. + // ProductInformationFilterValue is optional if you are not using values + // for the key. + // + // * AccountId - The 12-digit ID of an AWS account you wish to exclude from + // automated discovery. Logical operator is NOT_EQUALS. + // // * License Included - The type of license included. Logical operators are // EQUALS and NOT_EQUALS. Possible values are: sql-server-enterprise | sql-server-standard // | sql-server-web | windows-server-datacenter. @@ -10235,6 +11129,212 @@ func (s *RejectGrantOutput) SetVersion(v string) *RejectGrantOutput { return s } +// Details of the license configuration that this generator reports on. +type ReportContext struct { + _ struct{} `type:"structure"` + + // Amazon Resource Number (ARN) of the license configuration that this generator + // reports on. + // + // LicenseConfigurationArns is a required field + LicenseConfigurationArns []*string `locationName:"licenseConfigurationArns" type:"list" required:"true"` +} + +// String returns the string representation +func (s ReportContext) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReportContext) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReportContext) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReportContext"} + if s.LicenseConfigurationArns == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArns")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseConfigurationArns sets the LicenseConfigurationArns field's value. +func (s *ReportContext) SetLicenseConfigurationArns(v []*string) *ReportContext { + s.LicenseConfigurationArns = v + return s +} + +// Details on how frequently reports are generated. +type ReportFrequency struct { + _ struct{} `type:"structure"` + + // Time period between each report. The period can be daily, weekly, or monthly. + Period *string `locationName:"period" type:"string" enum:"ReportFrequencyType"` + + // Number of times within the frequency period that a report will be generated. + // Currently only 1 is supported. + Value *int64 `locationName:"value" type:"integer"` +} + +// String returns the string representation +func (s ReportFrequency) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReportFrequency) GoString() string { + return s.String() +} + +// SetPeriod sets the Period field's value. +func (s *ReportFrequency) SetPeriod(v string) *ReportFrequency { + s.Period = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ReportFrequency) SetValue(v int64) *ReportFrequency { + s.Value = &v + return s +} + +// Describe the details of a report generator. +type ReportGenerator struct { + _ struct{} `type:"structure"` + + // Time the report was created. + CreateTime *string `type:"string"` + + // Description of the report generator. + Description *string `type:"string"` + + // Time the last report was generated at. + LastReportGenerationTime *string `type:"string"` + + // Failure message for the last report generation attempt. + LastRunFailureReason *string `type:"string"` + + // Status of the last report generation attempt. + LastRunStatus *string `type:"string"` + + // Amazon Resource Number (ARN) of the report generator. + LicenseManagerReportGeneratorArn *string `type:"string"` + + // License configuration type this generator reports on. + ReportContext *ReportContext `type:"structure"` + + // The AWS account ID used to create the report generator. + ReportCreatorAccount *string `type:"string"` + + // Details on how frequently reports are generated. + ReportFrequency *ReportFrequency `type:"structure"` + + // Name of the report generator. + ReportGeneratorName *string `type:"string"` + + // Type of reports that are generated. + ReportType []*string `type:"list"` + + // Details of the S3 bucket that report generator reports are published to. + S3Location *S3Location `type:"structure"` + + // Tags associated with the report generator. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ReportGenerator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReportGenerator) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ReportGenerator) SetCreateTime(v string) *ReportGenerator { + s.CreateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ReportGenerator) SetDescription(v string) *ReportGenerator { + s.Description = &v + return s +} + +// SetLastReportGenerationTime sets the LastReportGenerationTime field's value. +func (s *ReportGenerator) SetLastReportGenerationTime(v string) *ReportGenerator { + s.LastReportGenerationTime = &v + return s +} + +// SetLastRunFailureReason sets the LastRunFailureReason field's value. +func (s *ReportGenerator) SetLastRunFailureReason(v string) *ReportGenerator { + s.LastRunFailureReason = &v + return s +} + +// SetLastRunStatus sets the LastRunStatus field's value. +func (s *ReportGenerator) SetLastRunStatus(v string) *ReportGenerator { + s.LastRunStatus = &v + return s +} + +// SetLicenseManagerReportGeneratorArn sets the LicenseManagerReportGeneratorArn field's value. +func (s *ReportGenerator) SetLicenseManagerReportGeneratorArn(v string) *ReportGenerator { + s.LicenseManagerReportGeneratorArn = &v + return s +} + +// SetReportContext sets the ReportContext field's value. +func (s *ReportGenerator) SetReportContext(v *ReportContext) *ReportGenerator { + s.ReportContext = v + return s +} + +// SetReportCreatorAccount sets the ReportCreatorAccount field's value. +func (s *ReportGenerator) SetReportCreatorAccount(v string) *ReportGenerator { + s.ReportCreatorAccount = &v + return s +} + +// SetReportFrequency sets the ReportFrequency field's value. +func (s *ReportGenerator) SetReportFrequency(v *ReportFrequency) *ReportGenerator { + s.ReportFrequency = v + return s +} + +// SetReportGeneratorName sets the ReportGeneratorName field's value. +func (s *ReportGenerator) SetReportGeneratorName(v string) *ReportGenerator { + s.ReportGeneratorName = &v + return s +} + +// SetReportType sets the ReportType field's value. +func (s *ReportGenerator) SetReportType(v []*string) *ReportGenerator { + s.ReportType = v + return s +} + +// SetS3Location sets the S3Location field's value. +func (s *ReportGenerator) SetS3Location(v *S3Location) *ReportGenerator { + s.S3Location = v + return s +} + +// SetTags sets the Tags field's value. +func (s *ReportGenerator) SetTags(v []*Tag) *ReportGenerator { + s.Tags = v + return s +} + // Details about a resource. type ResourceInventory struct { _ struct{} `type:"structure"` @@ -10416,6 +11516,39 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// Details of the S3 bucket that report generator reports are published to. +type S3Location struct { + _ struct{} `type:"structure"` + + // Name of the S3 bucket reports are published to. + Bucket *string `locationName:"bucket" type:"string"` + + // Prefix of the S3 bucket reports are published to. + KeyPrefix *string `locationName:"keyPrefix" type:"string"` +} + +// String returns the string representation +func (s S3Location) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3Location) GoString() string { + return s.String() +} + +// SetBucket sets the Bucket field's value. +func (s *S3Location) SetBucket(v string) *S3Location { + s.Bucket = &v + return s +} + +// SetKeyPrefix sets the KeyPrefix field's value. +func (s *S3Location) SetKeyPrefix(v string) *S3Location { + s.KeyPrefix = &v + return s +} + // The server experienced an internal error. Try again. type ServerInternalException struct { _ struct{} `type:"structure"` @@ -10906,6 +12039,157 @@ func (s UpdateLicenseConfigurationOutput) GoString() string { return s.String() } +type UpdateLicenseManagerReportGeneratorInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + // + // ClientToken is a required field + ClientToken *string `min:"1" type:"string" required:"true"` + + // Description of the report generator. + Description *string `type:"string"` + + // Amazon Resource Number (ARN) of the report generator to update. + // + // LicenseManagerReportGeneratorArn is a required field + LicenseManagerReportGeneratorArn *string `type:"string" required:"true"` + + // ? + // + // ReportContext is a required field + ReportContext *ReportContext `type:"structure" required:"true"` + + // Frequency by which reports are generated. The following options are avaiable: + // + // ??? What are the APi value options? + // + // ReportFrequency is a required field + ReportFrequency *ReportFrequency `type:"structure" required:"true"` + + // Name of the report generator. + // + // ReportGeneratorName is a required field + ReportGeneratorName *string `min:"1" type:"string" required:"true"` + + // Type of reports to generate. The following report types an be generated: + // + // * License configuration report - Reports on the number and details of + // consumed licenses for a license configuration. + // + // * Resource report - Reports on the tracked licenses and resource consumption + // for a license configuration. + // + // Type is a required field + Type []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UpdateLicenseManagerReportGeneratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLicenseManagerReportGeneratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateLicenseManagerReportGeneratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLicenseManagerReportGeneratorInput"} + if s.ClientToken == nil { + invalidParams.Add(request.NewErrParamRequired("ClientToken")) + } + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.LicenseManagerReportGeneratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseManagerReportGeneratorArn")) + } + if s.ReportContext == nil { + invalidParams.Add(request.NewErrParamRequired("ReportContext")) + } + if s.ReportFrequency == nil { + invalidParams.Add(request.NewErrParamRequired("ReportFrequency")) + } + if s.ReportGeneratorName == nil { + invalidParams.Add(request.NewErrParamRequired("ReportGeneratorName")) + } + if s.ReportGeneratorName != nil && len(*s.ReportGeneratorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReportGeneratorName", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.ReportContext != nil { + if err := s.ReportContext.Validate(); err != nil { + invalidParams.AddNested("ReportContext", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetClientToken(v string) *UpdateLicenseManagerReportGeneratorInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetDescription(v string) *UpdateLicenseManagerReportGeneratorInput { + s.Description = &v + return s +} + +// SetLicenseManagerReportGeneratorArn sets the LicenseManagerReportGeneratorArn field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetLicenseManagerReportGeneratorArn(v string) *UpdateLicenseManagerReportGeneratorInput { + s.LicenseManagerReportGeneratorArn = &v + return s +} + +// SetReportContext sets the ReportContext field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetReportContext(v *ReportContext) *UpdateLicenseManagerReportGeneratorInput { + s.ReportContext = v + return s +} + +// SetReportFrequency sets the ReportFrequency field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetReportFrequency(v *ReportFrequency) *UpdateLicenseManagerReportGeneratorInput { + s.ReportFrequency = v + return s +} + +// SetReportGeneratorName sets the ReportGeneratorName field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetReportGeneratorName(v string) *UpdateLicenseManagerReportGeneratorInput { + s.ReportGeneratorName = &v + return s +} + +// SetType sets the Type field's value. +func (s *UpdateLicenseManagerReportGeneratorInput) SetType(v []*string) *UpdateLicenseManagerReportGeneratorInput { + s.Type = v + return s +} + +type UpdateLicenseManagerReportGeneratorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateLicenseManagerReportGeneratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLicenseManagerReportGeneratorOutput) GoString() string { + return s.String() +} + type UpdateLicenseSpecificationsForResourceInput struct { _ struct{} `type:"structure"` @@ -11637,6 +12921,42 @@ func RenewType_Values() []string { } } +const ( + // ReportFrequencyTypeDay is a ReportFrequencyType enum value + ReportFrequencyTypeDay = "DAY" + + // ReportFrequencyTypeWeek is a ReportFrequencyType enum value + ReportFrequencyTypeWeek = "WEEK" + + // ReportFrequencyTypeMonth is a ReportFrequencyType enum value + ReportFrequencyTypeMonth = "MONTH" +) + +// ReportFrequencyType_Values returns all elements of the ReportFrequencyType enum +func ReportFrequencyType_Values() []string { + return []string{ + ReportFrequencyTypeDay, + ReportFrequencyTypeWeek, + ReportFrequencyTypeMonth, + } +} + +const ( + // ReportTypeLicenseConfigurationSummaryReport is a ReportType enum value + ReportTypeLicenseConfigurationSummaryReport = "LicenseConfigurationSummaryReport" + + // ReportTypeLicenseConfigurationUsageReport is a ReportType enum value + ReportTypeLicenseConfigurationUsageReport = "LicenseConfigurationUsageReport" +) + +// ReportType_Values returns all elements of the ReportType enum +func ReportType_Values() []string { + return []string{ + ReportTypeLicenseConfigurationSummaryReport, + ReportTypeLicenseConfigurationUsageReport, + } +} + const ( // ResourceTypeEc2Instance is a ResourceType enum value ResourceTypeEc2Instance = "EC2_INSTANCE" diff --git a/service/licensemanager/licensemanageriface/interface.go b/service/licensemanager/licensemanageriface/interface.go index 638d451ed85..54d40cfa78f 100644 --- a/service/licensemanager/licensemanageriface/interface.go +++ b/service/licensemanager/licensemanageriface/interface.go @@ -92,6 +92,10 @@ type LicenseManagerAPI interface { CreateLicenseConfigurationWithContext(aws.Context, *licensemanager.CreateLicenseConfigurationInput, ...request.Option) (*licensemanager.CreateLicenseConfigurationOutput, error) CreateLicenseConfigurationRequest(*licensemanager.CreateLicenseConfigurationInput) (*request.Request, *licensemanager.CreateLicenseConfigurationOutput) + CreateLicenseManagerReportGenerator(*licensemanager.CreateLicenseManagerReportGeneratorInput) (*licensemanager.CreateLicenseManagerReportGeneratorOutput, error) + CreateLicenseManagerReportGeneratorWithContext(aws.Context, *licensemanager.CreateLicenseManagerReportGeneratorInput, ...request.Option) (*licensemanager.CreateLicenseManagerReportGeneratorOutput, error) + CreateLicenseManagerReportGeneratorRequest(*licensemanager.CreateLicenseManagerReportGeneratorInput) (*request.Request, *licensemanager.CreateLicenseManagerReportGeneratorOutput) + CreateLicenseVersion(*licensemanager.CreateLicenseVersionInput) (*licensemanager.CreateLicenseVersionOutput, error) CreateLicenseVersionWithContext(aws.Context, *licensemanager.CreateLicenseVersionInput, ...request.Option) (*licensemanager.CreateLicenseVersionOutput, error) CreateLicenseVersionRequest(*licensemanager.CreateLicenseVersionInput) (*request.Request, *licensemanager.CreateLicenseVersionOutput) @@ -112,6 +116,10 @@ type LicenseManagerAPI interface { DeleteLicenseConfigurationWithContext(aws.Context, *licensemanager.DeleteLicenseConfigurationInput, ...request.Option) (*licensemanager.DeleteLicenseConfigurationOutput, error) DeleteLicenseConfigurationRequest(*licensemanager.DeleteLicenseConfigurationInput) (*request.Request, *licensemanager.DeleteLicenseConfigurationOutput) + DeleteLicenseManagerReportGenerator(*licensemanager.DeleteLicenseManagerReportGeneratorInput) (*licensemanager.DeleteLicenseManagerReportGeneratorOutput, error) + DeleteLicenseManagerReportGeneratorWithContext(aws.Context, *licensemanager.DeleteLicenseManagerReportGeneratorInput, ...request.Option) (*licensemanager.DeleteLicenseManagerReportGeneratorOutput, error) + DeleteLicenseManagerReportGeneratorRequest(*licensemanager.DeleteLicenseManagerReportGeneratorInput) (*request.Request, *licensemanager.DeleteLicenseManagerReportGeneratorOutput) + DeleteToken(*licensemanager.DeleteTokenInput) (*licensemanager.DeleteTokenOutput, error) DeleteTokenWithContext(aws.Context, *licensemanager.DeleteTokenInput, ...request.Option) (*licensemanager.DeleteTokenOutput, error) DeleteTokenRequest(*licensemanager.DeleteTokenInput) (*request.Request, *licensemanager.DeleteTokenOutput) @@ -136,6 +144,10 @@ type LicenseManagerAPI interface { GetLicenseConfigurationWithContext(aws.Context, *licensemanager.GetLicenseConfigurationInput, ...request.Option) (*licensemanager.GetLicenseConfigurationOutput, error) GetLicenseConfigurationRequest(*licensemanager.GetLicenseConfigurationInput) (*request.Request, *licensemanager.GetLicenseConfigurationOutput) + GetLicenseManagerReportGenerator(*licensemanager.GetLicenseManagerReportGeneratorInput) (*licensemanager.GetLicenseManagerReportGeneratorOutput, error) + GetLicenseManagerReportGeneratorWithContext(aws.Context, *licensemanager.GetLicenseManagerReportGeneratorInput, ...request.Option) (*licensemanager.GetLicenseManagerReportGeneratorOutput, error) + GetLicenseManagerReportGeneratorRequest(*licensemanager.GetLicenseManagerReportGeneratorInput) (*request.Request, *licensemanager.GetLicenseManagerReportGeneratorOutput) + GetLicenseUsage(*licensemanager.GetLicenseUsageInput) (*licensemanager.GetLicenseUsageOutput, error) GetLicenseUsageWithContext(aws.Context, *licensemanager.GetLicenseUsageInput, ...request.Option) (*licensemanager.GetLicenseUsageOutput, error) GetLicenseUsageRequest(*licensemanager.GetLicenseUsageInput) (*request.Request, *licensemanager.GetLicenseUsageOutput) @@ -160,6 +172,10 @@ type LicenseManagerAPI interface { ListLicenseConfigurationsWithContext(aws.Context, *licensemanager.ListLicenseConfigurationsInput, ...request.Option) (*licensemanager.ListLicenseConfigurationsOutput, error) ListLicenseConfigurationsRequest(*licensemanager.ListLicenseConfigurationsInput) (*request.Request, *licensemanager.ListLicenseConfigurationsOutput) + ListLicenseManagerReportGenerators(*licensemanager.ListLicenseManagerReportGeneratorsInput) (*licensemanager.ListLicenseManagerReportGeneratorsOutput, error) + ListLicenseManagerReportGeneratorsWithContext(aws.Context, *licensemanager.ListLicenseManagerReportGeneratorsInput, ...request.Option) (*licensemanager.ListLicenseManagerReportGeneratorsOutput, error) + ListLicenseManagerReportGeneratorsRequest(*licensemanager.ListLicenseManagerReportGeneratorsInput) (*request.Request, *licensemanager.ListLicenseManagerReportGeneratorsOutput) + ListLicenseSpecificationsForResource(*licensemanager.ListLicenseSpecificationsForResourceInput) (*licensemanager.ListLicenseSpecificationsForResourceOutput, error) ListLicenseSpecificationsForResourceWithContext(aws.Context, *licensemanager.ListLicenseSpecificationsForResourceInput, ...request.Option) (*licensemanager.ListLicenseSpecificationsForResourceOutput, error) ListLicenseSpecificationsForResourceRequest(*licensemanager.ListLicenseSpecificationsForResourceInput) (*request.Request, *licensemanager.ListLicenseSpecificationsForResourceOutput) @@ -212,6 +228,10 @@ type LicenseManagerAPI interface { UpdateLicenseConfigurationWithContext(aws.Context, *licensemanager.UpdateLicenseConfigurationInput, ...request.Option) (*licensemanager.UpdateLicenseConfigurationOutput, error) UpdateLicenseConfigurationRequest(*licensemanager.UpdateLicenseConfigurationInput) (*request.Request, *licensemanager.UpdateLicenseConfigurationOutput) + UpdateLicenseManagerReportGenerator(*licensemanager.UpdateLicenseManagerReportGeneratorInput) (*licensemanager.UpdateLicenseManagerReportGeneratorOutput, error) + UpdateLicenseManagerReportGeneratorWithContext(aws.Context, *licensemanager.UpdateLicenseManagerReportGeneratorInput, ...request.Option) (*licensemanager.UpdateLicenseManagerReportGeneratorOutput, error) + UpdateLicenseManagerReportGeneratorRequest(*licensemanager.UpdateLicenseManagerReportGeneratorInput) (*request.Request, *licensemanager.UpdateLicenseManagerReportGeneratorOutput) + UpdateLicenseSpecificationsForResource(*licensemanager.UpdateLicenseSpecificationsForResourceInput) (*licensemanager.UpdateLicenseSpecificationsForResourceOutput, error) UpdateLicenseSpecificationsForResourceWithContext(aws.Context, *licensemanager.UpdateLicenseSpecificationsForResourceInput, ...request.Option) (*licensemanager.UpdateLicenseSpecificationsForResourceOutput, error) UpdateLicenseSpecificationsForResourceRequest(*licensemanager.UpdateLicenseSpecificationsForResourceInput) (*request.Request, *licensemanager.UpdateLicenseSpecificationsForResourceOutput) diff --git a/service/personalize/api.go b/service/personalize/api.go index f1b1f68cdbd..aae961388ba 100644 --- a/service/personalize/api.go +++ b/service/personalize/api.go @@ -11404,6 +11404,57 @@ func (s *ListSolutionsOutput) SetSolutions(v []*SolutionSummary) *ListSolutionsO return s } +// Describes the additional objective for the solution, such as maximizing streaming +// minutes or increasing revenue. For more information see Optimizing a solution +// (https://docs.aws.amazon.com/personalize/latest/dg/optimizing-solution-for-objective.html). +type OptimizationObjective struct { + _ struct{} `type:"structure"` + + // The numerical metadata column in an Items dataset related to the optimization + // objective. For example, VIDEO_LENGTH (to maximize streaming minutes), or + // PRICE (to maximize revenue). + ItemAttribute *string `locationName:"itemAttribute" min:"1" type:"string"` + + // Specifies how Amazon Personalize balances the importance of your optimization + // objective versus relevance. + ObjectiveSensitivity *string `locationName:"objectiveSensitivity" type:"string" enum:"ObjectiveSensitivity"` +} + +// String returns the string representation +func (s OptimizationObjective) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OptimizationObjective) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OptimizationObjective) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OptimizationObjective"} + if s.ItemAttribute != nil && len(*s.ItemAttribute) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ItemAttribute", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetItemAttribute sets the ItemAttribute field's value. +func (s *OptimizationObjective) SetItemAttribute(v string) *OptimizationObjective { + s.ItemAttribute = &v + return s +} + +// SetObjectiveSensitivity sets the ObjectiveSensitivity field's value. +func (s *OptimizationObjective) SetObjectiveSensitivity(v string) *OptimizationObjective { + s.ObjectiveSensitivity = &v + return s +} + // Provides information about a recipe. Each recipe provides an algorithm that // Amazon Personalize uses in model training when you use the CreateSolution // operation. @@ -11955,6 +12006,11 @@ type SolutionConfig struct { // Describes the properties for hyperparameter optimization (HPO). HpoConfig *HPOConfig `locationName:"hpoConfig" type:"structure"` + + // Describes the additional objective for the solution, such as maximizing streaming + // minutes or increasing revenue. For more information see Optimizing a solution + // (https://docs.aws.amazon.com/personalize/latest/dg/optimizing-solution-for-objective.html). + OptimizationObjective *OptimizationObjective `locationName:"optimizationObjective" type:"structure"` } // String returns the string representation @@ -11975,6 +12031,11 @@ func (s *SolutionConfig) Validate() error { invalidParams.AddNested("HpoConfig", err.(request.ErrInvalidParams)) } } + if s.OptimizationObjective != nil { + if err := s.OptimizationObjective.Validate(); err != nil { + invalidParams.AddNested("OptimizationObjective", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -12012,6 +12073,12 @@ func (s *SolutionConfig) SetHpoConfig(v *HPOConfig) *SolutionConfig { return s } +// SetOptimizationObjective sets the OptimizationObjective field's value. +func (s *SolutionConfig) SetOptimizationObjective(v *OptimizationObjective) *SolutionConfig { + s.OptimizationObjective = v + return s +} + // Provides a summary of the properties of a solution. For a complete listing, // call the DescribeSolution API. type SolutionSummary struct { @@ -12460,6 +12527,30 @@ func IngestionMode_Values() []string { } } +const ( + // ObjectiveSensitivityLow is a ObjectiveSensitivity enum value + ObjectiveSensitivityLow = "LOW" + + // ObjectiveSensitivityMedium is a ObjectiveSensitivity enum value + ObjectiveSensitivityMedium = "MEDIUM" + + // ObjectiveSensitivityHigh is a ObjectiveSensitivity enum value + ObjectiveSensitivityHigh = "HIGH" + + // ObjectiveSensitivityOff is a ObjectiveSensitivity enum value + ObjectiveSensitivityOff = "OFF" +) + +// ObjectiveSensitivity_Values returns all elements of the ObjectiveSensitivity enum +func ObjectiveSensitivity_Values() []string { + return []string{ + ObjectiveSensitivityLow, + ObjectiveSensitivityMedium, + ObjectiveSensitivityHigh, + ObjectiveSensitivityOff, + } +} + const ( // RecipeProviderService is a RecipeProvider enum value RecipeProviderService = "SERVICE" diff --git a/service/support/api.go b/service/support/api.go index 65d5d7a2c27..b508131ab38 100644 --- a/service/support/api.go +++ b/service/support/api.go @@ -61,11 +61,11 @@ func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (r // a case or case communication. The set is available for 1 hour after it's // created. The expiryTime returned in the response is when the set expires. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -166,11 +166,11 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp // a set of email addresses to copy on the communication by using the ccEmailAddresses // parameter. The communicationBody value contains the text of the communication. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -186,7 +186,7 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp // An internal server error occurred. // // * CaseIdNotFound -// The requested caseId could not be located. +// The requested caseId couldn't be located. // // * AttachmentSetIdNotFound // An attachment set with the specified ID could not be found. @@ -283,11 +283,11 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques // Center (https://console.aws.amazon.com/support). Use the DescribeCases operation // to get the displayId. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -384,11 +384,11 @@ func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req // to a case or case communication. Attachment IDs are returned in the AttachmentDetails // objects that are returned by the DescribeCommunications operation. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -498,11 +498,11 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. // Case data is available for 12 months after creation. If a case was created // more than 12 months ago, a request might return an error. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -518,7 +518,7 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. // An internal server error occurred. // // * CaseIdNotFound -// The requested caseId could not be located. +// The requested caseId couldn't be located. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) { @@ -655,11 +655,11 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp // of the results. Set maxResults to the number of cases that you want to display // on each page, and use nextToken to specify the resumption of pagination. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -675,7 +675,7 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp // An internal server error occurred. // // * CaseIdNotFound -// The requested caseId could not be located. +// The requested caseId couldn't be located. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) { @@ -806,11 +806,11 @@ func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *re // service codes and categories that the DescribeServices operation returns, // so that you have the most recent set of service and category codes. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -891,15 +891,15 @@ func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInp // DescribeSeverityLevels API operation for AWS Support. // -// Returns the list of severity levels that you can assign to an AWS Support -// case. The severity level for a case is also a field in the CaseDetails data -// type that you include for a CreateCase request. +// Returns the list of severity levels that you can assign to a support case. +// The severity level for a case is also a field in the CaseDetails data type +// that you include for a CreateCase request. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -989,11 +989,11 @@ func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *Descr // If you call this operation for these checks, you might see an InvalidParameterValue // error. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -1089,18 +1089,18 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste // // In addition, the response contains these fields: // -// * status - The alert status of the check: "ok" (green), "warning" (yellow), -// "error" (red), or "not_available". +// * status - The alert status of the check can be ok (green), warning (yellow), +// error (red), or not_available. // // * timestamp - The time of the last refresh of the check. // // * checkId - The unique identifier for the check. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -1187,11 +1187,11 @@ func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTru // // The response contains an array of TrustedAdvisorCheckSummary objects. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -1278,14 +1278,18 @@ func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvi // ("ja"). The response contains a TrustedAdvisorCheckDescription object for // each check. You must set the AWS Region to us-east-1. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // +// * The names and descriptions for Trusted Advisor checks are subject to +// change. We recommend that you specify the check ID in your code to uniquely +// identify a check. +// // 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. @@ -1372,11 +1376,11 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor // // The response contains a TrustedAdvisorCheckRefreshStatus object. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -1460,11 +1464,11 @@ func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Requ // Resolves a support case. This operation takes a caseId and returns the initial // and final state of the case. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -1480,7 +1484,7 @@ func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Requ // An internal server error occurred. // // * CaseIdNotFound -// The requested caseId could not be located. +// The requested caseId couldn't be located. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) { @@ -1604,8 +1608,8 @@ type AddCommunicationToCaseInput struct { // the case. Create the set by calling AddAttachmentsToSet AttachmentSetId *string `locationName:"attachmentSetId" type:"string"` - // The AWS Support case ID requested or returned in the call. The case ID is - // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 + // The support case ID requested or returned in the call. The case ID is an + // alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` // The email addresses in the CC line of an email to be added to the support @@ -2115,48 +2119,49 @@ func (s *CaseCreationLimitExceeded) RequestID() string { // is contained in the response from a DescribeCases request. CaseDetails contains // the following fields: // -// * caseId. The AWS Support case ID requested or returned in the call. The +// * caseId - The support case ID requested or returned in the call. The // case ID is an alphanumeric string formatted as shown in this example: // case-12345678910-2013-c4c1d2bf33c5cf47. // -// * categoryCode. The category of problem for the AWS Support case. Corresponds +// * categoryCode - The category of problem for the support case. Corresponds // to the CategoryCode values returned by a call to DescribeServices. // -// * displayId. The identifier for the case on pages in the AWS Support Center. +// * displayId - The identifier for the case on pages in the AWS Support +// Center. // -// * language. The ISO 639-1 code for the language in which AWS provides +// * language - The ISO 639-1 code for the language in which AWS provides // support. AWS Support currently supports English ("en") and Japanese ("ja"). // Language parameters must be passed explicitly for operations that take // them. // -// * nextToken. A resumption point for pagination. +// * nextToken - A resumption point for pagination. // -// * recentCommunications. One or more Communication objects. Fields of these -// objects are attachments, body, caseId, submittedBy, and timeCreated. +// * recentCommunications - One or more Communication objects. Fields of +// these objects are attachments, body, caseId, submittedBy, and timeCreated. // -// * serviceCode. The identifier for the AWS service that corresponds to +// * serviceCode - The identifier for the AWS service that corresponds to // the service code defined in the call to DescribeServices. // -// * severityCode. The severity code assigned to the case. Contains one of -// the values returned by the call to DescribeSeverityLevels. The possible +// * severityCode - The severity code assigned to the case. Contains one +// of the values returned by the call to DescribeSeverityLevels. The possible // values are: low, normal, high, urgent, and critical. // -// * status. The status of the case in the AWS Support Center. Valid values: +// * status - The status of the case in the AWS Support Center. Valid values: // opened pending-customer-action reopened resolved unassigned work-in-progress // -// * subject. The subject line of the case. +// * subject - The subject line of the case. // -// * submittedBy. The email address of the account that submitted the case. +// * submittedBy - The email address of the account that submitted the case. // -// * timeCreated. The time the case was created, in ISO-8601 format. +// * timeCreated - The time the case was created, in ISO-8601 format. type CaseDetails struct { _ struct{} `type:"structure"` - // The AWS Support case ID requested or returned in the call. The case ID is - // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 + // The support case ID requested or returned in the call. The case ID is an + // alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` - // The category of problem for the AWS Support case. + // The category of problem for the support case. CategoryCode *string `locationName:"categoryCode" type:"string"` // The email addresses that receive copies of communication about the case. @@ -2292,7 +2297,7 @@ func (s *CaseDetails) SetTimeCreated(v string) *CaseDetails { return s } -// The requested caseId could not be located. +// The requested caseId couldn't be located. type CaseIdNotFound struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -2384,7 +2389,7 @@ func (s *Category) SetName(v string) *Category { return s } -// A communication associated with an AWS Support case. The communication consists +// A communication associated with a support case. The communication consists // of the case ID, the message body, attachment information, the submitter of // the communication, and the date and time of the communication. type Communication struct { @@ -2396,14 +2401,14 @@ type Communication struct { // The text of the communication between the customer and AWS Support. Body *string `locationName:"body" min:"1" type:"string"` - // The AWS Support case ID requested or returned in the call. The case ID is - // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 + // The support case ID requested or returned in the call. The case ID is an + // alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` // The identity of the account that submitted, or responded to, the support // case. Customer entries include the role or IAM user as well as the email - // address. For example, "AdminRole (Role) . Entries from - // the AWS Support team display "Amazon Web Services," and do not show an email + // address. For example, "AdminRole (Role) . Entries from + // the AWS Support team display "Amazon Web Services," and don't show an email // address. SubmittedBy *string `locationName:"submittedBy" type:"string"` @@ -2458,7 +2463,7 @@ type CreateCaseInput struct { // using the AddAttachmentsToSet operation. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"` - // The category of problem for the AWS Support case. You also use the DescribeServices + // The category of problem for the support case. You also use the DescribeServices // operation to get the category code for a service. Each AWS service defines // its own set of category codes. CategoryCode *string `locationName:"categoryCode" type:"string"` @@ -2500,8 +2505,8 @@ type CreateCaseInput struct { // account. SeverityCode *string `locationName:"severityCode" type:"string"` - // The title of the AWS Support case. The title appears in the Subject field - // on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create) + // The title of the support case. The title appears in the Subject field on + // the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create) // page. // // Subject is a required field @@ -2591,13 +2596,13 @@ func (s *CreateCaseInput) SetSubject(v string) *CreateCaseInput { return s } -// The AWS Support case ID returned by a successful completion of the CreateCase +// The support case ID returned by a successful completion of the CreateCase // operation. type CreateCaseOutput struct { _ struct{} `type:"structure"` - // The AWS Support case ID requested or returned in the call. The case ID is - // an alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47 + // The support case ID requested or returned in the call. The case ID is an + // alphanumeric string in the following format: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` } @@ -2763,7 +2768,7 @@ type DescribeCasesInput struct { DisplayId *string `locationName:"displayId" type:"string"` // Specifies whether to include communications in the DescribeCases response. - // By default, communications are incuded. + // By default, communications are included. IncludeCommunications *bool `locationName:"includeCommunications" type:"boolean"` // Specifies whether to include resolved support cases in the DescribeCases @@ -2905,8 +2910,8 @@ type DescribeCommunicationsInput struct { // communications are available for 12 months after creation. BeforeTime *string `locationName:"beforeTime" type:"string"` - // The AWS Support case ID requested or returned in the call. The case ID is - // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 + // The support case ID requested or returned in the call. The case ID is an + // alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 // // CaseId is a required field CaseId *string `locationName:"caseId" type:"string" required:"true"` @@ -3118,7 +3123,7 @@ func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *De type DescribeTrustedAdvisorCheckRefreshStatusesInput struct { _ struct{} `type:"structure"` - // The IDs of the Trusted Advisor checks to get the status of. + // The IDs of the Trusted Advisor checks to get the status. // // If you specify the check ID of a check that is automatically refreshed, you // might see an InvalidParameterValue error. @@ -3482,9 +3487,10 @@ func (s *RecentCaseCommunications) SetNextToken(v string) *RecentCaseCommunicati type RefreshTrustedAdvisorCheckInput struct { _ struct{} `type:"structure"` - // The unique identifier for the Trusted Advisor check to refresh. Note: Specifying - // the check ID of a check that is automatically refreshed causes an InvalidParameterValue - // error. + // The unique identifier for the Trusted Advisor check to refresh. + // + // Specifying the check ID of a check that is automatically refreshed causes + // an InvalidParameterValue error. // // CheckId is a required field CheckId *string `locationName:"checkId" type:"string" required:"true"` @@ -3549,8 +3555,8 @@ func (s *RefreshTrustedAdvisorCheckOutput) SetStatus(v *TrustedAdvisorCheckRefre type ResolveCaseInput struct { _ struct{} `type:"structure"` - // The AWS Support case ID requested or returned in the call. The case ID is - // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 + // The support case ID requested or returned in the call. The case ID is an + // alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 CaseId *string `locationName:"caseId" type:"string"` } @@ -3663,20 +3669,21 @@ type SeverityLevel struct { // The name of the severity level that corresponds to the severity level code. // - // The values returned by the API differ from the values that are displayed - // in the AWS Support Center. For example, for the code "low", the API name - // is "Low", but the name in the Support Center is "General guidance". These - // are the Support Center code/name mappings: + // The values returned by the API are different from the values that appear + // in the AWS Support Center. For example, the API uses the code low, but the + // name appears as General guidance in Support Center. + // + // The following are the API code names and how they appear in the console: // - // * low: General guidance + // * low - General guidance // - // * normal: System impaired + // * normal - System impaired // - // * high: Production system impaired + // * high - Production system impaired // - // * urgent: Production system down + // * urgent - Production system down // - // * critical: Business-critical system down + // * critical - Business-critical system down // // For more information, see Choosing a severity (https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#choosing-severity) // in the AWS Support User Guide. @@ -3823,17 +3830,17 @@ type TrustedAdvisorCheckRefreshStatus struct { // The status of the Trusted Advisor check for which a refresh has been requested: // - // * none: The check is not refreshed or the non-success status exceeds the - // timeout + // * none - The check is not refreshed or the non-success status exceeds + // the timeout // - // * enqueued: The check refresh requests has entered the refresh queue + // * enqueued - The check refresh requests has entered the refresh queue // - // * processing: The check refresh request is picked up by the rule processing + // * processing - The check refresh request is picked up by the rule processing // engine // - // * success: The check is successfully refreshed + // * success - The check is successfully refreshed // - // * abandoned: The check refresh has failed + // * abandoned - The check refresh has failed // // Status is a required field Status *string `locationName:"status" type:"string" required:"true"` @@ -4091,7 +4098,7 @@ type TrustedAdvisorResourceDetail struct { // Metadata is a required field Metadata []*string `locationName:"metadata" type:"list" required:"true"` - // The AWS region in which the identified resource is located. + // The AWS Region in which the identified resource is located. Region *string `locationName:"region" type:"string"` // The unique identifier for the identified resource. diff --git a/service/support/doc.go b/service/support/doc.go index 2e627a4738f..68df5c8a423 100644 --- a/service/support/doc.go +++ b/service/support/doc.go @@ -3,16 +3,16 @@ // Package support provides the client and types for making API // requests to AWS Support. // -// The AWS Support API reference is intended for programmers who need detailed -// information about the AWS Support operations and data types. This service -// enables you to manage your AWS Support cases programmatically. It uses HTTP -// methods that return results in JSON format. +// The AWS Support API Reference is intended for programmers who need detailed +// information about the AWS Support operations and data types. You can use +// the API to manage your support cases programmatically. The AWS Support API +// uses HTTP methods that return results in JSON format. // -// * You must have a Business or Enterprise support plan to use the AWS Support +// * You must have a Business or Enterprise Support plan to use the AWS Support // API. // // * If you call the AWS Support API from an account that does not have a -// Business or Enterprise support plan, the SubscriptionRequiredException +// Business or Enterprise Support plan, the SubscriptionRequiredException // error message appears. For information about changing your support plan, // see AWS Support (http://aws.amazon.com/premiumsupport/). // @@ -22,16 +22,16 @@ // // The following list describes the AWS Support case management operations: // -// * Service names, issue categories, and available severity levels. The +// * Service names, issue categories, and available severity levels - The // DescribeServices and DescribeSeverityLevels operations return AWS service // names, service codes, service categories, and problem severity levels. // You use these values when you call the CreateCase operation. // -// * Case creation, case details, and case resolution. The CreateCase, DescribeCases, +// * Case creation, case details, and case resolution - The CreateCase, DescribeCases, // DescribeAttachment, and ResolveCase operations create AWS Support cases, // retrieve information about cases, and resolve cases. // -// * Case communication. The DescribeCommunications, AddCommunicationToCase, +// * Case communication - The DescribeCommunications, AddCommunicationToCase, // and AddAttachmentsToSet operations retrieve and add communications and // attachments to AWS Support cases. // diff --git a/service/support/errors.go b/service/support/errors.go index 570ff50cf0e..97cbee38a44 100644 --- a/service/support/errors.go +++ b/service/support/errors.go @@ -50,7 +50,7 @@ const ( // ErrCodeCaseIdNotFound for service response error code // "CaseIdNotFound". // - // The requested caseId could not be located. + // The requested caseId couldn't be located. ErrCodeCaseIdNotFound = "CaseIdNotFound" // ErrCodeDescribeAttachmentLimitExceeded for service response error code