From b5e498384e6cd7f472fd111cb4b61b0f97b8db3e Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Thu, 24 Oct 2019 11:30:57 -0700 Subject: [PATCH] Release v1.25.19 (2019-10-24) (#2910) Release v1.25.19 (2019-10-24) === ### Service Client Updates * `service/appmesh`: Updates service API and documentation * `service/chime`: Updates service API, documentation, and paginators * * This release introduces Voice Connector PDX region and defaults previously created Voice Connectors to IAD. You can create Voice Connector Groups and add region specific Voice Connectors to direct telephony traffic across AWS regions in case of regional failures. With this release you can add phone numbers to Voice Connector Groups and can bulk move phone numbers between Voice Connectors, between Voice Connector and Voice Connector Groups and between Voice Connector Groups. Voice Connector now supports additional settings to enable SIP Log capture. This is in addition to the launch of Voice Connector Cloud Watch metrics in this release. This release also supports assigning outbound calling name (CNAM) to AWS account and individual phone numbers assigned to Voice Connectors. * Voice Connector now supports a setting to enable real time audio streaming delivered via Kinesis Audio streams. Please note that recording Amazon Chime Voice Connector calls with this feature maybe be subject to laws or regulations regarding the recording of telephone calls and other electronic communications. AWS Customer and their end users' have the responsibility to comply with all applicable laws regarding the recording, including properly notifying all participants in a recorded session or to a recorded communication that the session or communication is being recorded and obtain their consent. * `service/ec2`: Updates service API and documentation * This release updates CreateFpgaImage to support tagging FPGA images on creation * `service/gamelift`: Updates service API * Amazon GameLift offers expanded hardware options for game hosting: Custom game builds can use the Amazon Linux 2 operating system, and fleets for both custom builds and Realtime servers can now use C5, M5, and R5 instance types. * `service/sagemaker`: Updates service API * Adds support for the new family of Elastic Inference Accelerators (eia2) for SageMaker Hosting and Notebook Services --- CHANGELOG.md | 14 + aws/version.go | 2 +- models/apis/appmesh/2019-01-25/api-2.json | 143 + models/apis/appmesh/2019-01-25/docs-2.json | 220 +- models/apis/chime/2018-05-01/api-2.json | 625 ++- models/apis/chime/2018-05-01/docs-2.json | 297 +- .../apis/chime/2018-05-01/paginators-1.json | 10 + models/apis/ec2/2016-11-15/api-2.json | 6 +- models/apis/ec2/2016-11-15/docs-2.json | 5 +- models/apis/gamelift/2015-10-01/api-2.json | 29 +- models/apis/sagemaker/2017-07-24/api-2.json | 30 +- service/appmesh/api.go | 752 +++- service/chime/api.go | 3662 +++++++++++++++-- service/chime/chimeiface/interface.go | 62 + service/chime/errors.go | 6 + service/ec2/api.go | 40 +- service/gamelift/api.go | 75 + service/sagemaker/api.go | 72 + 18 files changed, 5388 insertions(+), 662 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 765cd2fe2e..e29f6e2dd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +Release v1.25.19 (2019-10-24) +=== + +### Service Client Updates +* `service/appmesh`: Updates service API and documentation +* `service/chime`: Updates service API, documentation, and paginators + * * This release introduces Voice Connector PDX region and defaults previously created Voice Connectors to IAD. You can create Voice Connector Groups and add region specific Voice Connectors to direct telephony traffic across AWS regions in case of regional failures. With this release you can add phone numbers to Voice Connector Groups and can bulk move phone numbers between Voice Connectors, between Voice Connector and Voice Connector Groups and between Voice Connector Groups. Voice Connector now supports additional settings to enable SIP Log capture. This is in addition to the launch of Voice Connector Cloud Watch metrics in this release. This release also supports assigning outbound calling name (CNAM) to AWS account and individual phone numbers assigned to Voice Connectors. * Voice Connector now supports a setting to enable real time audio streaming delivered via Kinesis Audio streams. Please note that recording Amazon Chime Voice Connector calls with this feature maybe be subject to laws or regulations regarding the recording of telephone calls and other electronic communications. AWS Customer and their end users' have the responsibility to comply with all applicable laws regarding the recording, including properly notifying all participants in a recorded session or to a recorded communication that the session or communication is being recorded and obtain their consent. +* `service/ec2`: Updates service API and documentation + * This release updates CreateFpgaImage to support tagging FPGA images on creation +* `service/gamelift`: Updates service API + * Amazon GameLift offers expanded hardware options for game hosting: Custom game builds can use the Amazon Linux 2 operating system, and fleets for both custom builds and Realtime servers can now use C5, M5, and R5 instance types. +* `service/sagemaker`: Updates service API + * Adds support for the new family of Elastic Inference Accelerators (eia2) for SageMaker Hosting and Notebook Services + Release v1.25.18 (2019-10-23) === diff --git a/aws/version.go b/aws/version.go index 88b036f1f6..fc23a6c6fa 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.25.18" +const SDKVersion = "1.25.19" diff --git a/models/apis/appmesh/2019-01-25/api-2.json b/models/apis/appmesh/2019-01-25/api-2.json index 505872ac0c..a9a766b885 100644 --- a/models/apis/appmesh/2019-01-25/api-2.json +++ b/models/apis/appmesh/2019-01-25/api-2.json @@ -1185,6 +1185,30 @@ "min": 0, "max": 50 }, + "GrpcRetryPolicy": { + "type": "structure", + "required": [ + "maxRetries", + "perRetryTimeout" + ], + "members": { + "grpcRetryEvents": { + "shape": "GrpcRetryPolicyEvents" + }, + "httpRetryEvents": { + "shape": "HttpRetryPolicyEvents" + }, + "maxRetries": { + "shape": "MaxRetries" + }, + "perRetryTimeout": { + "shape": "Duration" + }, + "tcpRetryEvents": { + "shape": "TcpRetryPolicyEvents" + } + } + }, "ListTagsForResourceInput": { "type": "structure", "required": [ @@ -1228,6 +1252,14 @@ } } }, + "GrpcRetryPolicyEvents": { + "type": "list", + "member": { + "shape": "GrpcRetryPolicyEvent" + }, + "min": 1, + "max": 5 + }, "ServiceUnavailableException": { "type": "structure", "members": { @@ -1400,7 +1432,9 @@ "PortProtocol": { "type": "string", "enum": [ + "grpc", "http", + "http2", "tcp" ] }, @@ -1515,6 +1549,19 @@ "min": 0, "max": 100 }, + "GrpcRouteMetadataList": { + "type": "list", + "member": { + "shape": "GrpcRouteMetadata" + }, + "min": 1, + "max": 10 + }, + "MethodName": { + "type": "string", + "min": 1, + "max": 50 + }, "TagValue": { "type": "string", "min": 0, @@ -1775,6 +1822,17 @@ } } }, + "GrpcRouteAction": { + "type": "structure", + "required": [ + "weightedTargets" + ], + "members": { + "weightedTargets": { + "shape": "WeightedTargets" + } + } + }, "DescribeVirtualNodeOutput": { "type": "structure", "required": [ @@ -1831,6 +1889,26 @@ }, "payload": "route" }, + "GrpcRouteMetadataMatchMethod": { + "type": "structure", + "members": { + "exact": { + "shape": "HeaderMatch" + }, + "prefix": { + "shape": "HeaderMatch" + }, + "range": { + "shape": "MatchRange" + }, + "regex": { + "shape": "HeaderMatch" + }, + "suffix": { + "shape": "HeaderMatch" + } + } + }, "DnsServiceDiscovery": { "type": "structure", "required": [ @@ -2627,6 +2705,24 @@ } } }, + "GrpcRoute": { + "type": "structure", + "required": [ + "action", + "match" + ], + "members": { + "action": { + "shape": "GrpcRouteAction" + }, + "match": { + "shape": "GrpcRouteMatch" + }, + "retryPolicy": { + "shape": "GrpcRetryPolicy" + } + } + }, "DeleteVirtualNodeInput": { "type": "structure", "required": [ @@ -2741,6 +2837,16 @@ "min": 0, "max": 50 }, + "GrpcRetryPolicyEvent": { + "type": "string", + "enum": [ + "cancelled", + "deadline-exceeded", + "internal", + "resource-exhausted", + "unavailable" + ] + }, "HttpRetryPolicy": { "type": "structure", "required": [ @@ -2888,6 +2994,23 @@ } } }, + "GrpcRouteMetadata": { + "type": "structure", + "required": [ + "name" + ], + "members": { + "invert": { + "shape": "Boolean" + }, + "match": { + "shape": "GrpcRouteMetadataMatchMethod" + }, + "name": { + "shape": "HeaderName" + } + } + }, "CreateRouteInput": { "type": "structure", "required": [ @@ -2949,6 +3072,20 @@ } } }, + "GrpcRouteMatch": { + "type": "structure", + "members": { + "metadata": { + "shape": "GrpcRouteMetadataList" + }, + "methodName": { + "shape": "MethodName" + }, + "serviceName": { + "shape": "ServiceName" + } + } + }, "String": { "type": "string" }, @@ -3075,6 +3212,12 @@ "RouteSpec": { "type": "structure", "members": { + "grpcRoute": { + "shape": "GrpcRoute" + }, + "http2Route": { + "shape": "HttpRoute" + }, "httpRoute": { "shape": "HttpRoute" }, diff --git a/models/apis/appmesh/2019-01-25/docs-2.json b/models/apis/appmesh/2019-01-25/docs-2.json index b4d5497c69..8100aaf598 100644 --- a/models/apis/appmesh/2019-01-25/docs-2.json +++ b/models/apis/appmesh/2019-01-25/docs-2.json @@ -33,7 +33,7 @@ }, "shapes": { "AccessLog": { - "base": "

An object representing the access logging information for a virtual node.

", + "base": "

An object that represents the access logging information for a virtual node.

", "refs": { "AccessLog$file": "

The file object to send virtual node access logs to.

" } @@ -43,9 +43,9 @@ "refs": { } }, "AwsCloudMapInstanceAttribute": { - "base": "

An object representing the AWS Cloud Map attribute information for your virtual node.

", + "base": "

An object that represents the AWS Cloud Map attribute information for your virtual\n node.

", "refs": { - "AwsCloudMapInstanceAttribute$key": "

The name of an AWS Cloud Map service instance attribute key. Any AWS Cloud Map service instance\n that contains the specified key and value is returned.

", + "AwsCloudMapInstanceAttribute$key": "

The name of an AWS Cloud Map service instance attribute key. Any AWS Cloud Map service\n instance that contains the specified key and value is returned.

", "AwsCloudMapInstanceAttribute$value": "

The value of an AWS Cloud Map service instance attribute key. Any AWS Cloud Map service\n instance that contains the specified key and value is returned.

" } }, @@ -68,7 +68,7 @@ "refs": { } }, "AwsCloudMapServiceDiscovery": { - "base": "

An object representing the AWS Cloud Map service discovery information for your virtual\n node.

", + "base": "

An object that represents the AWS Cloud Map service discovery information for your virtual\n node.

", "refs": { "AwsCloudMapServiceDiscovery$attributes": "

A string map that contains attributes with values that you can use to filter instances\n by any custom attribute that you specified when you registered the instance. Only instances\n that match all of the specified key/value pairs will be returned.

", "AwsCloudMapServiceDiscovery$namespaceName": "

The name of the AWS Cloud Map namespace to use.

", @@ -76,7 +76,7 @@ } }, "Backend": { - "base": "

An object representing the backends that a virtual node is expected to send outbound\n traffic to.

", + "base": "

An object that represents the backends that a virtual node is expected to send outbound\n traffic to.

", "refs": { "Backend$virtualService": "

Specifies a virtual service to use as a backend for a virtual node.

" } @@ -310,16 +310,16 @@ } }, "DnsServiceDiscovery": { - "base": "

An object representing the DNS service discovery information for your virtual\n node.

", + "base": "

An object that represents the DNS service discovery information for your virtual\n node.

", "refs": { "DnsServiceDiscovery$hostname": "

Specifies the DNS service discovery hostname for the virtual node.

" } }, "Duration": { - "base": "

An object representing the duration between retry attempts.

", + "base": "

An object that represents a duration of time.

", "refs": { - "Duration$unit": "

The unit of time between retry attempts.

", - "Duration$value": "

The duration of time between retry attempts.

" + "Duration$unit": "

A unit of time.

", + "Duration$value": "

A number of time units.

" } }, "DurationUnit": { @@ -331,7 +331,7 @@ "refs": { } }, "EgressFilter": { - "base": "

An object representing the egress filter rules for a service mesh.

", + "base": "

An object that represents the egress filter rules for a service mesh.

", "refs": { "EgressFilter$type": "

The egress filter type. By default, the type is DROP_ALL, which allows\n egress only from virtual nodes to other defined resources in the service mesh (and any\n traffic to *.amazonaws.com for AWS API calls). You can set the egress filter\n type to ALLOW_ALL to allow egress to any endpoint inside or outside of the\n service mesh.

" } @@ -341,7 +341,7 @@ "refs": { } }, "FileAccessLog": { - "base": "

An object representing an access log file.

", + "base": "

An object that represents an access log file.

", "refs": { "FileAccessLog$path": "

The file path to write access logs to. You can use /dev/stdout to send\n access logs to standard out and configure your Envoy container to use a log driver, such as\n awslogs, to export the access logs to a log storage service such as Amazon\n CloudWatch Logs. You can also specify a path in the Envoy container's file system to write\n the files to disk.

\n \n

The Envoy process must have write permissions to the path that you specify here.\n Otherwise, Envoy fails to bootstrap properly.

\n
" } @@ -354,18 +354,84 @@ "base": "

You don't have permissions to perform this action.

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

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout.

", + "refs": { + "GrpcRetryPolicy$grpcRetryEvents": "

Specify at least one of the valid values.

", + "GrpcRetryPolicy$httpRetryEvents": "

Specify at least one of the following values.

\n ", + "GrpcRetryPolicy$maxRetries": "

The maximum number of retry attempts.

", + "GrpcRetryPolicy$perRetryTimeout": "

An object that represents a duration of time.

", + "GrpcRetryPolicy$tcpRetryEvents": "

Specify a valid value.

" + } + }, + "GrpcRetryPolicyEvent": { + "base": null, + "refs": { } + }, + "GrpcRetryPolicyEvents": { + "base": null, + "refs": { + "GrpcRetryPolicyEvents$member": null + } + }, + "GrpcRoute": { + "base": "

An object that represents a GRPC route type.

", + "refs": { + "GrpcRoute$action": "

An object that represents the action to take if a match is determined.

", + "GrpcRoute$match": "

An object that represents the criteria for determining a request match.

", + "GrpcRoute$retryPolicy": "

An object that represents a retry policy.

" + } + }, + "GrpcRouteAction": { + "base": "

An object that represents the action to take if a match is determined.

", + "refs": { + "GrpcRouteAction$weightedTargets": "

An object that represents the targets that traffic is routed to when a request matches the route.

" + } + }, + "GrpcRouteMatch": { + "base": "

An object that represents the criteria for determining a request match.

", + "refs": { + "GrpcRouteMatch$metadata": "

An object that represents the data to match from the request.

", + "GrpcRouteMatch$methodName": "

The method name to match from the request. If you specify a name, you must also specify a serviceName.

", + "GrpcRouteMatch$serviceName": "

The fully qualified domain name for the service to match from the request.

" + } + }, + "GrpcRouteMetadata": { + "base": "

An object that represents the match metadata for the route.

", + "refs": { + "GrpcRouteMetadata$invert": "

Specify True to match anything except the match criteria. The default value is False.

", + "GrpcRouteMetadata$match": "

An object that represents the data to match from the request.

", + "GrpcRouteMetadata$name": "

The name of the route.

" + } + }, + "GrpcRouteMetadataList": { + "base": null, + "refs": { + "GrpcRouteMetadataList$member": null + } + }, + "GrpcRouteMetadataMatchMethod": { + "base": "

An object that represents the match method. Specify one of the match values.

", + "refs": { + "GrpcRouteMetadataMatchMethod$exact": "

The value sent by the client must match the specified value exactly.

", + "GrpcRouteMetadataMatchMethod$prefix": "

The value sent by the client must begin with the specified characters.

", + "GrpcRouteMetadataMatchMethod$range": "

An object that represents the range of values to match on.

", + "GrpcRouteMetadataMatchMethod$regex": "

The value sent by the client must include the specified characters.

", + "GrpcRouteMetadataMatchMethod$suffix": "

The value sent by the client must end with the specified characters.

" + } + }, "HeaderMatch": { "base": null, "refs": { } }, "HeaderMatchMethod": { - "base": "

An object representing the method and value to match the header value sent with a request. Specify one match method.

", + "base": "

An object that represents the method and value to match with the header value sent in a\n request. Specify one match method.

", "refs": { - "HeaderMatchMethod$exact": "

The header value sent by the client must match the specified value exactly.

", - "HeaderMatchMethod$prefix": "

The header value sent by the client must begin with the specified characters.

", - "HeaderMatchMethod$range": "

The object that specifies the range of numbers that the header value sent by the client must be included in.

", - "HeaderMatchMethod$regex": "

The header value sent by the client must include the specified characters.

", - "HeaderMatchMethod$suffix": "

The header value sent by the client must end with the specified characters.

" + "HeaderMatchMethod$exact": "

The value sent by the client must match the specified value exactly.

", + "HeaderMatchMethod$prefix": "

The value sent by the client must begin with the specified characters.

", + "HeaderMatchMethod$range": "

An object that represents the range of values to match on.

", + "HeaderMatchMethod$regex": "

The value sent by the client must include the specified characters.

", + "HeaderMatchMethod$suffix": "

The value sent by the client must end with the specified characters.

" } }, "HeaderName": { @@ -377,7 +443,7 @@ "refs": { } }, "HealthCheckPolicy": { - "base": "

An object representing the health check policy for a virtual node's listener.

", + "base": "

An object that represents the health check policy for a virtual node's listener.

", "refs": { "HealthCheckPolicy$healthyThreshold": "

The number of consecutive successful health checks that must occur before declaring\n listener healthy.

", "HealthCheckPolicy$intervalMillis": "

The time period in milliseconds between each health check execution.

", @@ -405,11 +471,11 @@ "refs": { } }, "HttpRetryPolicy": { - "base": "

An object that represents a retry policy.

", + "base": "

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout.

", "refs": { - "HttpRetryPolicy$httpRetryEvents": "

Specify at least one of the following values.

\n ", - "HttpRetryPolicy$maxRetries": "

The maximum number of retry attempts. If no value is specified, the default is 1.

", - "HttpRetryPolicy$perRetryTimeout": "

An object that represents the retry duration.

", + "HttpRetryPolicy$httpRetryEvents": "

Specify at least one of the following values.

\n ", + "HttpRetryPolicy$maxRetries": "

The maximum number of retry attempts.

", + "HttpRetryPolicy$perRetryTimeout": "

An object that represents a duration of time.

", "HttpRetryPolicy$tcpRetryEvents": "

Specify a valid value.

" } }, @@ -424,23 +490,23 @@ } }, "HttpRoute": { - "base": "

An object representing the HTTP routing specification for a route.

", + "base": "

An object that represents an HTTP or HTTP2 route type.

", "refs": { - "HttpRoute$action": "

The action to take if a match is determined.

", - "HttpRoute$match": "

The criteria for determining an HTTP request match.

", + "HttpRoute$action": "

An object that represents the action to take if a match is determined.

", + "HttpRoute$match": "

An object that represents the criteria for determining a request match.

", "HttpRoute$retryPolicy": "

An object that represents a retry policy.

" } }, "HttpRouteAction": { - "base": "

An object representing the traffic distribution requirements for matched HTTP\n requests.

", + "base": "

An object that represents the action to take if a match is determined.

", "refs": { - "HttpRouteAction$weightedTargets": "

The targets that traffic is routed to when a request matches the route. You can specify\n one or more targets and their relative weights to distribute traffic with.

" + "HttpRouteAction$weightedTargets": "

An object that represents the targets that traffic is routed to when a request matches the route.

" } }, "HttpRouteHeader": { - "base": "

An object representing the HTTP header in the request.

", + "base": "

An object that represents the HTTP header in the request.

", "refs": { - "HttpRouteHeader$invert": "

Specify True to match the opposite of the HeaderMatchMethod method and value. The default value is False.

", + "HttpRouteHeader$invert": "

Specify True to match anything except the match criteria. The default value is False.

", "HttpRouteHeader$match": "

The HeaderMatchMethod object.

", "HttpRouteHeader$name": "

A name for the HTTP header in the client request that will be matched on.

" } @@ -452,12 +518,12 @@ } }, "HttpRouteMatch": { - "base": "

An object representing the requirements for a route to match HTTP requests for a virtual\n router.

", + "base": "

An object that represents the requirements for a route to match HTTP requests for a virtual\n router.

", "refs": { - "HttpRouteMatch$headers": "

The client request headers to match on.

", - "HttpRouteMatch$method": "

The client request header method to match on.

", + "HttpRouteMatch$headers": "

An object that represents the client request headers to match on.

", + "HttpRouteMatch$method": "

The client request method to match on. Specify only one.

", "HttpRouteMatch$prefix": "

Specifies the path to match requests with. This parameter must always start with\n /, which by itself matches all requests to the virtual service name. You\n can also match for path-based routing of requests. For example, if your virtual service\n name is my-service.local and you want the route to match requests to\n my-service.local/metrics, your prefix should be\n /metrics.

", - "HttpRouteMatch$scheme": "

The client request header scheme to match on.

" + "HttpRouteMatch$scheme": "

The client request scheme to match on. Specify only one.

" } }, "HttpScheme": { @@ -583,7 +649,7 @@ } }, "Listener": { - "base": "

An object representing a listener for a virtual node.

", + "base": "

An object that represents a listener for a virtual node.

", "refs": { "Listener$healthCheck": "

The health check information for the listener.

", "Listener$portMapping": "

The port mapping information for the listener.

" @@ -596,7 +662,7 @@ } }, "Logging": { - "base": "

An object representing the logging information for a virtual node.

", + "base": "

An object that represents the logging information for a virtual node.

", "refs": { "Logging$accessLog": "

The access log configuration for a virtual node.

" } @@ -606,7 +672,7 @@ "refs": { } }, "MatchRange": { - "base": "

The range of values to match on. The first character of the range is included in the range, though the last character is not. For example, if the range specified were 1-100, only values 1-99 would be matched.

", + "base": "

An object that represents the range of values to match on. The first character of the range is included in the range, though the last character is not. For example, if the range specified were 1-100, only values 1-99 would be matched.

", "refs": { "MatchRange$end": "

The end of the range.

", "MatchRange$start": "

The start of the range.

" @@ -617,7 +683,7 @@ "refs": { } }, "MeshData": { - "base": "

An object representing a service mesh returned by a describe operation.

", + "base": "

An object that represents a service mesh returned by a describe operation.

", "refs": { "MeshData$meshName": "

The name of the service mesh.

", "MeshData$metadata": "

The associated metadata for the service mesh.

", @@ -632,20 +698,20 @@ } }, "MeshRef": { - "base": "

An object representing a service mesh returned by a list operation.

", + "base": "

An object that represents a service mesh returned by a list operation.

", "refs": { "MeshRef$arn": "

The full Amazon Resource Name (ARN) of the service mesh.

", "MeshRef$meshName": "

The name of the service mesh.

" } }, "MeshSpec": { - "base": "

An object representing the specification of a service mesh.

", + "base": "

An object that represents the specification of a service mesh.

", "refs": { "MeshSpec$egressFilter": "

The egress filter rules for the service mesh.

" } }, "MeshStatus": { - "base": "

An object representing the status of a service mesh.

", + "base": "

An object that represents the status of a service mesh.

", "refs": { "MeshStatus$status": "

The current mesh status.

" } @@ -654,6 +720,10 @@ "base": null, "refs": { } }, + "MethodName": { + "base": null, + "refs": { } + }, "NotFoundException": { "base": "

The specified resource doesn't exist. Check your request syntax and try again.

", "refs": { } @@ -663,10 +733,10 @@ "refs": { } }, "PortMapping": { - "base": "

An object representing a virtual node or virtual router listener port mapping.

", + "base": "

An object that represents a port mapping.

", "refs": { "PortMapping$port": "

The port used for the port mapping.

", - "PortMapping$protocol": "

The protocol used for the port mapping.

" + "PortMapping$protocol": "

The protocol used for the port mapping. Specify one protocol.

" } }, "PortNumber": { @@ -682,7 +752,7 @@ "refs": { } }, "ResourceMetadata": { - "base": "

An object representing metadata for a resource.

", + "base": "

An object that represents metadata for a resource.

", "refs": { "ResourceMetadata$arn": "

The full Amazon Resource Name (ARN) for the resource.

", "ResourceMetadata$createdAt": "

The Unix epoch timestamp in seconds for when the resource was created.

", @@ -696,7 +766,7 @@ "refs": { } }, "RouteData": { - "base": "

An object representing a route returned by a describe operation.

", + "base": "

An object that represents a route returned by a describe operation.

", "refs": { "RouteData$meshName": "

The name of the service mesh that the route resides in.

", "RouteData$metadata": "

The associated metadata for the route.

", @@ -717,7 +787,7 @@ "refs": { } }, "RouteRef": { - "base": "

An object representing a route returned by a list operation.

", + "base": "

An object that represents a route returned by a list operation.

", "refs": { "RouteRef$arn": "

The full Amazon Resource Name (ARN) for the route.

", "RouteRef$meshName": "

The name of the service mesh that the route resides in.

", @@ -726,15 +796,17 @@ } }, "RouteSpec": { - "base": "

An object representing the specification of a route.

", + "base": "

An object that represents a route specification. Specify one route type.

", "refs": { - "RouteSpec$httpRoute": "

The HTTP routing information for the route.

", - "RouteSpec$priority": "

The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.

", - "RouteSpec$tcpRoute": "

The TCP routing information for the route.

" + "RouteSpec$grpcRoute": "

An object that represents the specification of a GRPC route.

", + "RouteSpec$http2Route": "

An object that represents the specification of an HTTP2 route.

", + "RouteSpec$httpRoute": "

An object that represents the specification of an HTTP route.

", + "RouteSpec$priority": "

The priority for the route. Routes are matched based on the specified value, where 0 is\n the highest priority.

", + "RouteSpec$tcpRoute": "

An object that represents the specification of a TCP route.

" } }, "RouteStatus": { - "base": "

An object representing the current status of a route.

", + "base": "

An object that represents the current status of a route.

", "refs": { "RouteStatus$status": "

The current status for the route.

" } @@ -744,7 +816,7 @@ "refs": { } }, "ServiceDiscovery": { - "base": "

An object representing the service discovery information for a virtual node.

", + "base": "

An object that represents the service discovery information for a virtual node.

", "refs": { "ServiceDiscovery$awsCloudMap": "

Specifies any AWS Cloud Map information for the virtual node.

", "ServiceDiscovery$dns": "

Specifies the DNS information for the virtual node.

" @@ -815,15 +887,15 @@ } }, "TcpRoute": { - "base": "

An object representing the TCP routing specification for a route.

", + "base": "

An object that represents a TCP route type.

", "refs": { "TcpRoute$action": "

The action to take if a match is determined.

" } }, "TcpRouteAction": { - "base": "

An object representing the traffic distribution requirements for matched TCP\n requests.

", + "base": "

An object that represents the action to take if a match is determined.

", "refs": { - "TcpRouteAction$weightedTargets": "

The targets that traffic is routed to when a request matches the route. You can specify\n one or more targets and their relative weights to distribute traffic with.

" + "TcpRouteAction$weightedTargets": "

An object that represents the targets that traffic is routed to when a request matches the route.

" } }, "Timestamp": { @@ -923,7 +995,7 @@ } }, "VirtualNodeData": { - "base": "

An object representing a virtual node returned by a describe operation.

", + "base": "

An object that represents a virtual node returned by a describe operation.

", "refs": { "VirtualNodeData$meshName": "

The name of the service mesh that the virtual node resides in.

", "VirtualNodeData$metadata": "

The associated metadata for the virtual node.

", @@ -939,7 +1011,7 @@ } }, "VirtualNodeRef": { - "base": "

An object representing a virtual node returned by a list operation.

", + "base": "

An object that represents a virtual node returned by a list operation.

", "refs": { "VirtualNodeRef$arn": "

The full Amazon Resource Name (ARN) for the virtual node.

", "VirtualNodeRef$meshName": "

The name of the service mesh that the virtual node resides in.

", @@ -947,22 +1019,22 @@ } }, "VirtualNodeServiceProvider": { - "base": "

An object representing a virtual node service provider.

", + "base": "

An object that represents a virtual node service provider.

", "refs": { "VirtualNodeServiceProvider$virtualNodeName": "

The name of the virtual node that is acting as a service provider.

" } }, "VirtualNodeSpec": { - "base": "

An object representing the specification of a virtual node.

", + "base": "

An object that represents the specification of a virtual node.

", "refs": { "VirtualNodeSpec$backends": "

The backends that the virtual node is expected to send outbound traffic to.

", - "VirtualNodeSpec$listeners": "

The listeners that the virtual node is expected to receive inbound traffic from.\n Currently only one listener is supported per virtual node.

", + "VirtualNodeSpec$listeners": "

The listeners that the virtual node is expected to receive inbound traffic from.\n You can specify one listener.

", "VirtualNodeSpec$logging": "

The inbound and outbound access logging information for the virtual node.

", "VirtualNodeSpec$serviceDiscovery": "

The service discovery information for the virtual node. If your virtual node does not\n expect ingress traffic, you can omit this parameter.

" } }, "VirtualNodeStatus": { - "base": "

An object representing the current status of the virtual node.

", + "base": "

An object that represents the current status of the virtual node.

", "refs": { "VirtualNodeStatus$status": "

The current status of the virtual node.

" } @@ -972,7 +1044,7 @@ "refs": { } }, "VirtualRouterData": { - "base": "

An object representing a virtual router returned by a describe operation.

", + "base": "

An object that represents a virtual router returned by a describe operation.

", "refs": { "VirtualRouterData$meshName": "

The name of the service mesh that the virtual router resides in.

", "VirtualRouterData$metadata": "

The associated metadata for the virtual router.

", @@ -988,7 +1060,7 @@ } }, "VirtualRouterListener": { - "base": "

An object representing a virtual router listener.

", + "base": "

An object that represents a virtual router listener.

", "refs": { } }, "VirtualRouterListeners": { @@ -998,7 +1070,7 @@ } }, "VirtualRouterRef": { - "base": "

An object representing a virtual router returned by a list operation.

", + "base": "

An object that represents a virtual router returned by a list operation.

", "refs": { "VirtualRouterRef$arn": "

The full Amazon Resource Name (ARN) for the virtual router.

", "VirtualRouterRef$meshName": "

The name of the service mesh that the virtual router resides in.

", @@ -1006,19 +1078,19 @@ } }, "VirtualRouterServiceProvider": { - "base": "

An object representing a virtual node service provider.

", + "base": "

An object that represents a virtual node service provider.

", "refs": { "VirtualRouterServiceProvider$virtualRouterName": "

The name of the virtual router that is acting as a service provider.

" } }, "VirtualRouterSpec": { - "base": "

An object representing the specification of a virtual router.

", + "base": "

An object that represents the specification of a virtual router.

", "refs": { - "VirtualRouterSpec$listeners": "

The listeners that the virtual router is expected to receive inbound traffic from.\n Currently only one listener is supported per virtual router.

" + "VirtualRouterSpec$listeners": "

The listeners that the virtual router is expected to receive inbound traffic from.\n You can specify one listener.

" } }, "VirtualRouterStatus": { - "base": "

An object representing the status of a virtual router.

", + "base": "

An object that represents the status of a virtual router.

", "refs": { "VirtualRouterStatus$status": "

The current status of the virtual router.

" } @@ -1028,13 +1100,13 @@ "refs": { } }, "VirtualServiceBackend": { - "base": "

An object representing a virtual service backend for a virtual node.

", + "base": "

An object that represents a virtual service backend for a virtual node.

", "refs": { "VirtualServiceBackend$virtualServiceName": "

The name of the virtual service that is acting as a virtual node backend.

" } }, "VirtualServiceData": { - "base": "

An object representing a virtual service returned by a describe operation.

", + "base": "

An object that represents a virtual service returned by a describe operation.

", "refs": { "VirtualServiceData$meshName": "

The name of the service mesh that the virtual service resides in.

", "VirtualServiceData$spec": "

The specifications of the virtual service.

", @@ -1049,14 +1121,14 @@ } }, "VirtualServiceProvider": { - "base": "

An object representing the provider for a virtual service.

", + "base": "

An object that represents the provider for a virtual service.

", "refs": { "VirtualServiceProvider$virtualNode": "

The virtual node associated with a virtual service.

", "VirtualServiceProvider$virtualRouter": "

The virtual router associated with a virtual service.

" } }, "VirtualServiceRef": { - "base": "

An object representing a virtual service returned by a list operation.

", + "base": "

An object that represents a virtual service returned by a list operation.

", "refs": { "VirtualServiceRef$arn": "

The full Amazon Resource Name (ARN) for the virtual service.

", "VirtualServiceRef$meshName": "

The name of the service mesh that the virtual service resides in.

", @@ -1064,13 +1136,13 @@ } }, "VirtualServiceSpec": { - "base": "

An object representing the specification of a virtual service.

", + "base": "

An object that represents the specification of a virtual service.

", "refs": { "VirtualServiceSpec$provider": "

The App Mesh object that is acting as the provider for a virtual service. You can specify\n a single virtual node or virtual router.

" } }, "VirtualServiceStatus": { - "base": "

An object representing the status of a virtual service.

", + "base": "

An object that represents the status of a virtual service.

", "refs": { "VirtualServiceStatus$status": "

The current status of the virtual service.

" } @@ -1080,7 +1152,7 @@ "refs": { } }, "WeightedTarget": { - "base": "

An object representing a target and its relative weight. Traffic is distributed across\n targets according to their relative weight. For example, a weighted target with a relative\n weight of 50 receives five times as much traffic as one with a relative weight of\n 10.

", + "base": "

An object that represents a target and its relative weight. Traffic is distributed across\n targets according to their relative weight. For example, a weighted target with a relative\n weight of 50 receives five times as much traffic as one with a relative weight of\n 10. The total weight for all targets combined must be less than or equal to 100.

", "refs": { "WeightedTarget$virtualNode": "

The virtual node to associate with the weighted target.

", "WeightedTarget$weight": "

The relative weight of the weighted target.

" diff --git a/models/apis/chime/2018-05-01/api-2.json b/models/apis/chime/2018-05-01/api-2.json index b8a6f92802..6135127011 100644 --- a/models/apis/chime/2018-05-01/api-2.json +++ b/models/apis/chime/2018-05-01/api-2.json @@ -24,6 +24,7 @@ {"shape":"NotFoundException"}, {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"AccessDeniedException"}, {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} @@ -43,6 +44,27 @@ {"shape":"NotFoundException"}, {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "AssociatePhoneNumbersWithVoiceConnectorGroup":{ + "name":"AssociatePhoneNumbersWithVoiceConnectorGroup", + "http":{ + "method":"POST", + "requestUri":"/voice-connector-groups/{voiceConnectorGroupId}?operation=associate-phone-numbers", + "responseCode":200 + }, + "input":{"shape":"AssociatePhoneNumbersWithVoiceConnectorGroupRequest"}, + "output":{"shape":"AssociatePhoneNumbersWithVoiceConnectorGroupResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"AccessDeniedException"}, {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} @@ -191,10 +213,12 @@ "input":{"shape":"CreatePhoneNumberOrderRequest"}, "output":{"shape":"CreatePhoneNumberOrderResponse"}, "errors":[ - {"shape":"UnauthorizedClientException"}, - {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"AccessDeniedException"}, + {"shape":"UnauthorizedClientException"}, {"shape":"ThrottledClientException"}, + {"shape":"ResourceLimitExceededException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] @@ -209,10 +233,32 @@ "input":{"shape":"CreateVoiceConnectorRequest"}, "output":{"shape":"CreateVoiceConnectorResponse"}, "errors":[ - {"shape":"UnauthorizedClientException"}, + {"shape":"BadRequestException"}, {"shape":"ForbiddenException"}, + {"shape":"AccessDeniedException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "CreateVoiceConnectorGroup":{ + "name":"CreateVoiceConnectorGroup", + "http":{ + "method":"POST", + "requestUri":"/voice-connector-groups", + "responseCode":201 + }, + "input":{"shape":"CreateVoiceConnectorGroupRequest"}, + "output":{"shape":"CreateVoiceConnectorGroupResponse"}, + "errors":[ {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"AccessDeniedException"}, + {"shape":"UnauthorizedClientException"}, {"shape":"ThrottledClientException"}, + {"shape":"ResourceLimitExceededException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] @@ -285,6 +331,26 @@ {"shape":"NotFoundException"}, {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "DeleteVoiceConnectorGroup":{ + "name":"DeleteVoiceConnectorGroup", + "http":{ + "method":"DELETE", + "requestUri":"/voice-connector-groups/{voiceConnectorGroupId}", + "responseCode":204 + }, + "input":{"shape":"DeleteVoiceConnectorGroupRequest"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} @@ -308,6 +374,24 @@ {"shape":"ServiceFailureException"} ] }, + "DeleteVoiceConnectorStreamingConfiguration":{ + "name":"DeleteVoiceConnectorStreamingConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/voice-connectors/{voiceConnectorId}/streaming-configuration", + "responseCode":204 + }, + "input":{"shape":"DeleteVoiceConnectorStreamingConfigurationRequest"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "DeleteVoiceConnectorTermination":{ "name":"DeleteVoiceConnectorTermination", "http":{ @@ -382,6 +466,25 @@ {"shape":"ServiceFailureException"} ] }, + "DisassociatePhoneNumbersFromVoiceConnectorGroup":{ + "name":"DisassociatePhoneNumbersFromVoiceConnectorGroup", + "http":{ + "method":"POST", + "requestUri":"/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", + "responseCode":200 + }, + "input":{"shape":"DisassociatePhoneNumbersFromVoiceConnectorGroupRequest"}, + "output":{"shape":"DisassociatePhoneNumbersFromVoiceConnectorGroupResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "GetAccount":{ "name":"GetAccount", "http":{ @@ -509,6 +612,23 @@ {"shape":"ServiceFailureException"} ] }, + "GetPhoneNumberSettings":{ + "name":"GetPhoneNumberSettings", + "http":{ + "method":"GET", + "requestUri":"/settings/phone-number", + "responseCode":200 + }, + "output":{"shape":"GetPhoneNumberSettingsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "GetUser":{ "name":"GetUser", "http":{ @@ -566,6 +686,44 @@ {"shape":"ServiceFailureException"} ] }, + "GetVoiceConnectorGroup":{ + "name":"GetVoiceConnectorGroup", + "http":{ + "method":"GET", + "requestUri":"/voice-connector-groups/{voiceConnectorGroupId}", + "responseCode":200 + }, + "input":{"shape":"GetVoiceConnectorGroupRequest"}, + "output":{"shape":"GetVoiceConnectorGroupResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "GetVoiceConnectorLoggingConfiguration":{ + "name":"GetVoiceConnectorLoggingConfiguration", + "http":{ + "method":"GET", + "requestUri":"/voice-connectors/{voiceConnectorId}/logging-configuration", + "responseCode":200 + }, + "input":{"shape":"GetVoiceConnectorLoggingConfigurationRequest"}, + "output":{"shape":"GetVoiceConnectorLoggingConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "GetVoiceConnectorOrigination":{ "name":"GetVoiceConnectorOrigination", "http":{ @@ -585,6 +743,25 @@ {"shape":"ServiceFailureException"} ] }, + "GetVoiceConnectorStreamingConfiguration":{ + "name":"GetVoiceConnectorStreamingConfiguration", + "http":{ + "method":"GET", + "requestUri":"/voice-connectors/{voiceConnectorId}/streaming-configuration", + "responseCode":200 + }, + "input":{"shape":"GetVoiceConnectorStreamingConfigurationRequest"}, + "output":{"shape":"GetVoiceConnectorStreamingConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "GetVoiceConnectorTermination":{ "name":"GetVoiceConnectorTermination", "http":{ @@ -732,6 +909,24 @@ {"shape":"ServiceFailureException"} ] }, + "ListVoiceConnectorGroups":{ + "name":"ListVoiceConnectorGroups", + "http":{ + "method":"GET", + "requestUri":"/voice-connector-groups", + "responseCode":200 + }, + "input":{"shape":"ListVoiceConnectorGroupsRequest"}, + "output":{"shape":"ListVoiceConnectorGroupsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "ListVoiceConnectorTerminationCredentials":{ "name":"ListVoiceConnectorTerminationCredentials", "http":{ @@ -807,6 +1002,25 @@ {"shape":"NotFoundException"} ] }, + "PutVoiceConnectorLoggingConfiguration":{ + "name":"PutVoiceConnectorLoggingConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/voice-connectors/{voiceConnectorId}/logging-configuration", + "responseCode":200 + }, + "input":{"shape":"PutVoiceConnectorLoggingConfigurationRequest"}, + "output":{"shape":"PutVoiceConnectorLoggingConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "PutVoiceConnectorOrigination":{ "name":"PutVoiceConnectorOrigination", "http":{ @@ -826,6 +1040,25 @@ {"shape":"ServiceFailureException"} ] }, + "PutVoiceConnectorStreamingConfiguration":{ + "name":"PutVoiceConnectorStreamingConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/voice-connectors/{voiceConnectorId}/streaming-configuration", + "responseCode":200 + }, + "input":{"shape":"PutVoiceConnectorStreamingConfigurationRequest"}, + "output":{"shape":"PutVoiceConnectorStreamingConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "PutVoiceConnectorTermination":{ "name":"PutVoiceConnectorTermination", "http":{ @@ -840,6 +1073,7 @@ {"shape":"NotFoundException"}, {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"AccessDeniedException"}, {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} @@ -915,6 +1149,7 @@ {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, {"shape":"ThrottledClientException"}, + {"shape":"ResourceLimitExceededException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] @@ -928,9 +1163,10 @@ "input":{"shape":"SearchAvailablePhoneNumbersRequest"}, "output":{"shape":"SearchAvailablePhoneNumbersResponse"}, "errors":[ - {"shape":"UnauthorizedClientException"}, - {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"AccessDeniedException"}, + {"shape":"UnauthorizedClientException"}, {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} @@ -1029,6 +1265,23 @@ {"shape":"ServiceFailureException"} ] }, + "UpdatePhoneNumberSettings":{ + "name":"UpdatePhoneNumberSettings", + "http":{ + "method":"PUT", + "requestUri":"/settings/phone-number", + "responseCode":204 + }, + "input":{"shape":"UpdatePhoneNumberSettingsRequest"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "UpdateUser":{ "name":"UpdateUser", "http":{ @@ -1084,9 +1337,38 @@ {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] + }, + "UpdateVoiceConnectorGroup":{ + "name":"UpdateVoiceConnectorGroup", + "http":{ + "method":"PUT", + "requestUri":"/voice-connector-groups/{voiceConnectorGroupId}", + "responseCode":202 + }, + "input":{"shape":"UpdateVoiceConnectorGroupRequest"}, + "output":{"shape":"UpdateVoiceConnectorGroupResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] } }, "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, "Account":{ "type":"structure", "required":[ @@ -1156,6 +1438,25 @@ "members":{ } }, + "AssociatePhoneNumbersWithVoiceConnectorGroupRequest":{ + "type":"structure", + "required":["VoiceConnectorGroupId"], + "members":{ + "VoiceConnectorGroupId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorGroupId" + }, + "E164PhoneNumbers":{"shape":"E164PhoneNumberList"}, + "ForceAssociate":{"shape":"NullableBoolean"} + } + }, + "AssociatePhoneNumbersWithVoiceConnectorGroupResponse":{ + "type":"structure", + "members":{ + "PhoneNumberErrors":{"shape":"PhoneNumberErrorList"} + } + }, "AssociatePhoneNumbersWithVoiceConnectorRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -1165,7 +1466,8 @@ "location":"uri", "locationName":"voiceConnectorId" }, - "E164PhoneNumbers":{"shape":"E164PhoneNumberList"} + "E164PhoneNumbers":{"shape":"E164PhoneNumberList"}, + "ForceAssociate":{"shape":"NullableBoolean"} } }, "AssociatePhoneNumbersWithVoiceConnectorResponse":{ @@ -1304,6 +1606,20 @@ } } }, + "CallingName":{ + "type":"string", + "pattern":"^$|^[a-zA-Z0-9 ]{2,15}$", + "sensitive":true + }, + "CallingNameStatus":{ + "type":"string", + "enum":[ + "Unassigned", + "UpdateInProgress", + "UpdateSucceeded", + "UpdateFailed" + ] + }, "CallingRegion":{"type":"string"}, "CallingRegionList":{ "type":"list", @@ -1374,6 +1690,20 @@ "PhoneNumberOrder":{"shape":"PhoneNumberOrder"} } }, + "CreateVoiceConnectorGroupRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"VoiceConnectorGroupName"}, + "VoiceConnectorItems":{"shape":"VoiceConnectorItemList"} + } + }, + "CreateVoiceConnectorGroupResponse":{ + "type":"structure", + "members":{ + "VoiceConnectorGroup":{"shape":"VoiceConnectorGroup"} + } + }, "CreateVoiceConnectorRequest":{ "type":"structure", "required":[ @@ -1382,6 +1712,7 @@ ], "members":{ "Name":{"shape":"VoiceConnectorName"}, + "AwsRegion":{"shape":"VoiceConnectorAwsRegion"}, "RequireEncryption":{"shape":"Boolean"} } }, @@ -1402,6 +1733,10 @@ "type":"list", "member":{"shape":"Credential"} }, + "DataRetentionInHours":{ + "type":"integer", + "min":0 + }, "DeleteAccountRequest":{ "type":"structure", "required":["AccountId"], @@ -1448,6 +1783,17 @@ } } }, + "DeleteVoiceConnectorGroupRequest":{ + "type":"structure", + "required":["VoiceConnectorGroupId"], + "members":{ + "VoiceConnectorGroupId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorGroupId" + } + } + }, "DeleteVoiceConnectorOriginationRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -1470,6 +1816,17 @@ } } }, + "DeleteVoiceConnectorStreamingConfigurationRequest":{ + "type":"structure", + "required":["VoiceConnectorId"], + "members":{ + "VoiceConnectorId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorId" + } + } + }, "DeleteVoiceConnectorTerminationCredentialsRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -1517,6 +1874,24 @@ "members":{ } }, + "DisassociatePhoneNumbersFromVoiceConnectorGroupRequest":{ + "type":"structure", + "required":["VoiceConnectorGroupId"], + "members":{ + "VoiceConnectorGroupId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorGroupId" + }, + "E164PhoneNumbers":{"shape":"E164PhoneNumberList"} + } + }, + "DisassociatePhoneNumbersFromVoiceConnectorGroupResponse":{ + "type":"structure", + "members":{ + "PhoneNumberErrors":{"shape":"PhoneNumberErrorList"} + } + }, "DisassociatePhoneNumbersFromVoiceConnectorRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -1560,16 +1935,20 @@ "ErrorCode":{ "type":"string", "enum":[ - "Unauthorized", - "Forbidden", - "NotFound", "BadRequest", "Conflict", + "Forbidden", + "NotFound", + "PreconditionFailed", + "ResourceLimitExceeded", "ServiceFailure", + "AccessDenied", "ServiceUnavailable", - "Unprocessable", "Throttled", - "PreconditionFailed" + "Unauthorized", + "Unprocessable", + "VoiceConnectorGroupAssociationsExist", + "PhoneNumberAssociationsExist" ] }, "EventsConfiguration":{ @@ -1714,6 +2093,13 @@ "PhoneNumber":{"shape":"PhoneNumber"} } }, + "GetPhoneNumberSettingsResponse":{ + "type":"structure", + "members":{ + "CallingName":{"shape":"CallingName"}, + "CallingNameUpdatedTimestamp":{"shape":"Iso8601Timestamp"} + } + }, "GetUserRequest":{ "type":"structure", "required":[ @@ -1764,6 +2150,40 @@ "UserSettings":{"shape":"UserSettings"} } }, + "GetVoiceConnectorGroupRequest":{ + "type":"structure", + "required":["VoiceConnectorGroupId"], + "members":{ + "VoiceConnectorGroupId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorGroupId" + } + } + }, + "GetVoiceConnectorGroupResponse":{ + "type":"structure", + "members":{ + "VoiceConnectorGroup":{"shape":"VoiceConnectorGroup"} + } + }, + "GetVoiceConnectorLoggingConfigurationRequest":{ + "type":"structure", + "required":["VoiceConnectorId"], + "members":{ + "VoiceConnectorId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorId" + } + } + }, + "GetVoiceConnectorLoggingConfigurationResponse":{ + "type":"structure", + "members":{ + "LoggingConfiguration":{"shape":"LoggingConfiguration"} + } + }, "GetVoiceConnectorOriginationRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -1798,6 +2218,23 @@ "VoiceConnector":{"shape":"VoiceConnector"} } }, + "GetVoiceConnectorStreamingConfigurationRequest":{ + "type":"structure", + "required":["VoiceConnectorId"], + "members":{ + "VoiceConnectorId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorId" + } + } + }, + "GetVoiceConnectorStreamingConfigurationResponse":{ + "type":"structure", + "members":{ + "StreamingConfiguration":{"shape":"StreamingConfiguration"} + } + }, "GetVoiceConnectorTerminationHealthRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -2052,6 +2489,28 @@ "NextToken":{"shape":"String"} } }, + "ListVoiceConnectorGroupsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"ResultMax", + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListVoiceConnectorGroupsResponse":{ + "type":"structure", + "members":{ + "VoiceConnectorGroups":{"shape":"VoiceConnectorGroupList"}, + "NextToken":{"shape":"String"} + } + }, "ListVoiceConnectorTerminationCredentialsRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -2091,6 +2550,12 @@ "NextToken":{"shape":"String"} } }, + "LoggingConfiguration":{ + "type":"structure", + "members":{ + "EnableSIPLogs":{"shape":"Boolean"} + } + }, "LogoutUserRequest":{ "type":"structure", "required":[ @@ -2201,6 +2666,8 @@ "Status":{"shape":"PhoneNumberStatus"}, "Capabilities":{"shape":"PhoneNumberCapabilities"}, "Associations":{"shape":"PhoneNumberAssociationList"}, + "CallingName":{"shape":"CallingName"}, + "CallingNameStatus":{"shape":"CallingNameStatus"}, "CreatedTimestamp":{"shape":"Iso8601Timestamp"}, "UpdatedTimestamp":{"shape":"Iso8601Timestamp"}, "DeletionTimestamp":{"shape":"Iso8601Timestamp"} @@ -2223,7 +2690,8 @@ "enum":[ "AccountId", "UserId", - "VoiceConnectorId" + "VoiceConnectorId", + "VoiceConnectorGroupId" ] }, "PhoneNumberCapabilities":{ @@ -2346,6 +2814,27 @@ "EventsConfiguration":{"shape":"EventsConfiguration"} } }, + "PutVoiceConnectorLoggingConfigurationRequest":{ + "type":"structure", + "required":[ + "VoiceConnectorId", + "LoggingConfiguration" + ], + "members":{ + "VoiceConnectorId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorId" + }, + "LoggingConfiguration":{"shape":"LoggingConfiguration"} + } + }, + "PutVoiceConnectorLoggingConfigurationResponse":{ + "type":"structure", + "members":{ + "LoggingConfiguration":{"shape":"LoggingConfiguration"} + } + }, "PutVoiceConnectorOriginationRequest":{ "type":"structure", "required":[ @@ -2367,6 +2856,27 @@ "Origination":{"shape":"Origination"} } }, + "PutVoiceConnectorStreamingConfigurationRequest":{ + "type":"structure", + "required":[ + "VoiceConnectorId", + "StreamingConfiguration" + ], + "members":{ + "VoiceConnectorId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorId" + }, + "StreamingConfiguration":{"shape":"StreamingConfiguration"} + } + }, + "PutVoiceConnectorStreamingConfigurationResponse":{ + "type":"structure", + "members":{ + "StreamingConfiguration":{"shape":"StreamingConfiguration"} + } + }, "PutVoiceConnectorTerminationCredentialsRequest":{ "type":"structure", "required":["VoiceConnectorId"], @@ -2563,6 +3073,14 @@ "exception":true, "fault":true }, + "StreamingConfiguration":{ + "type":"structure", + "required":["DataRetentionInHours"], + "members":{ + "DataRetentionInHours":{"shape":"DataRetentionInHours"}, + "Disabled":{"shape":"Boolean"} + } + }, "String":{"type":"string"}, "StringList":{ "type":"list", @@ -2715,7 +3233,8 @@ "location":"uri", "locationName":"phoneNumberId" }, - "ProductType":{"shape":"PhoneNumberProductType"} + "ProductType":{"shape":"PhoneNumberProductType"}, + "CallingName":{"shape":"CallingName"} } }, "UpdatePhoneNumberRequestItem":{ @@ -2723,7 +3242,8 @@ "required":["PhoneNumberId"], "members":{ "PhoneNumberId":{"shape":"NonEmptyString"}, - "ProductType":{"shape":"PhoneNumberProductType"} + "ProductType":{"shape":"PhoneNumberProductType"}, + "CallingName":{"shape":"CallingName"} } }, "UpdatePhoneNumberRequestItemList":{ @@ -2736,6 +3256,13 @@ "PhoneNumber":{"shape":"PhoneNumber"} } }, + "UpdatePhoneNumberSettingsRequest":{ + "type":"structure", + "required":["CallingName"], + "members":{ + "CallingName":{"shape":"CallingName"} + } + }, "UpdateUserRequest":{ "type":"structure", "required":[ @@ -2796,6 +3323,29 @@ "UserSettings":{"shape":"UserSettings"} } }, + "UpdateVoiceConnectorGroupRequest":{ + "type":"structure", + "required":[ + "VoiceConnectorGroupId", + "Name", + "VoiceConnectorItems" + ], + "members":{ + "VoiceConnectorGroupId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"voiceConnectorGroupId" + }, + "Name":{"shape":"VoiceConnectorGroupName"}, + "VoiceConnectorItems":{"shape":"VoiceConnectorItemList"} + } + }, + "UpdateVoiceConnectorGroupResponse":{ + "type":"structure", + "members":{ + "VoiceConnectorGroup":{"shape":"VoiceConnectorGroup"} + } + }, "UpdateVoiceConnectorRequest":{ "type":"structure", "required":[ @@ -2873,6 +3423,7 @@ "type":"structure", "members":{ "VoiceConnectorId":{"shape":"NonEmptyString"}, + "AwsRegion":{"shape":"VoiceConnectorAwsRegion"}, "Name":{"shape":"VoiceConnectorName"}, "OutboundHostName":{"shape":"String"}, "RequireEncryption":{"shape":"Boolean"}, @@ -2880,6 +3431,52 @@ "UpdatedTimestamp":{"shape":"Iso8601Timestamp"} } }, + "VoiceConnectorAwsRegion":{ + "type":"string", + "enum":[ + "us-east-1", + "us-west-2" + ] + }, + "VoiceConnectorGroup":{ + "type":"structure", + "members":{ + "VoiceConnectorGroupId":{"shape":"NonEmptyString"}, + "Name":{"shape":"VoiceConnectorGroupName"}, + "VoiceConnectorItems":{"shape":"VoiceConnectorItemList"}, + "CreatedTimestamp":{"shape":"Iso8601Timestamp"}, + "UpdatedTimestamp":{"shape":"Iso8601Timestamp"} + } + }, + "VoiceConnectorGroupList":{ + "type":"list", + "member":{"shape":"VoiceConnectorGroup"} + }, + "VoiceConnectorGroupName":{ + "type":"string", + "max":256, + "min":1 + }, + "VoiceConnectorItem":{ + "type":"structure", + "required":[ + "VoiceConnectorId", + "Priority" + ], + "members":{ + "VoiceConnectorId":{"shape":"NonEmptyString"}, + "Priority":{"shape":"VoiceConnectorItemPriority"} + } + }, + "VoiceConnectorItemList":{ + "type":"list", + "member":{"shape":"VoiceConnectorItem"} + }, + "VoiceConnectorItemPriority":{ + "type":"integer", + "max":99, + "min":1 + }, "VoiceConnectorList":{ "type":"list", "member":{"shape":"VoiceConnector"} diff --git a/models/apis/chime/2018-05-01/docs-2.json b/models/apis/chime/2018-05-01/docs-2.json index 10f3c398da..c28d9f6307 100644 --- a/models/apis/chime/2018-05-01/docs-2.json +++ b/models/apis/chime/2018-05-01/docs-2.json @@ -3,25 +3,30 @@ "service": "

The Amazon Chime API (application programming interface) is designed for administrators to use to perform key tasks, such as creating and managing Amazon Chime accounts and users. This guide provides detailed information about the Amazon Chime API, including operations, types, inputs and outputs, and error codes.

You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the REST API to make API calls. We recommend using an AWS SDK or the AWS CLI. Each API operation includes links to information about using it with a language-specific AWS SDK or the AWS CLI.

Using an AWS SDK

You don't need to write code to calculate a signature for request authentication. The SDK clients authenticate your requests by using access keys that you provide. For more information about AWS SDKs, see the AWS Developer Center.

Using the AWS CLI

Use your access keys with the AWS CLI to make API calls. For information about setting up the AWS CLI, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. For a list of available Amazon Chime commands, see the Amazon Chime commands in the AWS CLI Command Reference.

Using REST API

If you use REST to make API calls, you must authenticate your request by providing a signature. Amazon Chime supports signature version 4. For more information, see Signature Version 4 Signing Process in the Amazon Web Services General Reference.

When making REST API calls, use the service name chime and REST endpoint https://service.chime.aws.amazon.com.

Administrative permissions are controlled using AWS Identity and Access Management (IAM). For more information, see Control Access to the Amazon Chime Console in the Amazon Chime Administration Guide.

", "operations": { "AssociatePhoneNumberWithUser": "

Associates a phone number with the specified Amazon Chime user.

", - "AssociatePhoneNumbersWithVoiceConnector": "

Associates a phone number with the specified Amazon Chime Voice Connector.

", + "AssociatePhoneNumbersWithVoiceConnector": "

Associates phone numbers with the specified Amazon Chime Voice Connector.

", + "AssociatePhoneNumbersWithVoiceConnectorGroup": "

Associates phone numbers with the specified Amazon Chime Voice Connector group.

", "BatchDeletePhoneNumber": "

Moves phone numbers into the Deletion queue. Phone numbers must be disassociated from any users or Amazon Chime Voice Connectors before they can be deleted.

Phone numbers remain in the Deletion queue for 7 days before they are deleted permanently.

", "BatchSuspendUser": "

Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Users suspended from a Team account are dissasociated from the account, but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so.

Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action.

To sign out users without suspending them, use the LogoutUser action.

", "BatchUnsuspendUser": "

Removes the suspension from up to 50 previously suspended users for the specified Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts can be unsuspended using this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Previously suspended users who are unsuspended using this action are returned to Registered status. Users who are not previously suspended are ignored.

", - "BatchUpdatePhoneNumber": "

Updates phone number product types. Choose from Amazon Chime Business Calling and Amazon Chime Voice Connector product types. For toll-free numbers, you can use only the Amazon Chime Voice Connector product type.

", + "BatchUpdatePhoneNumber": "

Updates phone number product types or calling names. You can update one attribute at a time for each UpdatePhoneNumberRequestItem. For example, you can update either the product type or the calling name.

For product types, choose from Amazon Chime Business Calling and Amazon Chime Voice Connector. For toll-free numbers, you must use the Amazon Chime Voice Connector product type.

Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.

", "BatchUpdateUser": "

Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action.

", "CreateAccount": "

Creates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

", "CreateBot": "

Creates a bot for an Amazon Chime Enterprise account.

", - "CreatePhoneNumberOrder": "

Creates an order for phone numbers to be provisioned. Choose from Amazon Chime Business Calling and Amazon Chime Voice Connector product types. For toll-free numbers, you can use only the Amazon Chime Voice Connector product type.

", - "CreateVoiceConnector": "

Creates an Amazon Chime Voice Connector under the administrator's AWS account. Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound calls are blocked.

", + "CreatePhoneNumberOrder": "

Creates an order for phone numbers to be provisioned. Choose from Amazon Chime Business Calling and Amazon Chime Voice Connector product types. For toll-free numbers, you must use the Amazon Chime Voice Connector product type.

", + "CreateVoiceConnector": "

Creates an Amazon Chime Voice Connector under the administrator's AWS account. You can choose to create an Amazon Chime Voice Connector in a specific AWS Region.

Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound calls are blocked.

", + "CreateVoiceConnectorGroup": "

Creates an Amazon Chime Voice Connector group under the administrator's AWS account. You can associate up to three existing Amazon Chime Voice Connectors with the Amazon Chime Voice Connector group by including VoiceConnectorItems in the request.

You can include Amazon Chime Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.

", "DeleteAccount": "

Deletes the specified Amazon Chime account. You must suspend all users before deleting a Team account. You can use the BatchSuspendUser action to do so.

For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended.

Deleted accounts appear in your Disabled accounts list for 90 days. To restore a deleted account from your Disabled accounts list, you must contact AWS Support.

After 90 days, deleted accounts are permanently removed from your Disabled accounts list.

", "DeleteEventsConfiguration": "

Deletes the events configuration that allows a bot to receive outgoing events.

", "DeletePhoneNumber": "

Moves the specified phone number into the Deletion queue. A phone number must be disassociated from any users or Amazon Chime Voice Connectors before it can be deleted.

Deleted phone numbers remain in the Deletion queue for 7 days before they are deleted permanently.

", - "DeleteVoiceConnector": "

Deletes the specified Amazon Chime Voice Connector. Any phone numbers assigned to the Amazon Chime Voice Connector must be unassigned from it before it can be deleted.

", + "DeleteVoiceConnector": "

Deletes the specified Amazon Chime Voice Connector. Any phone numbers associated with the Amazon Chime Voice Connector must be disassociated from it before it can be deleted.

", + "DeleteVoiceConnectorGroup": "

Deletes the specified Amazon Chime Voice Connector group. Any VoiceConnectorItems and phone numbers associated with the group must be removed before it can be deleted.

", "DeleteVoiceConnectorOrigination": "

Deletes the origination settings for the specified Amazon Chime Voice Connector.

", + "DeleteVoiceConnectorStreamingConfiguration": "

Deletes the streaming configuration for the specified Amazon Chime Voice Connector.

", "DeleteVoiceConnectorTermination": "

Deletes the termination settings for the specified Amazon Chime Voice Connector.

", "DeleteVoiceConnectorTerminationCredentials": "

Deletes the specified SIP credentials used by your equipment to authenticate during call termination.

", "DisassociatePhoneNumberFromUser": "

Disassociates the primary provisioned phone number from the specified Amazon Chime user.

", - "DisassociatePhoneNumbersFromVoiceConnector": "

Disassociates the specified phone number from the specified Amazon Chime Voice Connector.

", + "DisassociatePhoneNumbersFromVoiceConnector": "

Disassociates the specified phone numbers from the specified Amazon Chime Voice Connector.

", + "DisassociatePhoneNumbersFromVoiceConnectorGroup": "

Disassociates the specified phone numbers from the specified Amazon Chime Voice Connector group.

", "GetAccount": "

Retrieves details for the specified Amazon Chime account, such as account type and supported licenses.

", "GetAccountSettings": "

Retrieves account settings for the specified Amazon Chime account ID, such as remote control and dial out settings. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", "GetBot": "

Retrieves details for the specified bot, such as bot email address, bot type, status, and display name.

", @@ -29,23 +34,30 @@ "GetGlobalSettings": "

Retrieves global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings.

", "GetPhoneNumber": "

Retrieves details for the specified phone number ID, such as associations, capabilities, and product type.

", "GetPhoneNumberOrder": "

Retrieves details for the specified phone number order, such as order creation timestamp, phone numbers in E.164 format, product type, and order status.

", + "GetPhoneNumberSettings": "

Retrieves the phone number settings for the administrator's AWS account, such as the default outbound calling name.

", "GetUser": "

Retrieves details for the specified user ID, such as primary email address, license type, and personal meeting PIN.

To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address.

", "GetUserSettings": "

Retrieves settings for the specified user ID, such as any associated phone number settings.

", "GetVoiceConnector": "

Retrieves details for the specified Amazon Chime Voice Connector, such as timestamps, name, outbound host, and encryption requirements.

", + "GetVoiceConnectorGroup": "

Retrieves details for the specified Amazon Chime Voice Connector group, such as timestamps, name, and associated VoiceConnectorItems.

", + "GetVoiceConnectorLoggingConfiguration": "

Retrieves the logging configuration details for the specified Amazon Chime Voice Connector. Shows whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.

", "GetVoiceConnectorOrigination": "

Retrieves origination setting details for the specified Amazon Chime Voice Connector.

", + "GetVoiceConnectorStreamingConfiguration": "

Retrieves the streaming configuration details for the specified Amazon Chime Voice Connector. Shows whether media streaming is enabled for sending to Amazon Kinesis, and shows the retention period for the Amazon Kinesis data, in hours.

", "GetVoiceConnectorTermination": "

Retrieves termination setting details for the specified Amazon Chime Voice Connector.

", "GetVoiceConnectorTerminationHealth": "

Retrieves information about the last time a SIP OPTIONS ping was received from your SIP infrastructure for the specified Amazon Chime Voice Connector.

", "InviteUsers": "

Sends email invites to as many as 50 users, inviting them to the specified Amazon Chime Team account. Only Team account types are currently supported for this action.

", "ListAccounts": "

Lists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result.

", "ListBots": "

Lists the bots associated with the administrator's Amazon Chime Enterprise account ID.

", "ListPhoneNumberOrders": "

Lists the phone number orders for the administrator's Amazon Chime account.

", - "ListPhoneNumbers": "

Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, or Amazon Chime Voice Connector.

", + "ListPhoneNumbers": "

Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group.

", "ListUsers": "

Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to.

", + "ListVoiceConnectorGroups": "

Lists the Amazon Chime Voice Connector groups for the administrator's AWS account.

", "ListVoiceConnectorTerminationCredentials": "

Lists the SIP credentials for the specified Amazon Chime Voice Connector.

", "ListVoiceConnectors": "

Lists the Amazon Chime Voice Connectors for the administrator's AWS account.

", "LogoutUser": "

Logs out the specified user from all of the devices they are currently logged into.

", "PutEventsConfiguration": "

Creates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot.

", + "PutVoiceConnectorLoggingConfiguration": "

Adds a logging configuration for the specified Amazon Chime Voice Connector. The logging configuration specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.

", "PutVoiceConnectorOrigination": "

Adds origination settings for the specified Amazon Chime Voice Connector.

", + "PutVoiceConnectorStreamingConfiguration": "

Adds a streaming configuration for the specified Amazon Chime Voice Connector. The streaming configuration specifies whether media streaming is enabled for sending to Amazon Kinesis, and sets the retention period for the Amazon Kinesis data, in hours.

", "PutVoiceConnectorTermination": "

Adds termination settings for the specified Amazon Chime Voice Connector.

", "PutVoiceConnectorTerminationCredentials": "

Adds termination SIP credentials for the specified Amazon Chime Voice Connector.

", "RegenerateSecurityToken": "

Regenerates the security token for a bot.

", @@ -56,12 +68,19 @@ "UpdateAccountSettings": "

Updates the settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", "UpdateBot": "

Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account.

", "UpdateGlobalSettings": "

Updates global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings.

", - "UpdatePhoneNumber": "

Updates phone number details, such as product type, for the specified phone number ID. For toll-free numbers, you can use only the Amazon Chime Voice Connector product type.

", + "UpdatePhoneNumber": "

Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action.

For toll-free numbers, you must use the Amazon Chime Voice Connector product type.

Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.

", + "UpdatePhoneNumberSettings": "

Updates the phone number settings for the administrator's AWS account, such as the default outbound calling name. You can update the default outbound calling name once every seven days. Outbound calling names can take up to 72 hours to be updated.

", "UpdateUser": "

Updates user details for a specified user ID. Currently, only LicenseType updates are supported for this action.

", "UpdateUserSettings": "

Updates the settings for the specified user, such as phone number settings.

", - "UpdateVoiceConnector": "

Updates details for the specified Amazon Chime Voice Connector.

" + "UpdateVoiceConnector": "

Updates details for the specified Amazon Chime Voice Connector.

", + "UpdateVoiceConnectorGroup": "

Updates details for the specified Amazon Chime Voice Connector group, such as the name and Amazon Chime Voice Connector priority ranking.

" }, "shapes": { + "AccessDeniedException": { + "base": "

You don't have permissions to perform the requested operation.

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

The Amazon Chime account details. An AWS account can have multiple Amazon Chime accounts.

", "refs": { @@ -108,6 +127,16 @@ "refs": { } }, + "AssociatePhoneNumbersWithVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, + "AssociatePhoneNumbersWithVoiceConnectorGroupResponse": { + "base": null, + "refs": { + } + }, "AssociatePhoneNumbersWithVoiceConnectorRequest": { "base": null, "refs": { @@ -179,7 +208,9 @@ "AccountSettings$DisableRemoteControl": "

Setting that stops or starts remote control of shared screens during meetings.

", "AccountSettings$EnableDialOut": "

Setting that allows meeting participants to choose the Call me at a phone number option. For more information, see Join a Meeting without the Amazon Chime App.

", "CreateVoiceConnectorRequest$RequireEncryption": "

When enabled, requires encryption for the Amazon Chime Voice Connector.

", + "LoggingConfiguration$EnableSIPLogs": "

When true, enables SIP message logs for sending to Amazon CloudWatch Logs.

", "Origination$Disabled": "

When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.

", + "StreamingConfiguration$Disabled": "

When true, media streaming to Amazon Kinesis is turned off.

", "TelephonySettings$InboundCalling": "

Allows or denies inbound calling.

", "TelephonySettings$OutboundCalling": "

Allows or denies outbound calling.

", "TelephonySettings$SMS": "

Allows or denies SMS messaging.

", @@ -217,6 +248,22 @@ "UpdateGlobalSettingsRequest$BusinessCalling": "

The Amazon Chime Business Calling settings.

" } }, + "CallingName": { + "base": null, + "refs": { + "GetPhoneNumberSettingsResponse$CallingName": "

The default outbound calling name for the account.

", + "PhoneNumber$CallingName": "

The outbound calling name associated with the phone number.

", + "UpdatePhoneNumberRequest$CallingName": "

The outbound calling name associated with the phone number.

", + "UpdatePhoneNumberRequestItem$CallingName": "

The outbound calling name to update.

", + "UpdatePhoneNumberSettingsRequest$CallingName": "

The default outbound calling name for the account.

" + } + }, + "CallingNameStatus": { + "base": null, + "refs": { + "PhoneNumber$CallingNameStatus": "

The outbound calling name status.

" + } + }, "CallingRegion": { "base": null, "refs": { @@ -226,7 +273,7 @@ "CallingRegionList": { "base": null, "refs": { - "Termination$CallingRegions": "

The countries to which calls are allowed.

" + "Termination$CallingRegions": "

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.

" } }, "ConflictException": { @@ -270,6 +317,16 @@ "refs": { } }, + "CreateVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateVoiceConnectorGroupResponse": { + "base": null, + "refs": { + } + }, "CreateVoiceConnectorRequest": { "base": null, "refs": { @@ -292,6 +349,12 @@ "PutVoiceConnectorTerminationCredentialsRequest$Credentials": "

The termination SIP credentials.

" } }, + "DataRetentionInHours": { + "base": null, + "refs": { + "StreamingConfiguration$DataRetentionInHours": "

The retention period for the Amazon Kinesis data, in hours.

" + } + }, "DeleteAccountRequest": { "base": null, "refs": { @@ -312,6 +375,11 @@ "refs": { } }, + "DeleteVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, "DeleteVoiceConnectorOriginationRequest": { "base": null, "refs": { @@ -322,6 +390,11 @@ "refs": { } }, + "DeleteVoiceConnectorStreamingConfigurationRequest": { + "base": null, + "refs": { + } + }, "DeleteVoiceConnectorTerminationCredentialsRequest": { "base": null, "refs": { @@ -342,6 +415,16 @@ "refs": { } }, + "DisassociatePhoneNumbersFromVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, + "DisassociatePhoneNumbersFromVoiceConnectorGroupResponse": { + "base": null, + "refs": { + } + }, "DisassociatePhoneNumbersFromVoiceConnectorRequest": { "base": null, "refs": { @@ -365,8 +448,10 @@ "E164PhoneNumberList": { "base": null, "refs": { + "AssociatePhoneNumbersWithVoiceConnectorGroupRequest$E164PhoneNumbers": "

List of phone numbers, in E.164 format.

", "AssociatePhoneNumbersWithVoiceConnectorRequest$E164PhoneNumbers": "

List of phone numbers, in E.164 format.

", "CreatePhoneNumberOrderRequest$E164PhoneNumbers": "

List of phone numbers, in E.164 format.

", + "DisassociatePhoneNumbersFromVoiceConnectorGroupRequest$E164PhoneNumbers": "

List of phone numbers, in E.164 format.

", "DisassociatePhoneNumbersFromVoiceConnectorRequest$E164PhoneNumbers": "

List of phone numbers, in E.164 format.

", "SearchAvailablePhoneNumbersResponse$E164PhoneNumbers": "

List of phone numbers, in E.164 format.

" } @@ -390,6 +475,7 @@ "ErrorCode": { "base": null, "refs": { + "AccessDeniedException$Code": null, "BadRequestException$Code": null, "ConflictException$Code": null, "ForbiddenException$Code": null, @@ -481,6 +567,11 @@ "refs": { } }, + "GetPhoneNumberSettingsResponse": { + "base": null, + "refs": { + } + }, "GetUserRequest": { "base": null, "refs": { @@ -501,6 +592,26 @@ "refs": { } }, + "GetVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, + "GetVoiceConnectorGroupResponse": { + "base": null, + "refs": { + } + }, + "GetVoiceConnectorLoggingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetVoiceConnectorLoggingConfigurationResponse": { + "base": null, + "refs": { + } + }, "GetVoiceConnectorOriginationRequest": { "base": null, "refs": { @@ -521,6 +632,16 @@ "refs": { } }, + "GetVoiceConnectorStreamingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetVoiceConnectorStreamingConfigurationResponse": { + "base": null, + "refs": { + } + }, "GetVoiceConnectorTerminationHealthRequest": { "base": null, "refs": { @@ -583,6 +704,7 @@ "Account$CreatedTimestamp": "

The Amazon Chime account creation timestamp, in ISO 8601 format.

", "Bot$CreatedTimestamp": "

The bot creation timestamp, in ISO 8601 format.

", "Bot$UpdatedTimestamp": "

The updated bot timestamp, in ISO 8601 format.

", + "GetPhoneNumberSettingsResponse$CallingNameUpdatedTimestamp": "

The updated outbound calling name timestamp, in ISO 8601 format.

", "PhoneNumber$CreatedTimestamp": "

The phone number creation timestamp, in ISO 8601 format.

", "PhoneNumber$UpdatedTimestamp": "

The updated phone number timestamp, in ISO 8601 format.

", "PhoneNumber$DeletionTimestamp": "

The deleted phone number timestamp, in ISO 8601 format.

", @@ -593,7 +715,9 @@ "User$RegisteredOn": "

Date and time when the user is registered, in ISO 8601 format.

", "User$InvitedOn": "

Date and time when the user is invited to the Amazon Chime account, in ISO 8601 format.

", "VoiceConnector$CreatedTimestamp": "

The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format.

", - "VoiceConnector$UpdatedTimestamp": "

The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.

" + "VoiceConnector$UpdatedTimestamp": "

The updated Amazon Chime Voice Connector timestamp, in ISO 8601 format.

", + "VoiceConnectorGroup$CreatedTimestamp": "

The Amazon Chime Voice Connector group creation timestamp, in ISO 8601 format.

", + "VoiceConnectorGroup$UpdatedTimestamp": "

The updated Amazon Chime Voice Connector group timestamp, in ISO 8601 format.

" } }, "License": { @@ -662,6 +786,16 @@ "refs": { } }, + "ListVoiceConnectorGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListVoiceConnectorGroupsResponse": { + "base": null, + "refs": { + } + }, "ListVoiceConnectorTerminationCredentialsRequest": { "base": null, "refs": { @@ -682,6 +816,14 @@ "refs": { } }, + "LoggingConfiguration": { + "base": "

The logging configuration associated with an Amazon Chime Voice Connector. Specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.

", + "refs": { + "GetVoiceConnectorLoggingConfigurationResponse$LoggingConfiguration": "

The logging configuration details.

", + "PutVoiceConnectorLoggingConfigurationRequest$LoggingConfiguration": "

The logging configuration details to add.

", + "PutVoiceConnectorLoggingConfigurationResponse$LoggingConfiguration": "

The updated logging configuration details.

" + } + }, "LogoutUserRequest": { "base": null, "refs": { @@ -695,6 +837,7 @@ "NonEmptyString": { "base": null, "refs": { + "AssociatePhoneNumbersWithVoiceConnectorGroupRequest$VoiceConnectorGroupId": "

The Amazon Chime Voice Connector group ID.

", "AssociatePhoneNumbersWithVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "BatchSuspendUserRequest$AccountId": "

The Amazon Chime account ID.

", "BatchUnsuspendUserRequest$AccountId": "

The Amazon Chime account ID.

", @@ -704,10 +847,13 @@ "DeleteAccountRequest$AccountId": "

The Amazon Chime account ID.

", "DeleteEventsConfigurationRequest$AccountId": "

The Amazon Chime account ID.

", "DeleteEventsConfigurationRequest$BotId": "

The bot ID.

", + "DeleteVoiceConnectorGroupRequest$VoiceConnectorGroupId": "

The Amazon Chime Voice Connector group ID.

", "DeleteVoiceConnectorOriginationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "DeleteVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", + "DeleteVoiceConnectorStreamingConfigurationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "DeleteVoiceConnectorTerminationCredentialsRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "DeleteVoiceConnectorTerminationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", + "DisassociatePhoneNumbersFromVoiceConnectorGroupRequest$VoiceConnectorGroupId": "

The Amazon Chime Voice Connector group ID.

", "DisassociatePhoneNumbersFromVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetAccountRequest$AccountId": "

The Amazon Chime account ID.

", "GetAccountSettingsRequest$AccountId": "

The Amazon Chime account ID.

", @@ -717,8 +863,11 @@ "GetEventsConfigurationRequest$BotId": "

The bot ID.

", "GetUserRequest$AccountId": "

The Amazon Chime account ID.

", "GetUserRequest$UserId": "

The user ID.

", + "GetVoiceConnectorGroupRequest$VoiceConnectorGroupId": "

The Amazon Chime Voice Connector group ID.

", + "GetVoiceConnectorLoggingConfigurationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetVoiceConnectorOriginationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", + "GetVoiceConnectorStreamingConfigurationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetVoiceConnectorTerminationHealthRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetVoiceConnectorTerminationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "InviteUsersRequest$AccountId": "

The Amazon Chime account ID.

", @@ -730,7 +879,9 @@ "PhoneNumberError$PhoneNumberId": "

The phone number ID for which the action failed.

", "PutEventsConfigurationRequest$AccountId": "

The Amazon Chime account ID.

", "PutEventsConfigurationRequest$BotId": "

The bot ID.

", + "PutVoiceConnectorLoggingConfigurationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "PutVoiceConnectorOriginationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", + "PutVoiceConnectorStreamingConfigurationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "PutVoiceConnectorTerminationCredentialsRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "PutVoiceConnectorTerminationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "RegenerateSecurityTokenRequest$AccountId": "

The Amazon Chime account ID.

", @@ -746,10 +897,13 @@ "UpdateUserRequest$AccountId": "

The Amazon Chime account ID.

", "UpdateUserRequest$UserId": "

The user ID.

", "UpdateUserRequestItem$UserId": "

The user ID.

", + "UpdateVoiceConnectorGroupRequest$VoiceConnectorGroupId": "

The Amazon Chime Voice Connector group ID.

", "UpdateVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "UserError$UserId": "

The user ID for which the action failed.

", "UserIdList$member": null, - "VoiceConnector$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

" + "VoiceConnector$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", + "VoiceConnectorGroup$VoiceConnectorGroupId": "

The Amazon Chime Voice Connector group ID.

", + "VoiceConnectorItem$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

" } }, "NonEmptyStringList": { @@ -766,6 +920,8 @@ "NullableBoolean": { "base": null, "refs": { + "AssociatePhoneNumbersWithVoiceConnectorGroupRequest$ForceAssociate": "

If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector Group and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.

", + "AssociatePhoneNumbersWithVoiceConnectorRequest$ForceAssociate": "

If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.

", "Bot$Disabled": "

When true, the bot is stopped from running in your account.

", "PhoneNumberCapabilities$InboundCall": "

Allows or denies inbound calling for the specified phone number.

", "PhoneNumberCapabilities$OutboundCall": "

Allows or denies outbound calling for the specified phone number.

", @@ -803,7 +959,7 @@ } }, "OriginationRoute": { - "base": "

Origination routes define call distribution properties for your SIP hosts to receive inbound calls using your Amazon Chime Voice Connector. Limit: 10 origination routes per Amazon Chime Voice Connector.

", + "base": "

Origination routes define call distribution properties for your SIP hosts to receive inbound calls using your Amazon Chime Voice Connector. Limit: Ten origination routes for each Amazon Chime Voice Connector.

", "refs": { "OriginationRouteList$member": null } @@ -842,7 +998,7 @@ } }, "PhoneNumberAssociation": { - "base": "

The phone number associations, such as Amazon Chime account ID, Amazon Chime user ID, or Amazon Chime Voice Connector ID.

", + "base": "

The phone number associations, such as Amazon Chime account ID, Amazon Chime user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector group ID.

", "refs": { "PhoneNumberAssociationList$member": null } @@ -857,11 +1013,11 @@ "base": null, "refs": { "ListPhoneNumbersRequest$FilterName": "

The filter to use to limit the number of results.

", - "PhoneNumberAssociation$Name": "

Defines the association with an Amazon Chime account ID, user ID, or Amazon Chime Voice Connector ID.

" + "PhoneNumberAssociation$Name": "

Defines the association with an Amazon Chime account ID, user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector group ID.

" } }, "PhoneNumberCapabilities": { - "base": "

The phone number capabilities, such as enabled inbound and outbound calling and text messaging.

", + "base": "

The phone number capabilities for Amazon Chime Business Calling phone numbers, such as enabled inbound and outbound calling and text messaging.

", "refs": { "PhoneNumber$Capabilities": "

The phone number capabilities.

" } @@ -875,9 +1031,11 @@ "PhoneNumberErrorList": { "base": null, "refs": { + "AssociatePhoneNumbersWithVoiceConnectorGroupResponse$PhoneNumberErrors": "

If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.

", "AssociatePhoneNumbersWithVoiceConnectorResponse$PhoneNumberErrors": "

If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.

", "BatchDeletePhoneNumberResponse$PhoneNumberErrors": "

If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.

", "BatchUpdatePhoneNumberResponse$PhoneNumberErrors": "

If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.

", + "DisassociatePhoneNumbersFromVoiceConnectorGroupResponse$PhoneNumberErrors": "

If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.

", "DisassociatePhoneNumbersFromVoiceConnectorResponse$PhoneNumberErrors": "

If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.

" } }, @@ -960,6 +1118,16 @@ "refs": { } }, + "PutVoiceConnectorLoggingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "PutVoiceConnectorLoggingConfigurationResponse": { + "base": null, + "refs": { + } + }, "PutVoiceConnectorOriginationRequest": { "base": null, "refs": { @@ -970,6 +1138,16 @@ "refs": { } }, + "PutVoiceConnectorStreamingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "PutVoiceConnectorStreamingConfigurationResponse": { + "base": null, + "refs": { + } + }, "PutVoiceConnectorTerminationCredentialsRequest": { "base": null, "refs": { @@ -1032,6 +1210,7 @@ "ListBotsRequest$MaxResults": "

The maximum number of results to return in a single call. Default is 10.

", "ListPhoneNumberOrdersRequest$MaxResults": "

The maximum number of results to return in a single call.

", "ListPhoneNumbersRequest$MaxResults": "

The maximum number of results to return in a single call.

", + "ListVoiceConnectorGroupsRequest$MaxResults": "

The maximum number of results to return in a single call.

", "ListVoiceConnectorsRequest$MaxResults": "

The maximum number of results to return in a single call.

" } }, @@ -1080,9 +1259,18 @@ "refs": { } }, + "StreamingConfiguration": { + "base": "

The streaming configuration associated with an Amazon Chime Voice Connector. Specifies whether media streaming is enabled for sending to Amazon Kinesis, and shows the retention period for the Amazon Kinesis data, in hours.

", + "refs": { + "GetVoiceConnectorStreamingConfigurationResponse$StreamingConfiguration": "

The streaming configuration details.

", + "PutVoiceConnectorStreamingConfigurationRequest$StreamingConfiguration": "

The streaming configuration details to add.

", + "PutVoiceConnectorStreamingConfigurationResponse$StreamingConfiguration": "

The updated streaming configuration details.

" + } + }, "String": { "base": null, "refs": { + "AccessDeniedException$Message": null, "Account$AwsAccountId": "

The AWS account ID.

", "Account$AccountId": "

The Amazon Chime account ID.

", "Account$Name": "

The Amazon Chime account name.

", @@ -1113,11 +1301,13 @@ "ListPhoneNumbersResponse$NextToken": "

The token to use to retrieve the next page of results.

", "ListUsersRequest$NextToken": "

The token to use to retrieve the next page of results.

", "ListUsersResponse$NextToken": "

The token to use to retrieve the next page of results.

", + "ListVoiceConnectorGroupsRequest$NextToken": "

The token to use to retrieve the next page of results.

", + "ListVoiceConnectorGroupsResponse$NextToken": "

The token to use to retrieve the next page of results.

", "ListVoiceConnectorsRequest$NextToken": "

The token to use to retrieve the next page of results.

", "ListVoiceConnectorsResponse$NextToken": "

The token to use to retrieve the next page of results.

", "NonEmptyStringList$member": null, "NotFoundException$Message": null, - "OriginationRoute$Host": "

The FODN or IP address to contact for origination traffic.

", + "OriginationRoute$Host": "

The FQDN or IP address to contact for origination traffic.

", "PhoneNumber$PhoneNumberId": "

The phone number ID.

", "PhoneNumberAssociation$Value": "

Contains the ID for the entity specified in Name.

", "PhoneNumberError$ErrorMessage": "

The error message.

", @@ -1148,7 +1338,7 @@ "StringList": { "base": null, "refs": { - "Termination$CidrAllowedList": "

The IP addresses allowed to make calls, in CIDR format.

" + "Termination$CidrAllowedList": "

The IP addresses allowed to make calls, in CIDR format. Required.

" } }, "TelephonySettings": { @@ -1233,7 +1423,7 @@ } }, "UpdatePhoneNumberRequestItem": { - "base": "

The phone number ID and product type fields to update, used with the BatchUpdatePhoneNumber and UpdatePhoneNumber actions.

", + "base": "

The phone number ID, product type, or calling name fields to update, used with the BatchUpdatePhoneNumber and UpdatePhoneNumber actions.

", "refs": { "UpdatePhoneNumberRequestItemList$member": null } @@ -1241,7 +1431,7 @@ "UpdatePhoneNumberRequestItemList": { "base": null, "refs": { - "BatchUpdatePhoneNumberRequest$UpdatePhoneNumberRequestItems": "

The request containing the phone number IDs and product types to update.

" + "BatchUpdatePhoneNumberRequest$UpdatePhoneNumberRequestItems": "

The request containing the phone number IDs and product types or calling names to update.

" } }, "UpdatePhoneNumberResponse": { @@ -1249,6 +1439,11 @@ "refs": { } }, + "UpdatePhoneNumberSettingsRequest": { + "base": null, + "refs": { + } + }, "UpdateUserRequest": { "base": null, "refs": { @@ -1276,6 +1471,16 @@ "refs": { } }, + "UpdateVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateVoiceConnectorGroupResponse": { + "base": null, + "refs": { + } + }, "UpdateVoiceConnectorRequest": { "base": null, "refs": { @@ -1340,10 +1545,60 @@ "refs": { "CreateVoiceConnectorResponse$VoiceConnector": "

The Amazon Chime Voice Connector details.

", "GetVoiceConnectorResponse$VoiceConnector": "

The Amazon Chime Voice Connector details.

", - "UpdateVoiceConnectorResponse$VoiceConnector": "

The Amazon Chime Voice Connector details.

", + "UpdateVoiceConnectorResponse$VoiceConnector": "

The updated Amazon Chime Voice Connector details.

", "VoiceConnectorList$member": null } }, + "VoiceConnectorAwsRegion": { + "base": null, + "refs": { + "CreateVoiceConnectorRequest$AwsRegion": "

The AWS Region in which the Amazon Chime Voice Connector is created. Default value: us-east-1.

", + "VoiceConnector$AwsRegion": "

The AWS Region in which the Amazon Chime Voice Connector is created. Default: us-east-1.

" + } + }, + "VoiceConnectorGroup": { + "base": "

The Amazon Chime Voice Connector group configuration, including associated Amazon Chime Voice Connectors. You can include Amazon Chime Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.

", + "refs": { + "CreateVoiceConnectorGroupResponse$VoiceConnectorGroup": "

The Amazon Chime Voice Connector group details.

", + "GetVoiceConnectorGroupResponse$VoiceConnectorGroup": "

The Amazon Chime Voice Connector group details.

", + "UpdateVoiceConnectorGroupResponse$VoiceConnectorGroup": "

The updated Amazon Chime Voice Connector group details.

", + "VoiceConnectorGroupList$member": null + } + }, + "VoiceConnectorGroupList": { + "base": null, + "refs": { + "ListVoiceConnectorGroupsResponse$VoiceConnectorGroups": "

The details of the Amazon Chime Voice Connector groups.

" + } + }, + "VoiceConnectorGroupName": { + "base": null, + "refs": { + "CreateVoiceConnectorGroupRequest$Name": "

The name of the Amazon Chime Voice Connector group.

", + "UpdateVoiceConnectorGroupRequest$Name": "

The name of the Amazon Chime Voice Connector group.

", + "VoiceConnectorGroup$Name": "

The name of the Amazon Chime Voice Connector group.

" + } + }, + "VoiceConnectorItem": { + "base": "

For Amazon Chime Voice Connector groups, the Amazon Chime Voice Connectors to which to route inbound calls. Includes priority configuration settings. Limit: 3 VoiceConnectorItems per Amazon Chime Voice Connector group.

", + "refs": { + "VoiceConnectorItemList$member": null + } + }, + "VoiceConnectorItemList": { + "base": null, + "refs": { + "CreateVoiceConnectorGroupRequest$VoiceConnectorItems": "

The Amazon Chime Voice Connectors to route inbound calls to.

", + "UpdateVoiceConnectorGroupRequest$VoiceConnectorItems": "

The VoiceConnectorItems to associate with the group.

", + "VoiceConnectorGroup$VoiceConnectorItems": "

The Amazon Chime Voice Connectors to which to route inbound calls.

" + } + }, + "VoiceConnectorItemPriority": { + "base": null, + "refs": { + "VoiceConnectorItem$Priority": "

The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.

" + } + }, "VoiceConnectorList": { "base": null, "refs": { diff --git a/models/apis/chime/2018-05-01/paginators-1.json b/models/apis/chime/2018-05-01/paginators-1.json index 042c382ded..1a3a06e0cf 100644 --- a/models/apis/chime/2018-05-01/paginators-1.json +++ b/models/apis/chime/2018-05-01/paginators-1.json @@ -5,6 +5,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListBots": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListPhoneNumberOrders": { "input_token": "NextToken", "output_token": "NextToken", @@ -20,6 +25,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListVoiceConnectorGroups": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListVoiceConnectors": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index d419870012..0fc27c1f7c 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -6042,7 +6042,11 @@ "LogsStorageLocation":{"shape":"StorageLocation"}, "Description":{"shape":"String"}, "Name":{"shape":"String"}, - "ClientToken":{"shape":"String"} + "ClientToken":{"shape":"String"}, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" + } } }, "CreateFpgaImageResult":{ diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 1f2b1241e2..cb8ed5b71f 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -322,7 +322,7 @@ "PurchaseReservedInstancesOffering": "

Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", "PurchaseScheduledInstances": "

Purchases the Scheduled Instances with the specified schedule.

Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.

", "RebootInstances": "

Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

If an instance does not cleanly shut down within four minutes, Amazon EC2 performs a hard reboot.

For more information about troubleshooting, see Getting Console Output and Rebooting Instances in the Amazon Elastic Compute Cloud User Guide.

", - "RegisterImage": "

Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux Instance from a Backup in the Amazon Elastic Compute Cloud User Guide.

You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. Creating an AMI from an EBS snapshot does not maintain this billing code, and instances launched from such an AMI are not able to connect to package update infrastructure. If you purchase a Reserved Instance offering for one of these Linux distributions and launch instances using an AMI that does not contain the required billing code, your Reserved Instance is not applied to these instances.

To create an AMI for operating systems that require a billing code, see CreateImage.

If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

", + "RegisterImage": "

Registers an AMI. When you're creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating Your Own AMIs in the Amazon Elastic Compute Cloud User Guide.

For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don't have to register the AMI yourself.

You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using the block device mapping. For more information, see Launching a Linux Instance from a Backup in the Amazon Elastic Compute Cloud User Guide.

You can't register an image where a secondary (non-root) snapshot has AWS Marketplace product codes.

Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, do the following:

  1. Launch an instance from an existing AMI with that billing product code.

  2. Customize the instance.

  3. Create a new AMI from the instance using CreateImage to preserve the billing product code association.

If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance.

If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

", "RejectTransitGatewayVpcAttachment": "

Rejects a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

", "RejectVpcEndpointConnections": "

Rejects one or more VPC endpoint connection requests to your VPC endpoint service.

", "RejectVpcPeeringConnection": "

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

", @@ -8817,7 +8817,7 @@ "LaunchTemplateTagSpecificationRequest$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are instance and volume. To tag a resource after it has been created, see CreateTags.

", "SpotFleetTagSpecification$ResourceType": "

The type of resource. Currently, the only resource type that is supported is instance.

", "TagDescription$ResourceType": "

The resource type.

", - "TagSpecification$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | dedicated-host | fleet | instance | launch-template | snapshot | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume.

To tag a resource after it has been created, see CreateTags.

" + "TagSpecification$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | dedicated-host | fleet | fpga-image | instance | launch-template | snapshot | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume.

To tag a resource after it has been created, see CreateTags.

" } }, "ResponseError": { @@ -11357,6 +11357,7 @@ "CreateCapacityReservationRequest$TagSpecifications": "

The tags to apply to the Capacity Reservation during launch.

", "CreateClientVpnEndpointRequest$TagSpecifications": "

The tags to apply to the Client VPN endpoint during creation.

", "CreateFleetRequest$TagSpecifications": "

The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch template. For information about tagging after launch, see Tagging Your Resources.

", + "CreateFpgaImageRequest$TagSpecifications": "

The tags to apply to the FPGA image during creation.

", "CreateLaunchTemplateRequest$TagSpecifications": "

The tags to apply to the launch template during creation.

", "CreateSnapshotRequest$TagSpecifications": "

The tags to apply to the snapshot during creation.

", "CreateSnapshotsRequest$TagSpecifications": "

Tags to apply to every snapshot specified by the instance.

", diff --git a/models/apis/gamelift/2015-10-01/api-2.json b/models/apis/gamelift/2015-10-01/api-2.json index 1239cf7bc0..eb6edf7bba 100644 --- a/models/apis/gamelift/2015-10-01/api-2.json +++ b/models/apis/gamelift/2015-10-01/api-2.json @@ -1994,6 +1994,14 @@ "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", + "c5.large", + "c5.xlarge", + "c5.2xlarge", + "c5.4xlarge", + "c5.9xlarge", + "c5.12xlarge", + "c5.18xlarge", + "c5.24xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", @@ -2005,6 +2013,14 @@ "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", + "r5.large", + "r5.xlarge", + "r5.2xlarge", + "r5.4xlarge", + "r5.8xlarge", + "r5.12xlarge", + "r5.16xlarge", + "r5.24xlarge", "m3.medium", "m3.large", "m3.xlarge", @@ -2013,7 +2029,15 @@ "m4.xlarge", "m4.2xlarge", "m4.4xlarge", - "m4.10xlarge" + "m4.10xlarge", + "m5.large", + "m5.xlarge", + "m5.2xlarge", + "m5.4xlarge", + "m5.8xlarge", + "m5.12xlarge", + "m5.16xlarge", + "m5.24xlarge" ] }, "Event":{ @@ -2734,7 +2758,8 @@ "type":"string", "enum":[ "WINDOWS_2012", - "AMAZON_LINUX" + "AMAZON_LINUX", + "AMAZON_LINUX_2" ] }, "PlacedPlayerSession":{ diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 174ccc45e5..836675ad0f 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -3741,7 +3741,10 @@ "enum":[ "ml.eia1.medium", "ml.eia1.large", - "ml.eia1.xlarge" + "ml.eia1.xlarge", + "ml.eia2.medium", + "ml.eia2.large", + "ml.eia2.xlarge" ] }, "NotebookInstanceAcceleratorTypes":{ @@ -4048,7 +4051,10 @@ "enum":[ "ml.eia1.medium", "ml.eia1.large", - "ml.eia1.xlarge" + "ml.eia1.xlarge", + "ml.eia2.medium", + "ml.eia2.large", + "ml.eia2.xlarge" ] }, "ProductionVariantInstanceType":{ @@ -4069,6 +4075,12 @@ "ml.m5.4xlarge", "ml.m5.12xlarge", "ml.m5.24xlarge", + "ml.m5d.large", + "ml.m5d.xlarge", + "ml.m5d.2xlarge", + "ml.m5d.4xlarge", + "ml.m5d.12xlarge", + "ml.m5d.24xlarge", "ml.c4.large", "ml.c4.xlarge", "ml.c4.2xlarge", @@ -4086,6 +4098,12 @@ "ml.c5.4xlarge", "ml.c5.9xlarge", "ml.c5.18xlarge", + "ml.c5d.large", + "ml.c5d.xlarge", + "ml.c5d.2xlarge", + "ml.c5d.4xlarge", + "ml.c5d.9xlarge", + "ml.c5d.18xlarge", "ml.g4dn.xlarge", "ml.g4dn.2xlarge", "ml.g4dn.4xlarge", @@ -4097,7 +4115,13 @@ "ml.r5.2xlarge", "ml.r5.4xlarge", "ml.r5.12xlarge", - "ml.r5.24xlarge" + "ml.r5.24xlarge", + "ml.r5d.large", + "ml.r5d.xlarge", + "ml.r5d.2xlarge", + "ml.r5d.4xlarge", + "ml.r5d.12xlarge", + "ml.r5d.24xlarge" ] }, "ProductionVariantList":{ diff --git a/service/appmesh/api.go b/service/appmesh/api.go index 59daa7c77e..b9c5476838 100644 --- a/service/appmesh/api.go +++ b/service/appmesh/api.go @@ -3240,11 +3240,11 @@ func (c *AppMesh) UpdateVirtualServiceWithContext(ctx aws.Context, input *Update return out, req.Send() } -// An object representing the access logging information for a virtual node. +// An object that represents the access logging information for a virtual node. type AccessLog struct { _ struct{} `type:"structure"` - // An object representing an access log file. + // An object that represents an access log file. File *FileAccessLog `locationName:"file" type:"structure"` } @@ -3279,8 +3279,8 @@ func (s *AccessLog) SetFile(v *FileAccessLog) *AccessLog { return s } -// An object representing the AWS Cloud Map attribute information for your virtual -// node. +// An object that represents the AWS Cloud Map attribute information for your +// virtual node. type AwsCloudMapInstanceAttribute struct { _ struct{} `type:"structure"` @@ -3335,8 +3335,8 @@ func (s *AwsCloudMapInstanceAttribute) SetValue(v string) *AwsCloudMapInstanceAt return s } -// An object representing the AWS Cloud Map service discovery information for -// your virtual node. +// An object that represents the AWS Cloud Map service discovery information +// for your virtual node. type AwsCloudMapServiceDiscovery struct { _ struct{} `type:"structure"` @@ -3409,12 +3409,12 @@ func (s *AwsCloudMapServiceDiscovery) SetServiceName(v string) *AwsCloudMapServi return s } -// An object representing the backends that a virtual node is expected to send -// outbound traffic to. +// An object that represents the backends that a virtual node is expected to +// send outbound traffic to. type Backend struct { _ struct{} `type:"structure"` - // An object representing a virtual service backend for a virtual node. + // An object that represents a virtual service backend for a virtual node. VirtualService *VirtualServiceBackend `locationName:"virtualService" type:"structure"` } @@ -3457,7 +3457,7 @@ type CreateMeshInput struct { // MeshName is a required field MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a service mesh. + // An object that represents the specification of a service mesh. Spec *MeshSpec `locationName:"spec" type:"structure"` Tags []*TagRef `locationName:"tags" type:"list"` @@ -3531,7 +3531,7 @@ func (s *CreateMeshInput) SetTags(v []*TagRef) *CreateMeshInput { type CreateMeshOutput struct { _ struct{} `type:"structure" payload:"Mesh"` - // An object representing a service mesh returned by a describe operation. + // An object that represents a service mesh returned by a describe operation. // // Mesh is a required field Mesh *MeshData `locationName:"mesh" type:"structure" required:"true"` @@ -3564,7 +3564,7 @@ type CreateRouteInput struct { // RouteName is a required field RouteName *string `locationName:"routeName" min:"1" type:"string" required:"true"` - // An object representing the specification of a route. + // An object that represents a route specification. Specify one route type. // // Spec is a required field Spec *RouteSpec `locationName:"spec" type:"structure" required:"true"` @@ -3670,7 +3670,7 @@ func (s *CreateRouteInput) SetVirtualRouterName(v string) *CreateRouteInput { type CreateRouteOutput struct { _ struct{} `type:"structure" payload:"Route"` - // An object representing a route returned by a describe operation. + // An object that represents a route returned by a describe operation. // // Route is a required field Route *RouteData `locationName:"route" type:"structure" required:"true"` @@ -3700,7 +3700,7 @@ type CreateVirtualNodeInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a virtual node. + // An object that represents the specification of a virtual node. // // Spec is a required field Spec *VirtualNodeSpec `locationName:"spec" type:"structure" required:"true"` @@ -3794,7 +3794,7 @@ func (s *CreateVirtualNodeInput) SetVirtualNodeName(v string) *CreateVirtualNode type CreateVirtualNodeOutput struct { _ struct{} `type:"structure" payload:"VirtualNode"` - // An object representing a virtual node returned by a describe operation. + // An object that represents a virtual node returned by a describe operation. // // VirtualNode is a required field VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure" required:"true"` @@ -3824,7 +3824,7 @@ type CreateVirtualRouterInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a virtual router. + // An object that represents the specification of a virtual router. // // Spec is a required field Spec *VirtualRouterSpec `locationName:"spec" type:"structure" required:"true"` @@ -3918,7 +3918,7 @@ func (s *CreateVirtualRouterInput) SetVirtualRouterName(v string) *CreateVirtual type CreateVirtualRouterOutput struct { _ struct{} `type:"structure" payload:"VirtualRouter"` - // An object representing a virtual router returned by a describe operation. + // An object that represents a virtual router returned by a describe operation. // // VirtualRouter is a required field VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure" required:"true"` @@ -3948,7 +3948,7 @@ type CreateVirtualServiceInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a virtual service. + // An object that represents the specification of a virtual service. // // Spec is a required field Spec *VirtualServiceSpec `locationName:"spec" type:"structure" required:"true"` @@ -4039,7 +4039,7 @@ func (s *CreateVirtualServiceInput) SetVirtualServiceName(v string) *CreateVirtu type CreateVirtualServiceOutput struct { _ struct{} `type:"structure" payload:"VirtualService"` - // An object representing a virtual service returned by a describe operation. + // An object that represents a virtual service returned by a describe operation. // // VirtualService is a required field VirtualService *VirtualServiceData `locationName:"virtualService" type:"structure" required:"true"` @@ -4103,7 +4103,7 @@ func (s *DeleteMeshInput) SetMeshName(v string) *DeleteMeshInput { type DeleteMeshOutput struct { _ struct{} `type:"structure" payload:"Mesh"` - // An object representing a service mesh returned by a describe operation. + // An object that represents a service mesh returned by a describe operation. // // Mesh is a required field Mesh *MeshData `locationName:"mesh" type:"structure" required:"true"` @@ -4197,7 +4197,7 @@ func (s *DeleteRouteInput) SetVirtualRouterName(v string) *DeleteRouteInput { type DeleteRouteOutput struct { _ struct{} `type:"structure" payload:"Route"` - // An object representing a route returned by a describe operation. + // An object that represents a route returned by a describe operation. // // Route is a required field Route *RouteData `locationName:"route" type:"structure" required:"true"` @@ -4276,7 +4276,7 @@ func (s *DeleteVirtualNodeInput) SetVirtualNodeName(v string) *DeleteVirtualNode type DeleteVirtualNodeOutput struct { _ struct{} `type:"structure" payload:"VirtualNode"` - // An object representing a virtual node returned by a describe operation. + // An object that represents a virtual node returned by a describe operation. // // VirtualNode is a required field VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure" required:"true"` @@ -4355,7 +4355,7 @@ func (s *DeleteVirtualRouterInput) SetVirtualRouterName(v string) *DeleteVirtual type DeleteVirtualRouterOutput struct { _ struct{} `type:"structure" payload:"VirtualRouter"` - // An object representing a virtual router returned by a describe operation. + // An object that represents a virtual router returned by a describe operation. // // VirtualRouter is a required field VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure" required:"true"` @@ -4434,7 +4434,7 @@ func (s *DeleteVirtualServiceInput) SetVirtualServiceName(v string) *DeleteVirtu type DeleteVirtualServiceOutput struct { _ struct{} `type:"structure" payload:"VirtualService"` - // An object representing a virtual service returned by a describe operation. + // An object that represents a virtual service returned by a describe operation. // // VirtualService is a required field VirtualService *VirtualServiceData `locationName:"virtualService" type:"structure" required:"true"` @@ -4498,7 +4498,7 @@ func (s *DescribeMeshInput) SetMeshName(v string) *DescribeMeshInput { type DescribeMeshOutput struct { _ struct{} `type:"structure" payload:"Mesh"` - // An object representing a service mesh returned by a describe operation. + // An object that represents a service mesh returned by a describe operation. // // Mesh is a required field Mesh *MeshData `locationName:"mesh" type:"structure" required:"true"` @@ -4592,7 +4592,7 @@ func (s *DescribeRouteInput) SetVirtualRouterName(v string) *DescribeRouteInput type DescribeRouteOutput struct { _ struct{} `type:"structure" payload:"Route"` - // An object representing a route returned by a describe operation. + // An object that represents a route returned by a describe operation. // // Route is a required field Route *RouteData `locationName:"route" type:"structure" required:"true"` @@ -4671,7 +4671,7 @@ func (s *DescribeVirtualNodeInput) SetVirtualNodeName(v string) *DescribeVirtual type DescribeVirtualNodeOutput struct { _ struct{} `type:"structure" payload:"VirtualNode"` - // An object representing a virtual node returned by a describe operation. + // An object that represents a virtual node returned by a describe operation. // // VirtualNode is a required field VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure" required:"true"` @@ -4750,7 +4750,7 @@ func (s *DescribeVirtualRouterInput) SetVirtualRouterName(v string) *DescribeVir type DescribeVirtualRouterOutput struct { _ struct{} `type:"structure" payload:"VirtualRouter"` - // An object representing a virtual router returned by a describe operation. + // An object that represents a virtual router returned by a describe operation. // // VirtualRouter is a required field VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure" required:"true"` @@ -4829,7 +4829,7 @@ func (s *DescribeVirtualServiceInput) SetVirtualServiceName(v string) *DescribeV type DescribeVirtualServiceOutput struct { _ struct{} `type:"structure" payload:"VirtualService"` - // An object representing a virtual service returned by a describe operation. + // An object that represents a virtual service returned by a describe operation. // // VirtualService is a required field VirtualService *VirtualServiceData `locationName:"virtualService" type:"structure" required:"true"` @@ -4851,8 +4851,8 @@ func (s *DescribeVirtualServiceOutput) SetVirtualService(v *VirtualServiceData) return s } -// An object representing the DNS service discovery information for your virtual -// node. +// An object that represents the DNS service discovery information for your +// virtual node. type DnsServiceDiscovery struct { _ struct{} `type:"structure"` @@ -4889,7 +4889,7 @@ func (s *DnsServiceDiscovery) SetHostname(v string) *DnsServiceDiscovery { return s } -// An object representing the duration between retry attempts. +// An object that represents a duration of time. type Duration struct { _ struct{} `type:"structure"` @@ -4920,7 +4920,7 @@ func (s *Duration) SetValue(v int64) *Duration { return s } -// An object representing the egress filter rules for a service mesh. +// An object that represents the egress filter rules for a service mesh. type EgressFilter struct { _ struct{} `type:"structure"` @@ -4957,7 +4957,7 @@ func (s *EgressFilter) SetType(v string) *EgressFilter { return s } -// An object representing an access log file. +// An object that represents an access log file. type FileAccessLog struct { _ struct{} `type:"structure"` @@ -4997,8 +4997,436 @@ func (s *FileAccessLog) SetPath(v string) *FileAccessLog { return s } -// An object representing the method and value to match the header value sent -// with a request. Specify one match method. +// An object that represents a retry policy. Specify at least one value for +// at least one of the types of RetryEvents, a value for maxRetries, and a value +// for perRetryTimeout. +type GrpcRetryPolicy struct { + _ struct{} `type:"structure"` + + GrpcRetryEvents []*string `locationName:"grpcRetryEvents" min:"1" type:"list"` + + HttpRetryEvents []*string `locationName:"httpRetryEvents" min:"1" type:"list"` + + // MaxRetries is a required field + MaxRetries *int64 `locationName:"maxRetries" type:"long" required:"true"` + + // An object that represents a duration of time. + // + // PerRetryTimeout is a required field + PerRetryTimeout *Duration `locationName:"perRetryTimeout" type:"structure" required:"true"` + + TcpRetryEvents []*string `locationName:"tcpRetryEvents" min:"1" type:"list"` +} + +// String returns the string representation +func (s GrpcRetryPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrpcRetryPolicy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrpcRetryPolicy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrpcRetryPolicy"} + if s.GrpcRetryEvents != nil && len(s.GrpcRetryEvents) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GrpcRetryEvents", 1)) + } + if s.HttpRetryEvents != nil && len(s.HttpRetryEvents) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpRetryEvents", 1)) + } + if s.MaxRetries == nil { + invalidParams.Add(request.NewErrParamRequired("MaxRetries")) + } + if s.PerRetryTimeout == nil { + invalidParams.Add(request.NewErrParamRequired("PerRetryTimeout")) + } + if s.TcpRetryEvents != nil && len(s.TcpRetryEvents) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TcpRetryEvents", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGrpcRetryEvents sets the GrpcRetryEvents field's value. +func (s *GrpcRetryPolicy) SetGrpcRetryEvents(v []*string) *GrpcRetryPolicy { + s.GrpcRetryEvents = v + return s +} + +// SetHttpRetryEvents sets the HttpRetryEvents field's value. +func (s *GrpcRetryPolicy) SetHttpRetryEvents(v []*string) *GrpcRetryPolicy { + s.HttpRetryEvents = v + return s +} + +// SetMaxRetries sets the MaxRetries field's value. +func (s *GrpcRetryPolicy) SetMaxRetries(v int64) *GrpcRetryPolicy { + s.MaxRetries = &v + return s +} + +// SetPerRetryTimeout sets the PerRetryTimeout field's value. +func (s *GrpcRetryPolicy) SetPerRetryTimeout(v *Duration) *GrpcRetryPolicy { + s.PerRetryTimeout = v + return s +} + +// SetTcpRetryEvents sets the TcpRetryEvents field's value. +func (s *GrpcRetryPolicy) SetTcpRetryEvents(v []*string) *GrpcRetryPolicy { + s.TcpRetryEvents = v + return s +} + +// An object that represents a GRPC route type. +type GrpcRoute struct { + _ struct{} `type:"structure"` + + // An object that represents the action to take if a match is determined. + // + // Action is a required field + Action *GrpcRouteAction `locationName:"action" type:"structure" required:"true"` + + // An object that represents the criteria for determining a request match. + // + // Match is a required field + Match *GrpcRouteMatch `locationName:"match" type:"structure" required:"true"` + + // An object that represents a retry policy. Specify at least one value for + // at least one of the types of RetryEvents, a value for maxRetries, and a value + // for perRetryTimeout. + RetryPolicy *GrpcRetryPolicy `locationName:"retryPolicy" type:"structure"` +} + +// String returns the string representation +func (s GrpcRoute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrpcRoute) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrpcRoute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrpcRoute"} + if s.Action == nil { + invalidParams.Add(request.NewErrParamRequired("Action")) + } + if s.Match == nil { + invalidParams.Add(request.NewErrParamRequired("Match")) + } + if s.Action != nil { + if err := s.Action.Validate(); err != nil { + invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) + } + } + if s.Match != nil { + if err := s.Match.Validate(); err != nil { + invalidParams.AddNested("Match", err.(request.ErrInvalidParams)) + } + } + if s.RetryPolicy != nil { + if err := s.RetryPolicy.Validate(); err != nil { + invalidParams.AddNested("RetryPolicy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *GrpcRoute) SetAction(v *GrpcRouteAction) *GrpcRoute { + s.Action = v + return s +} + +// SetMatch sets the Match field's value. +func (s *GrpcRoute) SetMatch(v *GrpcRouteMatch) *GrpcRoute { + s.Match = v + return s +} + +// SetRetryPolicy sets the RetryPolicy field's value. +func (s *GrpcRoute) SetRetryPolicy(v *GrpcRetryPolicy) *GrpcRoute { + s.RetryPolicy = v + return s +} + +// An object that represents the action to take if a match is determined. +type GrpcRouteAction struct { + _ struct{} `type:"structure"` + + // WeightedTargets is a required field + WeightedTargets []*WeightedTarget `locationName:"weightedTargets" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s GrpcRouteAction) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrpcRouteAction) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrpcRouteAction) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrpcRouteAction"} + if s.WeightedTargets == nil { + invalidParams.Add(request.NewErrParamRequired("WeightedTargets")) + } + if s.WeightedTargets != nil && len(s.WeightedTargets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WeightedTargets", 1)) + } + if s.WeightedTargets != nil { + for i, v := range s.WeightedTargets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "WeightedTargets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWeightedTargets sets the WeightedTargets field's value. +func (s *GrpcRouteAction) SetWeightedTargets(v []*WeightedTarget) *GrpcRouteAction { + s.WeightedTargets = v + return s +} + +// An object that represents the criteria for determining a request match. +type GrpcRouteMatch struct { + _ struct{} `type:"structure"` + + Metadata []*GrpcRouteMetadata `locationName:"metadata" min:"1" type:"list"` + + MethodName *string `locationName:"methodName" min:"1" type:"string"` + + ServiceName *string `locationName:"serviceName" type:"string"` +} + +// String returns the string representation +func (s GrpcRouteMatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrpcRouteMatch) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrpcRouteMatch) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrpcRouteMatch"} + if s.Metadata != nil && len(s.Metadata) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Metadata", 1)) + } + if s.MethodName != nil && len(*s.MethodName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MethodName", 1)) + } + if s.Metadata != nil { + for i, v := range s.Metadata { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Metadata", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetadata sets the Metadata field's value. +func (s *GrpcRouteMatch) SetMetadata(v []*GrpcRouteMetadata) *GrpcRouteMatch { + s.Metadata = v + return s +} + +// SetMethodName sets the MethodName field's value. +func (s *GrpcRouteMatch) SetMethodName(v string) *GrpcRouteMatch { + s.MethodName = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *GrpcRouteMatch) SetServiceName(v string) *GrpcRouteMatch { + s.ServiceName = &v + return s +} + +// An object that represents the match metadata for the route. +type GrpcRouteMetadata struct { + _ struct{} `type:"structure"` + + Invert *bool `locationName:"invert" type:"boolean"` + + // An object that represents the match method. Specify one of the match values. + Match *GrpcRouteMetadataMatchMethod `locationName:"match" type:"structure"` + + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GrpcRouteMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrpcRouteMetadata) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrpcRouteMetadata) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrpcRouteMetadata"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Match != nil { + if err := s.Match.Validate(); err != nil { + invalidParams.AddNested("Match", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInvert sets the Invert field's value. +func (s *GrpcRouteMetadata) SetInvert(v bool) *GrpcRouteMetadata { + s.Invert = &v + return s +} + +// SetMatch sets the Match field's value. +func (s *GrpcRouteMetadata) SetMatch(v *GrpcRouteMetadataMatchMethod) *GrpcRouteMetadata { + s.Match = v + return s +} + +// SetName sets the Name field's value. +func (s *GrpcRouteMetadata) SetName(v string) *GrpcRouteMetadata { + s.Name = &v + return s +} + +// An object that represents the match method. Specify one of the match values. +type GrpcRouteMetadataMatchMethod struct { + _ struct{} `type:"structure"` + + Exact *string `locationName:"exact" min:"1" type:"string"` + + Prefix *string `locationName:"prefix" min:"1" type:"string"` + + // An object that represents the range of values to match on. The first character + // of the range is included in the range, though the last character is not. + // For example, if the range specified were 1-100, only values 1-99 would be + // matched. + Range *MatchRange `locationName:"range" type:"structure"` + + Regex *string `locationName:"regex" min:"1" type:"string"` + + Suffix *string `locationName:"suffix" min:"1" type:"string"` +} + +// String returns the string representation +func (s GrpcRouteMetadataMatchMethod) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrpcRouteMetadataMatchMethod) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrpcRouteMetadataMatchMethod) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrpcRouteMetadataMatchMethod"} + if s.Exact != nil && len(*s.Exact) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Exact", 1)) + } + if s.Prefix != nil && len(*s.Prefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Prefix", 1)) + } + if s.Regex != nil && len(*s.Regex) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Regex", 1)) + } + if s.Suffix != nil && len(*s.Suffix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Suffix", 1)) + } + if s.Range != nil { + if err := s.Range.Validate(); err != nil { + invalidParams.AddNested("Range", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExact sets the Exact field's value. +func (s *GrpcRouteMetadataMatchMethod) SetExact(v string) *GrpcRouteMetadataMatchMethod { + s.Exact = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *GrpcRouteMetadataMatchMethod) SetPrefix(v string) *GrpcRouteMetadataMatchMethod { + s.Prefix = &v + return s +} + +// SetRange sets the Range field's value. +func (s *GrpcRouteMetadataMatchMethod) SetRange(v *MatchRange) *GrpcRouteMetadataMatchMethod { + s.Range = v + return s +} + +// SetRegex sets the Regex field's value. +func (s *GrpcRouteMetadataMatchMethod) SetRegex(v string) *GrpcRouteMetadataMatchMethod { + s.Regex = &v + return s +} + +// SetSuffix sets the Suffix field's value. +func (s *GrpcRouteMetadataMatchMethod) SetSuffix(v string) *GrpcRouteMetadataMatchMethod { + s.Suffix = &v + return s +} + +// An object that represents the method and value to match with the header value +// sent in a request. Specify one match method. type HeaderMatchMethod struct { _ struct{} `type:"structure"` @@ -5006,9 +5434,10 @@ type HeaderMatchMethod struct { Prefix *string `locationName:"prefix" min:"1" type:"string"` - // The range of values to match on. The first character of the range is included - // in the range, though the last character is not. For example, if the range - // specified were 1-100, only values 1-99 would be matched. + // An object that represents the range of values to match on. The first character + // of the range is included in the range, though the last character is not. + // For example, if the range specified were 1-100, only values 1-99 would be + // matched. Range *MatchRange `locationName:"range" type:"structure"` Regex *string `locationName:"regex" min:"1" type:"string"` @@ -5083,7 +5512,7 @@ func (s *HeaderMatchMethod) SetSuffix(v string) *HeaderMatchMethod { return s } -// An object representing the health check policy for a virtual node's listener. +// An object that represents the health check policy for a virtual node's listener. type HealthCheckPolicy struct { _ struct{} `type:"structure"` @@ -5199,7 +5628,9 @@ func (s *HealthCheckPolicy) SetUnhealthyThreshold(v int64) *HealthCheckPolicy { return s } -// An object that represents a retry policy. +// An object that represents a retry policy. Specify at least one value for +// at least one of the types of RetryEvents, a value for maxRetries, and a value +// for perRetryTimeout. type HttpRetryPolicy struct { _ struct{} `type:"structure"` @@ -5208,7 +5639,7 @@ type HttpRetryPolicy struct { // MaxRetries is a required field MaxRetries *int64 `locationName:"maxRetries" type:"long" required:"true"` - // An object representing the duration between retry attempts. + // An object that represents a duration of time. // // PerRetryTimeout is a required field PerRetryTimeout *Duration `locationName:"perRetryTimeout" type:"structure" required:"true"` @@ -5272,23 +5703,24 @@ func (s *HttpRetryPolicy) SetTcpRetryEvents(v []*string) *HttpRetryPolicy { return s } -// An object representing the HTTP routing specification for a route. +// An object that represents an HTTP or HTTP2 route type. type HttpRoute struct { _ struct{} `type:"structure"` - // An object representing the traffic distribution requirements for matched - // HTTP requests. + // An object that represents the action to take if a match is determined. // // Action is a required field Action *HttpRouteAction `locationName:"action" type:"structure" required:"true"` - // An object representing the requirements for a route to match HTTP requests + // An object that represents the requirements for a route to match HTTP requests // for a virtual router. // // Match is a required field Match *HttpRouteMatch `locationName:"match" type:"structure" required:"true"` - // An object that represents a retry policy. + // An object that represents a retry policy. Specify at least one value for + // at least one of the types of RetryEvents, a value for maxRetries, and a value + // for perRetryTimeout. RetryPolicy *HttpRetryPolicy `locationName:"retryPolicy" type:"structure"` } @@ -5351,8 +5783,7 @@ func (s *HttpRoute) SetRetryPolicy(v *HttpRetryPolicy) *HttpRoute { return s } -// An object representing the traffic distribution requirements for matched -// HTTP requests. +// An object that represents the action to take if a match is determined. type HttpRouteAction struct { _ struct{} `type:"structure"` @@ -5402,14 +5833,14 @@ func (s *HttpRouteAction) SetWeightedTargets(v []*WeightedTarget) *HttpRouteActi return s } -// An object representing the HTTP header in the request. +// An object that represents the HTTP header in the request. type HttpRouteHeader struct { _ struct{} `type:"structure"` Invert *bool `locationName:"invert" type:"boolean"` - // An object representing the method and value to match the header value sent - // with a request. Specify one match method. + // An object that represents the method and value to match with the header value + // sent in a request. Specify one match method. Match *HeaderMatchMethod `locationName:"match" type:"structure"` // Name is a required field @@ -5465,7 +5896,7 @@ func (s *HttpRouteHeader) SetName(v string) *HttpRouteHeader { return s } -// An object representing the requirements for a route to match HTTP requests +// An object that represents the requirements for a route to match HTTP requests // for a virtual router. type HttpRouteMatch struct { _ struct{} `type:"structure"` @@ -6071,14 +6502,14 @@ func (s *ListVirtualServicesOutput) SetVirtualServices(v []*VirtualServiceRef) * return s } -// An object representing a listener for a virtual node. +// An object that represents a listener for a virtual node. type Listener struct { _ struct{} `type:"structure"` - // An object representing the health check policy for a virtual node's listener. + // An object that represents the health check policy for a virtual node's listener. HealthCheck *HealthCheckPolicy `locationName:"healthCheck" type:"structure"` - // An object representing a virtual node or virtual router listener port mapping. + // An object that represents a port mapping. // // PortMapping is a required field PortMapping *PortMapping `locationName:"portMapping" type:"structure" required:"true"` @@ -6129,11 +6560,11 @@ func (s *Listener) SetPortMapping(v *PortMapping) *Listener { return s } -// An object representing the logging information for a virtual node. +// An object that represents the logging information for a virtual node. type Logging struct { _ struct{} `type:"structure"` - // An object representing the access logging information for a virtual node. + // An object that represents the access logging information for a virtual node. AccessLog *AccessLog `locationName:"accessLog" type:"structure"` } @@ -6168,9 +6599,10 @@ func (s *Logging) SetAccessLog(v *AccessLog) *Logging { return s } -// The range of values to match on. The first character of the range is included -// in the range, though the last character is not. For example, if the range -// specified were 1-100, only values 1-99 would be matched. +// An object that represents the range of values to match on. The first character +// of the range is included in the range, though the last character is not. +// For example, if the range specified were 1-100, only values 1-99 would be +// matched. type MatchRange struct { _ struct{} `type:"structure"` @@ -6219,24 +6651,24 @@ func (s *MatchRange) SetStart(v int64) *MatchRange { return s } -// An object representing a service mesh returned by a describe operation. +// An object that represents a service mesh returned by a describe operation. type MeshData struct { _ struct{} `type:"structure"` // MeshName is a required field MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing metadata for a resource. + // An object that represents metadata for a resource. // // Metadata is a required field Metadata *ResourceMetadata `locationName:"metadata" type:"structure" required:"true"` - // An object representing the specification of a service mesh. + // An object that represents the specification of a service mesh. // // Spec is a required field Spec *MeshSpec `locationName:"spec" type:"structure" required:"true"` - // An object representing the status of a service mesh. + // An object that represents the status of a service mesh. // // Status is a required field Status *MeshStatus `locationName:"status" type:"structure" required:"true"` @@ -6276,7 +6708,7 @@ func (s *MeshData) SetStatus(v *MeshStatus) *MeshData { return s } -// An object representing a service mesh returned by a list operation. +// An object that represents a service mesh returned by a list operation. type MeshRef struct { _ struct{} `type:"structure"` @@ -6309,11 +6741,11 @@ func (s *MeshRef) SetMeshName(v string) *MeshRef { return s } -// An object representing the specification of a service mesh. +// An object that represents the specification of a service mesh. type MeshSpec struct { _ struct{} `type:"structure"` - // An object representing the egress filter rules for a service mesh. + // An object that represents the egress filter rules for a service mesh. EgressFilter *EgressFilter `locationName:"egressFilter" type:"structure"` } @@ -6348,7 +6780,7 @@ func (s *MeshSpec) SetEgressFilter(v *EgressFilter) *MeshSpec { return s } -// An object representing the status of a service mesh. +// An object that represents the status of a service mesh. type MeshStatus struct { _ struct{} `type:"structure"` @@ -6371,7 +6803,7 @@ func (s *MeshStatus) SetStatus(v string) *MeshStatus { return s } -// An object representing a virtual node or virtual router listener port mapping. +// An object that represents a port mapping. type PortMapping struct { _ struct{} `type:"structure"` @@ -6423,7 +6855,7 @@ func (s *PortMapping) SetProtocol(v string) *PortMapping { return s } -// An object representing metadata for a resource. +// An object that represents metadata for a resource. type ResourceMetadata struct { _ struct{} `type:"structure"` @@ -6483,14 +6915,14 @@ func (s *ResourceMetadata) SetVersion(v int64) *ResourceMetadata { return s } -// An object representing a route returned by a describe operation. +// An object that represents a route returned by a describe operation. type RouteData struct { _ struct{} `type:"structure"` // MeshName is a required field MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing metadata for a resource. + // An object that represents metadata for a resource. // // Metadata is a required field Metadata *ResourceMetadata `locationName:"metadata" type:"structure" required:"true"` @@ -6498,12 +6930,12 @@ type RouteData struct { // RouteName is a required field RouteName *string `locationName:"routeName" min:"1" type:"string" required:"true"` - // An object representing the specification of a route. + // An object that represents a route specification. Specify one route type. // // Spec is a required field Spec *RouteSpec `locationName:"spec" type:"structure" required:"true"` - // An object representing the current status of a route. + // An object that represents the current status of a route. // // Status is a required field Status *RouteStatus `locationName:"status" type:"structure" required:"true"` @@ -6558,7 +6990,7 @@ func (s *RouteData) SetVirtualRouterName(v string) *RouteData { return s } -// An object representing a route returned by a list operation. +// An object that represents a route returned by a list operation. type RouteRef struct { _ struct{} `type:"structure"` @@ -6609,16 +7041,22 @@ func (s *RouteRef) SetVirtualRouterName(v string) *RouteRef { return s } -// An object representing the specification of a route. +// An object that represents a route specification. Specify one route type. type RouteSpec struct { _ struct{} `type:"structure"` - // An object representing the HTTP routing specification for a route. + // An object that represents a GRPC route type. + GrpcRoute *GrpcRoute `locationName:"grpcRoute" type:"structure"` + + // An object that represents an HTTP or HTTP2 route type. + Http2Route *HttpRoute `locationName:"http2Route" type:"structure"` + + // An object that represents an HTTP or HTTP2 route type. HttpRoute *HttpRoute `locationName:"httpRoute" type:"structure"` Priority *int64 `locationName:"priority" type:"integer"` - // An object representing the TCP routing specification for a route. + // An object that represents a TCP route type. TcpRoute *TcpRoute `locationName:"tcpRoute" type:"structure"` } @@ -6635,6 +7073,16 @@ func (s RouteSpec) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *RouteSpec) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RouteSpec"} + if s.GrpcRoute != nil { + if err := s.GrpcRoute.Validate(); err != nil { + invalidParams.AddNested("GrpcRoute", err.(request.ErrInvalidParams)) + } + } + if s.Http2Route != nil { + if err := s.Http2Route.Validate(); err != nil { + invalidParams.AddNested("Http2Route", err.(request.ErrInvalidParams)) + } + } if s.HttpRoute != nil { if err := s.HttpRoute.Validate(); err != nil { invalidParams.AddNested("HttpRoute", err.(request.ErrInvalidParams)) @@ -6652,6 +7100,18 @@ func (s *RouteSpec) Validate() error { return nil } +// SetGrpcRoute sets the GrpcRoute field's value. +func (s *RouteSpec) SetGrpcRoute(v *GrpcRoute) *RouteSpec { + s.GrpcRoute = v + return s +} + +// SetHttp2Route sets the Http2Route field's value. +func (s *RouteSpec) SetHttp2Route(v *HttpRoute) *RouteSpec { + s.Http2Route = v + return s +} + // SetHttpRoute sets the HttpRoute field's value. func (s *RouteSpec) SetHttpRoute(v *HttpRoute) *RouteSpec { s.HttpRoute = v @@ -6670,7 +7130,7 @@ func (s *RouteSpec) SetTcpRoute(v *TcpRoute) *RouteSpec { return s } -// An object representing the current status of a route. +// An object that represents the current status of a route. type RouteStatus struct { _ struct{} `type:"structure"` @@ -6694,16 +7154,17 @@ func (s *RouteStatus) SetStatus(v string) *RouteStatus { return s } -// An object representing the service discovery information for a virtual node. +// An object that represents the service discovery information for a virtual +// node. type ServiceDiscovery struct { _ struct{} `type:"structure"` - // An object representing the AWS Cloud Map service discovery information for - // your virtual node. + // An object that represents the AWS Cloud Map service discovery information + // for your virtual node. AwsCloudMap *AwsCloudMapServiceDiscovery `locationName:"awsCloudMap" type:"structure"` - // An object representing the DNS service discovery information for your virtual - // node. + // An object that represents the DNS service discovery information for your + // virtual node. Dns *DnsServiceDiscovery `locationName:"dns" type:"structure"` } @@ -6872,12 +7333,11 @@ func (s TagResourceOutput) GoString() string { return s.String() } -// An object representing the TCP routing specification for a route. +// An object that represents a TCP route type. type TcpRoute struct { _ struct{} `type:"structure"` - // An object representing the traffic distribution requirements for matched - // TCP requests. + // An object that represents the action to take if a match is determined. // // Action is a required field Action *TcpRouteAction `locationName:"action" type:"structure" required:"true"` @@ -6917,8 +7377,7 @@ func (s *TcpRoute) SetAction(v *TcpRouteAction) *TcpRoute { return s } -// An object representing the traffic distribution requirements for matched -// TCP requests. +// An object that represents the action to take if a match is determined. type TcpRouteAction struct { _ struct{} `type:"structure"` @@ -7038,7 +7497,7 @@ type UpdateMeshInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a service mesh. + // An object that represents the specification of a service mesh. Spec *MeshSpec `locationName:"spec" type:"structure"` } @@ -7094,7 +7553,7 @@ func (s *UpdateMeshInput) SetSpec(v *MeshSpec) *UpdateMeshInput { type UpdateMeshOutput struct { _ struct{} `type:"structure" payload:"Mesh"` - // An object representing a service mesh returned by a describe operation. + // An object that represents a service mesh returned by a describe operation. // // Mesh is a required field Mesh *MeshData `locationName:"mesh" type:"structure" required:"true"` @@ -7127,7 +7586,7 @@ type UpdateRouteInput struct { // RouteName is a required field RouteName *string `location:"uri" locationName:"routeName" min:"1" type:"string" required:"true"` - // An object representing the specification of a route. + // An object that represents a route specification. Specify one route type. // // Spec is a required field Spec *RouteSpec `locationName:"spec" type:"structure" required:"true"` @@ -7215,7 +7674,7 @@ func (s *UpdateRouteInput) SetVirtualRouterName(v string) *UpdateRouteInput { type UpdateRouteOutput struct { _ struct{} `type:"structure" payload:"Route"` - // An object representing a route returned by a describe operation. + // An object that represents a route returned by a describe operation. // // Route is a required field Route *RouteData `locationName:"route" type:"structure" required:"true"` @@ -7245,7 +7704,7 @@ type UpdateVirtualNodeInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a virtual node. + // An object that represents the specification of a virtual node. // // Spec is a required field Spec *VirtualNodeSpec `locationName:"spec" type:"structure" required:"true"` @@ -7321,7 +7780,7 @@ func (s *UpdateVirtualNodeInput) SetVirtualNodeName(v string) *UpdateVirtualNode type UpdateVirtualNodeOutput struct { _ struct{} `type:"structure" payload:"VirtualNode"` - // An object representing a virtual node returned by a describe operation. + // An object that represents a virtual node returned by a describe operation. // // VirtualNode is a required field VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure" required:"true"` @@ -7351,7 +7810,7 @@ type UpdateVirtualRouterInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a virtual router. + // An object that represents the specification of a virtual router. // // Spec is a required field Spec *VirtualRouterSpec `locationName:"spec" type:"structure" required:"true"` @@ -7427,7 +7886,7 @@ func (s *UpdateVirtualRouterInput) SetVirtualRouterName(v string) *UpdateVirtual type UpdateVirtualRouterOutput struct { _ struct{} `type:"structure" payload:"VirtualRouter"` - // An object representing a virtual router returned by a describe operation. + // An object that represents a virtual router returned by a describe operation. // // VirtualRouter is a required field VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure" required:"true"` @@ -7457,7 +7916,7 @@ type UpdateVirtualServiceInput struct { // MeshName is a required field MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing the specification of a virtual service. + // An object that represents the specification of a virtual service. // // Spec is a required field Spec *VirtualServiceSpec `locationName:"spec" type:"structure" required:"true"` @@ -7533,7 +7992,7 @@ func (s *UpdateVirtualServiceInput) SetVirtualServiceName(v string) *UpdateVirtu type UpdateVirtualServiceOutput struct { _ struct{} `type:"structure" payload:"VirtualService"` - // An object representing a virtual service returned by a describe operation. + // An object that represents a virtual service returned by a describe operation. // // VirtualService is a required field VirtualService *VirtualServiceData `locationName:"virtualService" type:"structure" required:"true"` @@ -7555,24 +8014,24 @@ func (s *UpdateVirtualServiceOutput) SetVirtualService(v *VirtualServiceData) *U return s } -// An object representing a virtual node returned by a describe operation. +// An object that represents a virtual node returned by a describe operation. type VirtualNodeData struct { _ struct{} `type:"structure"` // MeshName is a required field MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing metadata for a resource. + // An object that represents metadata for a resource. // // Metadata is a required field Metadata *ResourceMetadata `locationName:"metadata" type:"structure" required:"true"` - // An object representing the specification of a virtual node. + // An object that represents the specification of a virtual node. // // Spec is a required field Spec *VirtualNodeSpec `locationName:"spec" type:"structure" required:"true"` - // An object representing the current status of the virtual node. + // An object that represents the current status of the virtual node. // // Status is a required field Status *VirtualNodeStatus `locationName:"status" type:"structure" required:"true"` @@ -7621,7 +8080,7 @@ func (s *VirtualNodeData) SetVirtualNodeName(v string) *VirtualNodeData { return s } -// An object representing a virtual node returned by a list operation. +// An object that represents a virtual node returned by a list operation. type VirtualNodeRef struct { _ struct{} `type:"structure"` @@ -7663,7 +8122,7 @@ func (s *VirtualNodeRef) SetVirtualNodeName(v string) *VirtualNodeRef { return s } -// An object representing a virtual node service provider. +// An object that represents a virtual node service provider. type VirtualNodeServiceProvider struct { _ struct{} `type:"structure"` @@ -7703,7 +8162,7 @@ func (s *VirtualNodeServiceProvider) SetVirtualNodeName(v string) *VirtualNodeSe return s } -// An object representing the specification of a virtual node. +// An object that represents the specification of a virtual node. type VirtualNodeSpec struct { _ struct{} `type:"structure"` @@ -7711,10 +8170,11 @@ type VirtualNodeSpec struct { Listeners []*Listener `locationName:"listeners" type:"list"` - // An object representing the logging information for a virtual node. + // An object that represents the logging information for a virtual node. Logging *Logging `locationName:"logging" type:"structure"` - // An object representing the service discovery information for a virtual node. + // An object that represents the service discovery information for a virtual + // node. ServiceDiscovery *ServiceDiscovery `locationName:"serviceDiscovery" type:"structure"` } @@ -7792,7 +8252,7 @@ func (s *VirtualNodeSpec) SetServiceDiscovery(v *ServiceDiscovery) *VirtualNodeS return s } -// An object representing the current status of the virtual node. +// An object that represents the current status of the virtual node. type VirtualNodeStatus struct { _ struct{} `type:"structure"` @@ -7816,24 +8276,24 @@ func (s *VirtualNodeStatus) SetStatus(v string) *VirtualNodeStatus { return s } -// An object representing a virtual router returned by a describe operation. +// An object that represents a virtual router returned by a describe operation. type VirtualRouterData struct { _ struct{} `type:"structure"` // MeshName is a required field MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing metadata for a resource. + // An object that represents metadata for a resource. // // Metadata is a required field Metadata *ResourceMetadata `locationName:"metadata" type:"structure" required:"true"` - // An object representing the specification of a virtual router. + // An object that represents the specification of a virtual router. // // Spec is a required field Spec *VirtualRouterSpec `locationName:"spec" type:"structure" required:"true"` - // An object representing the status of a virtual router. + // An object that represents the status of a virtual router. // // Status is a required field Status *VirtualRouterStatus `locationName:"status" type:"structure" required:"true"` @@ -7882,11 +8342,11 @@ func (s *VirtualRouterData) SetVirtualRouterName(v string) *VirtualRouterData { return s } -// An object representing a virtual router listener. +// An object that represents a virtual router listener. type VirtualRouterListener struct { _ struct{} `type:"structure"` - // An object representing a virtual node or virtual router listener port mapping. + // An object that represents a port mapping. // // PortMapping is a required field PortMapping *PortMapping `locationName:"portMapping" type:"structure" required:"true"` @@ -7926,7 +8386,7 @@ func (s *VirtualRouterListener) SetPortMapping(v *PortMapping) *VirtualRouterLis return s } -// An object representing a virtual router returned by a list operation. +// An object that represents a virtual router returned by a list operation. type VirtualRouterRef struct { _ struct{} `type:"structure"` @@ -7968,7 +8428,7 @@ func (s *VirtualRouterRef) SetVirtualRouterName(v string) *VirtualRouterRef { return s } -// An object representing a virtual node service provider. +// An object that represents a virtual node service provider. type VirtualRouterServiceProvider struct { _ struct{} `type:"structure"` @@ -8008,7 +8468,7 @@ func (s *VirtualRouterServiceProvider) SetVirtualRouterName(v string) *VirtualRo return s } -// An object representing the specification of a virtual router. +// An object that represents the specification of a virtual router. type VirtualRouterSpec struct { _ struct{} `type:"structure"` @@ -8054,7 +8514,7 @@ func (s *VirtualRouterSpec) SetListeners(v []*VirtualRouterListener) *VirtualRou return s } -// An object representing the status of a virtual router. +// An object that represents the status of a virtual router. type VirtualRouterStatus struct { _ struct{} `type:"structure"` @@ -8078,7 +8538,7 @@ func (s *VirtualRouterStatus) SetStatus(v string) *VirtualRouterStatus { return s } -// An object representing a virtual service backend for a virtual node. +// An object that represents a virtual service backend for a virtual node. type VirtualServiceBackend struct { _ struct{} `type:"structure"` @@ -8115,24 +8575,24 @@ func (s *VirtualServiceBackend) SetVirtualServiceName(v string) *VirtualServiceB return s } -// An object representing a virtual service returned by a describe operation. +// An object that represents a virtual service returned by a describe operation. type VirtualServiceData struct { _ struct{} `type:"structure"` // MeshName is a required field MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` - // An object representing metadata for a resource. + // An object that represents metadata for a resource. // // Metadata is a required field Metadata *ResourceMetadata `locationName:"metadata" type:"structure" required:"true"` - // An object representing the specification of a virtual service. + // An object that represents the specification of a virtual service. // // Spec is a required field Spec *VirtualServiceSpec `locationName:"spec" type:"structure" required:"true"` - // An object representing the status of a virtual service. + // An object that represents the status of a virtual service. // // Status is a required field Status *VirtualServiceStatus `locationName:"status" type:"structure" required:"true"` @@ -8181,14 +8641,14 @@ func (s *VirtualServiceData) SetVirtualServiceName(v string) *VirtualServiceData return s } -// An object representing the provider for a virtual service. +// An object that represents the provider for a virtual service. type VirtualServiceProvider struct { _ struct{} `type:"structure"` - // An object representing a virtual node service provider. + // An object that represents a virtual node service provider. VirtualNode *VirtualNodeServiceProvider `locationName:"virtualNode" type:"structure"` - // An object representing a virtual node service provider. + // An object that represents a virtual node service provider. VirtualRouter *VirtualRouterServiceProvider `locationName:"virtualRouter" type:"structure"` } @@ -8234,7 +8694,7 @@ func (s *VirtualServiceProvider) SetVirtualRouter(v *VirtualRouterServiceProvide return s } -// An object representing a virtual service returned by a list operation. +// An object that represents a virtual service returned by a list operation. type VirtualServiceRef struct { _ struct{} `type:"structure"` @@ -8276,11 +8736,11 @@ func (s *VirtualServiceRef) SetVirtualServiceName(v string) *VirtualServiceRef { return s } -// An object representing the specification of a virtual service. +// An object that represents the specification of a virtual service. type VirtualServiceSpec struct { _ struct{} `type:"structure"` - // An object representing the provider for a virtual service. + // An object that represents the provider for a virtual service. Provider *VirtualServiceProvider `locationName:"provider" type:"structure"` } @@ -8315,7 +8775,7 @@ func (s *VirtualServiceSpec) SetProvider(v *VirtualServiceProvider) *VirtualServ return s } -// An object representing the status of a virtual service. +// An object that represents the status of a virtual service. type VirtualServiceStatus struct { _ struct{} `type:"structure"` @@ -8339,10 +8799,11 @@ func (s *VirtualServiceStatus) SetStatus(v string) *VirtualServiceStatus { return s } -// An object representing a target and its relative weight. Traffic is distributed +// An object that represents a target and its relative weight. Traffic is distributed // across targets according to their relative weight. For example, a weighted // target with a relative weight of 50 receives five times as much traffic as -// one with a relative weight of 10. +// one with a relative weight of 10. The total weight for all targets combined +// must be less than or equal to 100. type WeightedTarget struct { _ struct{} `type:"structure"` @@ -8410,6 +8871,23 @@ const ( EgressFilterTypeDropAll = "DROP_ALL" ) +const ( + // GrpcRetryPolicyEventCancelled is a GrpcRetryPolicyEvent enum value + GrpcRetryPolicyEventCancelled = "cancelled" + + // GrpcRetryPolicyEventDeadlineExceeded is a GrpcRetryPolicyEvent enum value + GrpcRetryPolicyEventDeadlineExceeded = "deadline-exceeded" + + // GrpcRetryPolicyEventInternal is a GrpcRetryPolicyEvent enum value + GrpcRetryPolicyEventInternal = "internal" + + // GrpcRetryPolicyEventResourceExhausted is a GrpcRetryPolicyEvent enum value + GrpcRetryPolicyEventResourceExhausted = "resource-exhausted" + + // GrpcRetryPolicyEventUnavailable is a GrpcRetryPolicyEvent enum value + GrpcRetryPolicyEventUnavailable = "unavailable" +) + const ( // HttpMethodConnect is a HttpMethod enum value HttpMethodConnect = "CONNECT" @@ -8459,9 +8937,15 @@ const ( ) const ( + // PortProtocolGrpc is a PortProtocol enum value + PortProtocolGrpc = "grpc" + // PortProtocolHttp is a PortProtocol enum value PortProtocolHttp = "http" + // PortProtocolHttp2 is a PortProtocol enum value + PortProtocolHttp2 = "http2" + // PortProtocolTcp is a PortProtocol enum value PortProtocolTcp = "tcp" ) diff --git a/service/chime/api.go b/service/chime/api.go index 34f3ead237..b068505a0f 100644 --- a/service/chime/api.go +++ b/service/chime/api.go @@ -81,6 +81,9 @@ func (c *Chime) AssociatePhoneNumberWithUserRequest(input *AssociatePhoneNumberW // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. // +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // @@ -156,7 +159,7 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociateP // AssociatePhoneNumbersWithVoiceConnector API operation for Amazon Chime. // -// Associates a phone number with the specified Amazon Chime Voice Connector. +// Associates phone numbers with the specified Amazon Chime Voice Connector. // // 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 @@ -179,6 +182,9 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociateP // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. // +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // @@ -210,6 +216,108 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorWithContext(ctx aws.Conte return out, req.Send() } +const opAssociatePhoneNumbersWithVoiceConnectorGroup = "AssociatePhoneNumbersWithVoiceConnectorGroup" + +// AssociatePhoneNumbersWithVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the AssociatePhoneNumbersWithVoiceConnectorGroup 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 AssociatePhoneNumbersWithVoiceConnectorGroup for more information on using the AssociatePhoneNumbersWithVoiceConnectorGroup +// 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 AssociatePhoneNumbersWithVoiceConnectorGroupRequest method. +// req, resp := client.AssociatePhoneNumbersWithVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumbersWithVoiceConnectorGroup +func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input *AssociatePhoneNumbersWithVoiceConnectorGroupInput) (req *request.Request, output *AssociatePhoneNumbersWithVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opAssociatePhoneNumbersWithVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=associate-phone-numbers", + } + + if input == nil { + input = &AssociatePhoneNumbersWithVoiceConnectorGroupInput{} + } + + output = &AssociatePhoneNumbersWithVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociatePhoneNumbersWithVoiceConnectorGroup API operation for Amazon Chime. +// +// Associates phone numbers with the specified Amazon Chime Voice Connector +// group. +// +// 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 Chime's +// API operation AssociatePhoneNumbersWithVoiceConnectorGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumbersWithVoiceConnectorGroup +func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorGroup(input *AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) { + req, out := c.AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// AssociatePhoneNumbersWithVoiceConnectorGroupWithContext is the same as AssociatePhoneNumbersWithVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See AssociatePhoneNumbersWithVoiceConnectorGroup 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 *Chime) AssociatePhoneNumbersWithVoiceConnectorGroupWithContext(ctx aws.Context, input *AssociatePhoneNumbersWithVoiceConnectorGroupInput, opts ...request.Option) (*AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) { + req, out := c.AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchDeletePhoneNumber = "BatchDeletePhoneNumber" // BatchDeletePhoneNumberRequest generates a "aws/request.Request" representing the @@ -573,9 +681,17 @@ func (c *Chime) BatchUpdatePhoneNumberRequest(input *BatchUpdatePhoneNumberInput // BatchUpdatePhoneNumber API operation for Amazon Chime. // -// Updates phone number product types. Choose from Amazon Chime Business Calling -// and Amazon Chime Voice Connector product types. For toll-free numbers, you -// can use only the Amazon Chime Voice Connector product type. +// Updates phone number product types or calling names. You can update one attribute +// at a time for each UpdatePhoneNumberRequestItem. For example, you can update +// either the product type or the calling name. +// +// For product types, choose from Amazon Chime Business Calling and Amazon Chime +// Voice Connector. For toll-free numbers, you must use the Amazon Chime Voice +// Connector product type. +// +// Updates to outbound calling names can take up to 72 hours to complete. Pending +// updates to outbound calling names must be complete before you can request +// another update. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -974,7 +1090,7 @@ func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput // // Creates an order for phone numbers to be provisioned. Choose from Amazon // Chime Business Calling and Amazon Chime Voice Connector product types. For -// toll-free numbers, you can use only the Amazon Chime Voice Connector product +// toll-free numbers, you must use the Amazon Chime Voice Connector product // type. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -985,19 +1101,25 @@ func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput // API operation CreatePhoneNumberOrder for usage and error information. // // Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" -// The client is not currently authorized to make the request. +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" -// The input parameters don't match the service's restrictions. +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. // // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is currently unavailable. // @@ -1071,6 +1193,9 @@ func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (r // CreateVoiceConnector API operation for Amazon Chime. // // Creates an Amazon Chime Voice Connector under the administrator's AWS account. +// You can choose to create an Amazon Chime Voice Connector in a specific AWS +// Region. +// // Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon // Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP // (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound @@ -1084,19 +1209,25 @@ func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (r // API operation CreateVoiceConnector for usage and error information. // // Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" -// The client is not currently authorized to make the request. +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" -// The input parameters don't match the service's restrictions. +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. // // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is currently unavailable. // @@ -1125,6 +1256,114 @@ func (c *Chime) CreateVoiceConnectorWithContext(ctx aws.Context, input *CreateVo return out, req.Send() } +const opCreateVoiceConnectorGroup = "CreateVoiceConnectorGroup" + +// CreateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceConnectorGroup 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 CreateVoiceConnectorGroup for more information on using the CreateVoiceConnectorGroup +// 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 CreateVoiceConnectorGroupRequest method. +// req, resp := client.CreateVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup +func (c *Chime) CreateVoiceConnectorGroupRequest(input *CreateVoiceConnectorGroupInput) (req *request.Request, output *CreateVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opCreateVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups", + } + + if input == nil { + input = &CreateVoiceConnectorGroupInput{} + } + + output = &CreateVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVoiceConnectorGroup API operation for Amazon Chime. +// +// Creates an Amazon Chime Voice Connector group under the administrator's AWS +// account. You can associate up to three existing Amazon Chime Voice Connectors +// with the Amazon Chime Voice Connector group by including VoiceConnectorItems +// in the request. +// +// You can include Amazon Chime Voice Connectors from different AWS Regions +// in your group. This creates a fault tolerant mechanism for fallback in case +// of availability events. +// +// 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 Chime's +// API operation CreateVoiceConnectorGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup +func (c *Chime) CreateVoiceConnectorGroup(input *CreateVoiceConnectorGroupInput) (*CreateVoiceConnectorGroupOutput, error) { + req, out := c.CreateVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// CreateVoiceConnectorGroupWithContext is the same as CreateVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVoiceConnectorGroup 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 *Chime) CreateVoiceConnectorGroupWithContext(ctx aws.Context, input *CreateVoiceConnectorGroupInput, opts ...request.Option) (*CreateVoiceConnectorGroupOutput, error) { + req, out := c.CreateVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteAccount = "DeleteAccount" // DeleteAccountRequest generates a "aws/request.Request" representing the @@ -1485,9 +1724,9 @@ func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (r // DeleteVoiceConnector API operation for Amazon Chime. // -// Deletes the specified Amazon Chime Voice Connector. Any phone numbers assigned -// to the Amazon Chime Voice Connector must be unassigned from it before it -// can be deleted. +// Deletes the specified Amazon Chime Voice Connector. Any phone numbers associated +// with the Amazon Chime Voice Connector must be disassociated from it before +// it can be deleted. // // 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 @@ -1510,6 +1749,10 @@ func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (r // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. // +// * ErrCodeConflictException "ConflictException" +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // @@ -1541,59 +1784,61 @@ func (c *Chime) DeleteVoiceConnectorWithContext(ctx aws.Context, input *DeleteVo return out, req.Send() } -const opDeleteVoiceConnectorOrigination = "DeleteVoiceConnectorOrigination" +const opDeleteVoiceConnectorGroup = "DeleteVoiceConnectorGroup" -// DeleteVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorOrigination operation. The "output" return +// DeleteVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorGroup 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 DeleteVoiceConnectorOrigination for more information on using the DeleteVoiceConnectorOrigination +// See DeleteVoiceConnectorGroup for more information on using the DeleteVoiceConnectorGroup // 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 DeleteVoiceConnectorOriginationRequest method. -// req, resp := client.DeleteVoiceConnectorOriginationRequest(params) +// // Example sending a request using the DeleteVoiceConnectorGroupRequest method. +// req, resp := client.DeleteVoiceConnectorGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination -func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnectorOriginationInput) (req *request.Request, output *DeleteVoiceConnectorOriginationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup +func (c *Chime) DeleteVoiceConnectorGroupRequest(input *DeleteVoiceConnectorGroupInput) (req *request.Request, output *DeleteVoiceConnectorGroupOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorOrigination, + Name: opDeleteVoiceConnectorGroup, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", } if input == nil { - input = &DeleteVoiceConnectorOriginationInput{} + input = &DeleteVoiceConnectorGroupInput{} } - output = &DeleteVoiceConnectorOriginationOutput{} + output = &DeleteVoiceConnectorGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteVoiceConnectorOrigination API operation for Amazon Chime. +// DeleteVoiceConnectorGroup API operation for Amazon Chime. // -// Deletes the origination settings for the specified Amazon Chime Voice Connector. +// Deletes the specified Amazon Chime Voice Connector group. Any VoiceConnectorItems +// and phone numbers associated with the group must be removed before it can +// be deleted. // // 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 Chime's -// API operation DeleteVoiceConnectorOrigination for usage and error information. +// API operation DeleteVoiceConnectorGroup for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -1609,6 +1854,10 @@ func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnect // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. // +// * ErrCodeConflictException "ConflictException" +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // @@ -1618,81 +1867,81 @@ func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnect // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination -func (c *Chime) DeleteVoiceConnectorOrigination(input *DeleteVoiceConnectorOriginationInput) (*DeleteVoiceConnectorOriginationOutput, error) { - req, out := c.DeleteVoiceConnectorOriginationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup +func (c *Chime) DeleteVoiceConnectorGroup(input *DeleteVoiceConnectorGroupInput) (*DeleteVoiceConnectorGroupOutput, error) { + req, out := c.DeleteVoiceConnectorGroupRequest(input) return out, req.Send() } -// DeleteVoiceConnectorOriginationWithContext is the same as DeleteVoiceConnectorOrigination with the addition of +// DeleteVoiceConnectorGroupWithContext is the same as DeleteVoiceConnectorGroup with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorOrigination for details on how to use this API operation. +// See DeleteVoiceConnectorGroup 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 *Chime) DeleteVoiceConnectorOriginationWithContext(ctx aws.Context, input *DeleteVoiceConnectorOriginationInput, opts ...request.Option) (*DeleteVoiceConnectorOriginationOutput, error) { - req, out := c.DeleteVoiceConnectorOriginationRequest(input) +func (c *Chime) DeleteVoiceConnectorGroupWithContext(ctx aws.Context, input *DeleteVoiceConnectorGroupInput, opts ...request.Option) (*DeleteVoiceConnectorGroupOutput, error) { + req, out := c.DeleteVoiceConnectorGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorTermination = "DeleteVoiceConnectorTermination" +const opDeleteVoiceConnectorOrigination = "DeleteVoiceConnectorOrigination" -// DeleteVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorTermination operation. The "output" return +// DeleteVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorOrigination 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 DeleteVoiceConnectorTermination for more information on using the DeleteVoiceConnectorTermination +// See DeleteVoiceConnectorOrigination for more information on using the DeleteVoiceConnectorOrigination // 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 DeleteVoiceConnectorTerminationRequest method. -// req, resp := client.DeleteVoiceConnectorTerminationRequest(params) +// // Example sending a request using the DeleteVoiceConnectorOriginationRequest method. +// req, resp := client.DeleteVoiceConnectorOriginationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination -func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnectorTerminationInput) (req *request.Request, output *DeleteVoiceConnectorTerminationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination +func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnectorOriginationInput) (req *request.Request, output *DeleteVoiceConnectorOriginationOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorTermination, + Name: opDeleteVoiceConnectorOrigination, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", } if input == nil { - input = &DeleteVoiceConnectorTerminationInput{} + input = &DeleteVoiceConnectorOriginationInput{} } - output = &DeleteVoiceConnectorTerminationOutput{} + output = &DeleteVoiceConnectorOriginationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteVoiceConnectorTermination API operation for Amazon Chime. +// DeleteVoiceConnectorOrigination API operation for Amazon Chime. // -// Deletes the termination settings for the specified Amazon Chime Voice Connector. +// Deletes the origination settings for the specified Amazon Chime Voice Connector. // // 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 Chime's -// API operation DeleteVoiceConnectorTermination for usage and error information. +// API operation DeleteVoiceConnectorOrigination for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -1717,16 +1966,215 @@ func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnect // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination -func (c *Chime) DeleteVoiceConnectorTermination(input *DeleteVoiceConnectorTerminationInput) (*DeleteVoiceConnectorTerminationOutput, error) { - req, out := c.DeleteVoiceConnectorTerminationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination +func (c *Chime) DeleteVoiceConnectorOrigination(input *DeleteVoiceConnectorOriginationInput) (*DeleteVoiceConnectorOriginationOutput, error) { + req, out := c.DeleteVoiceConnectorOriginationRequest(input) return out, req.Send() } -// DeleteVoiceConnectorTerminationWithContext is the same as DeleteVoiceConnectorTermination with the addition of +// DeleteVoiceConnectorOriginationWithContext is the same as DeleteVoiceConnectorOrigination with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorTermination for details on how to use this API operation. +// See DeleteVoiceConnectorOrigination 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 *Chime) DeleteVoiceConnectorOriginationWithContext(ctx aws.Context, input *DeleteVoiceConnectorOriginationInput, opts ...request.Option) (*DeleteVoiceConnectorOriginationOutput, error) { + req, out := c.DeleteVoiceConnectorOriginationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorStreamingConfiguration = "DeleteVoiceConnectorStreamingConfiguration" + +// DeleteVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorStreamingConfiguration 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 DeleteVoiceConnectorStreamingConfiguration for more information on using the DeleteVoiceConnectorStreamingConfiguration +// 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 DeleteVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.DeleteVoiceConnectorStreamingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration +func (c *Chime) DeleteVoiceConnectorStreamingConfigurationRequest(input *DeleteVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorStreamingConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorStreamingConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + } + + if input == nil { + input = &DeleteVoiceConnectorStreamingConfigurationInput{} + } + + output = &DeleteVoiceConnectorStreamingConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorStreamingConfiguration API operation for Amazon Chime. +// +// Deletes the streaming configuration for the specified Amazon Chime Voice +// Connector. +// +// 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 Chime's +// API operation DeleteVoiceConnectorStreamingConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration +func (c *Chime) DeleteVoiceConnectorStreamingConfiguration(input *DeleteVoiceConnectorStreamingConfigurationInput) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorStreamingConfigurationWithContext is the same as DeleteVoiceConnectorStreamingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorStreamingConfiguration 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 *Chime) DeleteVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorTermination = "DeleteVoiceConnectorTermination" + +// DeleteVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorTermination 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 DeleteVoiceConnectorTermination for more information on using the DeleteVoiceConnectorTermination +// 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 DeleteVoiceConnectorTerminationRequest method. +// req, resp := client.DeleteVoiceConnectorTerminationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination +func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnectorTerminationInput) (req *request.Request, output *DeleteVoiceConnectorTerminationOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorTermination, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + } + + if input == nil { + input = &DeleteVoiceConnectorTerminationInput{} + } + + output = &DeleteVoiceConnectorTerminationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorTermination API operation for Amazon Chime. +// +// Deletes the termination settings for the specified Amazon Chime Voice Connector. +// +// 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 Chime's +// API operation DeleteVoiceConnectorTermination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination +func (c *Chime) DeleteVoiceConnectorTermination(input *DeleteVoiceConnectorTerminationInput) (*DeleteVoiceConnectorTerminationOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorTerminationWithContext is the same as DeleteVoiceConnectorTermination with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorTermination 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 @@ -1983,7 +2431,7 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *Disasso // DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime. // -// Disassociates the specified phone number from the specified Amazon Chime +// Disassociates the specified phone numbers from the specified Amazon Chime // Voice Connector. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2038,6 +2486,105 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Co return out, req.Send() } +const opDisassociatePhoneNumbersFromVoiceConnectorGroup = "DisassociatePhoneNumbersFromVoiceConnectorGroup" + +// DisassociatePhoneNumbersFromVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumbersFromVoiceConnectorGroup 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 DisassociatePhoneNumbersFromVoiceConnectorGroup for more information on using the DisassociatePhoneNumbersFromVoiceConnectorGroup +// 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 DisassociatePhoneNumbersFromVoiceConnectorGroupRequest method. +// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opDisassociatePhoneNumbersFromVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", + } + + if input == nil { + input = &DisassociatePhoneNumbersFromVoiceConnectorGroupInput{} + } + + output = &DisassociatePhoneNumbersFromVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociatePhoneNumbersFromVoiceConnectorGroup API operation for Amazon Chime. +// +// Disassociates the specified phone numbers from the specified Amazon Chime +// Voice Connector group. +// +// 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 Chime's +// API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroup(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext is the same as DisassociatePhoneNumbersFromVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociatePhoneNumbersFromVoiceConnectorGroup 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 *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetAccount = "GetAccount" // GetAccountRequest generates a "aws/request.Request" representing the @@ -2727,10 +3274,106 @@ func (c *Chime) GetPhoneNumberOrderWithContext(ctx aws.Context, input *GetPhoneN return out, req.Send() } -const opGetUser = "GetUser" +const opGetPhoneNumberSettings = "GetPhoneNumberSettings" -// GetUserRequest generates a "aws/request.Request" representing the -// client's request for the GetUser operation. The "output" return +// GetPhoneNumberSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumberSettings 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 GetPhoneNumberSettings for more information on using the GetPhoneNumberSettings +// 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 GetPhoneNumberSettingsRequest method. +// req, resp := client.GetPhoneNumberSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings +func (c *Chime) GetPhoneNumberSettingsRequest(input *GetPhoneNumberSettingsInput) (req *request.Request, output *GetPhoneNumberSettingsOutput) { + op := &request.Operation{ + Name: opGetPhoneNumberSettings, + HTTPMethod: "GET", + HTTPPath: "/settings/phone-number", + } + + if input == nil { + input = &GetPhoneNumberSettingsInput{} + } + + output = &GetPhoneNumberSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPhoneNumberSettings API operation for Amazon Chime. +// +// Retrieves the phone number settings for the administrator's AWS account, +// such as the default outbound calling 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 Amazon Chime's +// API operation GetPhoneNumberSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings +func (c *Chime) GetPhoneNumberSettings(input *GetPhoneNumberSettingsInput) (*GetPhoneNumberSettingsOutput, error) { + req, out := c.GetPhoneNumberSettingsRequest(input) + return out, req.Send() +} + +// GetPhoneNumberSettingsWithContext is the same as GetPhoneNumberSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetPhoneNumberSettings 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 *Chime) GetPhoneNumberSettingsWithContext(ctx aws.Context, input *GetPhoneNumberSettingsInput, opts ...request.Option) (*GetPhoneNumberSettingsOutput, error) { + req, out := c.GetPhoneNumberSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetUser = "GetUser" + +// GetUserRequest generates a "aws/request.Request" representing the +// client's request for the GetUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // @@ -3027,59 +3670,59 @@ func (c *Chime) GetVoiceConnectorWithContext(ctx aws.Context, input *GetVoiceCon return out, req.Send() } -const opGetVoiceConnectorOrigination = "GetVoiceConnectorOrigination" +const opGetVoiceConnectorGroup = "GetVoiceConnectorGroup" -// GetVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorOrigination operation. The "output" return +// GetVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorGroup 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 GetVoiceConnectorOrigination for more information on using the GetVoiceConnectorOrigination +// See GetVoiceConnectorGroup for more information on using the GetVoiceConnectorGroup // 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 GetVoiceConnectorOriginationRequest method. -// req, resp := client.GetVoiceConnectorOriginationRequest(params) +// // Example sending a request using the GetVoiceConnectorGroupRequest method. +// req, resp := client.GetVoiceConnectorGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination -func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOriginationInput) (req *request.Request, output *GetVoiceConnectorOriginationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup +func (c *Chime) GetVoiceConnectorGroupRequest(input *GetVoiceConnectorGroupInput) (req *request.Request, output *GetVoiceConnectorGroupOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorOrigination, + Name: opGetVoiceConnectorGroup, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", } if input == nil { - input = &GetVoiceConnectorOriginationInput{} + input = &GetVoiceConnectorGroupInput{} } - output = &GetVoiceConnectorOriginationOutput{} + output = &GetVoiceConnectorGroupOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorOrigination API operation for Amazon Chime. +// GetVoiceConnectorGroup API operation for Amazon Chime. // -// Retrieves origination setting details for the specified Amazon Chime Voice -// Connector. +// Retrieves details for the specified Amazon Chime Voice Connector group, such +// as timestamps, name, and associated VoiceConnectorItems. // // 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 Chime's -// API operation GetVoiceConnectorOrigination for usage and error information. +// API operation GetVoiceConnectorGroup for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -3104,81 +3747,82 @@ func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOrig // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination -func (c *Chime) GetVoiceConnectorOrigination(input *GetVoiceConnectorOriginationInput) (*GetVoiceConnectorOriginationOutput, error) { - req, out := c.GetVoiceConnectorOriginationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup +func (c *Chime) GetVoiceConnectorGroup(input *GetVoiceConnectorGroupInput) (*GetVoiceConnectorGroupOutput, error) { + req, out := c.GetVoiceConnectorGroupRequest(input) return out, req.Send() } -// GetVoiceConnectorOriginationWithContext is the same as GetVoiceConnectorOrigination with the addition of +// GetVoiceConnectorGroupWithContext is the same as GetVoiceConnectorGroup with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorOrigination for details on how to use this API operation. +// See GetVoiceConnectorGroup 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 *Chime) GetVoiceConnectorOriginationWithContext(ctx aws.Context, input *GetVoiceConnectorOriginationInput, opts ...request.Option) (*GetVoiceConnectorOriginationOutput, error) { - req, out := c.GetVoiceConnectorOriginationRequest(input) +func (c *Chime) GetVoiceConnectorGroupWithContext(ctx aws.Context, input *GetVoiceConnectorGroupInput, opts ...request.Option) (*GetVoiceConnectorGroupOutput, error) { + req, out := c.GetVoiceConnectorGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorTermination = "GetVoiceConnectorTermination" +const opGetVoiceConnectorLoggingConfiguration = "GetVoiceConnectorLoggingConfiguration" -// GetVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorTermination operation. The "output" return +// GetVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorLoggingConfiguration 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 GetVoiceConnectorTermination for more information on using the GetVoiceConnectorTermination +// See GetVoiceConnectorLoggingConfiguration for more information on using the GetVoiceConnectorLoggingConfiguration // 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 GetVoiceConnectorTerminationRequest method. -// req, resp := client.GetVoiceConnectorTerminationRequest(params) +// // Example sending a request using the GetVoiceConnectorLoggingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorLoggingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination -func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerminationInput) (req *request.Request, output *GetVoiceConnectorTerminationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration +func (c *Chime) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *GetVoiceConnectorLoggingConfigurationOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorTermination, + Name: opGetVoiceConnectorLoggingConfiguration, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", } if input == nil { - input = &GetVoiceConnectorTerminationInput{} + input = &GetVoiceConnectorLoggingConfigurationInput{} } - output = &GetVoiceConnectorTerminationOutput{} + output = &GetVoiceConnectorLoggingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorTermination API operation for Amazon Chime. +// GetVoiceConnectorLoggingConfiguration API operation for Amazon Chime. // -// Retrieves termination setting details for the specified Amazon Chime Voice -// Connector. +// Retrieves the logging configuration details for the specified Amazon Chime +// Voice Connector. Shows whether SIP message logs are enabled for sending to +// Amazon CloudWatch Logs. // // 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 Chime's -// API operation GetVoiceConnectorTermination for usage and error information. +// API operation GetVoiceConnectorLoggingConfiguration for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -3203,81 +3847,81 @@ func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerm // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination -func (c *Chime) GetVoiceConnectorTermination(input *GetVoiceConnectorTerminationInput) (*GetVoiceConnectorTerminationOutput, error) { - req, out := c.GetVoiceConnectorTerminationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration +func (c *Chime) GetVoiceConnectorLoggingConfiguration(input *GetVoiceConnectorLoggingConfigurationInput) (*GetVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) return out, req.Send() } -// GetVoiceConnectorTerminationWithContext is the same as GetVoiceConnectorTermination with the addition of +// GetVoiceConnectorLoggingConfigurationWithContext is the same as GetVoiceConnectorLoggingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorTermination for details on how to use this API operation. +// See GetVoiceConnectorLoggingConfiguration 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 *Chime) GetVoiceConnectorTerminationWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationInput, opts ...request.Option) (*GetVoiceConnectorTerminationOutput, error) { - req, out := c.GetVoiceConnectorTerminationRequest(input) +func (c *Chime) GetVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorTerminationHealth = "GetVoiceConnectorTerminationHealth" +const opGetVoiceConnectorOrigination = "GetVoiceConnectorOrigination" -// GetVoiceConnectorTerminationHealthRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorTerminationHealth operation. The "output" return +// GetVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorOrigination 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 GetVoiceConnectorTerminationHealth for more information on using the GetVoiceConnectorTerminationHealth +// See GetVoiceConnectorOrigination for more information on using the GetVoiceConnectorOrigination // 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 GetVoiceConnectorTerminationHealthRequest method. -// req, resp := client.GetVoiceConnectorTerminationHealthRequest(params) +// // Example sending a request using the GetVoiceConnectorOriginationRequest method. +// req, resp := client.GetVoiceConnectorOriginationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth -func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnectorTerminationHealthInput) (req *request.Request, output *GetVoiceConnectorTerminationHealthOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination +func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOriginationInput) (req *request.Request, output *GetVoiceConnectorOriginationOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorTerminationHealth, + Name: opGetVoiceConnectorOrigination, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/health", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", } if input == nil { - input = &GetVoiceConnectorTerminationHealthInput{} + input = &GetVoiceConnectorOriginationInput{} } - output = &GetVoiceConnectorTerminationHealthOutput{} + output = &GetVoiceConnectorOriginationOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorTerminationHealth API operation for Amazon Chime. +// GetVoiceConnectorOrigination API operation for Amazon Chime. // -// Retrieves information about the last time a SIP OPTIONS ping was received -// from your SIP infrastructure for the specified Amazon Chime Voice Connector. +// Retrieves origination setting details for the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation GetVoiceConnectorTerminationHealth for usage and error information. +// API operation GetVoiceConnectorOrigination for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -3302,82 +3946,83 @@ func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnect // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth -func (c *Chime) GetVoiceConnectorTerminationHealth(input *GetVoiceConnectorTerminationHealthInput) (*GetVoiceConnectorTerminationHealthOutput, error) { - req, out := c.GetVoiceConnectorTerminationHealthRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination +func (c *Chime) GetVoiceConnectorOrigination(input *GetVoiceConnectorOriginationInput) (*GetVoiceConnectorOriginationOutput, error) { + req, out := c.GetVoiceConnectorOriginationRequest(input) return out, req.Send() } -// GetVoiceConnectorTerminationHealthWithContext is the same as GetVoiceConnectorTerminationHealth with the addition of +// GetVoiceConnectorOriginationWithContext is the same as GetVoiceConnectorOrigination with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorTerminationHealth for details on how to use this API operation. +// See GetVoiceConnectorOrigination 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 *Chime) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationHealthInput, opts ...request.Option) (*GetVoiceConnectorTerminationHealthOutput, error) { - req, out := c.GetVoiceConnectorTerminationHealthRequest(input) +func (c *Chime) GetVoiceConnectorOriginationWithContext(ctx aws.Context, input *GetVoiceConnectorOriginationInput, opts ...request.Option) (*GetVoiceConnectorOriginationOutput, error) { + req, out := c.GetVoiceConnectorOriginationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opInviteUsers = "InviteUsers" +const opGetVoiceConnectorStreamingConfiguration = "GetVoiceConnectorStreamingConfiguration" -// InviteUsersRequest generates a "aws/request.Request" representing the -// client's request for the InviteUsers operation. The "output" return +// GetVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorStreamingConfiguration 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 InviteUsers for more information on using the InviteUsers +// See GetVoiceConnectorStreamingConfiguration for more information on using the GetVoiceConnectorStreamingConfiguration // 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 InviteUsersRequest method. -// req, resp := client.InviteUsersRequest(params) +// // Example sending a request using the GetVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorStreamingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers -func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Request, output *InviteUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration +func (c *Chime) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *GetVoiceConnectorStreamingConfigurationOutput) { op := &request.Operation{ - Name: opInviteUsers, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users?operation=add", + Name: opGetVoiceConnectorStreamingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", } if input == nil { - input = &InviteUsersInput{} + input = &GetVoiceConnectorStreamingConfigurationInput{} } - output = &InviteUsersOutput{} + output = &GetVoiceConnectorStreamingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// InviteUsers API operation for Amazon Chime. +// GetVoiceConnectorStreamingConfiguration API operation for Amazon Chime. // -// Sends email invites to as many as 50 users, inviting them to the specified -// Amazon Chime Team account. Only Team account types are currently supported -// for this action. +// Retrieves the streaming configuration details for the specified Amazon Chime +// Voice Connector. Shows whether media streaming is enabled for sending to +// Amazon Kinesis, and shows the retention period for the Amazon Kinesis data, +// in hours. // // 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 Chime's -// API operation InviteUsers for usage and error information. +// API operation GetVoiceConnectorStreamingConfiguration for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -3402,89 +4047,81 @@ func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Reques // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers -func (c *Chime) InviteUsers(input *InviteUsersInput) (*InviteUsersOutput, error) { - req, out := c.InviteUsersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration +func (c *Chime) GetVoiceConnectorStreamingConfiguration(input *GetVoiceConnectorStreamingConfigurationInput) (*GetVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) return out, req.Send() } -// InviteUsersWithContext is the same as InviteUsers with the addition of +// GetVoiceConnectorStreamingConfigurationWithContext is the same as GetVoiceConnectorStreamingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See InviteUsers for details on how to use this API operation. +// See GetVoiceConnectorStreamingConfiguration 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 *Chime) InviteUsersWithContext(ctx aws.Context, input *InviteUsersInput, opts ...request.Option) (*InviteUsersOutput, error) { - req, out := c.InviteUsersRequest(input) +func (c *Chime) GetVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListAccounts = "ListAccounts" +const opGetVoiceConnectorTermination = "GetVoiceConnectorTermination" -// ListAccountsRequest generates a "aws/request.Request" representing the -// client's request for the ListAccounts operation. The "output" return +// GetVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorTermination 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 ListAccounts for more information on using the ListAccounts +// See GetVoiceConnectorTermination for more information on using the GetVoiceConnectorTermination // 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 ListAccountsRequest method. -// req, resp := client.ListAccountsRequest(params) +// // Example sending a request using the GetVoiceConnectorTerminationRequest method. +// req, resp := client.GetVoiceConnectorTerminationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts -func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination +func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerminationInput) (req *request.Request, output *GetVoiceConnectorTerminationOutput) { op := &request.Operation{ - Name: opListAccounts, + Name: opGetVoiceConnectorTermination, HTTPMethod: "GET", - HTTPPath: "/accounts", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", } if input == nil { - input = &ListAccountsInput{} + input = &GetVoiceConnectorTerminationInput{} } - output = &ListAccountsOutput{} + output = &GetVoiceConnectorTerminationOutput{} req = c.newRequest(op, input, output) return } -// ListAccounts API operation for Amazon Chime. +// GetVoiceConnectorTermination API operation for Amazon Chime. // -// Lists the Amazon Chime accounts under the administrator's AWS account. You -// can filter accounts by account name prefix. To find out which Amazon Chime -// account a user belongs to, you can filter by the user's email address, which -// returns one account result. +// Retrieves termination setting details for the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation ListAccounts for usage and error information. +// API operation GetVoiceConnectorTermination for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -3509,36 +4146,342 @@ func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Requ // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts -func (c *Chime) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) { - req, out := c.ListAccountsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination +func (c *Chime) GetVoiceConnectorTermination(input *GetVoiceConnectorTerminationInput) (*GetVoiceConnectorTerminationOutput, error) { + req, out := c.GetVoiceConnectorTerminationRequest(input) return out, req.Send() } -// ListAccountsWithContext is the same as ListAccounts with the addition of +// GetVoiceConnectorTerminationWithContext is the same as GetVoiceConnectorTermination with the addition of // the ability to pass a context and additional request options. // -// See ListAccounts for details on how to use this API operation. +// See GetVoiceConnectorTermination 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 *Chime) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) { - req, out := c.ListAccountsRequest(input) +func (c *Chime) GetVoiceConnectorTerminationWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationInput, opts ...request.Option) (*GetVoiceConnectorTerminationOutput, error) { + req, out := c.GetVoiceConnectorTerminationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAccountsPages iterates over the pages of a ListAccounts operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListAccounts method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// +const opGetVoiceConnectorTerminationHealth = "GetVoiceConnectorTerminationHealth" + +// GetVoiceConnectorTerminationHealthRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorTerminationHealth 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 GetVoiceConnectorTerminationHealth for more information on using the GetVoiceConnectorTerminationHealth +// 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 GetVoiceConnectorTerminationHealthRequest method. +// req, resp := client.GetVoiceConnectorTerminationHealthRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth +func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnectorTerminationHealthInput) (req *request.Request, output *GetVoiceConnectorTerminationHealthOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorTerminationHealth, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/health", + } + + if input == nil { + input = &GetVoiceConnectorTerminationHealthInput{} + } + + output = &GetVoiceConnectorTerminationHealthOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorTerminationHealth API operation for Amazon Chime. +// +// Retrieves information about the last time a SIP OPTIONS ping was received +// from your SIP infrastructure for the specified Amazon Chime Voice Connector. +// +// 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 Chime's +// API operation GetVoiceConnectorTerminationHealth for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth +func (c *Chime) GetVoiceConnectorTerminationHealth(input *GetVoiceConnectorTerminationHealthInput) (*GetVoiceConnectorTerminationHealthOutput, error) { + req, out := c.GetVoiceConnectorTerminationHealthRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorTerminationHealthWithContext is the same as GetVoiceConnectorTerminationHealth with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorTerminationHealth 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 *Chime) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationHealthInput, opts ...request.Option) (*GetVoiceConnectorTerminationHealthOutput, error) { + req, out := c.GetVoiceConnectorTerminationHealthRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInviteUsers = "InviteUsers" + +// InviteUsersRequest generates a "aws/request.Request" representing the +// client's request for the InviteUsers 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 InviteUsers for more information on using the InviteUsers +// 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 InviteUsersRequest method. +// req, resp := client.InviteUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers +func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Request, output *InviteUsersOutput) { + op := &request.Operation{ + Name: opInviteUsers, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users?operation=add", + } + + if input == nil { + input = &InviteUsersInput{} + } + + output = &InviteUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// InviteUsers API operation for Amazon Chime. +// +// Sends email invites to as many as 50 users, inviting them to the specified +// Amazon Chime Team account. Only Team account types are currently supported +// for this action. +// +// 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 Chime's +// API operation InviteUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers +func (c *Chime) InviteUsers(input *InviteUsersInput) (*InviteUsersOutput, error) { + req, out := c.InviteUsersRequest(input) + return out, req.Send() +} + +// InviteUsersWithContext is the same as InviteUsers with the addition of +// the ability to pass a context and additional request options. +// +// See InviteUsers 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 *Chime) InviteUsersWithContext(ctx aws.Context, input *InviteUsersInput, opts ...request.Option) (*InviteUsersOutput, error) { + req, out := c.InviteUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAccounts = "ListAccounts" + +// ListAccountsRequest generates a "aws/request.Request" representing the +// client's request for the ListAccounts 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 ListAccounts for more information on using the ListAccounts +// 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 ListAccountsRequest method. +// req, resp := client.ListAccountsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts +func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) { + op := &request.Operation{ + Name: opListAccounts, + HTTPMethod: "GET", + HTTPPath: "/accounts", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAccountsInput{} + } + + output = &ListAccountsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAccounts API operation for Amazon Chime. +// +// Lists the Amazon Chime accounts under the administrator's AWS account. You +// can filter accounts by account name prefix. To find out which Amazon Chime +// account a user belongs to, you can filter by the user's email address, which +// returns one account result. +// +// 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 Chime's +// API operation ListAccounts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts +func (c *Chime) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) + return out, req.Send() +} + +// ListAccountsWithContext is the same as ListAccounts with the addition of +// the ability to pass a context and additional request options. +// +// See ListAccounts 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 *Chime) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAccountsPages iterates over the pages of a ListAccounts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAccounts 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 ListAccounts operation. // pageNum := 0 // err := client.ListAccountsPages(params, @@ -3612,6 +4555,12 @@ func (c *Chime) ListBotsRequest(input *ListBotsInput) (req *request.Request, out Name: opListBots, HTTPMethod: "GET", HTTPPath: "/accounts/{accountId}/bots", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -3677,6 +4626,56 @@ func (c *Chime) ListBotsWithContext(ctx aws.Context, input *ListBotsInput, opts return out, req.Send() } +// ListBotsPages iterates over the pages of a ListBots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListBots 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 ListBots operation. +// pageNum := 0 +// err := client.ListBotsPages(params, +// func(page *chime.ListBotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListBotsPages(input *ListBotsInput, fn func(*ListBotsOutput, bool) bool) error { + return c.ListBotsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListBotsPagesWithContext same as ListBotsPages 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 *Chime) ListBotsPagesWithContext(ctx aws.Context, input *ListBotsInput, fn func(*ListBotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListBotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListBotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListBotsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListPhoneNumberOrders = "ListPhoneNumberOrders" // ListPhoneNumberOrdersRequest generates a "aws/request.Request" representing the @@ -3879,19 +4878,175 @@ func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *requ // ListPhoneNumbers API operation for Amazon Chime. // // Lists the phone numbers for the specified Amazon Chime account, Amazon Chime -// user, or Amazon Chime Voice Connector. +// user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group. +// +// 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 Chime's +// API operation ListPhoneNumbers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers +func (c *Chime) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) + return out, req.Send() +} + +// ListPhoneNumbersWithContext is the same as ListPhoneNumbers with the addition of +// the ability to pass a context and additional request options. +// +// See ListPhoneNumbers 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 *Chime) ListPhoneNumbersWithContext(ctx aws.Context, input *ListPhoneNumbersInput, opts ...request.Option) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPhoneNumbersPages iterates over the pages of a ListPhoneNumbers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPhoneNumbers 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 ListPhoneNumbers operation. +// pageNum := 0 +// err := client.ListPhoneNumbersPages(params, +// func(page *chime.ListPhoneNumbersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { + return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPhoneNumbersPagesWithContext same as ListPhoneNumbersPages 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 *Chime) ListPhoneNumbersPagesWithContext(ctx aws.Context, input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPhoneNumbersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPhoneNumbersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers 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 ListUsers for more information on using the ListUsers +// 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 ListUsersRequest method. +// req, resp := client.ListUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers +func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { + op := &request.Operation{ + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/accounts/{accountId}/users", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListUsersInput{} + } + + output = &ListUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsers API operation for Amazon Chime. +// +// Lists the users that belong to the specified Amazon Chime account. You can +// specify an email address to list only the user that the email address belongs +// to. // // 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 Chime's -// API operation ListPhoneNumbers for usage and error information. +// API operation ListUsers for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" // The client is not currently authorized to make the request. // +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. @@ -3908,65 +5063,65 @@ func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *requ // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers -func (c *Chime) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { - req, out := c.ListPhoneNumbersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers +func (c *Chime) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) return out, req.Send() } -// ListPhoneNumbersWithContext is the same as ListPhoneNumbers with the addition of +// ListUsersWithContext is the same as ListUsers with the addition of // the ability to pass a context and additional request options. // -// See ListPhoneNumbers for details on how to use this API operation. +// See ListUsers 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 *Chime) ListPhoneNumbersWithContext(ctx aws.Context, input *ListPhoneNumbersInput, opts ...request.Option) (*ListPhoneNumbersOutput, error) { - req, out := c.ListPhoneNumbersRequest(input) +func (c *Chime) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListPhoneNumbersPages iterates over the pages of a ListPhoneNumbers operation, +// ListUsersPages iterates over the pages of a ListUsers operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListPhoneNumbers method for more information on how to use this operation. +// See ListUsers 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 ListPhoneNumbers operation. +// // Example iterating over at most 3 pages of a ListUsers operation. // pageNum := 0 -// err := client.ListPhoneNumbersPages(params, -// func(page *chime.ListPhoneNumbersOutput, lastPage bool) bool { +// err := client.ListUsersPages(params, +// func(page *chime.ListUsersOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Chime) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { - return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Chime) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { + return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListPhoneNumbersPagesWithContext same as ListPhoneNumbersPages except +// ListUsersPagesWithContext same as ListUsersPages 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 *Chime) ListPhoneNumbersPagesWithContext(ctx aws.Context, input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool, opts ...request.Option) error { +func (c *Chime) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListPhoneNumbersInput + var inCpy *ListUsersInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListPhoneNumbersRequest(inCpy) + req, _ := c.ListUsersRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3975,42 +5130,42 @@ func (c *Chime) ListPhoneNumbersPagesWithContext(ctx aws.Context, input *ListPho cont := true for p.Next() && cont { - cont = fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) + cont = fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) } return p.Err() } -const opListUsers = "ListUsers" +const opListVoiceConnectorGroups = "ListVoiceConnectorGroups" -// ListUsersRequest generates a "aws/request.Request" representing the -// client's request for the ListUsers operation. The "output" return +// ListVoiceConnectorGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectorGroups 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 ListUsers for more information on using the ListUsers +// See ListVoiceConnectorGroups for more information on using the ListVoiceConnectorGroups // 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 ListUsersRequest method. -// req, resp := client.ListUsersRequest(params) +// // Example sending a request using the ListVoiceConnectorGroupsRequest method. +// req, resp := client.ListVoiceConnectorGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers -func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups +func (c *Chime) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsInput) (req *request.Request, output *ListVoiceConnectorGroupsOutput) { op := &request.Operation{ - Name: opListUsers, + Name: opListVoiceConnectorGroups, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/users", + HTTPPath: "/voice-connector-groups", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -4020,34 +5175,30 @@ func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, o } if input == nil { - input = &ListUsersInput{} + input = &ListVoiceConnectorGroupsInput{} } - output = &ListUsersOutput{} + output = &ListVoiceConnectorGroupsOutput{} req = c.newRequest(op, input, output) return } -// ListUsers API operation for Amazon Chime. +// ListVoiceConnectorGroups API operation for Amazon Chime. // -// Lists the users that belong to the specified Amazon Chime account. You can -// specify an email address to list only the user that the email address belongs -// to. +// Lists the Amazon Chime Voice Connector groups for the administrator's 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 Amazon Chime's -// API operation ListUsers for usage and error information. +// API operation ListVoiceConnectorGroups for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" -// One or more of the resources in the request does not exist in the system. -// // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. @@ -4064,65 +5215,65 @@ func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, o // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers -func (c *Chime) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups +func (c *Chime) ListVoiceConnectorGroups(input *ListVoiceConnectorGroupsInput) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) return out, req.Send() } -// ListUsersWithContext is the same as ListUsers with the addition of +// ListVoiceConnectorGroupsWithContext is the same as ListVoiceConnectorGroups with the addition of // the ability to pass a context and additional request options. // -// See ListUsers for details on how to use this API operation. +// See ListVoiceConnectorGroups 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 *Chime) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +func (c *Chime) ListVoiceConnectorGroupsWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, opts ...request.Option) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListUsersPages iterates over the pages of a ListUsers operation, +// ListVoiceConnectorGroupsPages iterates over the pages of a ListVoiceConnectorGroups operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListUsers method for more information on how to use this operation. +// See ListVoiceConnectorGroups 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 ListUsers operation. +// // Example iterating over at most 3 pages of a ListVoiceConnectorGroups operation. // pageNum := 0 -// err := client.ListUsersPages(params, -// func(page *chime.ListUsersOutput, lastPage bool) bool { +// err := client.ListVoiceConnectorGroupsPages(params, +// func(page *chime.ListVoiceConnectorGroupsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Chime) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { - return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Chime) ListVoiceConnectorGroupsPages(input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool) error { + return c.ListVoiceConnectorGroupsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListUsersPagesWithContext same as ListUsersPages except +// ListVoiceConnectorGroupsPagesWithContext same as ListVoiceConnectorGroupsPages 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 *Chime) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { +func (c *Chime) ListVoiceConnectorGroupsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListUsersInput + var inCpy *ListVoiceConnectorGroupsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListUsersRequest(inCpy) + req, _ := c.ListVoiceConnectorGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4131,7 +5282,7 @@ func (c *Chime) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput cont := true for p.Next() && cont { - cont = fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) + cont = fn(p.Page().(*ListVoiceConnectorGroupsOutput), !p.HasNextPage()) } return p.Err() } @@ -4569,74 +5720,275 @@ func (c *Chime) PutEventsConfiguration(input *PutEventsConfigurationInput) (*Put return out, req.Send() } -// PutEventsConfigurationWithContext is the same as PutEventsConfiguration with the addition of +// PutEventsConfigurationWithContext is the same as PutEventsConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutEventsConfiguration 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 *Chime) PutEventsConfigurationWithContext(ctx aws.Context, input *PutEventsConfigurationInput, opts ...request.Option) (*PutEventsConfigurationOutput, error) { + req, out := c.PutEventsConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorLoggingConfiguration = "PutVoiceConnectorLoggingConfiguration" + +// PutVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorLoggingConfiguration 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 PutVoiceConnectorLoggingConfiguration for more information on using the PutVoiceConnectorLoggingConfiguration +// 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 PutVoiceConnectorLoggingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration +func (c *Chime) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *PutVoiceConnectorLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorLoggingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", + } + + if input == nil { + input = &PutVoiceConnectorLoggingConfigurationInput{} + } + + output = &PutVoiceConnectorLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorLoggingConfiguration API operation for Amazon Chime. +// +// Adds a logging configuration for the specified Amazon Chime Voice Connector. +// The logging configuration specifies whether SIP message logs are enabled +// for sending to Amazon CloudWatch Logs. +// +// 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 Chime's +// API operation PutVoiceConnectorLoggingConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration +func (c *Chime) PutVoiceConnectorLoggingConfiguration(input *PutVoiceConnectorLoggingConfigurationInput) (*PutVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorLoggingConfigurationWithContext is the same as PutVoiceConnectorLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorLoggingConfiguration 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 *Chime) PutVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorOrigination = "PutVoiceConnectorOrigination" + +// PutVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorOrigination 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 PutVoiceConnectorOrigination for more information on using the PutVoiceConnectorOrigination +// 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 PutVoiceConnectorOriginationRequest method. +// req, resp := client.PutVoiceConnectorOriginationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination +func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOriginationInput) (req *request.Request, output *PutVoiceConnectorOriginationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorOrigination, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + } + + if input == nil { + input = &PutVoiceConnectorOriginationInput{} + } + + output = &PutVoiceConnectorOriginationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorOrigination API operation for Amazon Chime. +// +// Adds origination settings for the specified Amazon Chime Voice Connector. +// +// 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 Chime's +// API operation PutVoiceConnectorOrigination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination +func (c *Chime) PutVoiceConnectorOrigination(input *PutVoiceConnectorOriginationInput) (*PutVoiceConnectorOriginationOutput, error) { + req, out := c.PutVoiceConnectorOriginationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorOriginationWithContext is the same as PutVoiceConnectorOrigination with the addition of // the ability to pass a context and additional request options. // -// See PutEventsConfiguration for details on how to use this API operation. +// See PutVoiceConnectorOrigination 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 *Chime) PutEventsConfigurationWithContext(ctx aws.Context, input *PutEventsConfigurationInput, opts ...request.Option) (*PutEventsConfigurationOutput, error) { - req, out := c.PutEventsConfigurationRequest(input) +func (c *Chime) PutVoiceConnectorOriginationWithContext(ctx aws.Context, input *PutVoiceConnectorOriginationInput, opts ...request.Option) (*PutVoiceConnectorOriginationOutput, error) { + req, out := c.PutVoiceConnectorOriginationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorOrigination = "PutVoiceConnectorOrigination" +const opPutVoiceConnectorStreamingConfiguration = "PutVoiceConnectorStreamingConfiguration" -// PutVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorOrigination operation. The "output" return +// PutVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorStreamingConfiguration 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 PutVoiceConnectorOrigination for more information on using the PutVoiceConnectorOrigination +// See PutVoiceConnectorStreamingConfiguration for more information on using the PutVoiceConnectorStreamingConfiguration // 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 PutVoiceConnectorOriginationRequest method. -// req, resp := client.PutVoiceConnectorOriginationRequest(params) +// // Example sending a request using the PutVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorStreamingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination -func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOriginationInput) (req *request.Request, output *PutVoiceConnectorOriginationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration +func (c *Chime) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *PutVoiceConnectorStreamingConfigurationOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorOrigination, + Name: opPutVoiceConnectorStreamingConfiguration, HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", } if input == nil { - input = &PutVoiceConnectorOriginationInput{} + input = &PutVoiceConnectorStreamingConfigurationInput{} } - output = &PutVoiceConnectorOriginationOutput{} + output = &PutVoiceConnectorStreamingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorOrigination API operation for Amazon Chime. +// PutVoiceConnectorStreamingConfiguration API operation for Amazon Chime. // -// Adds origination settings for the specified Amazon Chime Voice Connector. +// Adds a streaming configuration for the specified Amazon Chime Voice Connector. +// The streaming configuration specifies whether media streaming is enabled +// for sending to Amazon Kinesis, and sets the retention period for the Amazon +// Kinesis data, in hours. // // 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 Chime's -// API operation PutVoiceConnectorOrigination for usage and error information. +// API operation PutVoiceConnectorStreamingConfiguration for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedClientException "UnauthorizedClientException" @@ -4661,23 +6013,23 @@ func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOrig // * ErrCodeServiceFailureException "ServiceFailureException" // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination -func (c *Chime) PutVoiceConnectorOrigination(input *PutVoiceConnectorOriginationInput) (*PutVoiceConnectorOriginationOutput, error) { - req, out := c.PutVoiceConnectorOriginationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration +func (c *Chime) PutVoiceConnectorStreamingConfiguration(input *PutVoiceConnectorStreamingConfigurationInput) (*PutVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) return out, req.Send() } -// PutVoiceConnectorOriginationWithContext is the same as PutVoiceConnectorOrigination with the addition of +// PutVoiceConnectorStreamingConfigurationWithContext is the same as PutVoiceConnectorStreamingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorOrigination for details on how to use this API operation. +// See PutVoiceConnectorStreamingConfiguration 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 *Chime) PutVoiceConnectorOriginationWithContext(ctx aws.Context, input *PutVoiceConnectorOriginationInput, opts ...request.Option) (*PutVoiceConnectorOriginationOutput, error) { - req, out := c.PutVoiceConnectorOriginationRequest(input) +func (c *Chime) PutVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() @@ -4750,6 +6102,9 @@ func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerm // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. // +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // @@ -5144,6 +6499,9 @@ func (c *Chime) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req * // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. // +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is currently unavailable. // @@ -5226,15 +6584,18 @@ func (c *Chime) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNu // API operation SearchAvailablePhoneNumbers for usage and error information. // // Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" -// The client is not currently authorized to make the request. +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" -// The input parameters don't match the service's restrictions. +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. // // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. @@ -5709,9 +7070,17 @@ func (c *Chime) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *re // UpdatePhoneNumber API operation for Amazon Chime. // -// Updates phone number details, such as product type, for the specified phone -// number ID. For toll-free numbers, you can use only the Amazon Chime Voice -// Connector product type. +// Updates phone number details, such as product type or calling name, for the +// specified phone number ID. You can update one phone number detail at a time. +// For example, you can update either the product type or the calling name in +// one action. +// +// For toll-free numbers, you must use the Amazon Chime Voice Connector product +// type. +// +// Updates to outbound calling names can take up to 72 hours to complete. Pending +// updates to outbound calling names must be complete before you can request +// another update. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5765,6 +7134,105 @@ func (c *Chime) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhone return out, req.Send() } +const opUpdatePhoneNumberSettings = "UpdatePhoneNumberSettings" + +// UpdatePhoneNumberSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePhoneNumberSettings 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 UpdatePhoneNumberSettings for more information on using the UpdatePhoneNumberSettings +// 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 UpdatePhoneNumberSettingsRequest method. +// req, resp := client.UpdatePhoneNumberSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings +func (c *Chime) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSettingsInput) (req *request.Request, output *UpdatePhoneNumberSettingsOutput) { + op := &request.Operation{ + Name: opUpdatePhoneNumberSettings, + HTTPMethod: "PUT", + HTTPPath: "/settings/phone-number", + } + + if input == nil { + input = &UpdatePhoneNumberSettingsInput{} + } + + output = &UpdatePhoneNumberSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdatePhoneNumberSettings API operation for Amazon Chime. +// +// Updates the phone number settings for the administrator's AWS account, such +// as the default outbound calling name. You can update the default outbound +// calling name once every seven days. Outbound calling names can take up to +// 72 hours to be 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 Amazon Chime's +// API operation UpdatePhoneNumberSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings +func (c *Chime) UpdatePhoneNumberSettings(input *UpdatePhoneNumberSettingsInput) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) + return out, req.Send() +} + +// UpdatePhoneNumberSettingsWithContext is the same as UpdatePhoneNumberSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePhoneNumberSettings 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 *Chime) UpdatePhoneNumberSettingsWithContext(ctx aws.Context, input *UpdatePhoneNumberSettingsInput, opts ...request.Option) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateUser = "UpdateUser" // UpdateUserRequest generates a "aws/request.Request" representing the @@ -6061,6 +7529,109 @@ func (c *Chime) UpdateVoiceConnectorWithContext(ctx aws.Context, input *UpdateVo return out, req.Send() } +const opUpdateVoiceConnectorGroup = "UpdateVoiceConnectorGroup" + +// UpdateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceConnectorGroup 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 UpdateVoiceConnectorGroup for more information on using the UpdateVoiceConnectorGroup +// 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 UpdateVoiceConnectorGroupRequest method. +// req, resp := client.UpdateVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup +func (c *Chime) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGroupInput) (req *request.Request, output *UpdateVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opUpdateVoiceConnectorGroup, + HTTPMethod: "PUT", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + } + + if input == nil { + input = &UpdateVoiceConnectorGroupInput{} + } + + output = &UpdateVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceConnectorGroup API operation for Amazon Chime. +// +// Updates details for the specified Amazon Chime Voice Connector group, such +// as the name and Amazon Chime Voice Connector priority ranking. +// +// 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 Chime's +// API operation UpdateVoiceConnectorGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeConflictException "ConflictException" +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup +func (c *Chime) UpdateVoiceConnectorGroup(input *UpdateVoiceConnectorGroupInput) (*UpdateVoiceConnectorGroupOutput, error) { + req, out := c.UpdateVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// UpdateVoiceConnectorGroupWithContext is the same as UpdateVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceConnectorGroup 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 *Chime) UpdateVoiceConnectorGroupWithContext(ctx aws.Context, input *UpdateVoiceConnectorGroupInput, opts ...request.Option) (*UpdateVoiceConnectorGroupOutput, error) { + req, out := c.UpdateVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // The Amazon Chime account details. An AWS account can have multiple Amazon // Chime accounts. type Account struct { @@ -6231,8 +7802,84 @@ func (s *AssociatePhoneNumberWithUserInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *AssociatePhoneNumberWithUserInput) SetAccountId(v string) *AssociatePhoneNumberWithUserInput { + s.AccountId = &v + return s +} + +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *AssociatePhoneNumberWithUserInput) SetE164PhoneNumber(v string) *AssociatePhoneNumberWithUserInput { + s.E164PhoneNumber = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *AssociatePhoneNumberWithUserInput) SetUserId(v string) *AssociatePhoneNumberWithUserInput { + s.UserId = &v + return s +} + +type AssociatePhoneNumberWithUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociatePhoneNumberWithUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumberWithUserOutput) GoString() string { + return s.String() +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // List of phone numbers, in E.164 format. + E164PhoneNumbers []*string `type:"list"` + + // If true, associates the provided phone numbers with the provided Amazon Chime + // Voice Connector Group and removes any previously existing associations. If + // false, does not associate any phone numbers that have previously existing + // associations. + ForceAssociate *bool `type:"boolean"` + + // The Amazon Chime Voice Connector group ID. + // + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) } if invalidParams.Len() > 0 { @@ -6241,44 +7888,60 @@ func (s *AssociatePhoneNumberWithUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *AssociatePhoneNumberWithUserInput) SetAccountId(v string) *AssociatePhoneNumberWithUserInput { - s.AccountId = &v +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.E164PhoneNumbers = v return s } -// SetE164PhoneNumber sets the E164PhoneNumber field's value. -func (s *AssociatePhoneNumberWithUserInput) SetE164PhoneNumber(v string) *AssociatePhoneNumberWithUserInput { - s.E164PhoneNumber = &v +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.ForceAssociate = &v return s } -// SetUserId sets the UserId field's value. -func (s *AssociatePhoneNumberWithUserInput) SetUserId(v string) *AssociatePhoneNumberWithUserInput { - s.UserId = &v +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v return s } -type AssociatePhoneNumberWithUserOutput struct { +type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation -func (s AssociatePhoneNumberWithUserOutput) String() string { +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumberWithUserOutput) GoString() string { +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) GoString() string { return s.String() } +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v + return s +} + type AssociatePhoneNumbersWithVoiceConnectorInput struct { _ struct{} `type:"structure"` // List of phone numbers, in E.164 format. E164PhoneNumbers []*string `type:"list"` + // If true, associates the provided phone numbers with the provided Amazon Chime + // Voice Connector and removes any previously existing associations. If false, + // does not associate any phone numbers that have previously existing associations. + ForceAssociate *bool `type:"boolean"` + // The Amazon Chime Voice Connector ID. // // VoiceConnectorId is a required field @@ -6317,6 +7980,12 @@ func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetE164PhoneNumbers(v []* return s } +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.ForceAssociate = &v + return s +} + // SetVoiceConnectorId sets the VoiceConnectorId field's value. func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetVoiceConnectorId(v string) *AssociatePhoneNumbersWithVoiceConnectorInput { s.VoiceConnectorId = &v @@ -6577,7 +8246,8 @@ func (s *BatchUnsuspendUserOutput) SetUserErrors(v []*UserError) *BatchUnsuspend type BatchUpdatePhoneNumberInput struct { _ struct{} `type:"structure"` - // The request containing the phone number IDs and product types to update. + // The request containing the phone number IDs and product types or calling + // names to update. // // UpdatePhoneNumberRequestItems is a required field UpdatePhoneNumberRequestItems []*UpdatePhoneNumberRequestItem `type:"list" required:"true"` @@ -7086,9 +8756,96 @@ func (s *CreatePhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) return s } +type CreateVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon Chime Voice Connector group. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The Amazon Chime Voice Connectors to route inbound calls to. + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` +} + +// String returns the string representation +func (s CreateVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorGroupInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.VoiceConnectorItems != nil { + for i, v := range s.VoiceConnectorItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VoiceConnectorItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateVoiceConnectorGroupInput) SetName(v string) *CreateVoiceConnectorGroupInput { + s.Name = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *CreateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *CreateVoiceConnectorGroupInput { + s.VoiceConnectorItems = v + return s +} + +type CreateVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector group details. + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation +func (s CreateVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *CreateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *CreateVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + type CreateVoiceConnectorInput struct { _ struct{} `type:"structure"` + // The AWS Region in which the Amazon Chime Voice Connector is created. Default + // value: us-east-1. + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` + // The name of the Amazon Chime Voice Connector. // // Name is a required field @@ -7129,6 +8886,12 @@ func (s *CreateVoiceConnectorInput) Validate() error { return nil } +// SetAwsRegion sets the AwsRegion field's value. +func (s *CreateVoiceConnectorInput) SetAwsRegion(v string) *CreateVoiceConnectorInput { + s.AwsRegion = &v + return s +} + // SetName sets the Name field's value. func (s *CreateVoiceConnectorInput) SetName(v string) *CreateVoiceConnectorInput { s.Name = &v @@ -7382,6 +9145,61 @@ func (s DeletePhoneNumberOutput) GoString() string { return s.String() } +type DeleteVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector group ID. + // + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DeleteVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DeleteVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type DeleteVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + type DeleteVoiceConnectorInput struct { _ struct{} `type:"structure"` @@ -7492,6 +9310,61 @@ func (s DeleteVoiceConnectorOutput) GoString() string { return s.String() } +type DeleteVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceConnectorStreamingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + type DeleteVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` @@ -7608,48 +9481,112 @@ func (s DeleteVoiceConnectorTerminationOutput) String() string { } // GoString returns the string representation -func (s DeleteVoiceConnectorTerminationOutput) GoString() string { +func (s DeleteVoiceConnectorTerminationOutput) GoString() string { + return s.String() +} + +type DisassociatePhoneNumberFromUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociatePhoneNumberFromUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociatePhoneNumberFromUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociatePhoneNumberFromUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumberFromUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DisassociatePhoneNumberFromUserInput) SetAccountId(v string) *DisassociatePhoneNumberFromUserInput { + s.AccountId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DisassociatePhoneNumberFromUserInput) SetUserId(v string) *DisassociatePhoneNumberFromUserInput { + s.UserId = &v + return s +} + +type DisassociatePhoneNumberFromUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociatePhoneNumberFromUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociatePhoneNumberFromUserOutput) GoString() string { return s.String() } -type DisassociatePhoneNumberFromUserInput struct { +type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // List of phone numbers, in E.164 format. + E164PhoneNumbers []*string `type:"list"` - // The user ID. + // The Amazon Chime Voice Connector group ID. // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` } // String returns the string representation -func (s DisassociatePhoneNumberFromUserInput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumberFromUserInput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociatePhoneNumberFromUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumberFromUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) } if invalidParams.Len() > 0 { @@ -7658,32 +9595,43 @@ func (s *DisassociatePhoneNumberFromUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *DisassociatePhoneNumberFromUserInput) SetAccountId(v string) *DisassociatePhoneNumberFromUserInput { - s.AccountId = &v +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.E164PhoneNumbers = v return s } -// SetUserId sets the UserId field's value. -func (s *DisassociatePhoneNumberFromUserInput) SetUserId(v string) *DisassociatePhoneNumberFromUserInput { - s.UserId = &v +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v return s } -type DisassociatePhoneNumberFromUserOutput struct { +type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation -func (s DisassociatePhoneNumberFromUserOutput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumberFromUserOutput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) GoString() string { return s.String() } +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v + return s +} + type DisassociatePhoneNumbersFromVoiceConnectorInput struct { _ struct{} `type:"structure"` @@ -8266,6 +10214,52 @@ func (s *GetPhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *GetPhoneNumberOut return s } +type GetPhoneNumberSettingsInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetPhoneNumberSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPhoneNumberSettingsInput) GoString() string { + return s.String() +} + +type GetPhoneNumberSettingsOutput struct { + _ struct{} `type:"structure"` + + // The default outbound calling name for the account. + CallingName *string `type:"string" sensitive:"true"` + + // The updated outbound calling name timestamp, in ISO 8601 format. + CallingNameUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s GetPhoneNumberSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPhoneNumberSettingsOutput) GoString() string { + return s.String() +} + +// SetCallingName sets the CallingName field's value. +func (s *GetPhoneNumberSettingsOutput) SetCallingName(v string) *GetPhoneNumberSettingsOutput { + s.CallingName = &v + return s +} + +// SetCallingNameUpdatedTimestamp sets the CallingNameUpdatedTimestamp field's value. +func (s *GetPhoneNumberSettingsOutput) SetCallingNameUpdatedTimestamp(v time.Time) *GetPhoneNumberSettingsOutput { + s.CallingNameUpdatedTimestamp = &v + return s +} + type GetUserInput struct { _ struct{} `type:"structure"` @@ -8428,6 +10422,70 @@ func (s *GetUserSettingsOutput) SetUserSettings(v *UserSettings) *GetUserSetting return s } +type GetVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector group ID. + // + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *GetVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *GetVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type GetVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector group details. + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation +func (s GetVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *GetVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *GetVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + type GetVoiceConnectorInput struct { _ struct{} `type:"structure"` @@ -8469,7 +10527,158 @@ func (s *GetVoiceConnectorInput) SetVoiceConnectorId(v string) *GetVoiceConnecto return s } -type GetVoiceConnectorOriginationInput struct { +type GetVoiceConnectorLoggingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetVoiceConnectorLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorLoggingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The logging configuration details. + LoggingConfiguration *LoggingConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorLoggingConfigurationOutput) GoString() string { + return s.String() +} + +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *GetVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *GetVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} + +type GetVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetVoiceConnectorOriginationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorOriginationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorOriginationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` + + // The origination setting details. + Origination *Origination `type:"structure"` +} + +// String returns the string representation +func (s GetVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorOriginationOutput) GoString() string { + return s.String() +} + +// SetOrigination sets the Origination field's value. +func (s *GetVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *GetVoiceConnectorOriginationOutput { + s.Origination = v + return s +} + +type GetVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector details. + VoiceConnector *VoiceConnector `type:"structure"` +} + +// String returns the string representation +func (s GetVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +type GetVoiceConnectorStreamingConfigurationInput struct { _ struct{} `type:"structure"` // The Amazon Chime Voice Connector ID. @@ -8479,18 +10688,18 @@ type GetVoiceConnectorOriginationInput struct { } // String returns the string representation -func (s GetVoiceConnectorOriginationInput) String() string { +func (s GetVoiceConnectorStreamingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorOriginationInput) GoString() string { +func (s GetVoiceConnectorStreamingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorOriginationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorOriginationInput"} +func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorStreamingConfigurationInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -8505,54 +10714,31 @@ func (s *GetVoiceConnectorOriginationInput) Validate() error { } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { +func (s *GetVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorStreamingConfigurationInput { s.VoiceConnectorId = &v return s } -type GetVoiceConnectorOriginationOutput struct { - _ struct{} `type:"structure"` - - // The origination setting details. - Origination *Origination `type:"structure"` -} - -// String returns the string representation -func (s GetVoiceConnectorOriginationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetVoiceConnectorOriginationOutput) GoString() string { - return s.String() -} - -// SetOrigination sets the Origination field's value. -func (s *GetVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *GetVoiceConnectorOriginationOutput { - s.Origination = v - return s -} - -type GetVoiceConnectorOutput struct { +type GetVoiceConnectorStreamingConfigurationOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector details. - VoiceConnector *VoiceConnector `type:"structure"` + // The streaming configuration details. + StreamingConfiguration *StreamingConfiguration `type:"structure"` } // String returns the string representation -func (s GetVoiceConnectorOutput) String() string { +func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorOutput) GoString() string { +func (s GetVoiceConnectorStreamingConfigurationOutput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { - s.VoiceConnector = v +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *GetVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *GetVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v return s } @@ -9299,6 +11485,83 @@ func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { return s } +type ListVoiceConnectorGroupsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation +func (s ListVoiceConnectorGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVoiceConnectorGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVoiceConnectorGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorGroupsInput"} + 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 *ListVoiceConnectorGroupsInput) SetMaxResults(v int64) *ListVoiceConnectorGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorGroupsInput) SetNextToken(v string) *ListVoiceConnectorGroupsInput { + s.NextToken = &v + return s +} + +type ListVoiceConnectorGroupsOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // The details of the Amazon Chime Voice Connector groups. + VoiceConnectorGroups []*VoiceConnectorGroup `type:"list"` +} + +// String returns the string representation +func (s ListVoiceConnectorGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVoiceConnectorGroupsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorGroupsOutput) SetNextToken(v string) *ListVoiceConnectorGroupsOutput { + s.NextToken = &v + return s +} + +// SetVoiceConnectorGroups sets the VoiceConnectorGroups field's value. +func (s *ListVoiceConnectorGroupsOutput) SetVoiceConnectorGroups(v []*VoiceConnectorGroup) *ListVoiceConnectorGroupsOutput { + s.VoiceConnectorGroups = v + return s +} + type ListVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` @@ -9440,6 +11703,32 @@ func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *Lis return s } +// The logging configuration associated with an Amazon Chime Voice Connector. +// Specifies whether SIP message logs are enabled for sending to Amazon CloudWatch +// Logs. +type LoggingConfiguration struct { + _ struct{} `type:"structure"` + + // When true, enables SIP message logs for sending to Amazon CloudWatch Logs. + EnableSIPLogs *bool `type:"boolean"` +} + +// String returns the string representation +func (s LoggingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LoggingConfiguration) GoString() string { + return s.String() +} + +// SetEnableSIPLogs sets the EnableSIPLogs field's value. +func (s *LoggingConfiguration) SetEnableSIPLogs(v bool) *LoggingConfiguration { + s.EnableSIPLogs = &v + return s +} + type LogoutUserInput struct { _ struct{} `type:"structure"` @@ -9603,11 +11892,11 @@ func (s *Origination) SetRoutes(v []*OriginationRoute) *Origination { // Origination routes define call distribution properties for your SIP hosts // to receive inbound calls using your Amazon Chime Voice Connector. Limit: -// 10 origination routes per Amazon Chime Voice Connector. +// Ten origination routes for each Amazon Chime Voice Connector. type OriginationRoute struct { _ struct{} `type:"structure"` - // The FODN or IP address to contact for origination traffic. + // The FQDN or IP address to contact for origination traffic. Host *string `type:"string"` // The designated origination route port. Defaults to 5060. @@ -9690,6 +11979,12 @@ type PhoneNumber struct { // The phone number associations. Associations []*PhoneNumberAssociation `type:"list"` + // The outbound calling name associated with the phone number. + CallingName *string `type:"string" sensitive:"true"` + + // The outbound calling name status. + CallingNameStatus *string `type:"string" enum:"CallingNameStatus"` + // The phone number capabilities. Capabilities *PhoneNumberCapabilities `type:"structure"` @@ -9734,6 +12029,18 @@ func (s *PhoneNumber) SetAssociations(v []*PhoneNumberAssociation) *PhoneNumber return s } +// SetCallingName sets the CallingName field's value. +func (s *PhoneNumber) SetCallingName(v string) *PhoneNumber { + s.CallingName = &v + return s +} + +// SetCallingNameStatus sets the CallingNameStatus field's value. +func (s *PhoneNumber) SetCallingNameStatus(v string) *PhoneNumber { + s.CallingNameStatus = &v + return s +} + // SetCapabilities sets the Capabilities field's value. func (s *PhoneNumber) SetCapabilities(v *PhoneNumberCapabilities) *PhoneNumber { s.Capabilities = v @@ -9789,15 +12096,16 @@ func (s *PhoneNumber) SetUpdatedTimestamp(v time.Time) *PhoneNumber { } // The phone number associations, such as Amazon Chime account ID, Amazon Chime -// user ID, or Amazon Chime Voice Connector ID. +// user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector +// group ID. type PhoneNumberAssociation struct { _ struct{} `type:"structure"` // The timestamp of the phone number association, in ISO 8601 format. AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // Defines the association with an Amazon Chime account ID, user ID, or Amazon - // Chime Voice Connector ID. + // Defines the association with an Amazon Chime account ID, user ID, Amazon + // Chime Voice Connector ID, or Amazon Chime Voice Connector group ID. Name *string `type:"string" enum:"PhoneNumberAssociationName"` // Contains the ID for the entity specified in Name. @@ -9832,8 +12140,8 @@ func (s *PhoneNumberAssociation) SetValue(v string) *PhoneNumberAssociation { return s } -// The phone number capabilities, such as enabled inbound and outbound calling -// and text messaging. +// The phone number capabilities for Amazon Chime Business Calling phone numbers, +// such as enabled inbound and outbound calling and text messaging. type PhoneNumberCapabilities struct { _ struct{} `type:"structure"` @@ -10116,6 +12424,84 @@ func (s *PutEventsConfigurationOutput) SetEventsConfiguration(v *EventsConfigura return s } +type PutVoiceConnectorLoggingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The logging configuration details to add. + // + // LoggingConfiguration is a required field + LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutVoiceConnectorLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutVoiceConnectorLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorLoggingConfigurationInput"} + if s.LoggingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("LoggingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationInput { + s.LoggingConfiguration = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The updated logging configuration details. + LoggingConfiguration *LoggingConfiguration `type:"structure"` +} + +// String returns the string representation +func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutVoiceConnectorLoggingConfigurationOutput) GoString() string { + return s.String() +} + +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} + type PutVoiceConnectorOriginationInput struct { _ struct{} `type:"structure"` @@ -10199,6 +12585,89 @@ func (s *PutVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *Put return s } +type PutVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The streaming configuration details to add. + // + // StreamingConfiguration is a required field + StreamingConfiguration *StreamingConfiguration `type:"structure" required:"true"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutVoiceConnectorStreamingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutVoiceConnectorStreamingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorStreamingConfigurationInput"} + if s.StreamingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("StreamingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.StreamingConfiguration != nil { + if err := s.StreamingConfiguration.Validate(); err != nil { + invalidParams.AddNested("StreamingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationInput { + s.StreamingConfiguration = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The updated streaming configuration details. + StreamingConfiguration *StreamingConfiguration `type:"structure"` +} + +// String returns the string representation +func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v + return s +} + type PutVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` @@ -10674,18 +13143,68 @@ type SearchAvailablePhoneNumbersOutput struct { } // String returns the string representation -func (s SearchAvailablePhoneNumbersOutput) String() string { +func (s SearchAvailablePhoneNumbersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchAvailablePhoneNumbersOutput) GoString() string { + return s.String() +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *SearchAvailablePhoneNumbersOutput { + s.E164PhoneNumbers = v + return s +} + +// The streaming configuration associated with an Amazon Chime Voice Connector. +// Specifies whether media streaming is enabled for sending to Amazon Kinesis, +// and shows the retention period for the Amazon Kinesis data, in hours. +type StreamingConfiguration struct { + _ struct{} `type:"structure"` + + // The retention period for the Amazon Kinesis data, in hours. + // + // DataRetentionInHours is a required field + DataRetentionInHours *int64 `type:"integer" required:"true"` + + // When true, media streaming to Amazon Kinesis is turned off. + Disabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s StreamingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SearchAvailablePhoneNumbersOutput) GoString() string { +func (s StreamingConfiguration) GoString() string { return s.String() } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *SearchAvailablePhoneNumbersOutput { - s.E164PhoneNumbers = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *StreamingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamingConfiguration"} + if s.DataRetentionInHours == nil { + invalidParams.Add(request.NewErrParamRequired("DataRetentionInHours")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataRetentionInHours sets the DataRetentionInHours field's value. +func (s *StreamingConfiguration) SetDataRetentionInHours(v int64) *StreamingConfiguration { + s.DataRetentionInHours = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *StreamingConfiguration) SetDisabled(v bool) *StreamingConfiguration { + s.Disabled = &v return s } @@ -10762,10 +13281,10 @@ func (s *TelephonySettings) SetSMS(v bool) *TelephonySettings { type Termination struct { _ struct{} `type:"structure"` - // The countries to which calls are allowed. + // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required. CallingRegions []*string `type:"list"` - // The IP addresses allowed to make calls, in CIDR format. + // The IP addresses allowed to make calls, in CIDR format. Required. CidrAllowedList []*string `type:"list"` // The limit on calls per second. Max value based on account service limit. @@ -11170,6 +13689,9 @@ func (s UpdateGlobalSettingsOutput) GoString() string { type UpdatePhoneNumberInput struct { _ struct{} `type:"structure"` + // The outbound calling name associated with the phone number. + CallingName *string `type:"string" sensitive:"true"` + // The phone number ID. // // PhoneNumberId is a required field @@ -11205,6 +13727,12 @@ func (s *UpdatePhoneNumberInput) Validate() error { return nil } +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberInput) SetCallingName(v string) *UpdatePhoneNumberInput { + s.CallingName = &v + return s +} + // SetPhoneNumberId sets the PhoneNumberId field's value. func (s *UpdatePhoneNumberInput) SetPhoneNumberId(v string) *UpdatePhoneNumberInput { s.PhoneNumberId = &v @@ -11240,11 +13768,14 @@ func (s *UpdatePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *UpdatePhoneNum return s } -// The phone number ID and product type fields to update, used with the BatchUpdatePhoneNumber -// and UpdatePhoneNumber actions. +// The phone number ID, product type, or calling name fields to update, used +// with the BatchUpdatePhoneNumber and UpdatePhoneNumber actions. type UpdatePhoneNumberRequestItem struct { _ struct{} `type:"structure"` + // The outbound calling name to update. + CallingName *string `type:"string" sensitive:"true"` + // The phone number ID to update. // // PhoneNumberId is a required field @@ -11277,6 +13808,12 @@ func (s *UpdatePhoneNumberRequestItem) Validate() error { return nil } +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberRequestItem) SetCallingName(v string) *UpdatePhoneNumberRequestItem { + s.CallingName = &v + return s +} + // SetPhoneNumberId sets the PhoneNumberId field's value. func (s *UpdatePhoneNumberRequestItem) SetPhoneNumberId(v string) *UpdatePhoneNumberRequestItem { s.PhoneNumberId = &v @@ -11289,6 +13826,58 @@ func (s *UpdatePhoneNumberRequestItem) SetProductType(v string) *UpdatePhoneNumb return s } +type UpdatePhoneNumberSettingsInput struct { + _ struct{} `type:"structure"` + + // The default outbound calling name for the account. + // + // CallingName is a required field + CallingName *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s UpdatePhoneNumberSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdatePhoneNumberSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePhoneNumberSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberSettingsInput"} + if s.CallingName == nil { + invalidParams.Add(request.NewErrParamRequired("CallingName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberSettingsInput) SetCallingName(v string) *UpdatePhoneNumberSettingsInput { + s.CallingName = &v + return s +} + +type UpdatePhoneNumberSettingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdatePhoneNumberSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdatePhoneNumberSettingsOutput) GoString() string { + return s.String() +} + type UpdateUserInput struct { _ struct{} `type:"structure"` @@ -11519,6 +14108,111 @@ func (s UpdateUserSettingsOutput) GoString() string { return s.String() } +type UpdateVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon Chime Voice Connector group. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The Amazon Chime Voice Connector group ID. + // + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + + // The VoiceConnectorItems to associate with the group. + // + // VoiceConnectorItems is a required field + VoiceConnectorItems []*VoiceConnectorItem `type:"list" required:"true"` +} + +// String returns the string representation +func (s UpdateVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceConnectorGroupInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + if s.VoiceConnectorItems == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorItems")) + } + if s.VoiceConnectorItems != nil { + for i, v := range s.VoiceConnectorItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VoiceConnectorItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateVoiceConnectorGroupInput) SetName(v string) *UpdateVoiceConnectorGroupInput { + s.Name = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *UpdateVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *UpdateVoiceConnectorGroupInput { + s.VoiceConnectorItems = v + return s +} + +type UpdateVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + // The updated Amazon Chime Voice Connector group details. + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation +func (s UpdateVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *UpdateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *UpdateVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + type UpdateVoiceConnectorInput struct { _ struct{} `type:"structure"` @@ -11594,7 +14288,7 @@ func (s *UpdateVoiceConnectorInput) SetVoiceConnectorId(v string) *UpdateVoiceCo type UpdateVoiceConnectorOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector details. + // The updated Amazon Chime Voice Connector details. VoiceConnector *VoiceConnector `type:"structure"` } @@ -11825,6 +14519,10 @@ func (s *UserSettings) SetTelephony(v *TelephonySettings) *UserSettings { type VoiceConnector struct { _ struct{} `type:"structure"` + // The AWS Region in which the Amazon Chime Voice Connector is created. Default: + // us-east-1. + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` + // The Amazon Chime Voice Connector creation timestamp, in ISO 8601 format. CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` @@ -11854,6 +14552,12 @@ func (s VoiceConnector) GoString() string { return s.String() } +// SetAwsRegion sets the AwsRegion field's value. +func (s *VoiceConnector) SetAwsRegion(v string) *VoiceConnector { + s.AwsRegion = &v + return s +} + // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *VoiceConnector) SetCreatedTimestamp(v time.Time) *VoiceConnector { s.CreatedTimestamp = &v @@ -11890,6 +14594,129 @@ func (s *VoiceConnector) SetVoiceConnectorId(v string) *VoiceConnector { return s } +// The Amazon Chime Voice Connector group configuration, including associated +// Amazon Chime Voice Connectors. You can include Amazon Chime Voice Connectors +// from different AWS Regions in your group. This creates a fault tolerant mechanism +// for fallback in case of availability events. +type VoiceConnectorGroup struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector group creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The name of the Amazon Chime Voice Connector group. + Name *string `min:"1" type:"string"` + + // The updated Amazon Chime Voice Connector group timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The Amazon Chime Voice Connector group ID. + VoiceConnectorGroupId *string `type:"string"` + + // The Amazon Chime Voice Connectors to which to route inbound calls. + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` +} + +// String returns the string representation +func (s VoiceConnectorGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VoiceConnectorGroup) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceConnectorGroup) SetCreatedTimestamp(v time.Time) *VoiceConnectorGroup { + s.CreatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *VoiceConnectorGroup) SetName(v string) *VoiceConnectorGroup { + s.Name = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceConnectorGroup) SetUpdatedTimestamp(v time.Time) *VoiceConnectorGroup { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorGroupId(v string) *VoiceConnectorGroup { + s.VoiceConnectorGroupId = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorItems(v []*VoiceConnectorItem) *VoiceConnectorGroup { + s.VoiceConnectorItems = v + return s +} + +// For Amazon Chime Voice Connector groups, the Amazon Chime Voice Connectors +// to which to route inbound calls. Includes priority configuration settings. +// Limit: 3 VoiceConnectorItems per Amazon Chime Voice Connector group. +type VoiceConnectorItem struct { + _ struct{} `type:"structure"` + + // The priority associated with the Amazon Chime Voice Connector, with 1 being + // the highest priority. Higher priority Amazon Chime Voice Connectors are attempted + // first. + // + // Priority is a required field + Priority *int64 `min:"1" type:"integer" required:"true"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s VoiceConnectorItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VoiceConnectorItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VoiceConnectorItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VoiceConnectorItem"} + if s.Priority == nil { + invalidParams.Add(request.NewErrParamRequired("Priority")) + } + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPriority sets the Priority field's value. +func (s *VoiceConnectorItem) SetPriority(v int64) *VoiceConnectorItem { + s.Priority = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *VoiceConnectorItem) SetVoiceConnectorId(v string) *VoiceConnectorItem { + s.VoiceConnectorId = &v + return s +} + // The Amazon Chime Voice Connector settings. Includes any Amazon S3 buckets // designated for storing call detail records. type VoiceConnectorSettings struct { @@ -11934,6 +14761,20 @@ const ( BotTypeChatBot = "ChatBot" ) +const ( + // CallingNameStatusUnassigned is a CallingNameStatus enum value + CallingNameStatusUnassigned = "Unassigned" + + // CallingNameStatusUpdateInProgress is a CallingNameStatus enum value + CallingNameStatusUpdateInProgress = "UpdateInProgress" + + // CallingNameStatusUpdateSucceeded is a CallingNameStatus enum value + CallingNameStatusUpdateSucceeded = "UpdateSucceeded" + + // CallingNameStatusUpdateFailed is a CallingNameStatus enum value + CallingNameStatusUpdateFailed = "UpdateFailed" +) + const ( // EmailStatusNotSent is a EmailStatus enum value EmailStatusNotSent = "NotSent" @@ -11946,8 +14787,11 @@ const ( ) const ( - // ErrorCodeUnauthorized is a ErrorCode enum value - ErrorCodeUnauthorized = "Unauthorized" + // ErrorCodeBadRequest is a ErrorCode enum value + ErrorCodeBadRequest = "BadRequest" + + // ErrorCodeConflict is a ErrorCode enum value + ErrorCodeConflict = "Conflict" // ErrorCodeForbidden is a ErrorCode enum value ErrorCodeForbidden = "Forbidden" @@ -11955,26 +14799,35 @@ const ( // ErrorCodeNotFound is a ErrorCode enum value ErrorCodeNotFound = "NotFound" - // ErrorCodeBadRequest is a ErrorCode enum value - ErrorCodeBadRequest = "BadRequest" + // ErrorCodePreconditionFailed is a ErrorCode enum value + ErrorCodePreconditionFailed = "PreconditionFailed" - // ErrorCodeConflict is a ErrorCode enum value - ErrorCodeConflict = "Conflict" + // ErrorCodeResourceLimitExceeded is a ErrorCode enum value + ErrorCodeResourceLimitExceeded = "ResourceLimitExceeded" // ErrorCodeServiceFailure is a ErrorCode enum value ErrorCodeServiceFailure = "ServiceFailure" + // ErrorCodeAccessDenied is a ErrorCode enum value + ErrorCodeAccessDenied = "AccessDenied" + // ErrorCodeServiceUnavailable is a ErrorCode enum value ErrorCodeServiceUnavailable = "ServiceUnavailable" + // ErrorCodeThrottled is a ErrorCode enum value + ErrorCodeThrottled = "Throttled" + + // ErrorCodeUnauthorized is a ErrorCode enum value + ErrorCodeUnauthorized = "Unauthorized" + // ErrorCodeUnprocessable is a ErrorCode enum value ErrorCodeUnprocessable = "Unprocessable" - // ErrorCodeThrottled is a ErrorCode enum value - ErrorCodeThrottled = "Throttled" + // ErrorCodeVoiceConnectorGroupAssociationsExist is a ErrorCode enum value + ErrorCodeVoiceConnectorGroupAssociationsExist = "VoiceConnectorGroupAssociationsExist" - // ErrorCodePreconditionFailed is a ErrorCode enum value - ErrorCodePreconditionFailed = "PreconditionFailed" + // ErrorCodePhoneNumberAssociationsExist is a ErrorCode enum value + ErrorCodePhoneNumberAssociationsExist = "PhoneNumberAssociationsExist" ) const ( @@ -12030,6 +14883,9 @@ const ( // PhoneNumberAssociationNameVoiceConnectorId is a PhoneNumberAssociationName enum value PhoneNumberAssociationNameVoiceConnectorId = "VoiceConnectorId" + + // PhoneNumberAssociationNameVoiceConnectorGroupId is a PhoneNumberAssociationName enum value + PhoneNumberAssociationNameVoiceConnectorGroupId = "VoiceConnectorGroupId" ) const ( @@ -12098,3 +14954,11 @@ const ( // RegistrationStatusSuspended is a RegistrationStatus enum value RegistrationStatusSuspended = "Suspended" ) + +const ( + // VoiceConnectorAwsRegionUsEast1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionUsEast1 = "us-east-1" + + // VoiceConnectorAwsRegionUsWest2 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionUsWest2 = "us-west-2" +) diff --git a/service/chime/chimeiface/interface.go b/service/chime/chimeiface/interface.go index 9e6af278a4..d329cee1ea 100644 --- a/service/chime/chimeiface/interface.go +++ b/service/chime/chimeiface/interface.go @@ -68,6 +68,10 @@ type ChimeAPI interface { AssociatePhoneNumbersWithVoiceConnectorWithContext(aws.Context, *chime.AssociatePhoneNumbersWithVoiceConnectorInput, ...request.Option) (*chime.AssociatePhoneNumbersWithVoiceConnectorOutput, error) AssociatePhoneNumbersWithVoiceConnectorRequest(*chime.AssociatePhoneNumbersWithVoiceConnectorInput) (*request.Request, *chime.AssociatePhoneNumbersWithVoiceConnectorOutput) + AssociatePhoneNumbersWithVoiceConnectorGroup(*chime.AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*chime.AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) + AssociatePhoneNumbersWithVoiceConnectorGroupWithContext(aws.Context, *chime.AssociatePhoneNumbersWithVoiceConnectorGroupInput, ...request.Option) (*chime.AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) + AssociatePhoneNumbersWithVoiceConnectorGroupRequest(*chime.AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*request.Request, *chime.AssociatePhoneNumbersWithVoiceConnectorGroupOutput) + BatchDeletePhoneNumber(*chime.BatchDeletePhoneNumberInput) (*chime.BatchDeletePhoneNumberOutput, error) BatchDeletePhoneNumberWithContext(aws.Context, *chime.BatchDeletePhoneNumberInput, ...request.Option) (*chime.BatchDeletePhoneNumberOutput, error) BatchDeletePhoneNumberRequest(*chime.BatchDeletePhoneNumberInput) (*request.Request, *chime.BatchDeletePhoneNumberOutput) @@ -104,6 +108,10 @@ type ChimeAPI interface { CreateVoiceConnectorWithContext(aws.Context, *chime.CreateVoiceConnectorInput, ...request.Option) (*chime.CreateVoiceConnectorOutput, error) CreateVoiceConnectorRequest(*chime.CreateVoiceConnectorInput) (*request.Request, *chime.CreateVoiceConnectorOutput) + CreateVoiceConnectorGroup(*chime.CreateVoiceConnectorGroupInput) (*chime.CreateVoiceConnectorGroupOutput, error) + CreateVoiceConnectorGroupWithContext(aws.Context, *chime.CreateVoiceConnectorGroupInput, ...request.Option) (*chime.CreateVoiceConnectorGroupOutput, error) + CreateVoiceConnectorGroupRequest(*chime.CreateVoiceConnectorGroupInput) (*request.Request, *chime.CreateVoiceConnectorGroupOutput) + DeleteAccount(*chime.DeleteAccountInput) (*chime.DeleteAccountOutput, error) DeleteAccountWithContext(aws.Context, *chime.DeleteAccountInput, ...request.Option) (*chime.DeleteAccountOutput, error) DeleteAccountRequest(*chime.DeleteAccountInput) (*request.Request, *chime.DeleteAccountOutput) @@ -120,10 +128,18 @@ type ChimeAPI interface { DeleteVoiceConnectorWithContext(aws.Context, *chime.DeleteVoiceConnectorInput, ...request.Option) (*chime.DeleteVoiceConnectorOutput, error) DeleteVoiceConnectorRequest(*chime.DeleteVoiceConnectorInput) (*request.Request, *chime.DeleteVoiceConnectorOutput) + DeleteVoiceConnectorGroup(*chime.DeleteVoiceConnectorGroupInput) (*chime.DeleteVoiceConnectorGroupOutput, error) + DeleteVoiceConnectorGroupWithContext(aws.Context, *chime.DeleteVoiceConnectorGroupInput, ...request.Option) (*chime.DeleteVoiceConnectorGroupOutput, error) + DeleteVoiceConnectorGroupRequest(*chime.DeleteVoiceConnectorGroupInput) (*request.Request, *chime.DeleteVoiceConnectorGroupOutput) + DeleteVoiceConnectorOrigination(*chime.DeleteVoiceConnectorOriginationInput) (*chime.DeleteVoiceConnectorOriginationOutput, error) DeleteVoiceConnectorOriginationWithContext(aws.Context, *chime.DeleteVoiceConnectorOriginationInput, ...request.Option) (*chime.DeleteVoiceConnectorOriginationOutput, error) DeleteVoiceConnectorOriginationRequest(*chime.DeleteVoiceConnectorOriginationInput) (*request.Request, *chime.DeleteVoiceConnectorOriginationOutput) + DeleteVoiceConnectorStreamingConfiguration(*chime.DeleteVoiceConnectorStreamingConfigurationInput) (*chime.DeleteVoiceConnectorStreamingConfigurationOutput, error) + DeleteVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chime.DeleteVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chime.DeleteVoiceConnectorStreamingConfigurationOutput, error) + DeleteVoiceConnectorStreamingConfigurationRequest(*chime.DeleteVoiceConnectorStreamingConfigurationInput) (*request.Request, *chime.DeleteVoiceConnectorStreamingConfigurationOutput) + DeleteVoiceConnectorTermination(*chime.DeleteVoiceConnectorTerminationInput) (*chime.DeleteVoiceConnectorTerminationOutput, error) DeleteVoiceConnectorTerminationWithContext(aws.Context, *chime.DeleteVoiceConnectorTerminationInput, ...request.Option) (*chime.DeleteVoiceConnectorTerminationOutput, error) DeleteVoiceConnectorTerminationRequest(*chime.DeleteVoiceConnectorTerminationInput) (*request.Request, *chime.DeleteVoiceConnectorTerminationOutput) @@ -140,6 +156,10 @@ type ChimeAPI interface { DisassociatePhoneNumbersFromVoiceConnectorWithContext(aws.Context, *chime.DisassociatePhoneNumbersFromVoiceConnectorInput, ...request.Option) (*chime.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) DisassociatePhoneNumbersFromVoiceConnectorRequest(*chime.DisassociatePhoneNumbersFromVoiceConnectorInput) (*request.Request, *chime.DisassociatePhoneNumbersFromVoiceConnectorOutput) + DisassociatePhoneNumbersFromVoiceConnectorGroup(*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) + DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(aws.Context, *chime.DisassociatePhoneNumbersFromVoiceConnectorGroupInput, ...request.Option) (*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) + DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*request.Request, *chime.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) + GetAccount(*chime.GetAccountInput) (*chime.GetAccountOutput, error) GetAccountWithContext(aws.Context, *chime.GetAccountInput, ...request.Option) (*chime.GetAccountOutput, error) GetAccountRequest(*chime.GetAccountInput) (*request.Request, *chime.GetAccountOutput) @@ -168,6 +188,10 @@ type ChimeAPI interface { GetPhoneNumberOrderWithContext(aws.Context, *chime.GetPhoneNumberOrderInput, ...request.Option) (*chime.GetPhoneNumberOrderOutput, error) GetPhoneNumberOrderRequest(*chime.GetPhoneNumberOrderInput) (*request.Request, *chime.GetPhoneNumberOrderOutput) + GetPhoneNumberSettings(*chime.GetPhoneNumberSettingsInput) (*chime.GetPhoneNumberSettingsOutput, error) + GetPhoneNumberSettingsWithContext(aws.Context, *chime.GetPhoneNumberSettingsInput, ...request.Option) (*chime.GetPhoneNumberSettingsOutput, error) + GetPhoneNumberSettingsRequest(*chime.GetPhoneNumberSettingsInput) (*request.Request, *chime.GetPhoneNumberSettingsOutput) + GetUser(*chime.GetUserInput) (*chime.GetUserOutput, error) GetUserWithContext(aws.Context, *chime.GetUserInput, ...request.Option) (*chime.GetUserOutput, error) GetUserRequest(*chime.GetUserInput) (*request.Request, *chime.GetUserOutput) @@ -180,10 +204,22 @@ type ChimeAPI interface { GetVoiceConnectorWithContext(aws.Context, *chime.GetVoiceConnectorInput, ...request.Option) (*chime.GetVoiceConnectorOutput, error) GetVoiceConnectorRequest(*chime.GetVoiceConnectorInput) (*request.Request, *chime.GetVoiceConnectorOutput) + GetVoiceConnectorGroup(*chime.GetVoiceConnectorGroupInput) (*chime.GetVoiceConnectorGroupOutput, error) + GetVoiceConnectorGroupWithContext(aws.Context, *chime.GetVoiceConnectorGroupInput, ...request.Option) (*chime.GetVoiceConnectorGroupOutput, error) + GetVoiceConnectorGroupRequest(*chime.GetVoiceConnectorGroupInput) (*request.Request, *chime.GetVoiceConnectorGroupOutput) + + GetVoiceConnectorLoggingConfiguration(*chime.GetVoiceConnectorLoggingConfigurationInput) (*chime.GetVoiceConnectorLoggingConfigurationOutput, error) + GetVoiceConnectorLoggingConfigurationWithContext(aws.Context, *chime.GetVoiceConnectorLoggingConfigurationInput, ...request.Option) (*chime.GetVoiceConnectorLoggingConfigurationOutput, error) + GetVoiceConnectorLoggingConfigurationRequest(*chime.GetVoiceConnectorLoggingConfigurationInput) (*request.Request, *chime.GetVoiceConnectorLoggingConfigurationOutput) + GetVoiceConnectorOrigination(*chime.GetVoiceConnectorOriginationInput) (*chime.GetVoiceConnectorOriginationOutput, error) GetVoiceConnectorOriginationWithContext(aws.Context, *chime.GetVoiceConnectorOriginationInput, ...request.Option) (*chime.GetVoiceConnectorOriginationOutput, error) GetVoiceConnectorOriginationRequest(*chime.GetVoiceConnectorOriginationInput) (*request.Request, *chime.GetVoiceConnectorOriginationOutput) + GetVoiceConnectorStreamingConfiguration(*chime.GetVoiceConnectorStreamingConfigurationInput) (*chime.GetVoiceConnectorStreamingConfigurationOutput, error) + GetVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chime.GetVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chime.GetVoiceConnectorStreamingConfigurationOutput, error) + GetVoiceConnectorStreamingConfigurationRequest(*chime.GetVoiceConnectorStreamingConfigurationInput) (*request.Request, *chime.GetVoiceConnectorStreamingConfigurationOutput) + GetVoiceConnectorTermination(*chime.GetVoiceConnectorTerminationInput) (*chime.GetVoiceConnectorTerminationOutput, error) GetVoiceConnectorTerminationWithContext(aws.Context, *chime.GetVoiceConnectorTerminationInput, ...request.Option) (*chime.GetVoiceConnectorTerminationOutput, error) GetVoiceConnectorTerminationRequest(*chime.GetVoiceConnectorTerminationInput) (*request.Request, *chime.GetVoiceConnectorTerminationOutput) @@ -207,6 +243,9 @@ type ChimeAPI interface { ListBotsWithContext(aws.Context, *chime.ListBotsInput, ...request.Option) (*chime.ListBotsOutput, error) ListBotsRequest(*chime.ListBotsInput) (*request.Request, *chime.ListBotsOutput) + ListBotsPages(*chime.ListBotsInput, func(*chime.ListBotsOutput, bool) bool) error + ListBotsPagesWithContext(aws.Context, *chime.ListBotsInput, func(*chime.ListBotsOutput, bool) bool, ...request.Option) error + ListPhoneNumberOrders(*chime.ListPhoneNumberOrdersInput) (*chime.ListPhoneNumberOrdersOutput, error) ListPhoneNumberOrdersWithContext(aws.Context, *chime.ListPhoneNumberOrdersInput, ...request.Option) (*chime.ListPhoneNumberOrdersOutput, error) ListPhoneNumberOrdersRequest(*chime.ListPhoneNumberOrdersInput) (*request.Request, *chime.ListPhoneNumberOrdersOutput) @@ -228,6 +267,13 @@ type ChimeAPI interface { ListUsersPages(*chime.ListUsersInput, func(*chime.ListUsersOutput, bool) bool) error ListUsersPagesWithContext(aws.Context, *chime.ListUsersInput, func(*chime.ListUsersOutput, bool) bool, ...request.Option) error + ListVoiceConnectorGroups(*chime.ListVoiceConnectorGroupsInput) (*chime.ListVoiceConnectorGroupsOutput, error) + ListVoiceConnectorGroupsWithContext(aws.Context, *chime.ListVoiceConnectorGroupsInput, ...request.Option) (*chime.ListVoiceConnectorGroupsOutput, error) + ListVoiceConnectorGroupsRequest(*chime.ListVoiceConnectorGroupsInput) (*request.Request, *chime.ListVoiceConnectorGroupsOutput) + + ListVoiceConnectorGroupsPages(*chime.ListVoiceConnectorGroupsInput, func(*chime.ListVoiceConnectorGroupsOutput, bool) bool) error + ListVoiceConnectorGroupsPagesWithContext(aws.Context, *chime.ListVoiceConnectorGroupsInput, func(*chime.ListVoiceConnectorGroupsOutput, bool) bool, ...request.Option) error + ListVoiceConnectorTerminationCredentials(*chime.ListVoiceConnectorTerminationCredentialsInput) (*chime.ListVoiceConnectorTerminationCredentialsOutput, error) ListVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.ListVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.ListVoiceConnectorTerminationCredentialsOutput, error) ListVoiceConnectorTerminationCredentialsRequest(*chime.ListVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.ListVoiceConnectorTerminationCredentialsOutput) @@ -247,10 +293,18 @@ type ChimeAPI interface { PutEventsConfigurationWithContext(aws.Context, *chime.PutEventsConfigurationInput, ...request.Option) (*chime.PutEventsConfigurationOutput, error) PutEventsConfigurationRequest(*chime.PutEventsConfigurationInput) (*request.Request, *chime.PutEventsConfigurationOutput) + PutVoiceConnectorLoggingConfiguration(*chime.PutVoiceConnectorLoggingConfigurationInput) (*chime.PutVoiceConnectorLoggingConfigurationOutput, error) + PutVoiceConnectorLoggingConfigurationWithContext(aws.Context, *chime.PutVoiceConnectorLoggingConfigurationInput, ...request.Option) (*chime.PutVoiceConnectorLoggingConfigurationOutput, error) + PutVoiceConnectorLoggingConfigurationRequest(*chime.PutVoiceConnectorLoggingConfigurationInput) (*request.Request, *chime.PutVoiceConnectorLoggingConfigurationOutput) + PutVoiceConnectorOrigination(*chime.PutVoiceConnectorOriginationInput) (*chime.PutVoiceConnectorOriginationOutput, error) PutVoiceConnectorOriginationWithContext(aws.Context, *chime.PutVoiceConnectorOriginationInput, ...request.Option) (*chime.PutVoiceConnectorOriginationOutput, error) PutVoiceConnectorOriginationRequest(*chime.PutVoiceConnectorOriginationInput) (*request.Request, *chime.PutVoiceConnectorOriginationOutput) + PutVoiceConnectorStreamingConfiguration(*chime.PutVoiceConnectorStreamingConfigurationInput) (*chime.PutVoiceConnectorStreamingConfigurationOutput, error) + PutVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chime.PutVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chime.PutVoiceConnectorStreamingConfigurationOutput, error) + PutVoiceConnectorStreamingConfigurationRequest(*chime.PutVoiceConnectorStreamingConfigurationInput) (*request.Request, *chime.PutVoiceConnectorStreamingConfigurationOutput) + PutVoiceConnectorTermination(*chime.PutVoiceConnectorTerminationInput) (*chime.PutVoiceConnectorTerminationOutput, error) PutVoiceConnectorTerminationWithContext(aws.Context, *chime.PutVoiceConnectorTerminationInput, ...request.Option) (*chime.PutVoiceConnectorTerminationOutput, error) PutVoiceConnectorTerminationRequest(*chime.PutVoiceConnectorTerminationInput) (*request.Request, *chime.PutVoiceConnectorTerminationOutput) @@ -295,6 +349,10 @@ type ChimeAPI interface { UpdatePhoneNumberWithContext(aws.Context, *chime.UpdatePhoneNumberInput, ...request.Option) (*chime.UpdatePhoneNumberOutput, error) UpdatePhoneNumberRequest(*chime.UpdatePhoneNumberInput) (*request.Request, *chime.UpdatePhoneNumberOutput) + UpdatePhoneNumberSettings(*chime.UpdatePhoneNumberSettingsInput) (*chime.UpdatePhoneNumberSettingsOutput, error) + UpdatePhoneNumberSettingsWithContext(aws.Context, *chime.UpdatePhoneNumberSettingsInput, ...request.Option) (*chime.UpdatePhoneNumberSettingsOutput, error) + UpdatePhoneNumberSettingsRequest(*chime.UpdatePhoneNumberSettingsInput) (*request.Request, *chime.UpdatePhoneNumberSettingsOutput) + UpdateUser(*chime.UpdateUserInput) (*chime.UpdateUserOutput, error) UpdateUserWithContext(aws.Context, *chime.UpdateUserInput, ...request.Option) (*chime.UpdateUserOutput, error) UpdateUserRequest(*chime.UpdateUserInput) (*request.Request, *chime.UpdateUserOutput) @@ -306,6 +364,10 @@ type ChimeAPI interface { UpdateVoiceConnector(*chime.UpdateVoiceConnectorInput) (*chime.UpdateVoiceConnectorOutput, error) UpdateVoiceConnectorWithContext(aws.Context, *chime.UpdateVoiceConnectorInput, ...request.Option) (*chime.UpdateVoiceConnectorOutput, error) UpdateVoiceConnectorRequest(*chime.UpdateVoiceConnectorInput) (*request.Request, *chime.UpdateVoiceConnectorOutput) + + UpdateVoiceConnectorGroup(*chime.UpdateVoiceConnectorGroupInput) (*chime.UpdateVoiceConnectorGroupOutput, error) + UpdateVoiceConnectorGroupWithContext(aws.Context, *chime.UpdateVoiceConnectorGroupInput, ...request.Option) (*chime.UpdateVoiceConnectorGroupOutput, error) + UpdateVoiceConnectorGroupRequest(*chime.UpdateVoiceConnectorGroupInput) (*request.Request, *chime.UpdateVoiceConnectorGroupOutput) } var _ ChimeAPI = (*chime.Chime)(nil) diff --git a/service/chime/errors.go b/service/chime/errors.go index cb35177d19..b105ae993b 100644 --- a/service/chime/errors.go +++ b/service/chime/errors.go @@ -4,6 +4,12 @@ package chime const ( + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You don't have permissions to perform the requested operation. + ErrCodeAccessDeniedException = "AccessDeniedException" + // ErrCodeBadRequestException for service response error code // "BadRequestException". // diff --git a/service/ec2/api.go b/service/ec2/api.go index 8c69b86d27..3df136f884 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -29541,16 +29541,24 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // You can't register an image where a secondary (non-root) snapshot has AWS // Marketplace product codes. // -// Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE -// Linux Enterprise Server (SLES), use the EC2 billing product code associated -// with an AMI to verify the subscription status for package updates. Creating -// an AMI from an EBS snapshot does not maintain this billing code, and instances -// launched from such an AMI are not able to connect to package update infrastructure. -// If you purchase a Reserved Instance offering for one of these Linux distributions -// and launch instances using an AMI that does not contain the required billing -// code, your Reserved Instance is not applied to these instances. +// Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) +// and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code +// associated with an AMI to verify the subscription status for package updates. +// To create a new AMI for operating systems that require a billing product +// code, do the following: // -// To create an AMI for operating systems that require a billing code, see CreateImage. +// Launch an instance from an existing AMI with that billing product code. +// +// Customize the instance. +// +// Create a new AMI from the instance using CreateImage to preserve the billing +// product code association. +// +// If you purchase a Reserved Instance to apply to an On-Demand Instance that +// was launched from an AMI with a billing product code, make sure that the +// Reserved Instance has the matching billing product code. If you purchase +// a Reserved Instance without the matching billing product code, the Reserved +// Instance will not be applied to the On-Demand Instance. // // If needed, you can deregister an AMI at any time. Any modifications you make // to an AMI backed by an instance store volume invalidates its registration. @@ -40765,6 +40773,9 @@ type CreateFpgaImageInput struct { // A name for the AFI. Name *string `type:"string"` + + // The tags to apply to the FPGA image during creation. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` } // String returns the string representation @@ -40826,6 +40837,12 @@ func (s *CreateFpgaImageInput) SetName(v string) *CreateFpgaImageInput { return s } +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateFpgaImageInput) SetTagSpecifications(v []*TagSpecification) *CreateFpgaImageInput { + s.TagSpecifications = v + return s +} + type CreateFpgaImageOutput struct { _ struct{} `type:"structure"` @@ -90564,10 +90581,11 @@ type TagSpecification struct { // The type of resource to tag. Currently, the resource types that support tagging // on creation are: capacity-reservation | client-vpn-endpoint | dedicated-host - // | fleet | instance | launch-template | snapshot | transit-gateway | transit-gateway-attachment + // | fleet | fpga-image | instance | launch-template | snapshot | traffic-mirror-filter + // | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment // | transit-gateway-route-table | volume. // - // To tag a resource after it has been created, see CreateTags. + // To tag a resource after it has been created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The tags to apply to the resource. diff --git a/service/gamelift/api.go b/service/gamelift/api.go index 5fffd19297..c29096f3f1 100644 --- a/service/gamelift/api.go +++ b/service/gamelift/api.go @@ -20304,6 +20304,30 @@ const ( // EC2InstanceTypeC48xlarge is a EC2InstanceType enum value EC2InstanceTypeC48xlarge = "c4.8xlarge" + // EC2InstanceTypeC5Large is a EC2InstanceType enum value + EC2InstanceTypeC5Large = "c5.large" + + // EC2InstanceTypeC5Xlarge is a EC2InstanceType enum value + EC2InstanceTypeC5Xlarge = "c5.xlarge" + + // EC2InstanceTypeC52xlarge is a EC2InstanceType enum value + EC2InstanceTypeC52xlarge = "c5.2xlarge" + + // EC2InstanceTypeC54xlarge is a EC2InstanceType enum value + EC2InstanceTypeC54xlarge = "c5.4xlarge" + + // EC2InstanceTypeC59xlarge is a EC2InstanceType enum value + EC2InstanceTypeC59xlarge = "c5.9xlarge" + + // EC2InstanceTypeC512xlarge is a EC2InstanceType enum value + EC2InstanceTypeC512xlarge = "c5.12xlarge" + + // EC2InstanceTypeC518xlarge is a EC2InstanceType enum value + EC2InstanceTypeC518xlarge = "c5.18xlarge" + + // EC2InstanceTypeC524xlarge is a EC2InstanceType enum value + EC2InstanceTypeC524xlarge = "c5.24xlarge" + // EC2InstanceTypeR3Large is a EC2InstanceType enum value EC2InstanceTypeR3Large = "r3.large" @@ -20337,6 +20361,30 @@ const ( // EC2InstanceTypeR416xlarge is a EC2InstanceType enum value EC2InstanceTypeR416xlarge = "r4.16xlarge" + // EC2InstanceTypeR5Large is a EC2InstanceType enum value + EC2InstanceTypeR5Large = "r5.large" + + // EC2InstanceTypeR5Xlarge is a EC2InstanceType enum value + EC2InstanceTypeR5Xlarge = "r5.xlarge" + + // EC2InstanceTypeR52xlarge is a EC2InstanceType enum value + EC2InstanceTypeR52xlarge = "r5.2xlarge" + + // EC2InstanceTypeR54xlarge is a EC2InstanceType enum value + EC2InstanceTypeR54xlarge = "r5.4xlarge" + + // EC2InstanceTypeR58xlarge is a EC2InstanceType enum value + EC2InstanceTypeR58xlarge = "r5.8xlarge" + + // EC2InstanceTypeR512xlarge is a EC2InstanceType enum value + EC2InstanceTypeR512xlarge = "r5.12xlarge" + + // EC2InstanceTypeR516xlarge is a EC2InstanceType enum value + EC2InstanceTypeR516xlarge = "r5.16xlarge" + + // EC2InstanceTypeR524xlarge is a EC2InstanceType enum value + EC2InstanceTypeR524xlarge = "r5.24xlarge" + // EC2InstanceTypeM3Medium is a EC2InstanceType enum value EC2InstanceTypeM3Medium = "m3.medium" @@ -20363,6 +20411,30 @@ const ( // EC2InstanceTypeM410xlarge is a EC2InstanceType enum value EC2InstanceTypeM410xlarge = "m4.10xlarge" + + // EC2InstanceTypeM5Large is a EC2InstanceType enum value + EC2InstanceTypeM5Large = "m5.large" + + // EC2InstanceTypeM5Xlarge is a EC2InstanceType enum value + EC2InstanceTypeM5Xlarge = "m5.xlarge" + + // EC2InstanceTypeM52xlarge is a EC2InstanceType enum value + EC2InstanceTypeM52xlarge = "m5.2xlarge" + + // EC2InstanceTypeM54xlarge is a EC2InstanceType enum value + EC2InstanceTypeM54xlarge = "m5.4xlarge" + + // EC2InstanceTypeM58xlarge is a EC2InstanceType enum value + EC2InstanceTypeM58xlarge = "m5.8xlarge" + + // EC2InstanceTypeM512xlarge is a EC2InstanceType enum value + EC2InstanceTypeM512xlarge = "m5.12xlarge" + + // EC2InstanceTypeM516xlarge is a EC2InstanceType enum value + EC2InstanceTypeM516xlarge = "m5.16xlarge" + + // EC2InstanceTypeM524xlarge is a EC2InstanceType enum value + EC2InstanceTypeM524xlarge = "m5.24xlarge" ) const ( @@ -20633,6 +20705,9 @@ const ( // OperatingSystemAmazonLinux is a OperatingSystem enum value OperatingSystemAmazonLinux = "AMAZON_LINUX" + + // OperatingSystemAmazonLinux2 is a OperatingSystem enum value + OperatingSystemAmazonLinux2 = "AMAZON_LINUX_2" ) const ( diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index ed54c0f325..29e70ae97e 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -26538,6 +26538,15 @@ const ( // NotebookInstanceAcceleratorTypeMlEia1Xlarge is a NotebookInstanceAcceleratorType enum value NotebookInstanceAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge" + + // NotebookInstanceAcceleratorTypeMlEia2Medium is a NotebookInstanceAcceleratorType enum value + NotebookInstanceAcceleratorTypeMlEia2Medium = "ml.eia2.medium" + + // NotebookInstanceAcceleratorTypeMlEia2Large is a NotebookInstanceAcceleratorType enum value + NotebookInstanceAcceleratorTypeMlEia2Large = "ml.eia2.large" + + // NotebookInstanceAcceleratorTypeMlEia2Xlarge is a NotebookInstanceAcceleratorType enum value + NotebookInstanceAcceleratorTypeMlEia2Xlarge = "ml.eia2.xlarge" ) const ( @@ -26666,6 +26675,15 @@ const ( // ProductionVariantAcceleratorTypeMlEia1Xlarge is a ProductionVariantAcceleratorType enum value ProductionVariantAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge" + + // ProductionVariantAcceleratorTypeMlEia2Medium is a ProductionVariantAcceleratorType enum value + ProductionVariantAcceleratorTypeMlEia2Medium = "ml.eia2.medium" + + // ProductionVariantAcceleratorTypeMlEia2Large is a ProductionVariantAcceleratorType enum value + ProductionVariantAcceleratorTypeMlEia2Large = "ml.eia2.large" + + // ProductionVariantAcceleratorTypeMlEia2Xlarge is a ProductionVariantAcceleratorType enum value + ProductionVariantAcceleratorTypeMlEia2Xlarge = "ml.eia2.xlarge" ) const ( @@ -26714,6 +26732,24 @@ const ( // ProductionVariantInstanceTypeMlM524xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlM524xlarge = "ml.m5.24xlarge" + // ProductionVariantInstanceTypeMlM5dLarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlM5dLarge = "ml.m5d.large" + + // ProductionVariantInstanceTypeMlM5dXlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlM5dXlarge = "ml.m5d.xlarge" + + // ProductionVariantInstanceTypeMlM5d2xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlM5d2xlarge = "ml.m5d.2xlarge" + + // ProductionVariantInstanceTypeMlM5d4xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlM5d4xlarge = "ml.m5d.4xlarge" + + // ProductionVariantInstanceTypeMlM5d12xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlM5d12xlarge = "ml.m5d.12xlarge" + + // ProductionVariantInstanceTypeMlM5d24xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlM5d24xlarge = "ml.m5d.24xlarge" + // ProductionVariantInstanceTypeMlC4Large is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC4Large = "ml.c4.large" @@ -26765,6 +26801,24 @@ const ( // ProductionVariantInstanceTypeMlC518xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlC518xlarge = "ml.c5.18xlarge" + // ProductionVariantInstanceTypeMlC5dLarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlC5dLarge = "ml.c5d.large" + + // ProductionVariantInstanceTypeMlC5dXlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlC5dXlarge = "ml.c5d.xlarge" + + // ProductionVariantInstanceTypeMlC5d2xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlC5d2xlarge = "ml.c5d.2xlarge" + + // ProductionVariantInstanceTypeMlC5d4xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlC5d4xlarge = "ml.c5d.4xlarge" + + // ProductionVariantInstanceTypeMlC5d9xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlC5d9xlarge = "ml.c5d.9xlarge" + + // ProductionVariantInstanceTypeMlC5d18xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlC5d18xlarge = "ml.c5d.18xlarge" + // ProductionVariantInstanceTypeMlG4dnXlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlG4dnXlarge = "ml.g4dn.xlarge" @@ -26800,6 +26854,24 @@ const ( // ProductionVariantInstanceTypeMlR524xlarge is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlR524xlarge = "ml.r5.24xlarge" + + // ProductionVariantInstanceTypeMlR5dLarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlR5dLarge = "ml.r5d.large" + + // ProductionVariantInstanceTypeMlR5dXlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlR5dXlarge = "ml.r5d.xlarge" + + // ProductionVariantInstanceTypeMlR5d2xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlR5d2xlarge = "ml.r5d.2xlarge" + + // ProductionVariantInstanceTypeMlR5d4xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlR5d4xlarge = "ml.r5d.4xlarge" + + // ProductionVariantInstanceTypeMlR5d12xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlR5d12xlarge = "ml.r5d.12xlarge" + + // ProductionVariantInstanceTypeMlR5d24xlarge is a ProductionVariantInstanceType enum value + ProductionVariantInstanceTypeMlR5d24xlarge = "ml.r5d.24xlarge" ) const (