diff --git a/CHANGELOG.md b/CHANGELOG.md
index 419a9ea8493..6e350d64b9e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,24 @@
+Release v1.44.228 (2023-03-23)
+===
+
+### Service Client Updates
+* `service/batch`: Updates service API and documentation
+ * This feature allows Batch to support configuration of ephemeral storage size for jobs running on FARGATE
+* `service/chime-sdk-identity`: Updates service API, documentation, and paginators
+* `service/chime-sdk-media-pipelines`: Updates service API, documentation, and paginators
+* `service/chime-sdk-messaging`: Updates service API and documentation
+* `service/chime-sdk-voice`: Updates service API, documentation, and paginators
+* `service/codeartifact`: Updates service API and documentation
+* `service/guardduty`: Updates service API and documentation
+ * Adds AutoEnableOrganizationMembers attribute to DescribeOrganizationConfiguration and UpdateOrganizationConfiguration APIs.
+* `service/ivs-realtime`: Adds new service
+* `service/mediaconvert`: Updates service API and documentation
+ * AWS Elemental MediaConvert SDK now supports passthrough of ID3v2 tags for audio inputs to audio-only HLS outputs.
+* `service/sagemaker`: Updates service API and documentation
+ * Amazon SageMaker Autopilot adds two new APIs - CreateAutoMLJobV2 and DescribeAutoMLJobV2. Amazon SageMaker Notebook Instances now supports the ml.geospatial.interactive instance type.
+* `service/servicediscovery`: Updates service API
+* `service/textract`: Updates service API and documentation
+
Release v1.44.227 (2023-03-22)
===
diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go
index 92256013544..cbd98b571bd 100644
--- a/aws/endpoints/defaults.go
+++ b/aws/endpoints/defaults.go
@@ -1852,6 +1852,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-central-1",
}: endpoint{},
+ endpointKey{
+ Region: "eu-central-2",
+ }: endpoint{},
endpointKey{
Region: "eu-north-1",
}: endpoint{},
@@ -17534,6 +17537,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-central-1",
}: endpoint{},
+ endpointKey{
+ Region: "eu-central-2",
+ }: endpoint{},
endpointKey{
Region: "eu-north-1",
}: endpoint{},
@@ -21916,6 +21922,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-central-1",
}: endpoint{},
+ endpointKey{
+ Region: "eu-central-2",
+ }: endpoint{},
endpointKey{
Region: "eu-north-1",
}: endpoint{},
@@ -23693,6 +23702,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-west-3",
}: endpoint{},
+ endpointKey{
+ Region: "me-central-1",
+ }: endpoint{},
endpointKey{
Region: "me-south-1",
}: endpoint{},
@@ -34125,6 +34137,13 @@ var awsusgovPartition = partition{
},
},
},
+ "iottwinmaker": service{
+ Endpoints: serviceEndpoints{
+ endpointKey{
+ Region: "us-gov-west-1",
+ }: endpoint{},
+ },
+ },
"kafka": service{
Endpoints: serviceEndpoints{
endpointKey{
diff --git a/aws/version.go b/aws/version.go
index b81e062f2a7..f61d223cc0a 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.44.227"
+const SDKVersion = "1.44.228"
diff --git a/models/apis/batch/2016-08-10/api-2.json b/models/apis/batch/2016-08-10/api-2.json
index 4efb281ce11..0237421a920 100644
--- a/models/apis/batch/2016-08-10/api-2.json
+++ b/models/apis/batch/2016-08-10/api-2.json
@@ -588,7 +588,8 @@
"logConfiguration":{"shape":"LogConfiguration"},
"secrets":{"shape":"SecretList"},
"networkConfiguration":{"shape":"NetworkConfiguration"},
- "fargatePlatformConfiguration":{"shape":"FargatePlatformConfiguration"}
+ "fargatePlatformConfiguration":{"shape":"FargatePlatformConfiguration"},
+ "ephemeralStorage":{"shape":"EphemeralStorage"}
}
},
"ContainerOverrides":{
@@ -640,7 +641,8 @@
"logConfiguration":{"shape":"LogConfiguration"},
"secrets":{"shape":"SecretList"},
"networkConfiguration":{"shape":"NetworkConfiguration"},
- "fargatePlatformConfiguration":{"shape":"FargatePlatformConfiguration"}
+ "fargatePlatformConfiguration":{"shape":"FargatePlatformConfiguration"},
+ "ephemeralStorage":{"shape":"EphemeralStorage"}
}
},
"ContainerSummary":{
@@ -1056,11 +1058,22 @@
"path":{"shape":"String"}
}
},
+ "EksLabelsMap":{
+ "type":"map",
+ "key":{"shape":"String"},
+ "value":{"shape":"String"}
+ },
"EksLimits":{
"type":"map",
"key":{"shape":"String"},
"value":{"shape":"Quantity"}
},
+ "EksMetadata":{
+ "type":"structure",
+ "members":{
+ "labels":{"shape":"EksLabelsMap"}
+ }
+ },
"EksPodProperties":{
"type":"structure",
"members":{
@@ -1068,7 +1081,8 @@
"hostNetwork":{"shape":"Boolean"},
"dnsPolicy":{"shape":"String"},
"containers":{"shape":"EksContainers"},
- "volumes":{"shape":"EksVolumes"}
+ "volumes":{"shape":"EksVolumes"},
+ "metadata":{"shape":"EksMetadata"}
}
},
"EksPodPropertiesDetail":{
@@ -1086,7 +1100,8 @@
"EksPodPropertiesOverride":{
"type":"structure",
"members":{
- "containers":{"shape":"EksContainerOverrideList"}
+ "containers":{"shape":"EksContainerOverrideList"},
+ "metadata":{"shape":"EksMetadata"}
}
},
"EksProperties":{
@@ -1138,6 +1153,13 @@
"type":"list",
"member":{"shape":"KeyValuePair"}
},
+ "EphemeralStorage":{
+ "type":"structure",
+ "required":["sizeInGiB"],
+ "members":{
+ "sizeInGiB":{"shape":"Integer"}
+ }
+ },
"EvaluateOnExit":{
"type":"structure",
"required":["action"],
diff --git a/models/apis/batch/2016-08-10/docs-2.json b/models/apis/batch/2016-08-10/docs-2.json
index 1d9dc706328..a140e603ebd 100644
--- a/models/apis/batch/2016-08-10/docs-2.json
+++ b/models/apis/batch/2016-08-10/docs-2.json
@@ -2,7 +2,7 @@
"version": "2.0",
"service": "
Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure. At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and delivering results more quickly.
As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus on analyzing results and solving your specific problems instead.
", "operations": { - "CancelJob": "Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED
, PENDING
, or RUNNABLE
state are canceled. Jobs that progressed to the STARTING
or RUNNING
state aren't canceled. However, the API operation still succeeds, even if no job is canceled. These jobs must be terminated with the TerminateJob operation.
Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED
or PENDING
are canceled. A job inRUNNABLE
remains in RUNNABLE
until it reaches the head of the job queue. Then the job status is updated to FAILED
.
Jobs that progressed to the STARTING
or RUNNING
state aren't canceled. However, the API operation still succeeds, even if no job is canceled. These jobs must be terminated with the TerminateJob operation.
Creates an Batch compute environment. You can create MANAGED
or UNMANAGED
compute environments. MANAGED
compute environments can use Amazon EC2 or Fargate resources. UNMANAGED
compute environments can only use EC2 resources.
In a managed compute environment, Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a specified percentage of the On-Demand price.
Multi-node parallel jobs aren't supported on Spot Instances.
In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the Amazon Elastic Container Service Developer Guide.
To create a compute environment that uses EKS resources, the caller must have permissions to call eks:DescribeCluster
.
Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is available. You're responsible for the management of the guest operating system. This includes any updates and security patches. You're also responsible for any additional application software or utilities that you install on the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete these steps:
Create a new compute environment with the new AMI.
Add the compute environment to an existing job queue.
Remove the earlier compute environment from your job queue.
Delete the earlier compute environment.
In April 2022, Batch added enhanced support for updating compute environments. For more information, see Updating compute environments. To use the enhanced updating of compute environments to update AMIs, follow these rules:
Either don't set the service role (serviceRole
) parameter or set it to the AWSBatchServiceRole service-linked role.
Set the allocation strategy (allocationStrategy
) parameter to BEST_FIT_PROGRESSIVE
or SPOT_CAPACITY_OPTIMIZED
.
Set the update to latest image version (updateToLatestImageVersion
) parameter to true
.
Don't specify an AMI ID in imageId
, imageIdOverride
(in ec2Configuration
), or in the launch template (launchTemplate
). In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID in the imageId
or imageIdOverride
parameters, or the launch template identified by the LaunchTemplate
properties. Changing any of these properties starts an infrastructure update. If the AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the imageId
or imageIdOverride
parameters. It can only be replaced by specifying a different launch template, or if the launch template version is set to $Default
or $Latest
, by setting either a new default version for the launch template (if $Default
) or by adding a new version to the launch template (if $Latest
).
If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be re-selected. If the version
setting in the launch template (launchTemplate
) is set to $Latest
or $Default
, the latest or default version of the launch template is evaluated up at the time of the infrastructure update, even if the launchTemplate
wasn't updated.
Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments.
You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment.
", "CreateSchedulingPolicy": "Creates an Batch scheduling policy.
", @@ -113,9 +113,9 @@ "CEState": { "base": null, "refs": { - "ComputeEnvironmentDetail$state": "The state of the compute environment. The valid values are ENABLED
or DISABLED
.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out. However, they scale in to minvCpus
value after instances become idle.
The state of the compute environment. If the state is ENABLED
, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out. However, they scale in to minvCpus
value after instances become idle.
The state of the compute environment. Compute environments in the ENABLED
state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out. However, they scale in to minvCpus
value after instances become idle.
The state of the compute environment. The valid values are ENABLED
or DISABLED
.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out.
Compute environments in a DISABLED
state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a c5.large
instance.
The state of the compute environment. If the state is ENABLED
, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out.
Compute environments in a DISABLED
state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a c5.large
instance.
The state of the compute environment. Compute environments in the ENABLED
state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.
If the state is ENABLED
, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.
If the state is DISABLED
, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING
or RUNNING
state continue to progress normally. Managed compute environments in the DISABLED
state don't scale out.
Compute environments in a DISABLED
state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.
When an instance is idle, the instance scales down to the minvCpus
value. However, the instance size doesn't change. For example, consider a c5.8xlarge
instance with a minvCpus
value of 4
and a desiredvCpus
value of 36
. This instance doesn't scale down to a c5.large
instance.
Specifies the configuration of a Kubernetes hostPath
volume. For more information, see hostPath in the Kubernetes documentation.
The type and quantity of the resources to reserve for the container. The values vary based on the name
that's specified. Resources can be requested using either the limits
or the requests
objects.
The memory hard limit (in MiB) for the container, using whole integers, with a \"Mi\" suffix. If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job. memory
can be specified in limits
, requests
, or both. If memory
is specified in both places, then the value that's specified in limits
must be equal to the value that's specified in requests
.
To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide.
The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25
. cpu
can be specified in limits
, requests
, or both. If cpu
is specified in both places, then the value that's specified in limits
must be at least as large as the value that's specified in requests
.
The number of GPUs that's reserved for the container. Values must be a whole integer. memory
can be specified in limits
, requests
, or both. If memory
is specified in both places, then the value that's specified in limits
must be equal to the value that's specified in requests
.
The properties for the pod.
", "refs": { @@ -609,6 +622,13 @@ "ContainerProperties$environment": "The environment variables to pass to a container. This parameter maps to Env
in the Create a container section of the Docker Remote API and the --env
option to docker run.
We don't recommend using plaintext environment variables for sensitive information, such as credential data.
Environment variables cannot start with \"AWS_BATCH
\". This naming convention is reserved for variables that Batch sets.
The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate.
", + "refs": { + "ContainerDetail$ephemeralStorage": null, + "ContainerProperties$ephemeralStorage": "The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate.
" + } + }, "EvaluateOnExit": { "base": "Specifies an array of up to 5 conditions to be met, and an action to take (RETRY
or EXIT
) if all conditions are met. If none of the EvaluateOnExit
conditions in a RetryStrategy
match, then the job is retried.
The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand price. For most use cases, we recommend leaving this field empty.
This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is DISABLED
).
This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
The maximum number of Amazon EC2 vCPUs that an environment can reach.
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation strategies using On-Demand or Spot Instances, and the BEST_FIT
strategy using Spot Instances, Batch might need to exceed maxvCpus
to meet your capacity requirements. In this event, Batch never exceeds maxvCpus
by more than a single instance. That is, no more than a single instance from among those specified in your compute environment.
The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value between the minimum and maximum values based on job queue demand.
This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
Batch doesn't support changing the desired number of vCPUs of an existing compute environment. Don't specify this parameter for compute environments using Amazon EKS clusters.
The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value between the minimum and maximum values based on job queue demand.
This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
Batch doesn't support changing the desired number of vCPUs of an existing compute environment. Don't specify this parameter for compute environments using Amazon EKS clusters.
When you update the desiredvCpus
setting, the value must be between the minvCpus
and maxvCpus
values.
Additionally, the updated desiredvCpus
value must be greater than or equal to the current desiredvCpus
value. For more information, see Troubleshooting Batch in the Batch User Guide.
The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. For most use cases, we recommend leaving this field empty.
When updating a compute environment, changing the bid percentage requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide.
This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
The number of vCPUs reserved for the container. For jobs that run on EC2 resources, you can specify the vCPU requirement for the job using resourceRequirements
, but you can't specify the vCPU requirements in both the vcpus
and resourceRequirements
object. This parameter maps to CpuShares
in the Create a container section of the Docker Remote API and the --cpu-shares
option to docker run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU. This is required but can be specified in several places. It must be specified for each node at least once.
This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run on Fargate resources, you must specify the vCPU requirement for the job using resourceRequirements
.
For jobs running on EC2 resources that didn't specify memory requirements using resourceRequirements
, the number of MiB of memory reserved for the job. For other jobs, including all run on Fargate resources, see resourceRequirements
.
The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535. For more information, see EFS mount helper in the Amazon Elastic File System User Guide.
", "EksAttemptContainerDetail$exitCode": "The exit code for the job attempt. A non-zero exit code is considered failed.
", "EksContainerDetail$exitCode": "The exit code for the job attempt. A non-zero exit code is considered failed.
", + "EphemeralStorage$sizeInGiB": "The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is 21
GiB and the maximum supported value is 200
GiB.
The amount of time (in seconds) to use to calculate a fair share percentage for each fair share identifier in use. A value of zero (0) indicates that only current usage is measured. The decay allows for more recently run jobs to have more weight than jobs that ran earlier. The maximum supported value is 604800 (1 week).
", "FairsharePolicy$computeReservation": "A value used to reserve some of the available maximum vCPU for fair share identifiers that aren't already used.
The reserved ratio is (computeReservation/100)^ActiveFairShares
where ActiveFairShares
is the number of active fair share identifiers.
For example, a computeReservation
value of 50 indicates that Batchreserves 50% of the maximum available vCPU if there's only one fair share identifier. It reserves 25% if there are two fair share identifiers. It reserves 12.5% if there are three fair share identifiers. A computeReservation
value of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there's only one fair share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three fair share identifiers.
The minimum value is 0 and the maximum value is 99.
", "JobDefinition$revision": "The revision of the job definition.
", @@ -1246,6 +1267,8 @@ "EksContainerVolumeMount$mountPath": "The path on the container where the volume is mounted.
", "EksEmptyDir$medium": "The medium to store the volume. The default value is an empty string, which uses the storage of the node.
(Default) Use the disk storage of the node.
Use the tmpfs
volume that's backed by the RAM of the node. Contents of the volume are lost when the node reboots, and any storage on the volume counts against the container's memory limit.
The path of the file or directory on the host to mount into containers on the pod.
", + "EksLabelsMap$key": null, + "EksLabelsMap$value": null, "EksLimits$key": null, "EksPodProperties$serviceAccountName": "The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation.
", "EksPodProperties$dnsPolicy": "The DNS policy for the pod. The default value is ClusterFirst
. If the hostNetwork
parameter is not specified, the default is ClusterFirstWithHostNet
. ClusterFirst
indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.
Valid values: Default
| ClusterFirst
| ClusterFirstWithHostNet
The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
", "RegisterJobDefinitionResponse$jobDefinitionName": "The name of the job definition.
", "RegisterJobDefinitionResponse$jobDefinitionArn": "The Amazon Resource Name (ARN) of the job definition.
", - "ResourceRequirement$value": "The quantity of the specified resource to reserve for the container. The values vary based on the type
specified.
The number of physical GPUs to reserve for the container. Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
GPUs aren't available for jobs that are running on Fargate resources.
The memory hard limit (in MiB) present to the container. This parameter is supported for jobs that are running on EC2 resources. If your container attempts to exceed the memory specified, the container is terminated. This parameter maps to Memory
in the Create a container section of the Docker Remote API and the --memory
option to docker run. You must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to Memory
in the Create a container section of the Docker Remote API and the --memory
option to docker run.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
For jobs that are running on Fargate resources, then value
is the hard limit (in MiB), and must match one of the supported values and the VCPU
values must be one of the values supported for that memory value.
VCPU
= 0.25
VCPU
= 0.25 or 0.5
VCPU
= 0.25, 0.5, or 1
VCPU
= 0.5, or 1
VCPU
= 0.5, 1, or 2
VCPU
= 1 or 2
VCPU
= 1, 2, 4, or 8
VCPU
= 2 or 4
VCPU
= 2, 4, or 8
VCPU
= 4
VCPU
= 4 or 8
VCPU
= 8
VCPU
= 8 or 16
VCPU
= 16
The number of vCPUs reserved for the container. This parameter maps to CpuShares
in the Create a container section of the Docker Remote API and the --cpu-shares
option to docker run. Each vCPU is equivalent to 1,024 CPU shares. For EC2 resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be specified for each node at least once.
The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more information about Fargate quotas, see Fargate quotas in the Amazon Web Services General Reference.
For jobs that are running on Fargate resources, then value
must match one of the supported values and the MEMORY
values must be one of the values supported for that VCPU
value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16
MEMORY
= 512, 1024, or 2048
MEMORY
= 1024, 2048, 3072, or 4096
MEMORY
= 2048, 3072, 4096, 5120, 6144, 7168, or 8192
MEMORY
= 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
MEMORY
= 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
MEMORY
= 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440
MEMORY
= 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
The quantity of the specified resource to reserve for the container. The values vary based on the type
specified.
The number of physical GPUs to reserve for the container. Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
GPUs aren't available for jobs that are running on Fargate resources.
The memory hard limit (in MiB) present to the container. This parameter is supported for jobs that are running on EC2 resources. If your container attempts to exceed the memory specified, the container is terminated. This parameter maps to Memory
in the Create a container section of the Docker Remote API and the --memory
option to docker run. You must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to Memory
in the Create a container section of the Docker Remote API and the --memory
option to docker run.
If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide.
For jobs that are running on Fargate resources, then value
is the hard limit (in MiB), and must match one of the supported values and the VCPU
values must be one of the values supported for that memory value.
VCPU
= 0.25
VCPU
= 0.25 or 0.5
VCPU
= 0.25, 0.5, or 1
VCPU
= 0.5, or 1
VCPU
= 0.5, 1, or 2
VCPU
= 1 or 2
VCPU
= 1, 2, or 4
VCPU
= 2 or 4
VCPU
= 2, 4, or 8
VCPU
= 4
VCPU
= 4 or 8
VCPU
= 8
VCPU
= 8 or 16
VCPU
= 16
The number of vCPUs reserved for the container. This parameter maps to CpuShares
in the Create a container section of the Docker Remote API and the --cpu-shares
option to docker run. Each vCPU is equivalent to 1,024 CPU shares. For EC2 resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be specified for each node at least once.
The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more information about Fargate quotas, see Fargate quotas in the Amazon Web Services General Reference.
For jobs that are running on Fargate resources, then value
must match one of the supported values and the MEMORY
values must be one of the values supported for that VCPU
value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16
MEMORY
= 512, 1024, or 2048
MEMORY
= 1024, 2048, 3072, or 4096
MEMORY
= 2048, 3072, 4096, 5120, 6144, 7168, or 8192
MEMORY
= 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384
MEMORY
= 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720
MEMORY
= 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440
MEMORY
= 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
The name of the scheduling policy.
", "SchedulingPolicyDetail$arn": "The Amazon Resource Name (ARN) of the scheduling policy. An example is arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority
.
Amazon Resource Name (ARN) of the scheduling policy.
", @@ -1322,7 +1345,7 @@ "SubmitJobRequest$jobName": "The name of the job. It can be up to 128 letters long. The first character must be alphanumeric, can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
", "SubmitJobRequest$jobQueue": "The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.
", "SubmitJobRequest$shareIdentifier": "The share identifier for the job. If the job queue doesn't have a scheduling policy, then this parameter must not be specified. If the job queue has a scheduling policy, then this parameter must be specified.
", - "SubmitJobRequest$jobDefinition": "The job definition used by this job. This value can be one of name
, name:revision
, or the Amazon Resource Name (ARN) for the job definition. If name
is specified without a revision then the latest active revision is used.
The job definition used by this job. This value can be one of definition-name
, definition-name:revision
, or the Amazon Resource Name (ARN) for the job definition, with or without the revision (arn:aws:batch:region:account:job-definition/definition-name:revision
, or arn:aws:batch:region:account:job-definition/definition-name
).
If the revision is not specified, then the latest active revision is used.
", "SubmitJobResponse$jobArn": "The Amazon Resource Name (ARN) for the job.
", "SubmitJobResponse$jobName": "The name of the job.
", "SubmitJobResponse$jobId": "The unique identifier for the job.
", diff --git a/models/apis/batch/2016-08-10/endpoint-rule-set-1.json b/models/apis/batch/2016-08-10/endpoint-rule-set-1.json index 0ec1bcdc496..ee7361c8f75 100644 --- a/models/apis/batch/2016-08-10/endpoint-rule-set-1.json +++ b/models/apis/batch/2016-08-10/endpoint-rule-set-1.json @@ -3,7 +3,7 @@ "parameters": { "Region": { "builtIn": "AWS::Region", - "required": true, + "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "String" }, @@ -32,13 +32,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -46,14 +45,20 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] } ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], "type": "tree", "rules": [ { @@ -62,67 +67,42 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "endpoint": { + "url": { + "ref": "Endpoint" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", + "fn": "isSet", "argv": [ { - "ref": "UseDualStack" - }, - true + "ref": "Region" + } ] } ], @@ -131,224 +111,288 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "aws.partition", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] + "ref": "Region" } - ] - }, + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsDualStack" + true ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://batch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, + }, { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsFIPS" + true ] } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", "argv": [ - "aws", + true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "name" + "supportsDualStack" ] } ] } ], - "endpoint": { - "url": "https://fips.batch.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://batch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ - "aws-us-gov", + true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "name" + "supportsFIPS" ] } ] } ], - "endpoint": { - "url": "https://batch.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://fips.batch.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws-us-gov", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://batch.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://batch-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] }, { "conditions": [], - "endpoint": { - "url": "https://batch-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" } ] - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsDualStack" + true ] } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://batch.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } ] - } - ], - "type": "tree", - "rules": [ + }, { "conditions": [], - "endpoint": { - "url": "https://batch.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://batch.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } ] }, { "conditions": [], - "endpoint": { - "url": "https://batch.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } diff --git a/models/apis/batch/2016-08-10/endpoint-tests-1.json b/models/apis/batch/2016-08-10/endpoint-tests-1.json index cf532b39f9e..296d0641ce3 100644 --- a/models/apis/batch/2016-08-10/endpoint-tests-1.json +++ b/models/apis/batch/2016-08-10/endpoint-tests-1.json @@ -1,822 +1,29 @@ { "testCases": [ { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.eu-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-gov-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-gov-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-north-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-north-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-3", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-3", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-west-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-3", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-3", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-3", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-3", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://batch.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-northeast-2.amazonaws.com" + "url": "https://batch.af-south-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://fips.batch.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "af-south-1" } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-northeast-1.api.aws" + "url": "https://batch.ap-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-east-1" } }, { @@ -828,584 +35,546 @@ }, "params": { "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.me-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-south-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-northeast-1" } }, { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://fips.batch.me-south-1.amazonaws.com" + "url": "https://batch.ap-northeast-2.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "me-south-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-northeast-2" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.me-south-1.api.aws" + "url": "https://batch.ap-northeast-3.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "me-south-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-northeast-3" } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.me-south-1.amazonaws.com" + "url": "https://batch.ap-south-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "me-south-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "ap-south-1" } }, { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.sa-east-1.api.aws" + "url": "https://batch.ap-southeast-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-southeast-1" } }, { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://fips.batch.sa-east-1.amazonaws.com" + "url": "https://batch.ap-southeast-2.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-southeast-2" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.sa-east-1.api.aws" + "url": "https://batch.ap-southeast-3.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "ap-southeast-3" } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.sa-east-1.amazonaws.com" + "url": "https://batch.ca-central-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "ca-central-1" } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.ap-east-1.api.aws" + "url": "https://batch.eu-central-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-east-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-central-1" } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://fips.batch.ap-east-1.amazonaws.com" + "url": "https://batch.eu-north-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-east-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-north-1" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-east-1.api.aws" + "url": "https://batch.eu-south-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "eu-south-1" } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-east-1.amazonaws.com" + "url": "https://batch.eu-west-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-east-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "eu-west-1" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://batch.eu-west-2.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "cn-north-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-west-2" } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.cn-north-1.amazonaws.com.cn" + "url": "https://batch.eu-west-3.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "cn-north-1", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-west-3" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://batch.me-south-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "cn-north-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "me-south-1" } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.cn-north-1.amazonaws.com.cn" + "url": "https://batch.sa-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "cn-north-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "sa-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.us-gov-west-1.api.aws" + "url": "https://batch.us-east-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.us-gov-west-1.amazonaws.com" + "url": "https://fips.batch.us-east-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-east-1" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.us-gov-west-1.api.aws" + "url": "https://batch.us-east-2.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.us-gov-west-1.amazonaws.com" + "url": "https://fips.batch.us-east-2.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-2" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.ap-southeast-1.api.aws" + "url": "https://batch.us-west-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://fips.batch.ap-southeast-1.amazonaws.com" + "url": "https://fips.batch.us-west-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-west-1" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-southeast-1.api.aws" + "url": "https://batch.us-west-2.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-southeast-1.amazonaws.com" + "url": "https://fips.batch.us-west-2.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-west-2" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://batch-fips.ap-southeast-2.api.aws" + "url": "https://batch-fips.us-east-1.api.aws" } }, "params": { "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": true + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://fips.batch.ap-southeast-2.amazonaws.com" + "url": "https://batch.us-east-1.api.aws" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": false + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-southeast-2.api.aws" + "url": "https://batch.cn-north-1.amazonaws.com.cn" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": true + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-southeast-2.amazonaws.com" + "url": "https://batch.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": false + "UseDualStack": false, + "Region": "cn-northwest-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://batch-fips.ap-southeast-3.api.aws" + "url": "https://batch-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "UseFIPS": true, - "Region": "ap-southeast-3", - "UseDualStack": true + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://fips.batch.ap-southeast-3.amazonaws.com" + "url": "https://batch-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "UseFIPS": true, - "Region": "ap-southeast-3", - "UseDualStack": false + "UseDualStack": false, + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://batch.ap-southeast-3.api.aws" + "url": "https://batch.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-3", - "UseDualStack": true + "UseDualStack": true, + "Region": "cn-north-1" } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.ap-southeast-3.amazonaws.com" + "url": "https://batch.us-gov-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "ap-southeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch-fips.us-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://fips.batch.us-east-1.amazonaws.com" + "url": "https://batch.us-gov-east-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "us-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://batch.us-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-east-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.us-east-1.amazonaws.com" + "url": "https://batch.us-gov-west-1.amazonaws.com" } }, "params": { "UseFIPS": false, - "Region": "us-east-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.us-east-2.api.aws" + "url": "https://batch.us-gov-west-1.amazonaws.com" } }, "params": { "UseFIPS": true, - "Region": "us-east-2", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-gov-west-1" } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://fips.batch.us-east-2.amazonaws.com" + "url": "https://batch-fips.us-gov-east-1.api.aws" } }, "params": { "UseFIPS": true, - "Region": "us-east-2", - "UseDualStack": false + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://batch.us-east-2.api.aws" + "url": "https://batch.us-gov-east-1.api.aws" } }, "params": { "UseFIPS": false, - "Region": "us-east-2", - "UseDualStack": true + "UseDualStack": true, + "Region": "us-gov-east-1" } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.us-east-2.amazonaws.com" + "url": "https://batch-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseFIPS": false, - "Region": "us-east-2", - "UseDualStack": false + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://batch.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-iso-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch-fips.cn-northwest-1.amazonaws.com.cn" + "url": "https://batch-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://batch.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://batch.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": true + "UseDualStack": false, + "Region": "us-isob-east-1" } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { - "url": "https://batch.cn-northwest-1.amazonaws.com.cn" + "url": "https://example.com" } }, "params": { "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": false + "UseDualStack": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" @@ -1413,7 +582,6 @@ }, "params": { "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } @@ -1425,8 +593,8 @@ }, "params": { "UseFIPS": true, - "Region": "us-east-1", "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -1437,8 +605,8 @@ }, "params": { "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/models/apis/chime-sdk-identity/2021-04-20/api-2.json b/models/apis/chime-sdk-identity/2021-04-20/api-2.json index 7961d1e5f8d..bcd215a2b1b 100644 --- a/models/apis/chime-sdk-identity/2021-04-20/api-2.json +++ b/models/apis/chime-sdk-identity/2021-04-20/api-2.json @@ -51,6 +51,26 @@ {"shape":"ServiceFailureException"} ] }, + "CreateAppInstanceBot":{ + "name":"CreateAppInstanceBot", + "http":{ + "method":"POST", + "requestUri":"/app-instance-bots", + "responseCode":201 + }, + "input":{"shape":"CreateAppInstanceBotRequest"}, + "output":{"shape":"CreateAppInstanceBotResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "CreateAppInstanceUser":{ "name":"CreateAppInstanceUser", "http":{ @@ -108,6 +128,25 @@ {"shape":"ServiceFailureException"} ] }, + "DeleteAppInstanceBot":{ + "name":"DeleteAppInstanceBot", + "http":{ + "method":"DELETE", + "requestUri":"/app-instance-bots/{appInstanceBotArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteAppInstanceBotRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "DeleteAppInstanceUser":{ "name":"DeleteAppInstanceUser", "http":{ @@ -179,6 +218,24 @@ {"shape":"ServiceFailureException"} ] }, + "DescribeAppInstanceBot":{ + "name":"DescribeAppInstanceBot", + "http":{ + "method":"GET", + "requestUri":"/app-instance-bots/{appInstanceBotArn}" + }, + "input":{"shape":"DescribeAppInstanceBotRequest"}, + "output":{"shape":"DescribeAppInstanceBotResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "DescribeAppInstanceUser":{ "name":"DescribeAppInstanceUser", "http":{ @@ -251,6 +308,24 @@ {"shape":"ServiceFailureException"} ] }, + "ListAppInstanceBots":{ + "name":"ListAppInstanceBots", + "http":{ + "method":"GET", + "requestUri":"/app-instance-bots" + }, + "input":{"shape":"ListAppInstanceBotsRequest"}, + "output":{"shape":"ListAppInstanceBotsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "ListAppInstanceUserEndpoints":{ "name":"ListAppInstanceUserEndpoints", "http":{ @@ -339,6 +414,25 @@ {"shape":"ServiceFailureException"} ] }, + "PutAppInstanceUserExpirationSettings":{ + "name":"PutAppInstanceUserExpirationSettings", + "http":{ + "method":"PUT", + "requestUri":"/app-instance-users/{appInstanceUserArn}/expiration-settings", + "responseCode":200 + }, + "input":{"shape":"PutAppInstanceUserExpirationSettingsRequest"}, + "output":{"shape":"PutAppInstanceUserExpirationSettingsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "RegisterAppInstanceUserEndpoint":{ "name":"RegisterAppInstanceUserEndpoint", "http":{ @@ -413,6 +507,26 @@ {"shape":"ServiceFailureException"} ] }, + "UpdateAppInstanceBot":{ + "name":"UpdateAppInstanceBot", + "http":{ + "method":"PUT", + "requestUri":"/app-instance-bots/{appInstanceBotArn}", + "responseCode":200 + }, + "input":{"shape":"UpdateAppInstanceBotRequest"}, + "output":{"shape":"UpdateAppInstanceBotResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "UpdateAppInstanceUser":{ "name":"UpdateAppInstanceUser", "http":{ @@ -489,6 +603,29 @@ "Admin":{"shape":"Identity"} } }, + "AppInstanceBot":{ + "type":"structure", + "members":{ + "AppInstanceBotArn":{"shape":"ChimeArn"}, + "Name":{"shape":"ResourceName"}, + "Configuration":{"shape":"Configuration"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "Metadata":{"shape":"Metadata"} + } + }, + "AppInstanceBotList":{ + "type":"list", + "member":{"shape":"AppInstanceBotSummary"} + }, + "AppInstanceBotSummary":{ + "type":"structure", + "members":{ + "AppInstanceBotArn":{"shape":"ChimeArn"}, + "Name":{"shape":"ResourceName"}, + "Metadata":{"shape":"Metadata"} + } + }, "AppInstanceList":{ "type":"list", "member":{"shape":"AppInstanceSummary"} @@ -514,7 +651,8 @@ "Name":{"shape":"UserName"}, "Metadata":{"shape":"Metadata"}, "CreatedTimestamp":{"shape":"Timestamp"}, - "LastUpdatedTimestamp":{"shape":"Timestamp"} + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "ExpirationSettings":{"shape":"ExpirationSettings"} } }, "AppInstanceUserEndpoint":{ @@ -524,7 +662,7 @@ "EndpointId":{"shape":"SensitiveString64"}, "Name":{"shape":"SensitiveString1600"}, "Type":{"shape":"AppInstanceUserEndpointType"}, - "ResourceArn":{"shape":"SensitiveChimeArn"}, + "ResourceArn":{"shape":"ChimeArn"}, "EndpointAttributes":{"shape":"EndpointAttributes"}, "CreatedTimestamp":{"shape":"Timestamp"}, "LastUpdatedTimestamp":{"shape":"Timestamp"}, @@ -592,8 +730,14 @@ "type":"string", "max":64, "min":2, - "pattern":"[-_a-zA-Z0-9]*", - "sensitive":true + "pattern":"[-_a-zA-Z0-9]*" + }, + "Configuration":{ + "type":"structure", + "required":["Lex"], + "members":{ + "Lex":{"shape":"LexConfiguration"} + } }, "ConflictException":{ "type":"structure", @@ -626,6 +770,31 @@ "AppInstanceArn":{"shape":"ChimeArn"} } }, + "CreateAppInstanceBotRequest":{ + "type":"structure", + "required":[ + "AppInstanceArn", + "ClientRequestToken", + "Configuration" + ], + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "Name":{"shape":"ResourceName"}, + "Metadata":{"shape":"Metadata"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "Tags":{"shape":"TagList"}, + "Configuration":{"shape":"Configuration"} + } + }, + "CreateAppInstanceBotResponse":{ + "type":"structure", + "members":{ + "AppInstanceBotArn":{"shape":"ChimeArn"} + } + }, "CreateAppInstanceRequest":{ "type":"structure", "required":[ @@ -665,7 +834,8 @@ "shape":"ClientRequestToken", "idempotencyToken":true }, - "Tags":{"shape":"TagList"} + "Tags":{"shape":"TagList"}, + "ExpirationSettings":{"shape":"ExpirationSettings"} } }, "CreateAppInstanceUserResponse":{ @@ -693,6 +863,17 @@ } } }, + "DeleteAppInstanceBotRequest":{ + "type":"structure", + "required":["AppInstanceBotArn"], + "members":{ + "AppInstanceBotArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceBotArn" + } + } + }, "DeleteAppInstanceRequest":{ "type":"structure", "required":["AppInstanceArn"], @@ -759,6 +940,23 @@ "AppInstanceAdmin":{"shape":"AppInstanceAdmin"} } }, + "DescribeAppInstanceBotRequest":{ + "type":"structure", + "required":["AppInstanceBotArn"], + "members":{ + "AppInstanceBotArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceBotArn" + } + } + }, + "DescribeAppInstanceBotResponse":{ + "type":"structure", + "members":{ + "AppInstanceBot":{"shape":"AppInstanceBot"} + } + }, "DescribeAppInstanceRequest":{ "type":"structure", "required":["AppInstanceArn"], @@ -868,6 +1066,26 @@ "PhoneNumberAssociationsExist" ] }, + "ExpirationCriterion":{ + "type":"string", + "enum":["CREATED_TIMESTAMP"] + }, + "ExpirationDays":{ + "type":"integer", + "max":5475, + "min":1 + }, + "ExpirationSettings":{ + "type":"structure", + "required":[ + "ExpirationDays", + "ExpirationCriterion" + ], + "members":{ + "ExpirationDays":{"shape":"ExpirationDays"}, + "ExpirationCriterion":{"shape":"ExpirationCriterion"} + } + }, "ForbiddenException":{ "type":"structure", "members":{ @@ -902,6 +1120,32 @@ "Name":{"shape":"ResourceName"} } }, + "LexBotAliasArn":{ + "type":"string", + "max":2048, + "min":15, + "pattern":"arn:aws:lex:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:bot-alias/[A-Z0-9]{10}/[A-Z0-9]{10}" + }, + "LexConfiguration":{ + "type":"structure", + "required":[ + "RespondsTo", + "LexBotAliasArn", + "LocaleId" + ], + "members":{ + "RespondsTo":{"shape":"RespondsTo"}, + "LexBotAliasArn":{"shape":"LexBotAliasArn"}, + "LocaleId":{"shape":"String"}, + "WelcomeIntent":{"shape":"LexIntentName"} + } + }, + "LexIntentName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^([A-Za-z]_?)+$" + }, "ListAppInstanceAdminsRequest":{ "type":"structure", "required":["AppInstanceArn"], @@ -931,6 +1175,35 @@ "NextToken":{"shape":"NextToken"} } }, + "ListAppInstanceBotsRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"querystring", + "locationName":"app-instance-arn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListAppInstanceBotsResponse":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "AppInstanceBots":{"shape":"AppInstanceBotList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListAppInstanceUserEndpointsRequest":{ "type":"structure", "required":["AppInstanceUserArn"], @@ -1060,6 +1333,15 @@ "pattern":".*", "sensitive":true }, + "NotFoundException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, "PutAppInstanceRetentionSettingsRequest":{ "type":"structure", "required":[ @@ -1082,6 +1364,25 @@ "InitiateDeletionTimestamp":{"shape":"Timestamp"} } }, + "PutAppInstanceUserExpirationSettingsRequest":{ + "type":"structure", + "required":["AppInstanceUserArn"], + "members":{ + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceUserArn" + }, + "ExpirationSettings":{"shape":"ExpirationSettings"} + } + }, + "PutAppInstanceUserExpirationSettingsResponse":{ + "type":"structure", + "members":{ + "AppInstanceUserArn":{"shape":"ChimeArn"}, + "ExpirationSettings":{"shape":"ExpirationSettings"} + } + }, "RegisterAppInstanceUserEndpointRequest":{ "type":"structure", "required":[ @@ -1099,7 +1400,7 @@ }, "Name":{"shape":"SensitiveString1600"}, "Type":{"shape":"AppInstanceUserEndpointType"}, - "ResourceArn":{"shape":"SensitiveChimeArn"}, + "ResourceArn":{"shape":"ChimeArn"}, "EndpointAttributes":{"shape":"EndpointAttributes"}, "ClientRequestToken":{ "shape":"ClientRequestToken", @@ -1131,6 +1432,10 @@ "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*", "sensitive":true }, + "RespondsTo":{ + "type":"string", + "enum":["STANDARD_MESSAGES"] + }, "RetentionDays":{ "type":"integer", "max":5475, @@ -1254,6 +1559,29 @@ "TagKeys":{"shape":"TagKeyList"} } }, + "UpdateAppInstanceBotRequest":{ + "type":"structure", + "required":[ + "AppInstanceBotArn", + "Name", + "Metadata" + ], + "members":{ + "AppInstanceBotArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceBotArn" + }, + "Name":{"shape":"ResourceName"}, + "Metadata":{"shape":"Metadata"} + } + }, + "UpdateAppInstanceBotResponse":{ + "type":"structure", + "members":{ + "AppInstanceBotArn":{"shape":"ChimeArn"} + } + }, "UpdateAppInstanceRequest":{ "type":"structure", "required":[ diff --git a/models/apis/chime-sdk-identity/2021-04-20/docs-2.json b/models/apis/chime-sdk-identity/2021-04-20/docs-2.json index 848ac1eab7f..f67f3c705a4 100644 --- a/models/apis/chime-sdk-identity/2021-04-20/docs-2.json +++ b/models/apis/chime-sdk-identity/2021-04-20/docs-2.json @@ -3,27 +3,33 @@ "service": "The Amazon Chime SDK Identity APIs in this section allow software developers to create and manage unique instances of their messaging applications. These APIs provide the overarching framework for creating and sending messages. For more information about the identity APIs, refer to Amazon Chime SDK identity.
", "operations": { "CreateAppInstance": "Creates an Amazon Chime SDK messaging AppInstance
under an AWS account. Only SDK messaging customers use this API. CreateAppInstance
supports idempotency behavior as described in the AWS API Standard.
identity
", - "CreateAppInstanceAdmin": "Promotes an AppInstanceUser
to an AppInstanceAdmin
. The promoted user can perform the following actions.
ChannelModerator
actions across all channels in the AppInstance
.
DeleteChannelMessage
actions.
Only an AppInstanceUser
can be promoted to an AppInstanceAdmin
role.
Promotes an AppInstanceUser
or AppInstanceBot
to an AppInstanceAdmin
. The promoted entity can perform the following actions.
ChannelModerator
actions across all channels in the AppInstance
.
DeleteChannelMessage
actions.
Only an AppInstanceUser
and AppInstanceBot
can be promoted to an AppInstanceAdmin
role.
Creates a bot under an Amazon Chime AppInstance
. The request consists of a unique Configuration
and Name
for that bot.
Creates a user under an Amazon Chime AppInstance
. The request consists of a unique appInstanceUserId
and Name
for that user.
Deletes an AppInstance
and all associated data asynchronously.
Demotes an AppInstanceAdmin
to an AppInstanceUser
. This action does not delete the user.
Demotes an AppInstanceAdmin
to an AppInstanceUser
or AppInstanceBot
. This action does not delete the user.
Deletes an AppInstanceBot
.
Deletes an AppInstanceUser
.
Deregisters an AppInstanceUserEndpoint
.
Returns the full details of an AppInstance
.
Returns the full details of an AppInstanceAdmin
.
The AppInstanceBot's
information.
Returns the full details of an AppInstanceUser
.
Returns the full details of an AppInstanceUserEndpoint
.
Gets the retention settings for an AppInstance
.
Returns a list of the administrators in the AppInstance
.
Lists all AppInstanceBots
created under a single AppInstance
.
Lists all the AppInstanceUserEndpoints
created under a single AppInstanceUser
.
List all AppInstanceUsers
created under a single AppInstance
.
Lists all Amazon Chime AppInstance
s created under a single AWS account.
Lists the tags applied to an Amazon Chime SDK identity resource.
", "PutAppInstanceRetentionSettings": "Sets the amount of time in days that a given AppInstance
retains data.
Sets the number of days before the AppInstanceUser
is automatically deleted.
A background process deletes expired AppInstanceUsers
within 6 hours of expiration. Actual deletion times may vary.
Expired AppInstanceUsers
that have not yet been deleted appear as active, and you can update their expiration settings. The system honors the new settings.
Registers an endpoint under an Amazon Chime AppInstanceUser
. The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.
Applies the specified tags to the specified Amazon Chime SDK identity resource.
", "UntagResource": "Removes the specified tags from the specified Amazon Chime SDK identity resource.
", "UpdateAppInstance": "Updates AppInstance
metadata.
Updates the name and metadata of an AppInstanceBot
.
Updates the details of an AppInstanceUser
. You can update names and metadata.
Updates the details of an AppInstanceUserEndpoint
. You can update the name and AllowMessage
values.
The details of an AppInstanceAdmin
.
The name and ARN of the admin for the AppInstance
.
The ARN and name of the AppInstanceUser
, the ARN of the AppInstance
, and the created and last-updated timestamps. All timestamps use epoch milliseconds.
An Amazon Lex V2 chat bot created under an AppInstance
.
The detials of the AppInstanceBot
.
The information for each requested AppInstanceBot
.
High-level information about an AppInstanceBot.
", + "refs": { + "AppInstanceBotList$member": null + } + }, "AppInstanceList": { "base": null, "refs": { @@ -141,33 +165,47 @@ "refs": { "AppInstance$AppInstanceArn": "The ARN of the messaging instance.
", "AppInstanceAdmin$AppInstanceArn": "The ARN of the AppInstance
for which the user is an administrator.
The ARN of the AppInstanceBot.
", + "AppInstanceBotSummary$AppInstanceBotArn": "The ARN of the AppInstanceBot.
", "AppInstanceSummary$AppInstanceArn": "The AppInstance
ARN.
The ARN of the AppInstanceUser
.
The ARN of the resource to which the endpoint belongs.
", "AppInstanceUserSummary$AppInstanceUserArn": "The ARN of the AppInstanceUser
.
The ARN of the administrator of the current AppInstance
.
The ARN of the AppInstance
.
The ARN of the of the admin for the AppInstance
.
The ARN of the AppInstance
request.
The ARN of the AppinstanceBot
.
The Amazon Resource Number (ARN) of the AppInstance
.
The ARN of the AppInstance
request.
The user's ARN.
", "DeleteAppInstanceAdminRequest$AppInstanceAdminArn": "The ARN of the AppInstance
's administrator.
The ARN of the AppInstance
.
The ARN of the AppInstanceBot
being deleted.
The ARN of the AppInstance
.
The ARN of the user request being deleted.
", "DescribeAppInstanceAdminRequest$AppInstanceAdminArn": "The ARN of the AppInstanceAdmin
.
The ARN of the AppInstance
.
The ARN of the AppInstanceBot
.
The ARN of the AppInstance
.
The ARN of the AppInstanceUser
.
The ARN of the AppInstance
.
The ARN in an Identity.
", "ListAppInstanceAdminsRequest$AppInstanceArn": "The ARN of the AppInstance
.
The ARN of the AppInstance
.
The ARN of the AppInstance
.
The ARN of the AppInstance.
", "ListAppInstanceUsersRequest$AppInstanceArn": "The ARN of the AppInstance
.
The ARN of the AppInstance
.
The ARN of the resource.
", "PutAppInstanceRetentionSettingsRequest$AppInstanceArn": "The ARN of the AppInstance
.
The ARN of the AppInstanceUser
.
The ARN of the AppInstanceUser
.
The ARN of the resource to which the endpoint belongs.
", "TagResourceRequest$ResourceARN": "The resource ARN.
", "UntagResourceRequest$ResourceARN": "The resource ARN.
", + "UpdateAppInstanceBotRequest$AppInstanceBotArn": "The ARN of the AppInstanceBot
.
The ARN of the AppInstanceBot
.
The ARN of the AppInstance
.
The ARN of the AppInstance
.
The ARN of the AppInstanceUser
.
The ClientRequestToken
of the AppInstance
.
The token assigned to the user requesting an AppInstance
.
The idempotency token for each client request.
" + "CreateAppInstanceBotRequest$ClientRequestToken": "The unique ID for the client making the request. Use different tokens for different AppInstanceBots
.
The unique ID of the request. Use different tokens to create different AppInstances
.
The unique ID of the request. Use different tokens to request additional AppInstances
.
The unique ID assigned to the request. Use different tokens to register other endpoints.
" + } + }, + "Configuration": { + "base": "A structure that contains configuration data.
", + "refs": { + "AppInstanceBot$Configuration": "The data processing instructions for an AppInstanceBot.
", + "CreateAppInstanceBotRequest$Configuration": "Configuration information about the Amazon Lex V2 V2 bot.
" } }, "ConflictException": { @@ -197,6 +243,16 @@ "refs": { } }, + "CreateAppInstanceBotRequest": { + "base": null, + "refs": { + } + }, + "CreateAppInstanceBotResponse": { + "base": null, + "refs": { + } + }, "CreateAppInstanceRequest": { "base": null, "refs": { @@ -222,6 +278,11 @@ "refs": { } }, + "DeleteAppInstanceBotRequest": { + "base": null, + "refs": { + } + }, "DeleteAppInstanceRequest": { "base": null, "refs": { @@ -247,6 +308,16 @@ "refs": { } }, + "DescribeAppInstanceBotRequest": { + "base": null, + "refs": { + } + }, + "DescribeAppInstanceBotResponse": { + "base": null, + "refs": { + } + }, "DescribeAppInstanceRequest": { "base": null, "refs": { @@ -309,6 +380,7 @@ "BadRequestException$Code": null, "ConflictException$Code": null, "ForbiddenException$Code": null, + "NotFoundException$Code": null, "ResourceLimitExceededException$Code": null, "ServiceFailureException$Code": null, "ServiceUnavailableException$Code": null, @@ -316,6 +388,27 @@ "UnauthorizedClientException$Code": null } }, + "ExpirationCriterion": { + "base": null, + "refs": { + "ExpirationSettings$ExpirationCriterion": "Specifies the conditions under which an AppInstanceUser
will expire.
The period in days after which an AppInstanceUser
will be automatically deleted.
Determines the interval after which an AppInstanceUser
is automatically deleted.
The interval after which an AppInstanceUser
is automatically deleted.
Settings that control the interval after which the AppInstanceUser
is automatically deleted.
Settings that control the interval after which an AppInstanceUser
is automatically deleted.
Settings that control the interval after which an AppInstanceUser
is automatically deleted.
The client is permanently forbidden from making the request.
", "refs": { @@ -332,11 +425,29 @@ } }, "Identity": { - "base": "The details of a user.
", + "base": "The details of a user or bot.
", "refs": { "AppInstanceAdmin$Admin": "The AppInstanceAdmin
data.
The details of the AppInstanceAdmin
.
The name and ARN of the admin for the AppInstance
.
The ARN and name of the administrator, the ARN of the AppInstance
, and the created and last-updated timestamps. All timestamps use epoch milliseconds.
The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS
The configuration for an Amazon Lex V2 bot.
", + "refs": { + "Configuration$Lex": "The configuration for an Amazon Lex V2 bot.
" + } + }, + "LexIntentName": { + "base": null, + "refs": { + "LexConfiguration$WelcomeIntent": "The name of the welcome intent configured in the Amazon Lex V2 bot.
" } }, "ListAppInstanceAdminsRequest": { @@ -349,6 +460,16 @@ "refs": { } }, + "ListAppInstanceBotsRequest": { + "base": null, + "refs": { + } + }, + "ListAppInstanceBotsResponse": { + "base": null, + "refs": { + } + }, "ListAppInstanceUserEndpointsRequest": { "base": null, "refs": { @@ -393,6 +514,7 @@ "base": null, "refs": { "ListAppInstanceAdminsRequest$MaxResults": "The maximum number of administrators that you want to return.
", + "ListAppInstanceBotsRequest$MaxResults": "The maximum number of requests to return.
", "ListAppInstanceUserEndpointsRequest$MaxResults": "The maximum number of endpoints that you want to return.
", "ListAppInstanceUsersRequest$MaxResults": "The maximum number of requests that you want returned.
", "ListAppInstancesRequest$MaxResults": "The maximum number of AppInstance
s that you want to return.
The metadata of an AppInstance
.
The metadata for an AppInstanceBot.
", + "AppInstanceBotSummary$Metadata": "The metadata of the AppInstanceBot.
", "AppInstanceSummary$Metadata": "The metadata of the AppInstance
.
The metadata of the AppInstanceUser
.
The metadata of the AppInstanceUser
.
The request metadata. Limited to a 1KB string in UTF-8.
", "CreateAppInstanceRequest$Metadata": "The metadata of the AppInstance
. Limited to a 1KB string in UTF-8.
The request's metadata. Limited to a 1KB string in UTF-8.
", + "UpdateAppInstanceBotRequest$Metadata": "The metadata of the AppInstanceBot
.
The metadata that you want to change.
", "UpdateAppInstanceUserRequest$Metadata": "The metadata of the AppInstanceUser
.
The token returned from previous API requests until the number of administrators is reached.
", "ListAppInstanceAdminsResponse$NextToken": "The token returned from previous API requests until the number of administrators is reached.
", + "ListAppInstanceBotsRequest$NextToken": "The token passed by previous API calls until all requested bots are returned.
", + "ListAppInstanceBotsResponse$NextToken": "The token passed by previous API calls until all requested bots are returned.
", "ListAppInstanceUserEndpointsRequest$NextToken": "The token passed by previous API calls until all requested endpoints are returned.
", "ListAppInstanceUserEndpointsResponse$NextToken": "The token passed by previous API calls until all requested endpoints are returned.
", "ListAppInstanceUsersRequest$NextToken": "The token passed by previous API calls until all requested users are returned.
", @@ -440,6 +568,11 @@ "EndpointAttributes$VoipDeviceToken": "The VOIP device token for the APNS and APNS_SANDBOX endpoint types.
" } }, + "NotFoundException": { + "base": "One or more of the resources in the request does not exist in the system.
", + "refs": { + } + }, "PutAppInstanceRetentionSettingsRequest": { "base": null, "refs": { @@ -450,6 +583,16 @@ "refs": { } }, + "PutAppInstanceUserExpirationSettingsRequest": { + "base": null, + "refs": { + } + }, + "PutAppInstanceUserExpirationSettingsResponse": { + "base": null, + "refs": { + } + }, "RegisterAppInstanceUserEndpointRequest": { "base": null, "refs": { @@ -468,7 +611,17 @@ "ResourceName": { "base": null, "refs": { - "Identity$Name": "The name in an Identity.
" + "AppInstanceBot$Name": "The name of the AppInstanceBot.
", + "AppInstanceBotSummary$Name": "The name of the AppInstanceBox.
", + "CreateAppInstanceBotRequest$Name": "The user's name.
", + "Identity$Name": "The name in an Identity.
", + "UpdateAppInstanceBotRequest$Name": "The name of the AppInstanceBot
.
Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.
" } }, "RetentionDays": { @@ -481,12 +634,10 @@ "base": null, "refs": { "AppInstanceUserEndpoint$AppInstanceUserArn": "The ARN of the AppInstanceUser
.
The ARN of the resource to which the endpoint belongs.
", "AppInstanceUserEndpointSummary$AppInstanceUserArn": "The ARN of the AppInstanceUser
.
The ARN of the AppInstanceUser
.
The ARN of the AppInstanceUser
.
The ARN of the AppInstanceUser
.
The ARN of the resource to which the endpoint belongs.
", "RegisterAppInstanceUserEndpointResponse$AppInstanceUserArn": "The ARN of the AppInstanceUser
.
The ARN of the AppInstanceUser
.
The ARN of the AppInstanceUser
.
Identifies the Amazon Lex V2 bot's language and locale. The string must match one of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages in the Amazon Lex V2 Developer Guide.
", + "NotFoundException$Message": null, "ResourceLimitExceededException$Message": null, "ServiceFailureException$Message": null, "ServiceUnavailableException$Message": null, @@ -559,7 +712,8 @@ "TagList": { "base": null, "refs": { - "CreateAppInstanceRequest$Tags": "Tags assigned to the AppInstanceUser
.
The tags assigned to the AppInstanceBot
.
Tags assigned to the AppInstance
.
Tags assigned to the AppInstanceUser
.
The tag key-value pairs.
", "TagResourceRequest$Tags": "The tag key-value pairs.
" @@ -587,6 +741,8 @@ "AppInstance$CreatedTimestamp": "The time at which an AppInstance
was created. In epoch milliseconds.
The time an AppInstance
was last updated. In epoch milliseconds.
The time at which an administrator was created.
", + "AppInstanceBot$CreatedTimestamp": "The time at which the AppInstanceBot
was created.
The time at which the AppInstanceBot
was last updated.
The time at which the AppInstanceUser
was created.
The time at which the AppInstanceUser
was last updated.
The time at which an AppInstanceUserEndpoint
was created.
The Amazon Chime SDK media pipeline APIs in this section allow software developers to create Amazon Chime SDK media pipelines that capture, concatenate, or stream your Amazon Chime SDK meetings. For more information about media pipleines, see Amazon Chime SDK media pipelines.
", + "service": "The Amazon Chime SDK media pipeline APIs in this section allow software developers to create Amazon Chime SDK media pipelines that capture, concatenate, or stream your Amazon Chime SDK meetings. For more information about media pipelines, see Amazon Chime SDK media pipelines.
", "operations": { "CreateMediaCapturePipeline": "Creates a media pipeline.
", "CreateMediaConcatenationPipeline": "Creates a media concatenation pipeline.
", - "CreateMediaLiveConnectorPipeline": "Creates a streaming media pipeline in an Amazon Chime SDK meeting.
", + "CreateMediaInsightsPipeline": "Creates a media insights pipeline.
", + "CreateMediaInsightsPipelineConfiguration": "A structure that contains the static configurations for a media insights pipeline.
", + "CreateMediaLiveConnectorPipeline": "Creates a media live connector pipeline in an Amazon Chime SDK meeting.
", "DeleteMediaCapturePipeline": "Deletes the media pipeline.
", + "DeleteMediaInsightsPipelineConfiguration": "Deletes the specified configuration settings.
", "DeleteMediaPipeline": "Deletes the media pipeline.
", "GetMediaCapturePipeline": "Gets an existing media pipeline.
", + "GetMediaInsightsPipelineConfiguration": "Gets the configuration settings for a media insights pipeline.
", "GetMediaPipeline": "Gets an existing media pipeline.
", "ListMediaCapturePipelines": "Returns a list of media pipelines.
", + "ListMediaInsightsPipelineConfigurations": "Lists the available media insights pipeline configurations.
", "ListMediaPipelines": "Returns a list of media pipelines.
", "ListTagsForResource": "Lists the tags available for a media pipeline.
", - "TagResource": "The ARN of the media pipeline that you want to tag. Consists of he pipeline's endpoint region, resource ID, and pipeline ID.
", - "UntagResource": "Removes any tags from a media pipeline.
" + "TagResource": "The ARN of the media pipeline that you want to tag. Consists of the pipeline's endpoint region, resource ID, and pipeline ID.
", + "UntagResource": "Removes any tags from a media pipeline.
", + "UpdateMediaInsightsPipelineConfiguration": "Updates the media insights pipeline's configuration settings.
", + "UpdateMediaInsightsPipelineStatus": "Updates the status of a media insights pipeline.
" }, "shapes": { "AmazonResourceName": { @@ -29,16 +36,42 @@ "UntagResourceRequest$ResourceARN": "The ARN of the pipeline that you want to untag.
" } }, + "AmazonTranscribeCallAnalyticsProcessorConfiguration": { + "base": "A structure that contains the configuration settings for an Amazon Transcribe call analytics processor.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$AmazonTranscribeCallAnalyticsProcessorConfiguration": "The analytics configuration settings for transcribing audio in a media insights pipeline configuration element.
" + } + }, + "AmazonTranscribeProcessorConfiguration": { + "base": "A structure that contains the configuration settings for an Amazon Transcribe processor.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$AmazonTranscribeProcessorConfiguration": "The transcription processor configuration settings in a media insights pipeline configuration element.
" + } + }, "Arn": { "base": null, "refs": { "ChimeSdkMeetingLiveConnectorConfiguration$Arn": "The configuration object's Chime SDK meeting ARN.
", "CreateMediaCapturePipelineRequest$SourceArn": "ARN of the source from which the media artifacts are captured.
", "CreateMediaCapturePipelineRequest$SinkArn": "The ARN of the sink type.
", + "CreateMediaInsightsPipelineConfigurationRequest$ResourceAccessRoleArn": "The ARN of the role used by the service to access Amazon Web Services resources, including Transcribe
and Transcribe Call Analytics
, on the caller’s behalf.
The ARN of the pipeline's configuration.
", + "KinesisDataStreamSinkConfiguration$InsightsTarget": "The URL of the sink, https://aws.amazon.com/kinesis/data-streams/.
", + "LambdaFunctionSinkConfiguration$InsightsTarget": "The URL of the sink, https://aws.amazon.com/kinesis/data-streams/.
", "MediaCapturePipeline$SourceArn": "ARN of the source from which the media artifacts are saved.
", "MediaCapturePipeline$SinkArn": "ARN of the destination to which the media artifacts are saved.
", "MediaCapturePipelineSourceConfiguration$MediaPipelineArn": "The media pipeline ARN in the configuration object of a media capture pipeline.
", - "S3BucketSinkConfiguration$Destination": "The destination URL of the S3 bucket.
" + "MediaInsightsPipeline$MediaPipelineArn": "The ARN of a media insights pipeline.
", + "MediaInsightsPipeline$MediaInsightsPipelineConfigurationArn": "The ARN of a media insight pipeline's configuration settings.
", + "MediaInsightsPipelineConfiguration$MediaInsightsPipelineConfigurationArn": "The ARN of the configuration.
", + "MediaInsightsPipelineConfiguration$ResourceAccessRoleArn": "The ARN of the role used by the service to access Amazon Web Services resources.
", + "MediaInsightsPipelineConfigurationSummary$MediaInsightsPipelineConfigurationArn": "The ARN of the media insights pipeline configuration.
", + "S3BucketSinkConfiguration$Destination": "The destination URL of the S3 bucket.
", + "S3RecordingSinkConfiguration$Destination": "The URL of the Amazon S3 bucket used as the recording sink.
", + "S3RecordingSinkRuntimeConfiguration$Destination": "The URL of the S3 bucket used as the runtime sink.
", + "SnsTopicSinkConfiguration$InsightsTarget": "The URL of the SNS sink, https://aws.amazon.com/kinesis/data-streams/.
", + "SqsQueueSinkConfiguration$InsightsTarget": "The URL of the SQS sink, https://aws.amazon.com/kinesis/data-streams/.
", + "UpdateMediaInsightsPipelineConfigurationRequest$ResourceAccessRoleArn": "The ARN of the role used by the service to access Amazon Web Services resources.
" } }, "ArtifactsConcatenationConfiguration": { @@ -80,7 +113,7 @@ "AudioArtifactsConcatenationState": { "base": null, "refs": { - "AudioConcatenationConfiguration$State": "Enables the name object, where name is the name of the configuration object, such as AudioConcatenation
.
Enables or disables the configuration object.
" } }, "AudioArtifactsConfiguration": { @@ -118,6 +151,55 @@ "refs": { } }, + "Boolean": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$EnablePartialResultsStabilization": "Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy. For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeCallAnalyticsProcessorConfiguration$FilterPartialResults": "If true, UtteranceEvents
with IsPartial: true
are filtered out of the insights target.
Enables speaker partitioning (diarization) in your transcription output. Speaker partitioning labels the speech from individual speakers in your media file.
For more information, see Partitioning speakers (diarization) in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeProcessorConfiguration$EnablePartialResultsStabilization": "Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy.
For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeProcessorConfiguration$FilterPartialResults": "If true, TranscriptEvents
with IsPartial: true
are filtered out of the insights target.
Matches keywords or phrases on their presence or absence. If set to TRUE
, the rule matches when all the specified keywords or phrases are absent. Default: FALSE
.
Turns off real-time alerts.
" + } + }, + "CallAnalyticsLanguageCode": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$LanguageCode": "The language code in the configuration.
", + "AmazonTranscribeProcessorConfiguration$LanguageCode": "The language code that represents the language spoken in your audio.
If you're unsure of the language spoken in your audio, consider using IdentifyLanguage
to enable automatic language identification.
For a list of languages that real-time Call Analytics supports, see the Supported languages table in the Amazon Transcribe Developer Guide.
" + } + }, + "CategoryName": { + "base": null, + "refs": { + "CategoryNameList$member": null + } + }, + "CategoryNameList": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$CallAnalyticsStreamCategories": "By default, all CategoryEvents
will be sent to the insights target. If this parameter is specified, only included categories will be sent to the insights target.
Defines an audio channel in a Kinesis video stream.
", + "refs": { + "ChannelDefinitions$member": null + } + }, + "ChannelDefinitions": { + "base": null, + "refs": { + "StreamChannelDefinition$ChannelDefinitions": "The definitions of the channels in a streaming channel.
" + } + }, + "ChannelId": { + "base": null, + "refs": { + "ChannelDefinition$ChannelId": "The channel ID.
" + } + }, "ChimeSdkMeetingConcatenationConfiguration": { "base": "The configuration object of the Amazon Chime SDK meeting concatenation for a specified media pipeline.
", "refs": { @@ -142,11 +224,13 @@ "refs": { "CreateMediaCapturePipelineRequest$ClientRequestToken": "The unique identifier for the client request. The token makes the API request idempotent. Use a unique token for each media pipeline request.
", "CreateMediaConcatenationPipelineRequest$ClientRequestToken": "The unique identifier for the client request. The token makes the API request idempotent. Use a unique token for each media concatenation pipeline request.
", + "CreateMediaInsightsPipelineConfigurationRequest$ClientRequestToken": "The unique identifier for the media insights pipeline configuration request.
", + "CreateMediaInsightsPipelineRequest$ClientRequestToken": "The unique identifier for the media insights pipeline request.
", "CreateMediaLiveConnectorPipelineRequest$ClientRequestToken": "The token assigned to the client making the request.
" } }, "CompositedVideoArtifactsConfiguration": { - "base": "Describes the configuration for the composited video artifacts.
", + "base": "Specifies the configuration for compositing video artifacts.
", "refs": { "ArtifactsConfiguration$CompositedVideo": "Enables video compositing.
", "ChimeSdkMeetingLiveConnectorConfiguration$CompositedVideo": "The media pipeline's composited video.
" @@ -187,7 +271,7 @@ "base": null, "refs": { "CreateMediaConcatenationPipelineRequest$Sources": "An object that specifies the sources for the media concatenation pipeline.
", - "MediaConcatenationPipeline$Sources": "The data sources being concatnated.
" + "MediaConcatenationPipeline$Sources": "The data sources being concatenated.
" } }, "ConcatenationSourceType": { @@ -196,6 +280,11 @@ "ConcatenationSource$Type": "The type of concatenation source in a configuration object.
" } }, + "ConflictException": { + "base": "The request could not be processed because of conflict in the current state of the resource.
", + "refs": { + } + }, "ContentArtifactsConfiguration": { "base": "The content artifact object.
", "refs": { @@ -214,12 +303,27 @@ "ContentArtifactsConfiguration$MuxType": "The MUX type of the artifact configuration.
" } }, + "ContentRedactionOutput": { + "base": null, + "refs": { + "PostCallAnalyticsSettings$ContentRedactionOutput": "The content redaction output settings for a post-call analysis task.
" + } + }, "ContentShareLayoutOption": { "base": null, "refs": { "GridViewConfiguration$ContentShareLayout": "Defines the layout of the video tiles when content sharing is enabled.
" } }, + "ContentType": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$ContentIdentificationType": "Labels all personally identifiable information (PII) identified in your transcript.
Content identification is performed at the segment level; PII specified in PiiEntityTypes
is flagged upon complete transcription of an audio segment.
You can’t set ContentIdentificationType
and ContentRedactionType
in the same request. If you do, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeCallAnalyticsProcessorConfiguration$ContentRedactionType": "Redacts all personally identifiable information (PII) identified in your transcript.
Content redaction is performed at the segment level; PII specified in PiiEntityTypes
is redacted upon complete transcription of an audio segment.
You can’t set ContentRedactionType
and ContentIdentificationType
in the same request. If you do, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeProcessorConfiguration$ContentIdentificationType": "Labels all personally identifiable information (PII) identified in your transcript.
Content identification is performed at the segment level; PII specified in PiiEntityTypes
is flagged upon complete transcription of an audio segment.
You can’t set ContentIdentificationType
and ContentRedactionType
in the same request. If you set both, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeProcessorConfiguration$ContentRedactionType": "Redacts all personally identifiable information (PII) identified in your transcript.
Content redaction is performed at the segment level; PII specified in PiiEntityTypes is redacted upon complete transcription of an audio segment.
You can’t set ContentRedactionType and ContentIdentificationType in the same request. If you set both, your request returns a BadRequestException
.
For more information, see Redacting or identifying personally identifiable information in the Amazon Transcribe Developer Guide.
" + } + }, "CreateMediaCapturePipelineRequest": { "base": null, "refs": { @@ -240,6 +344,26 @@ "refs": { } }, + "CreateMediaInsightsPipelineConfigurationRequest": { + "base": null, + "refs": { + } + }, + "CreateMediaInsightsPipelineConfigurationResponse": { + "base": null, + "refs": { + } + }, + "CreateMediaInsightsPipelineRequest": { + "base": null, + "refs": { + } + }, + "CreateMediaInsightsPipelineResponse": { + "base": null, + "refs": { + } + }, "CreateMediaLiveConnectorPipelineRequest": { "base": null, "refs": { @@ -261,6 +385,11 @@ "refs": { } }, + "DeleteMediaInsightsPipelineConfigurationRequest": { + "base": null, + "refs": { + } + }, "DeleteMediaPipelineRequest": { "base": null, "refs": { @@ -270,6 +399,7 @@ "base": null, "refs": { "BadRequestException$Code": null, + "ConflictException$Code": null, "ForbiddenException$Code": null, "NotFoundException$Code": null, "ResourceLimitExceededException$Code": null, @@ -296,6 +426,24 @@ "refs": { } }, + "FragmentNumberString": { + "base": null, + "refs": { + "StreamConfiguration$FragmentNumber": "The unique identifier of the fragment to begin processing.
" + } + }, + "FragmentSelector": { + "base": "Describes the timestamp range and timestamp origin of a range of fragments.
Only fragments with a start timestamp greater than or equal to the given start time and less than or equal to the end time are returned. For example, say a stream contains fragments with the following start timestamps:
00:00:00
00:00:02
00:00:04
00:00:06
A fragment selector range with a start time of 00:00:01 and end time of 00:00:04 would return the fragments with start times of 00:00:02 and 00:00:04.
", + "refs": { + "KinesisVideoStreamRecordingSourceRuntimeConfiguration$FragmentSelector": "Describes the timestamp range and timestamp origin of a range of fragments in the Kinesis video stream.
" + } + }, + "FragmentSelectorType": { + "base": null, + "refs": { + "FragmentSelector$FragmentSelectorType": "The origin of the timestamps to use, Server
or Producer
. For more information, see StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.
The ID of a media pipeline.
", "MediaCapturePipelineSummary$MediaPipelineId": "The ID of the media pipeline in the summary.
", "MediaConcatenationPipeline$MediaPipelineId": "The ID of the media pipeline being concatenated.
", + "MediaInsightsPipeline$MediaPipelineId": "The ID of a media insights pipeline.
", + "MediaInsightsPipelineConfiguration$MediaInsightsPipelineConfigurationId": "The ID of the configuration.
", + "MediaInsightsPipelineConfigurationSummary$MediaInsightsPipelineConfigurationId": "The ID of the media insights pipeline configuration.
", "MediaLiveConnectorPipeline$MediaPipelineId": "The connector pipeline's ID.
", "MediaPipelineSummary$MediaPipelineId": "The ID of the media pipeline in the summary.
" } @@ -344,10 +505,70 @@ "MediaCapturePipeline$UpdatedTimestamp": "The time at which the pipeline was updated, in ISO 8601 format.
", "MediaConcatenationPipeline$CreatedTimestamp": "The time at which the concatenation pipeline was created.
", "MediaConcatenationPipeline$UpdatedTimestamp": "The time at which the concatenation pipeline was last updated.
", - "MediaLiveConnectorPipeline$CreatedTimestamp": "Thetime at which the connector pipeline was created.
", + "MediaInsightsPipeline$CreatedTimestamp": "The time at which the media insights pipeline was created.
", + "MediaInsightsPipelineConfiguration$CreatedTimestamp": "The time at which the configuration was created.
", + "MediaInsightsPipelineConfiguration$UpdatedTimestamp": "The time at which the configuration was last updated.
", + "MediaLiveConnectorPipeline$CreatedTimestamp": "The time at which the connector pipeline was created.
", "MediaLiveConnectorPipeline$UpdatedTimestamp": "The time at which the connector pipeline was last updated.
" } }, + "IssueDetectionConfiguration": { + "base": "A structure that contains the configuration settings for an issue detection task.
", + "refs": { + "RealTimeAlertRule$IssueDetectionConfiguration": "Specifies the issue detection settings for a real-time alert rule.
" + } + }, + "Keyword": { + "base": null, + "refs": { + "KeywordMatchWordList$member": null + } + }, + "KeywordMatchConfiguration": { + "base": "A structure that contains the settings for a keyword match task.
", + "refs": { + "RealTimeAlertRule$KeywordMatchConfiguration": "Specifies the settings for matching the keywords in a real-time alert rule.
" + } + }, + "KeywordMatchWordList": { + "base": null, + "refs": { + "KeywordMatchConfiguration$Keywords": "The keywords or phrases that you want to match.
" + } + }, + "KinesisDataStreamSinkConfiguration": { + "base": "A structure that contains the configuration settings for a Kinesis Data Stream sink.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$KinesisDataStreamSinkConfiguration": "The configuration settings for the Kinesis Data Stream Sink in a media insights pipeline configuration element.
" + } + }, + "KinesisVideoStreamArn": { + "base": null, + "refs": { + "RecordingStreamConfiguration$StreamArn": "The ARN of the recording stream.
", + "StreamConfiguration$StreamArn": "The ARN of the stream.
" + } + }, + "KinesisVideoStreamRecordingSourceRuntimeConfiguration": { + "base": "A structure that contains the runtime settings for recording a Kinesis video stream.
", + "refs": { + "CreateMediaInsightsPipelineRequest$KinesisVideoStreamRecordingSourceRuntimeConfiguration": "The runtime configuration for the Kinesis video recording stream source.
", + "MediaInsightsPipeline$KinesisVideoStreamRecordingSourceRuntimeConfiguration": "The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline.
" + } + }, + "KinesisVideoStreamSourceRuntimeConfiguration": { + "base": "The runtime configuration settings for the Kinesis video stream source.
", + "refs": { + "CreateMediaInsightsPipelineRequest$KinesisVideoStreamSourceRuntimeConfiguration": "The runtime configuration for the Kinesis video stream source of the media insights pipeline.
", + "MediaInsightsPipeline$KinesisVideoStreamSourceRuntimeConfiguration": "The configuration settings for a Kinesis runtime video stream in a media insights pipeline.
" + } + }, + "LambdaFunctionSinkConfiguration": { + "base": "A structure that contains the configuration settings for an AWS Lambda function's data sink.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$LambdaFunctionSinkConfiguration": "The configuration settings for the Amazon Web Services Lambda sink in a media insights pipeline configuration element.
" + } + }, "LayoutOption": { "base": null, "refs": { @@ -364,6 +585,16 @@ "refs": { } }, + "ListMediaInsightsPipelineConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "ListMediaInsightsPipelineConfigurationsResponse": { + "base": null, + "refs": { + } + }, "ListMediaPipelinesRequest": { "base": null, "refs": { @@ -393,7 +624,7 @@ "LiveConnectorRTMPConfiguration": { "base": "The media pipeline's RTMP configuration object.
", "refs": { - "LiveConnectorSinkConfiguration$RTMPConfiguration": "The sink configuration's RTMP configuration setttings.
" + "LiveConnectorSinkConfiguration$RTMPConfiguration": "The sink configuration's RTMP configuration settings.
" } }, "LiveConnectorSinkConfiguration": { @@ -405,7 +636,7 @@ "LiveConnectorSinkList": { "base": null, "refs": { - "CreateMediaLiveConnectorPipelineRequest$Sinks": "The media pipeline's data sinks.
", + "CreateMediaLiveConnectorPipelineRequest$Sinks": "The media live connector pipeline's data sinks.
", "MediaLiveConnectorPipeline$Sinks": "The connector pipeline's data sinks.
" } }, @@ -424,7 +655,7 @@ "LiveConnectorSourceList": { "base": null, "refs": { - "CreateMediaLiveConnectorPipelineRequest$Sources": "The media pipeline's data sources.
", + "CreateMediaLiveConnectorPipelineRequest$Sources": "The media live connector pipeline's data sources.
", "MediaLiveConnectorPipeline$Sources": "The connector pipeline's data sources.
" } }, @@ -467,10 +698,78 @@ "MediaPipeline$MediaConcatenationPipeline": "The media concatenation pipeline in a media pipeline.
" } }, + "MediaEncoding": { + "base": null, + "refs": { + "KinesisVideoStreamSourceRuntimeConfiguration$MediaEncoding": "Specifies the encoding of your input audio. Supported format: PCM (only signed 16-bit little-endian audio formats, which does not include WAV)
For more information, see Media formats in the Amazon Transcribe Developer Guide.
" + } + }, + "MediaInsightsPipeline": { + "base": "A media pipeline that streams call analytics data.
", + "refs": { + "CreateMediaInsightsPipelineResponse$MediaInsightsPipeline": "The media insights pipeline object.
", + "MediaPipeline$MediaInsightsPipeline": "The media insights pipeline of a media pipeline.
" + } + }, + "MediaInsightsPipelineConfiguration": { + "base": "A structure that contains the configuration settings for a media insights pipeline.
", + "refs": { + "CreateMediaInsightsPipelineConfigurationResponse$MediaInsightsPipelineConfiguration": "The configuration settings for the media insights pipeline.
", + "GetMediaInsightsPipelineConfigurationResponse$MediaInsightsPipelineConfiguration": "The requested media insights pipeline configuration.
", + "UpdateMediaInsightsPipelineConfigurationResponse$MediaInsightsPipelineConfiguration": "The updated configuration settings.
" + } + }, + "MediaInsightsPipelineConfigurationElement": { + "base": "An element in a media insights pipeline configuration.
", + "refs": { + "MediaInsightsPipelineConfigurationElements$member": null + } + }, + "MediaInsightsPipelineConfigurationElementType": { + "base": null, + "refs": { + "MediaInsightsPipelineConfigurationElement$Type": "The element type.
" + } + }, + "MediaInsightsPipelineConfigurationElements": { + "base": null, + "refs": { + "CreateMediaInsightsPipelineConfigurationRequest$Elements": "The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data Stream.
", + "MediaInsightsPipelineConfiguration$Elements": "The elements in the configuration.
", + "UpdateMediaInsightsPipelineConfigurationRequest$Elements": "The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data Stream..
" + } + }, + "MediaInsightsPipelineConfigurationNameString": { + "base": null, + "refs": { + "CreateMediaInsightsPipelineConfigurationRequest$MediaInsightsPipelineConfigurationName": "The name of the media insights pipeline configuration.
", + "MediaInsightsPipelineConfiguration$MediaInsightsPipelineConfigurationName": "The name of the configuration.
", + "MediaInsightsPipelineConfigurationSummary$MediaInsightsPipelineConfigurationName": "The name of the media insights pipeline configuration.
" + } + }, + "MediaInsightsPipelineConfigurationSummary": { + "base": "A summary of the media insights pipeline configuration.
", + "refs": { + "MediaInsightsPipelineConfigurationSummaryList$member": null + } + }, + "MediaInsightsPipelineConfigurationSummaryList": { + "base": null, + "refs": { + "ListMediaInsightsPipelineConfigurationsResponse$MediaInsightsPipelineConfigurations": "The requested list of media insights pipeline configurations.
" + } + }, + "MediaInsightsRuntimeMetadata": { + "base": null, + "refs": { + "CreateMediaInsightsPipelineRequest$MediaInsightsRuntimeMetadata": "The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
", + "MediaInsightsPipeline$MediaInsightsRuntimeMetadata": "The runtime metadata of a media insights pipeline.
" + } + }, "MediaLiveConnectorPipeline": { "base": "The connector pipeline.
", "refs": { - "CreateMediaLiveConnectorPipelineResponse$MediaLiveConnectorPipeline": "The new media pipeline.
", + "CreateMediaLiveConnectorPipelineResponse$MediaLiveConnectorPipeline": "The new media live connector pipeline.
", "MediaPipeline$MediaLiveConnectorPipeline": "The connector pipeline of the media pipeline.
" } }, @@ -505,26 +804,88 @@ "refs": { "MediaCapturePipeline$Status": "The status of the media pipeline.
", "MediaConcatenationPipeline$Status": "The status of the concatenation pipeline.
", + "MediaInsightsPipeline$Status": "The status of a media insights pipeline.
", "MediaLiveConnectorPipeline$Status": "The connector pipeline's status.
" } }, + "MediaPipelineStatusUpdate": { + "base": null, + "refs": { + "UpdateMediaInsightsPipelineStatusRequest$UpdateStatus": "The requested status of the media insights pipeline.
" + } + }, "MediaPipelineSummary": { "base": "The summary of the media pipeline.
", "refs": { "MediaPipelineList$member": null } }, + "MediaSampleRateHertz": { + "base": null, + "refs": { + "KinesisVideoStreamSourceRuntimeConfiguration$MediaSampleRate": "The sample rate of the input audio (in hertz). Low-quality audio, such as telephone audio, is typically around 8,000 Hz. High-quality audio typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must match that of your audio.
Valid Range: Minimum value of 8000. Maximum value of 48000.
" + } + }, "MeetingEventsConcatenationConfiguration": { "base": "The configuration object for an event concatenation pipeline.
", "refs": { "ArtifactsConcatenationConfiguration$MeetingEvents": "The configuration for the meeting events artifacts concatenation.
" } }, + "ModelName": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$LanguageModelName": "Specifies the name of the custom language model to use when processing a transcription. Note that language model names are case sensitive.
The language of the specified language model must match the language code specified in the transcription request. If the languages don't match, the custom language model isn't applied. Language mismatches don't generate errors or warnings.
For more information, see Custom language models in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeProcessorConfiguration$LanguageModelName": "The name of the custom language model that you want to use when processing your transcription. Note that language model names are case sensitive.
The language of the specified language model must match the language code you specify in your transcription request. If the languages don't match, the custom language model isn't applied. There are no errors or warnings associated with a language mismatch.
For more information, see Custom language models in the Amazon Transcribe Developer Guide.
" + } + }, + "NonEmptyString": { + "base": null, + "refs": { + "DeleteMediaInsightsPipelineConfigurationRequest$Identifier": "The unique identifier of the resource to be deleted. Valid values include the name and ARN of the media insights pipeline configuration.
", + "GetMediaInsightsPipelineConfigurationRequest$Identifier": "The unique identifier of the requested resource. Valid values include the name and ARN of the media insights pipeline configuration.
", + "MediaInsightsRuntimeMetadata$key": null, + "UpdateMediaInsightsPipelineConfigurationRequest$Identifier": "The unique identifier for the resource to be updated. Valid values include the name and ARN of the media insights pipeline configuration.
", + "UpdateMediaInsightsPipelineStatusRequest$Identifier": "The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.
" + } + }, "NotFoundException": { "base": "One or more of the resources in the request does not exist in the system.
", "refs": { } }, + "NumberOfChannels": { + "base": null, + "refs": { + "StreamChannelDefinition$NumberOfChannels": "The number of channels in a streaming channel.
" + } + }, + "PartialResultsStability": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$PartialResultsStability": "Specifies the level of stability to use when you enable partial results stabilization (EnablePartialResultsStabilization
).
Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.
For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
", + "AmazonTranscribeProcessorConfiguration$PartialResultsStability": "The level of stability to use when you enable partial results stabilization (EnablePartialResultsStabilization
).
Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.
For more information, see Partial-result stabilization in the Amazon Transcribe Developer Guide.
" + } + }, + "ParticipantRole": { + "base": null, + "refs": { + "ChannelDefinition$ParticipantRole": "Specifies whether the audio in a channel belongs to the AGENT
or CUSTOMER
.
Specifies the types of personally identifiable information (PII) to redact from a transcript. You can include as many types as you'd like, or you can select ALL
.
To include PiiEntityTypes
in your Call Analytics request, you must also include ContentIdentificationType
or ContentRedactionType
, but you can't include both.
Values must be comma-separated and can include: ADDRESS
, BANK_ACCOUNT_NUMBER
, BANK_ROUTING
, CREDIT_DEBIT_CVV
, CREDIT_DEBIT_EXPIRY
, CREDIT_DEBIT_NUMBER
, EMAIL
, NAME
, PHONE
, PIN
, SSN
, or ALL
.
Length Constraints: Minimum length of 1. Maximum length of 300.
", + "AmazonTranscribeProcessorConfiguration$PiiEntityTypes": "The types of personally identifiable information (PII) to redact from a transcript. You can include as many types as you'd like, or you can select ALL
.
To include PiiEntityTypes
in your Call Analytics request, you must also include ContentIdentificationType
or ContentRedactionType
, but you can't include both.
Values must be comma-separated and can include: ADDRESS
, BANK_ACCOUNT_NUMBER
, BANK_ROUTING
, CREDIT_DEBIT_CVV
, CREDIT_DEBIT_EXPIRY
, CREDIT_DEBIT_NUMBER
, EMAIL
, NAME
, PHONE
, PIN
, SSN
, or ALL
.
Length Constraints: Minimum length of 1. Maximum length of 300.
" + } + }, + "PostCallAnalyticsSettings": { + "base": "The settings for a post-call voice analytics task.
", + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$PostCallAnalyticsSettings": "The settings for a post-call analysis task in an analytics configuration.
" + } + }, "PresenterOnlyConfiguration": { "base": "Defines the configuration for a presenter only video tile.
", "refs": { @@ -537,6 +898,50 @@ "PresenterOnlyConfiguration$PresenterPosition": "Defines the position of the presenter video tile. Default: TopRight
.
A structure that contains the configuration settings for real-time alerts.
", + "refs": { + "CreateMediaInsightsPipelineConfigurationRequest$RealTimeAlertConfiguration": "The configuration settings for the real-time alerts in a media insights pipeline configuration.
", + "MediaInsightsPipelineConfiguration$RealTimeAlertConfiguration": "Lists the rules that trigger a real-time alert.
", + "UpdateMediaInsightsPipelineConfigurationRequest$RealTimeAlertConfiguration": "The configuration settings for real-time alerts for the media insights pipeline.
" + } + }, + "RealTimeAlertRule": { + "base": "Specifies the words or phrases that trigger an alert.
", + "refs": { + "RealTimeAlertRuleList$member": null + } + }, + "RealTimeAlertRuleList": { + "base": null, + "refs": { + "RealTimeAlertConfiguration$Rules": "The rules in the alert. Rules specify the words or phrases that you want to be notified about.
" + } + }, + "RealTimeAlertRuleType": { + "base": null, + "refs": { + "RealTimeAlertRule$Type": "The type of alert rule.
" + } + }, + "RecordingFileFormat": { + "base": null, + "refs": { + "S3RecordingSinkRuntimeConfiguration$RecordingFileFormat": "The file formats for the audio and video files sent to the Amazon S3 bucket.
" + } + }, + "RecordingStreamConfiguration": { + "base": "A structure the holds the settings for recording audio and video.
", + "refs": { + "RecordingStreamList$member": null + } + }, + "RecordingStreamList": { + "base": null, + "refs": { + "KinesisVideoStreamRecordingSourceRuntimeConfiguration$Streams": "The stream or streams to be recorded.
" + } + }, "ResolutionOption": { "base": null, "refs": { @@ -552,15 +957,37 @@ "base": null, "refs": { "ListMediaCapturePipelinesRequest$MaxResults": "The maximum number of results to return in a single call. Valid Range: 1 - 99.
", + "ListMediaInsightsPipelineConfigurationsRequest$MaxResults": "The maximum number of results to return in a single call.
", "ListMediaPipelinesRequest$MaxResults": "The maximum number of results to return in a single call. Valid Range: 1 - 99.
" } }, + "RuleName": { + "base": null, + "refs": { + "IssueDetectionConfiguration$RuleName": "The name of the issue detection rule.
", + "KeywordMatchConfiguration$RuleName": "The name of the keyword match rule.
", + "SentimentConfiguration$RuleName": "The name of the rule in the sentiment configuration.
" + } + }, "S3BucketSinkConfiguration": { "base": "The configuration settings for the S3 bucket.
", "refs": { "ConcatenationSink$S3BucketSinkConfiguration": "The configuration settings for an Amazon S3 bucket sink.
" } }, + "S3RecordingSinkConfiguration": { + "base": "The structure that holds the settings for transmitting audio and video to the Amazon S3 bucket.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$S3RecordingSinkConfiguration": "The configuration settings for the Amazon S3 recording bucket in a media insights pipeline configuration element.
" + } + }, + "S3RecordingSinkRuntimeConfiguration": { + "base": "A structure that holds the settings for transmitting audio and video recordings to the runtime Amazon S3 bucket.
", + "refs": { + "CreateMediaInsightsPipelineRequest$S3RecordingSinkRuntimeConfiguration": "The runtime configuration for the S3 recording sink.
", + "MediaInsightsPipeline$S3RecordingSinkRuntimeConfiguration": "The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline.
" + } + }, "SelectedVideoStreams": { "base": "The video streams for a specified media pipeline. The total number of video streams can't exceed 25.
", "refs": { @@ -573,6 +1000,24 @@ "LiveConnectorRTMPConfiguration$Url": "The URL of the RTMP configuration.
" } }, + "SentimentConfiguration": { + "base": "A structure that contains the configuration settings for a sentiment analysis task.
", + "refs": { + "RealTimeAlertRule$SentimentConfiguration": "Specifies the settings for predicting sentiment in a real-time alert rule.
" + } + }, + "SentimentTimePeriodInSeconds": { + "base": null, + "refs": { + "SentimentConfiguration$TimePeriod": "Specifies the analysis interval.
" + } + }, + "SentimentType": { + "base": null, + "refs": { + "SentimentConfiguration$SentimentType": "The type of sentiment, POSITIVE
, NEGATIVE
, or NEUTRAL
.
The service encountered an unexpected error.
", "refs": { @@ -583,36 +1028,74 @@ "refs": { } }, + "SnsTopicSinkConfiguration": { + "base": "The configuration settings for the SNS topic sink.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$SnsTopicSinkConfiguration": "The configuration settings for an SNS topic sink in a media insights pipeline configuration element.
" + } + }, "SourceConfiguration": { "base": "Source configuration for a specified media pipeline.
", "refs": { - "ChimeSdkMeetingConfiguration$SourceConfiguration": "The source configuration for a specified media pipline.
", + "ChimeSdkMeetingConfiguration$SourceConfiguration": "The source configuration for a specified media pipeline.
", "ChimeSdkMeetingLiveConnectorConfiguration$SourceConfiguration": "The source configuration settings of the media pipeline's configuration object.
" } }, + "SqsQueueSinkConfiguration": { + "base": "The URL of the SQS sink.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$SqsQueueSinkConfiguration": "The configuration settings for an SQS queue sink in a media insights pipeline configuration element.
" + } + }, + "StreamChannelDefinition": { + "base": "Defines a streaming channel.
", + "refs": { + "StreamConfiguration$StreamChannelDefinition": "The streaming channel definition in the stream configuration.
" + } + }, + "StreamConfiguration": { + "base": "The configuration settings for a stream.
", + "refs": { + "Streams$member": null + } + }, + "Streams": { + "base": null, + "refs": { + "KinesisVideoStreamSourceRuntimeConfiguration$Streams": "The streams in the source runtime configuration of a Kinesis video stream.
" + } + }, "String": { "base": null, "refs": { "BadRequestException$Message": null, - "BadRequestException$RequestId": "The request id associated with the call responsible for the exception.
", + "BadRequestException$RequestId": "The request ID associated with the call responsible for the exception.
", + "ConflictException$Message": null, + "ConflictException$RequestId": "The request ID associated with the call responsible for the exception.
", "ForbiddenException$Message": null, "ForbiddenException$RequestId": "The request id associated with the call responsible for the exception.
", "ListMediaCapturePipelinesRequest$NextToken": "The token used to retrieve the next page of results.
", "ListMediaCapturePipelinesResponse$NextToken": "The token used to retrieve the next page of results.
", + "ListMediaInsightsPipelineConfigurationsRequest$NextToken": "The token used to return the next page of results.
", + "ListMediaInsightsPipelineConfigurationsResponse$NextToken": "The token used to return the next page of results.
", "ListMediaPipelinesRequest$NextToken": "The token used to retrieve the next page of results.
", "ListMediaPipelinesResponse$NextToken": "The token used to retrieve the next page of results.
", + "MediaInsightsRuntimeMetadata$value": null, "NotFoundException$Message": null, - "NotFoundException$RequestId": "The request id associated with the call responsible for the exception.
", + "NotFoundException$RequestId": "The request ID associated with the call responsible for the exception.
", + "PostCallAnalyticsSettings$OutputLocation": "The URL of the Amazon S3 bucket that contains the post-call data.
", + "PostCallAnalyticsSettings$DataAccessRoleArn": "The ARN of the role used by Amazon Web Services Transcribe to upload your post call analysis. For more information, see Post-call analytics with real-time transcriptions in the Amazon Transcribe Developer Guide.
", + "PostCallAnalyticsSettings$OutputEncryptionKMSKeyId": "The ID of the KMS (Key Management System) key used to encrypt the output.
", "ResourceLimitExceededException$Message": null, - "ResourceLimitExceededException$RequestId": "The request id associated with the call responsible for the exception.
", + "ResourceLimitExceededException$RequestId": "The request ID associated with the call responsible for the exception.
", "ServiceFailureException$Message": null, - "ServiceFailureException$RequestId": "The request id associated with the call responsible for the exception.
", + "ServiceFailureException$RequestId": "The request ID associated with the call responsible for the exception.
", "ServiceUnavailableException$Message": null, - "ServiceUnavailableException$RequestId": "The request id associated with the call responsible for the exception.
", + "ServiceUnavailableException$RequestId": "The request ID associated with the call responsible for the exception.
", "ThrottledClientException$Message": null, - "ThrottledClientException$RequestId": "The request id associated with the call responsible for the exception.
", + "ThrottledClientException$RequestId": "The request ID associated with the call responsible for the exception.
", "UnauthorizedClientException$Message": null, - "UnauthorizedClientException$RequestId": "The request id associated with the call responsible for the exception.
" + "UnauthorizedClientException$RequestId": "The request ID associated with the call responsible for the exception.
" } }, "Tag": { @@ -639,7 +1122,9 @@ "refs": { "CreateMediaCapturePipelineRequest$Tags": "The tag key-value pairs.
", "CreateMediaConcatenationPipelineRequest$Tags": "The tags associated with the media concatenation pipeline.
", - "CreateMediaLiveConnectorPipelineRequest$Tags": "The tags associated with the media pipeline.
", + "CreateMediaInsightsPipelineConfigurationRequest$Tags": "The tags assigned to the media insights pipeline configuration.
", + "CreateMediaInsightsPipelineRequest$Tags": "The tags assigned to the media insights pipeline.
", + "CreateMediaLiveConnectorPipelineRequest$Tags": "The tags associated with the media live connector pipeline.
", "ListTagsForResourceResponse$Tags": "The tags associated with the specified media pipeline.
", "TagResourceRequest$Tags": "The tags associated with the specified media pipeline.
" } @@ -665,6 +1150,19 @@ "refs": { } }, + "Timestamp": { + "base": null, + "refs": { + "TimestampRange$StartTimestamp": "The starting timestamp for the specified range.
", + "TimestampRange$EndTimestamp": "The ending timestamp for the specified range.
" + } + }, + "TimestampRange": { + "base": "The range of timestamps to return.
", + "refs": { + "FragmentSelector$TimestampRange": "The range of timestamps to return.
" + } + }, "TranscriptionMessagesConcatenationConfiguration": { "base": "The configuration object for concatenating transcription messages.
", "refs": { @@ -686,6 +1184,21 @@ "refs": { } }, + "UpdateMediaInsightsPipelineConfigurationRequest": { + "base": null, + "refs": { + } + }, + "UpdateMediaInsightsPipelineConfigurationResponse": { + "base": null, + "refs": { + } + }, + "UpdateMediaInsightsPipelineStatusRequest": { + "base": null, + "refs": { + } + }, "VideoArtifactsConfiguration": { "base": "The video artifact configuration object.
", "refs": { @@ -693,7 +1206,7 @@ } }, "VideoConcatenationConfiguration": { - "base": "The configuration object of a video contacatentation pipeline.
", + "base": "The configuration object of a video concatenation pipeline.
", "refs": { "ArtifactsConcatenationConfiguration$Video": "The configuration for the video artifacts concatenation.
" } @@ -703,6 +1216,40 @@ "refs": { "VideoArtifactsConfiguration$MuxType": "The MUX type of the video artifact configuration object.
" } + }, + "VocabularyFilterMethod": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$VocabularyFilterMethod": "Specifies how to apply a vocabulary filter to a transcript.
To replace words with ***, choose mask
.
To delete words, choose remove
.
To flag words without changing them, choose tag
.
The vocabulary filtering method used in your Call Analytics transcription.
" + } + }, + "VocabularyFilterName": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$VocabularyFilterName": "Specifies the name of the custom vocabulary filter to use when processing a transcription. Note that vocabulary filter names are case sensitive.
If the language of the specified custom vocabulary filter doesn't match the language identified in your media, the vocabulary filter is not applied to your transcription.
For more information, see Using vocabulary filtering with unwanted words in the Amazon Transcribe Developer Guide.
Length Constraints: Minimum length of 1. Maximum length of 200.
", + "AmazonTranscribeProcessorConfiguration$VocabularyFilterName": "The name of the custom vocabulary filter that you specified in your Call Analytics request.
Length Constraints: Minimum length of 1. Maximum length of 200.
" + } + }, + "VocabularyName": { + "base": null, + "refs": { + "AmazonTranscribeCallAnalyticsProcessorConfiguration$VocabularyName": "Specifies the name of the custom vocabulary to use when processing a transcription. Note that vocabulary names are case sensitive.
If the language of the specified custom vocabulary doesn't match the language identified in your media, the custom vocabulary is not applied to your transcription.
For more information, see Custom vocabularies in the Amazon Transcribe Developer Guide.
Length Constraints: Minimum length of 1. Maximum length of 200.
", + "AmazonTranscribeProcessorConfiguration$VocabularyName": "The name of the custom vocabulary that you specified in your Call Analytics request.
Length Constraints: Minimum length of 1. Maximum length of 200.
" + } + }, + "VoiceAnalyticsConfigurationStatus": { + "base": null, + "refs": { + "VoiceAnalyticsProcessorConfiguration$SpeakerSearchStatus": "The status of the speaker search task.
", + "VoiceAnalyticsProcessorConfiguration$VoiceToneAnalysisStatus": "The status of the voice tone analysis task.
" + } + }, + "VoiceAnalyticsProcessorConfiguration": { + "base": "The configuration settings for a voice analytics processor.
", + "refs": { + "MediaInsightsPipelineConfigurationElement$VoiceAnalyticsProcessorConfiguration": "The voice analytics configuration settings in a media insights pipeline configuration element.
" + } } } } diff --git a/models/apis/chime-sdk-media-pipelines/2021-07-15/endpoint-rule-set-1.json b/models/apis/chime-sdk-media-pipelines/2021-07-15/endpoint-rule-set-1.json new file mode 100644 index 00000000000..df6d5f828d0 --- /dev/null +++ b/models/apis/chime-sdk-media-pipelines/2021-07-15/endpoint-rule-set-1.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://media-pipelines-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://media-pipelines-chime-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://media-pipelines-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://media-pipelines-chime.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ] + } + ] +} \ No newline at end of file diff --git a/models/apis/chime-sdk-media-pipelines/2021-07-15/endpoint-tests-1.json b/models/apis/chime-sdk-media-pipelines/2021-07-15/endpoint-tests-1.json new file mode 100644 index 00000000000..7eb9374850d --- /dev/null +++ b/models/apis/chime-sdk-media-pipelines/2021-07-15/endpoint-tests-1.json @@ -0,0 +1,366 @@ +{ + "testCases": [ + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "ap-southeast-1" + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "eu-central-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-west-2" + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-west-2.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-west-2" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-gov-east-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://media-pipelines-chime.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/chime-sdk-media-pipelines/2021-07-15/paginators-1.json b/models/apis/chime-sdk-media-pipelines/2021-07-15/paginators-1.json index e6c938288a9..300591768e3 100644 --- a/models/apis/chime-sdk-media-pipelines/2021-07-15/paginators-1.json +++ b/models/apis/chime-sdk-media-pipelines/2021-07-15/paginators-1.json @@ -5,6 +5,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListMediaInsightsPipelineConfigurations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListMediaPipelines": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/chime-sdk-messaging/2021-05-15/api-2.json b/models/apis/chime-sdk-messaging/2021-05-15/api-2.json index a69ee31f2a7..1f2f094820b 100644 --- a/models/apis/chime-sdk-messaging/2021-05-15/api-2.json +++ b/models/apis/chime-sdk-messaging/2021-05-15/api-2.json @@ -727,6 +727,25 @@ {"shape":"ServiceFailureException"} ] }, + "PutChannelExpirationSettings":{ + "name":"PutChannelExpirationSettings", + "http":{ + "method":"PUT", + "requestUri":"/channels/{channelArn}/expiration-settings", + "responseCode":200 + }, + "input":{"shape":"PutChannelExpirationSettingsRequest"}, + "output":{"shape":"PutChannelExpirationSettingsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "PutChannelMembershipPreferences":{ "name":"PutChannelMembershipPreferences", "http":{ @@ -1051,7 +1070,8 @@ "LastMessageTimestamp":{"shape":"Timestamp"}, "LastUpdatedTimestamp":{"shape":"Timestamp"}, "ChannelFlowArn":{"shape":"ChimeArn"}, - "ElasticChannelConfiguration":{"shape":"ElasticChannelConfiguration"} + "ElasticChannelConfiguration":{"shape":"ElasticChannelConfiguration"}, + "ExpirationSettings":{"shape":"ExpirationSettings"} } }, "ChannelAssociatedWithFlowSummary":{ @@ -1217,7 +1237,8 @@ "Persistence":{"shape":"ChannelMessagePersistenceType"}, "Status":{"shape":"ChannelMessageStatusStructure"}, "MessageAttributes":{"shape":"MessageAttributeMap"}, - "SubChannelId":{"shape":"SubChannelId"} + "SubChannelId":{"shape":"SubChannelId"}, + "ContentType":{"shape":"ContentType"} } }, "ChannelMessageCallback":{ @@ -1229,7 +1250,8 @@ "Metadata":{"shape":"Metadata"}, "PushNotification":{"shape":"PushNotificationConfiguration"}, "MessageAttributes":{"shape":"MessageAttributeMap"}, - "SubChannelId":{"shape":"SubChannelId"} + "SubChannelId":{"shape":"SubChannelId"}, + "ContentType":{"shape":"ContentType"} } }, "ChannelMessagePersistenceType":{ @@ -1268,7 +1290,8 @@ "Sender":{"shape":"Identity"}, "Redacted":{"shape":"NonNullableBoolean"}, "Status":{"shape":"ChannelMessageStatusStructure"}, - "MessageAttributes":{"shape":"MessageAttributeMap"} + "MessageAttributes":{"shape":"MessageAttributeMap"}, + "ContentType":{"shape":"ContentType"} } }, "ChannelMessageSummaryList":{ @@ -1375,6 +1398,13 @@ "pattern":"[\\s\\S]*", "sensitive":true }, + "ContentType":{ + "type":"string", + "max":45, + "min":0, + "pattern":"[\\s\\S]*", + "sensitive":true + }, "CreateChannelBanRequest":{ "type":"structure", "required":[ @@ -1512,7 +1542,8 @@ "ChannelId":{"shape":"ChannelId"}, "MemberArns":{"shape":"ChannelMemberArns"}, "ModeratorArns":{"shape":"ChannelModeratorArns"}, - "ElasticChannelConfiguration":{"shape":"ElasticChannelConfiguration"} + "ElasticChannelConfiguration":{"shape":"ElasticChannelConfiguration"}, + "ExpirationSettings":{"shape":"ExpirationSettings"} } }, "CreateChannelResponse":{ @@ -1937,6 +1968,29 @@ "PhoneNumberAssociationsExist" ] }, + "ExpirationCriterion":{ + "type":"string", + "enum":[ + "CREATED_TIMESTAMP", + "LAST_MESSAGE_TIMESTAMP" + ] + }, + "ExpirationDays":{ + "type":"integer", + "max":5475, + "min":1 + }, + "ExpirationSettings":{ + "type":"structure", + "required":[ + "ExpirationDays", + "ExpirationCriterion" + ], + "members":{ + "ExpirationDays":{"shape":"ExpirationDays"}, + "ExpirationCriterion":{"shape":"ExpirationCriterion"} + } + }, "FallbackAction":{ "type":"string", "enum":[ @@ -2657,7 +2711,7 @@ "PushNotificationBody":{ "type":"string", "max":150, - "min":0, + "min":1, "pattern":"[\\s\\S]*", "sensitive":true }, @@ -2680,7 +2734,7 @@ "PushNotificationTitle":{ "type":"string", "max":50, - "min":0, + "min":1, "pattern":".*", "sensitive":true }, @@ -2691,6 +2745,30 @@ "VOIP" ] }, + "PutChannelExpirationSettingsRequest":{ + "type":"structure", + "required":["ChannelArn"], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "ChimeBearer":{ + "shape":"ChimeArn", + "location":"header", + "locationName":"x-amz-chime-bearer" + }, + "ExpirationSettings":{"shape":"ExpirationSettings"} + } + }, + "PutChannelExpirationSettingsResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "ExpirationSettings":{"shape":"ExpirationSettings"} + } + }, "PutChannelMembershipPreferencesRequest":{ "type":"structure", "required":[ @@ -2899,7 +2977,8 @@ }, "PushNotification":{"shape":"PushNotificationConfiguration"}, "MessageAttributes":{"shape":"MessageAttributeMap"}, - "SubChannelId":{"shape":"SubChannelId"} + "SubChannelId":{"shape":"SubChannelId"}, + "ContentType":{"shape":"ContentType"} } }, "SendChannelMessageResponse":{ @@ -3087,6 +3166,7 @@ "required":[ "ChannelArn", "MessageId", + "Content", "ChimeBearer" ], "members":{ @@ -3100,14 +3180,15 @@ "location":"uri", "locationName":"messageId" }, - "Content":{"shape":"Content"}, + "Content":{"shape":"NonEmptyContent"}, "Metadata":{"shape":"Metadata"}, "ChimeBearer":{ "shape":"ChimeArn", "location":"header", "locationName":"x-amz-chime-bearer" }, - "SubChannelId":{"shape":"SubChannelId"} + "SubChannelId":{"shape":"SubChannelId"}, + "ContentType":{"shape":"ContentType"} } }, "UpdateChannelMessageResponse":{ diff --git a/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json b/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json index c986de78feb..b8024e40b57 100644 --- a/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json +++ b/models/apis/chime-sdk-messaging/2021-05-15/docs-2.json @@ -2,56 +2,57 @@ "version": "2.0", "service": "The Amazon Chime SDK Messaging APIs in this section allow software developers to send and receive messages in custom messaging applications. These APIs depend on the frameworks provided by the Amazon Chime SDK Identity APIs. For more information about the messaging APIs, see Amazon Chime SDK messaging.
", "operations": { - "AssociateChannelFlow": "Associates a channel flow with a channel. Once associated, all messages to that channel go through channel flow processors. To stop processing, use the DisassociateChannelFlow
API.
Only administrators or channel moderators can associate a channel flow. The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Adds a specified number of users to a channel.
", + "AssociateChannelFlow": "Associates a channel flow with a channel. Once associated, all messages to that channel go through channel flow processors. To stop processing, use the DisassociateChannelFlow
API.
Only administrators or channel moderators can associate a channel flow. The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Adds a specified number of users and bots to a channel.
", "ChannelFlowCallback": "Calls back Chime SDK Messaging with a processing response message. This should be invoked from the processor Lambda. This is a developer API.
You can return one of the following processing responses:
Update message content or metadata
Deny a message
Make no changes to the message
Creates a channel to which you can add users and send messages.
Restriction: You can't change a channel's privacy.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Permanently bans a member from a channel. Moderators can't add banned members to a channel. To undo a ban, you first have to DeleteChannelBan
, and then CreateChannelMembership
. Bans are cleaned up when you delete users or channels.
If you ban a user who is already part of a channel, that user is automatically kicked from the channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Creates a channel to which you can add users and send messages.
Restriction: You can't change a channel's privacy.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Permanently bans a member from a channel. Moderators can't add banned members to a channel. To undo a ban, you first have to DeleteChannelBan
, and then CreateChannelMembership
. Bans are cleaned up when you delete users or channels.
If you ban a user who is already part of a channel, that user is automatically kicked from the channel.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Creates a channel flow, a container for processors. Processors are AWS Lambda functions that perform actions on chat messages, such as stripping out profanity. You can associate channel flows with channels, and the processors in the channel flow then take action on all messages sent to that channel. This is a developer API.
Channel flows process the following items:
New and updated messages
Persistent and non-persistent messages
The Standard message type
Channel flows don't process Control or System messages. For more information about the message types provided by Chime SDK Messaging, refer to Message types in the Amazon Chime developer guide.
Adds a user to a channel. The InvitedBy
field in ChannelMembership
is derived from the request header. A channel member can:
List messages
Send messages
Receive messages
Edit their own messages
Leave the channel
Privacy settings impact this action as follows:
Public Channels: You do not need to be a member to list messages, but you must be a member to send messages.
Private Channels: You must be a member to list or send messages.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Creates a new ChannelModerator
. A channel moderator can:
Add and remove other members of the channel.
Add and remove other moderators of the channel.
Add and remove user bans for the channel.
Redact messages in the channel.
List messages in the channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Removes a user from a channel's ban list.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Adds a member to a channel. The InvitedBy
field in ChannelMembership
is derived from the request header. A channel member can:
List messages
Send messages
Receive messages
Edit their own messages
Leave the channel
Privacy settings impact this action as follows:
Public Channels: You do not need to be a member to list messages, but you must be a member to send messages.
Private Channels: You must be a member to list or send messages.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUserArn
or AppInstanceBot
that makes the API call as the value in the header.
Creates a new ChannelModerator
. A channel moderator can:
Add and remove other members of the channel.
Add and remove other moderators of the channel.
Add and remove user bans for the channel.
Redact messages in the channel.
List messages in the channel.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
of the user that makes the API call as the value in the header.
Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUserArn
or AppInstanceBot
that makes the API call as the value in the header.
Removes a member from a channel's ban list.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Deletes a channel flow, an irreversible process. This is a developer API.
This API works only when the channel flow is not associated with any channel. To get a list of all channels that a channel flow is associated with, use the ListChannelsAssociatedWithChannelFlow
API. Use the DisassociateChannelFlow
API to disassociate a channel flow from all channels.
Removes a member from a channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage
.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Deletes a channel moderator.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage
.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Deletes a channel moderator.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Deletes the streaming configurations for an AppInstance
. For more information, see Streaming messaging data in the Amazon Chime SDK Developer Guide.
Returns the full details of a channel in an Amazon Chime AppInstance
.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Returns the full details of a channel ban.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Returns the full details of a channel in an Amazon Chime AppInstance
.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Returns the full details of a channel ban.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Returns the full details of a channel flow in an Amazon Chime AppInstance
. This is a developer API.
Returns the full details of a user's channel membership.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Returns the details of a channel based on the membership of the specified AppInstanceUser
.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Returns the full details of a channel moderated by the specified AppInstanceUser
.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Returns the full details of a user's channel membership.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Returns the details of a channel based on the membership of the specified AppInstanceUser
or AppInstanceBot
.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Returns the full details of a channel moderated by the specified AppInstanceUser
or AppInstanceBot
.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Returns the full details of a single ChannelModerator.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Disassociates a channel flow from all its channels. Once disassociated, all messages to that channel stop going through the channel flow processor.
Only administrators or channel moderators can disassociate a channel flow. The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Gets the membership preferences of an AppInstanceUser
for the specified channel. The AppInstanceUser
must be a member of the channel. Only the AppInstanceUser
who owns the membership can retrieve preferences. Users in the AppInstanceAdmin
and channel moderator roles can't retrieve preferences for other users. Banned users can't retrieve membership preferences for the channel from which they are banned.
Gets the full details of a channel message.
The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Gets message status for a specified messageId
. Use this API to determine the intermediate status of messages going through channel flow processing. The API provides an alternative to retrieving message status if the event was not received because a client wasn't connected to a websocket.
Messages can have any one of these statuses.
Message processed successfully
Ongoing processing
Processing failed
Messasge denied by the processor
This API does not return statuses for denied messages, because we don't store them once the processor denies them.
Only the message sender can invoke this API.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header
Disassociates a channel flow from all its channels. Once disassociated, all messages to that channel stop going through the channel flow processor.
Only administrators or channel moderators can disassociate a channel flow.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Gets the membership preferences of an AppInstanceUser
or AppInstanceBot
for the specified channel. A user or a bot must be a member of the channel and own the membership to be able to retrieve membership preferences. Users or bots in the AppInstanceAdmin
and channel moderator roles can't retrieve preferences for other users or bots. Banned users or bots can't retrieve membership preferences for the channel from which they are banned.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Gets the full details of a channel message.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Gets message status for a specified messageId
. Use this API to determine the intermediate status of messages going through channel flow processing. The API provides an alternative to retrieving message status if the event was not received because a client wasn't connected to a websocket.
Messages can have any one of these statuses.
Message processed successfully
Ongoing processing
Processing failed
Messasge denied by the processor
This API does not return statuses for denied messages, because we don't store them once the processor denies them.
Only the message sender can invoke this API.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
The details of the endpoint for the messaging session.
", "GetMessagingStreamingConfigurations": "Retrieves the data streaming configuration for an AppInstance
. For more information, see Streaming messaging data in the Amazon Chime SDK Developer Guide.
Lists all the users banned from a particular channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Lists all the users and bots banned from a particular channel.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Returns a paginated lists of all the channel flows created under a single Chime. This is a developer API.
", - "ListChannelMemberships": "Lists all channel memberships in a channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
If you want to list the channels to which a specific app instance user belongs, see the ListChannelMembershipsForAppInstanceUser API.
", - "ListChannelMembershipsForAppInstanceUser": " Lists all channels that a particular AppInstanceUser
is a part of. Only an AppInstanceAdmin
can call the API with a user ARN that is not their own.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
List all the messages in a channel. Returns a paginated list of ChannelMessages
. By default, sorted by creation timestamp in descending order.
Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message.
Also, the x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Lists all the moderators for a channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.
Functionality & restrictions
Use privacy = PUBLIC
to retrieve all public channels in the account.
Only an AppInstanceAdmin
can set privacy = PRIVATE
to list the private channels in an account.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Lists all channel memberships in a channel.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
If you want to list the channels to which a specific app instance user belongs, see the ListChannelMembershipsForAppInstanceUser API.
", + "ListChannelMembershipsForAppInstanceUser": " Lists all channels that anr AppInstanceUser
or AppInstanceBot
is a part of. Only an AppInstanceAdmin
can call the API with a user ARN that is not their own.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
List all the messages in a channel. Returns a paginated list of ChannelMessages
. By default, sorted by creation timestamp in descending order.
Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message.
Also, the x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Lists all the moderators for a channel.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.
Functionality & restrictions
Use privacy = PUBLIC
to retrieve all public channels in the account.
Only an AppInstanceAdmin
can set privacy = PRIVATE
to list the private channels in an account.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Lists all channels associated with a specified channel flow. You can associate a channel flow with multiple channels, but you can only associate a channel with one channel flow. This is a developer API.
", - "ListChannelsModeratedByAppInstanceUser": "A list of the channels moderated by an AppInstanceUser
.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
A list of the channels moderated by an AppInstanceUser
.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Lists all the SubChannels in an elastic channel when given a channel ID. Available only to the app instance admins and channel moderators of elastic channels.
", "ListTagsForResource": "Lists the tags applied to an Amazon Chime SDK messaging resource.
", - "PutChannelMembershipPreferences": "Sets the membership preferences of an AppInstanceUser
for the specified channel. The AppInstanceUser
must be a member of the channel. Only the AppInstanceUser
who owns the membership can set preferences. Users in the AppInstanceAdmin
and channel moderator roles can't set preferences for other users. Banned users can't set membership preferences for the channel from which they are banned.
Sets the number of days before the channel is automatically deleted.
A background process deletes expired channels within 6 hours of expiration. Actual deletion times may vary.
Expired channels that have not yet been deleted appear as active, and you can update their expiration settings. The system honors the new settings.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Sets the membership preferences of an AppInstanceUser
or AppIntanceBot
for the specified channel. The user or bot must be a member of the channel. Only the user or bot who owns the membership can set preferences. Users or bots in the AppInstanceAdmin
and channel moderator roles can't set preferences for other users or users. Banned users or bots can't set membership preferences for the channel from which they are banned.
The x-amz-chime-bearer request header is mandatory. Use the ARN of an AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Sets the data streaming configuration for an AppInstance
. For more information, see Streaming messaging data in the Amazon Chime SDK Developer Guide.
Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Allows ChimeBearer
to search channels by channel members. AppInstanceUsers can search across the channels that they belong to. AppInstanceAdmins can search across all channels.
Sends a message to a particular channel that the member is a part of.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Also, STANDARD
messages can contain 4KB of data and the 1KB of metadata. CONTROL
messages can contain 30 bytes of data and no metadata.
Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Allows the ChimeBearer
to search channels by channel members. Users or bots can search across the channels that they belong to. Users in the AppInstanceAdmin
role can search across all channels.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Sends a message to a particular channel that the member is a part of.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Also, STANDARD
messages can contain 4KB of data and the 1KB of metadata. CONTROL
messages can contain 30 bytes of data and no metadata.
Applies the specified tags to the specified Amazon Chime SDK messaging resource.
", "UntagResource": "Removes the specified tags from the specified Amazon Chime SDK messaging resource.
", - "UpdateChannel": "Update a channel's attributes.
Restriction: You can't change a channel's privacy.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Update a channel's attributes.
Restriction: You can't change a channel's privacy.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
Updates channel flow attributes. This is a developer API.
", - "UpdateChannelMessage": "Updates the content of a message.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
The details of the time when a user last read messages in a channel.
The x-amz-chime-bearer
request header is mandatory. Use the AppInstanceUserArn
of the user that makes the API call as the value in the header.
Updates the content of a message.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
The details of the time when a user last read messages in a channel.
The x-amz-chime-bearer
request header is mandatory. Use the ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in the header.
The type of ChannelMembership
.
The membership types set for the channel users.
", + "BatchChannelMemberships$Type": "The membership types set for the channel members.
", "BatchCreateChannelMembershipRequest$Type": "The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned as part of ListChannelMemberships
. Hidden members are only returned if the type filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This is only supported by moderators.
The membership type set for the channel member.
", "CreateChannelMembershipRequest$Type": "The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned as part of ListChannelMemberships
. Hidden members are only returned if the type filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This is only supported by moderators.
The ARN of the channel.
", "AssociateChannelFlowRequest$ChannelFlowArn": "The ARN of the channel flow.
", "AssociateChannelFlowRequest$ChimeBearer": "The AppInstanceUserArn
of the user making the API call.
The ARN of the channel to which you're adding users.
", + "BatchChannelMemberships$ChannelArn": "The ARN of the channel to which you're adding members.
", "BatchCreateChannelMembershipError$MemberArn": "The AppInstanceUserArn
of the member that the service couldn't add.
The ARN of the channel to which you're adding users.
", - "BatchCreateChannelMembershipRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the channel to which you're adding users or bots.
", + "BatchCreateChannelMembershipRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of a channel.
", "Channel$ChannelFlowArn": "The ARN of the channel flow.
", "ChannelAssociatedWithFlowSummary$ChannelArn": "The ARN of the channel.
", @@ -396,103 +397,106 @@ "ChannelSummary$ChannelArn": "The ARN of the channel.
", "CreateChannelBanRequest$ChannelArn": "The ARN of the ban request.
", "CreateChannelBanRequest$MemberArn": "The AppInstanceUserArn
of the member being banned.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the response to the ban request.
", "CreateChannelFlowRequest$AppInstanceArn": "The ARN of the channel flow request.
", "CreateChannelFlowResponse$ChannelFlowArn": "The ARN of the channel flow.
", "CreateChannelMembershipRequest$ChannelArn": "The ARN of the channel to which you're adding users.
", "CreateChannelMembershipRequest$MemberArn": "The AppInstanceUserArn
of the member you want to add to the channel.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "CreateChannelModeratorRequest$ChannelArn": "The ARN of the channel.
", "CreateChannelModeratorRequest$ChannelModeratorArn": "The AppInstanceUserArn
of the moderator.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "CreateChannelRequest$AppInstanceArn": "The ARN of the channel request.
", - "CreateChannelRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "DeleteChannelBanRequest$ChannelArn": "The ARN of the channel from which the AppInstanceUser
was banned.
The ARN of the AppInstanceUser
that you want to reinstate.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel flow.
", "DeleteChannelMembershipRequest$ChannelArn": "The ARN of the channel from which you want to remove the user.
", "DeleteChannelMembershipRequest$MemberArn": "The AppInstanceUserArn
of the member that you're removing from the channel.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", - "DeleteChannelMessageRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "DeleteChannelModeratorRequest$ChannelModeratorArn": "The AppInstanceUserArn
of the moderator being deleted.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel being deleted.
", - "DeleteChannelRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the streaming configurations being deleted.
", "DescribeChannelBanRequest$ChannelArn": "The ARN of the channel from which the user is banned.
", "DescribeChannelBanRequest$MemberArn": "The AppInstanceUserArn
of the member being banned.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel flow.
", "DescribeChannelMembershipForAppInstanceUserRequest$ChannelArn": "The ARN of the channel to which the user belongs.
", - "DescribeChannelMembershipForAppInstanceUserRequest$AppInstanceUserArn": "The ARN of the user in a channel.
", - "DescribeChannelMembershipForAppInstanceUserRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the user or bot in a channel.
", + "DescribeChannelMembershipForAppInstanceUserRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "DescribeChannelMembershipRequest$MemberArn": "The AppInstanceUserArn
of the member.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the moderated channel.
", - "DescribeChannelModeratedByAppInstanceUserRequest$AppInstanceUserArn": "The ARN of the AppInstanceUser
in the moderated channel.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the user or bot in the moderated channel.
", + "DescribeChannelModeratedByAppInstanceUserRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "DescribeChannelModeratorRequest$ChannelModeratorArn": "The AppInstanceUserArn
of the channel moderator.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", - "DescribeChannelRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "DisassociateChannelFlowRequest$ChannelFlowArn": "The ARN of the channel flow.
", "DisassociateChannelFlowRequest$ChimeBearer": "The AppInstanceUserArn
of the user making the API call.
The ARN of the channel.
", "GetChannelMembershipPreferencesRequest$MemberArn": "The AppInstanceUserArn
of the member retrieving the preferences.
The AppInstanceUserARN
of the user making the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "GetChannelMessageRequest$ChannelArn": "The ARN of the channel.
", - "GetChannelMessageRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel
", "GetChannelMessageStatusRequest$ChimeBearer": "The AppInstanceUserArn
of the user making the API call.
The ARN of the streaming configurations.
", "Identity$Arn": "The ARN in an Identity.
", "ListChannelBansRequest$ChannelArn": "The ARN of the channel.
", - "ListChannelBansRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "ListChannelFlowsRequest$AppInstanceArn": "The ARN of the app instance.
", - "ListChannelMembershipsForAppInstanceUserRequest$AppInstanceUserArn": "The ARN of the AppInstanceUser
s
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the user or bot.
", + "ListChannelMembershipsForAppInstanceUserRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The maximum number of channel memberships that you want returned.
", - "ListChannelMembershipsRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "ListChannelMessagesRequest$ChannelArn": "The ARN of the channel.
", - "ListChannelMessagesRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel containing the requested messages.
", "ListChannelModeratorsRequest$ChannelArn": "The ARN of the channel.
", - "ListChannelModeratorsRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "ListChannelsAssociatedWithChannelFlowRequest$ChannelFlowArn": "The ARN of the channel flow.
", - "ListChannelsModeratedByAppInstanceUserRequest$AppInstanceUserArn": "The ARN of the user in the moderated channel.
", - "ListChannelsModeratedByAppInstanceUserRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the user or bot in the moderated channel.
", + "ListChannelsModeratedByAppInstanceUserRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the AppInstance
.
The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of elastic channel.
", "ListSubChannelsRequest$ChimeBearer": "The AppInstanceUserArn
of the user making the API call.
The ARN of elastic channel.
", "ListTagsForResourceRequest$ResourceARN": "The ARN of the resource.
", "MemberArns$member": null, + "PutChannelExpirationSettingsRequest$ChannelArn": "The ARN of the channel.
", + "PutChannelExpirationSettingsRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The channel ARN.
", "PutChannelMembershipPreferencesRequest$ChannelArn": "The ARN of the channel.
", - "PutChannelMembershipPreferencesRequest$MemberArn": "The AppInstanceUserArn
of the member setting the preferences.
The AppInstanceUserARN
of the user making the API call.
The ARN of the member setting the preferences.
", + "PutChannelMembershipPreferencesRequest$ChimeBearer": "The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "PutMessagingStreamingConfigurationsRequest$AppInstanceArn": "The ARN of the streaming configuration.
", "RedactChannelMessageRequest$ChannelArn": "The ARN of the channel containing the messages that you want to redact.
", - "RedactChannelMessageRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel containing the messages that you want to redact.
", "SearchChannelsRequest$ChimeBearer": "The AppInstanceUserArn
of the user making the API call.
The ARN of the channel.
", - "SendChannelMessageRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "StreamingConfiguration$ResourceArn": "The ARN of the resource in the configuration.
", "TagResourceRequest$ResourceARN": "The resource ARN.
", @@ -500,13 +504,13 @@ "UpdateChannelFlowRequest$ChannelFlowArn": "The ARN of the channel flow.
", "UpdateChannelFlowResponse$ChannelFlowArn": "The ARN of the channel flow.
", "UpdateChannelMessageRequest$ChannelArn": "The ARN of the channel.
", - "UpdateChannelMessageRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "UpdateChannelReadMarkerRequest$ChannelArn": "The ARN of the channel.
", - "UpdateChannelReadMarkerRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
", "UpdateChannelRequest$ChannelArn": "The ARN of the channel.
", - "UpdateChannelRequest$ChimeBearer": "The AppInstanceUserArn
of the user that makes the API call.
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
The ARN of the channel.
" } }, @@ -527,8 +531,17 @@ "base": null, "refs": { "ChannelMessage$Content": "The message content.
", - "ChannelMessageSummary$Content": "The content of the message.
", - "UpdateChannelMessageRequest$Content": "The content of the message being updated.
" + "ChannelMessageSummary$Content": "The content of the message.
" + } + }, + "ContentType": { + "base": null, + "refs": { + "ChannelMessage$ContentType": "The content type of the channel message.
", + "ChannelMessageCallback$ContentType": "The content type of the call-back message.
", + "ChannelMessageSummary$ContentType": "The content type of the channel messsage listed in the summary.
", + "SendChannelMessageRequest$ContentType": "The content type of the channel message.
", + "UpdateChannelMessageRequest$ContentType": "The content type of the channel message.
" } }, "CreateChannelBanRequest": { @@ -713,6 +726,27 @@ "UnauthorizedClientException$Code": null } }, + "ExpirationCriterion": { + "base": null, + "refs": { + "ExpirationSettings$ExpirationCriterion": "The conditions that must be met for a channel to expire.
" + } + }, + "ExpirationDays": { + "base": null, + "refs": { + "ExpirationSettings$ExpirationDays": "The period in days after which the system automatically deletes a channel.
" + } + }, + "ExpirationSettings": { + "base": "Settings that control the interval after which a channel is deleted.
", + "refs": { + "Channel$ExpirationSettings": "Settings that control when a channel expires.
", + "CreateChannelRequest$ExpirationSettings": "Settings that control the interval after which the channel is automatically deleted.
", + "PutChannelExpirationSettingsRequest$ExpirationSettings": "Settings that control the interval after which a channel is deleted.
", + "PutChannelExpirationSettingsResponse$ExpirationSettings": "Settings that control the interval after which a channel is deleted.
" + } + }, "FallbackAction": { "base": null, "refs": { @@ -781,7 +815,7 @@ } }, "Identity": { - "base": "The details of a user.
", + "base": "The details of a user or bot.
", "refs": { "BatchChannelMemberships$InvitedBy": "The identifier of the member who invited another member.
", "Channel$CreatedBy": "The AppInstanceUser
who created the channel.
The AppInstanceUserArn
s of the members you want to add to the channel.
The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and AppInstanceBots
can be added as a channel member.
The message content.
", - "SendChannelMessageRequest$Content": "The content of the message.
" + "SendChannelMessageRequest$Content": "The content of the message.
", + "UpdateChannelMessageRequest$Content": "The content of the message being updated.
" } }, "NonEmptyResourceName": { @@ -1168,6 +1203,16 @@ "PushNotificationConfiguration$Type": "Enum value that indicates the type of the push notification for a message. DEFAULT
: Normal mobile push notification. VOIP
: VOIP mobile push notification.
Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in the specified Amazon Web Services account and that matches the input parameters.
Returns a list of RepositorySummary objects. Each RepositorySummary
contains information about a repository in the specified domain and that matches the input parameters.
Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.
", - "PublishPackageVersion": "Creates a new package version containing one or more assets (or files).
The unfinished
flag can be used to keep the package version in the Unfinished
state until all of it’s assets have been uploaded (see Package version status in the CodeArtifact user guide). To set the package version’s status to Published
, omit the unfinished
flag when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to Published
, it cannot change back to Unfinished
.
Only generic packages can be published using this API.
Creates a new package version containing one or more assets (or files).
The unfinished
flag can be used to keep the package version in the Unfinished
state until all of its assets have been uploaded (see Package version status in the CodeArtifact user guide). To set the package version’s status to Published
, omit the unfinished
flag when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to Published
, it cannot change back to Unfinished
.
Only generic packages can be published using this API. For more information, see Using generic packages in the CodeArtifact User Guide.
Sets a resource policy on a domain that specifies permissions to access it.
When you call PutDomainPermissionsPolicy
, the resource policy on the domain is ignored when evaluting permissions. This ensures that the owner of a domain cannot lock themselves out of the domain, which would prevent them from being able to update the resource policy.
Sets the package origin configuration for a package.
The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. For more information about package origin controls and configuration, see Editing package origin controls in the CodeArtifact User Guide.
PutPackageOriginConfiguration
can be called on a package that doesn't yet exist in the repository. When called on a package that does not exist, a package is created in the repository with no versions and the requested restrictions are set on the package. This can be used to preemptively block ingesting or retaining any versions from external connections or upstream repositories, or to block publishing any versions of the package into the repository before connecting any package managers or publishers to the repository.
Sets the resource policy on a repository that specifies permissions to access it.
When you call PutRepositoryPermissionsPolicy
, the resource policy on the repository is ignored when evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being able to update the resource policy.
Set to true to overwrite a package version that already exists in the destination repository. If set to false and the package version already exists in the destination repository, the package version is returned in the failedVersions
field of the response with an ALREADY_EXISTS
error code.
Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see Working with upstream repositories.
", - "PublishPackageVersionRequest$unfinished": "Specifies whether the package version should remain in the unfinished
state. If omitted, the package version status will be set to Published
(see Package version status in the CodeArtifact User Guide).
Valid values: unfinished
Specifies whether the package version should remain in the unfinished
state. If omitted, the package version status will be set to Published
(see Package version status in the CodeArtifact User Guide).
Valid values: unfinished
The name of the external connection to add to the repository. The following values are supported:
public:npmjs
- for the npm public repository.
public:nuget-org
- for the NuGet Gallery.
public:pypi
- for the Python Package Index.
public:maven-central
- for Maven Central.
public:maven-googleandroid
- for the Google Android repository.
public:maven-gradleplugins
- for the Gradle plugins repository.
public:maven-commonsware
- for the CommonsWare Android repository.
The name of the external connection to add to the repository. The following values are supported:
public:npmjs
- for the npm public repository.
public:nuget-org
- for the NuGet Gallery.
public:pypi
- for the Python Package Index.
public:maven-central
- for Maven Central.
public:maven-googleandroid
- for the Google Android repository.
public:maven-gradleplugins
- for the Gradle plugins repository.
public:maven-commonsware
- for the CommonsWare Android repository.
public:maven-clojars
- for the Clojars repository.
The name of the external connection to be removed from the repository.
", "DomainEntryPoint$externalConnectionName": "The name of the external connection that a package was ingested from.
", "RepositoryExternalConnectionInfo$externalConnectionName": "The name of the external connection associated with a repository.
" @@ -744,30 +744,30 @@ "PackageNamespace": { "base": null, "refs": { - "CopyPackageVersionsRequest$namespace": "The namespace of the package versions to be copied. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
. The namespace is required when copying Maven package versions.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
. The namespace is required when deleting Maven package versions.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain corresponding components, packages of those formats do not have a namespace.
The namespace of the package versions to be deleted. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
. The namespace is required when deleting Maven package versions.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the requested package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
. The namespace is required when requesting Maven packages.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the requested package version. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package versions to be disposed. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package version with the requested asset file. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package version with the requested readme file. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of the package versions to be copied. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
. The namespace is required when copying Maven package versions.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
. The namespace is required when deleting Maven package versions.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain corresponding components, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package versions to be deleted. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
. The namespace is required when deleting Maven package versions.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the requested package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
. The namespace is required when requesting Maven packages.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the requested package version. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package versions to be disposed. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version with the requested asset file. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version with the requested readme file. The package version component that specifies its namespace depends on its type. For example:
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of the package version with the requested readme file. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of the package version that contains the requested package version assets. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package version that contains the requested package version assets. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version that contains the requested package version assets. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of the package version with the requested dependencies. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package version with the requested dependencies. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version that contains the returned dependencies. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace
and not --namespace-prefix
, it has prefix-matching behavior.
Each package format uses namespace as follows:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace
and not --namespace-prefix
, it has prefix-matching behavior.
Each package format uses namespace as follows:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package that this package depends on. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package version. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version to publish.
", "PublishPackageVersionResult$namespace": "The namespace of the package version.
", - "PutPackageOriginConfigurationRequest$namespace": "The namespace of the package to be updated. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package version to be updated. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is it’s namespace
.
The namespace of the package to be updated. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package is its groupId
.
The namespace of an npm package is its scope
.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The namespace of the package version to be updated. The package version component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm package version is its scope
.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace
.
The SHA256 hash of the assetContent
to publish. This value must be calculated by the caller and provided with the request.
This value is used as an integrity check to verify that the assetContent
has not changed after it was originally sent.
The SHA256 hash of the assetContent
to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).
This value is used as an integrity check to verify that the assetContent
has not changed after it was originally sent.
A timestamp that represents the date and time the domain was created.
", "DomainSummary$createdTime": "A timestamp that contains the date and time the domain was created.
", "GetAuthorizationTokenResult$expiration": "A timestamp that specifies the date and time the authorization token expires.
", - "PackageVersionDescription$publishedTime": "A timestamp that contains the date and time the package version was published.
" + "PackageVersionDescription$publishedTime": "A timestamp that contains the date and time the package version was published.
", + "RepositoryDescription$createdTime": "A timestamp that represents the date and time the repository was created.
", + "RepositorySummary$createdTime": "A timestamp that represents the date and time the repository was created.
" } }, "UntagResourceRequest": { diff --git a/models/apis/codeartifact/2018-09-22/endpoint-tests-1.json b/models/apis/codeartifact/2018-09-22/endpoint-tests-1.json index b1a1d0a036a..948fb36652d 100644 --- a/models/apis/codeartifact/2018-09-22/endpoint-tests-1.json +++ b/models/apis/codeartifact/2018-09-22/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { - "Region": "ap-northeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-1" } }, { @@ -21,9 +21,9 @@ } }, "params": { - "Region": "ap-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-south-1" } }, { @@ -34,9 +34,9 @@ } }, "params": { - "Region": "ap-southeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-1" } }, { @@ -47,9 +47,9 @@ } }, "params": { - "Region": "ap-southeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-2" } }, { @@ -60,9 +60,9 @@ } }, "params": { - "Region": "eu-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-central-1" } }, { @@ -73,9 +73,9 @@ } }, "params": { - "Region": "eu-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-north-1" } }, { @@ -86,9 +86,9 @@ } }, "params": { - "Region": "eu-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-south-1" } }, { @@ -99,9 +99,9 @@ } }, "params": { - "Region": "eu-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-1" } }, { @@ -112,9 +112,9 @@ } }, "params": { - "Region": "eu-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-2" } }, { @@ -125,9 +125,9 @@ } }, "params": { - "Region": "eu-west-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-3" } }, { @@ -138,9 +138,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -151,9 +151,9 @@ } }, "params": { - "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-2" } }, { @@ -164,9 +164,9 @@ } }, "params": { - "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-2" } }, { @@ -177,9 +177,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -190,9 +190,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -203,9 +203,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -216,9 +216,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -229,9 +229,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -242,9 +242,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -255,9 +255,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -268,9 +268,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -281,9 +281,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -294,9 +294,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { @@ -307,9 +307,20 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-iso-east-1" } }, { @@ -320,9 +331,20 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-iso-east-1" } }, { @@ -333,9 +355,20 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-isob-east-1" } }, { @@ -346,9 +379,20 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-isob-east-1" } }, { @@ -359,9 +403,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-isob-east-1" } }, { @@ -372,9 +416,9 @@ } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -386,8 +430,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -397,9 +441,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -409,11 +453,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/guardduty/2017-11-28/api-2.json b/models/apis/guardduty/2017-11-28/api-2.json index 9b148017724..44c3bccaf3a 100644 --- a/models/apis/guardduty/2017-11-28/api-2.json +++ b/models/apis/guardduty/2017-11-28/api-2.json @@ -1200,6 +1200,14 @@ "members":{ } }, + "AutoEnableMembers":{ + "type":"string", + "enum":[ + "NEW", + "ALL", + "NONE" + ] + }, "AwsApiCallAction":{ "type":"structure", "members":{ @@ -2133,13 +2141,12 @@ }, "DescribeOrganizationConfigurationResponse":{ "type":"structure", - "required":[ - "AutoEnable", - "MemberAccountLimitReached" - ], + "required":["MemberAccountLimitReached"], "members":{ "AutoEnable":{ "shape":"Boolean", + "deprecated":true, + "deprecatedMessage":"This field is deprecated, use AutoEnableOrganizationMembers instead", "locationName":"autoEnable" }, "MemberAccountLimitReached":{ @@ -2159,6 +2166,10 @@ "NextToken":{ "shape":"String", "locationName":"nextToken" + }, + "AutoEnableOrganizationMembers":{ + "shape":"AutoEnableMembers", + "locationName":"autoEnableOrganizationMembers" } } }, @@ -5926,10 +5937,7 @@ }, "UpdateOrganizationConfigurationRequest":{ "type":"structure", - "required":[ - "DetectorId", - "AutoEnable" - ], + "required":["DetectorId"], "members":{ "DetectorId":{ "shape":"DetectorId", @@ -5938,6 +5946,8 @@ }, "AutoEnable":{ "shape":"Boolean", + "deprecated":true, + "deprecatedMessage":"This field is deprecated, use AutoEnableOrganizationMembers instead", "locationName":"autoEnable" }, "DataSources":{ @@ -5949,6 +5959,10 @@ "Features":{ "shape":"OrganizationFeaturesConfigurations", "locationName":"features" + }, + "AutoEnableOrganizationMembers":{ + "shape":"AutoEnableMembers", + "locationName":"autoEnableOrganizationMembers" } } }, diff --git a/models/apis/guardduty/2017-11-28/docs-2.json b/models/apis/guardduty/2017-11-28/docs-2.json index efd6ae6e007..a93243357ba 100644 --- a/models/apis/guardduty/2017-11-28/docs-2.json +++ b/models/apis/guardduty/2017-11-28/docs-2.json @@ -17,16 +17,16 @@ "DeleteFilter": "Deletes the filter specified by the filter name.
", "DeleteIPSet": "Deletes the IPSet specified by the ipSetId
. IPSets are called trusted IP lists in the console user interface.
Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.
", - "DeleteMembers": "Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.
", + "DeleteMembers": "Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.
With autoEnableOrganizationMembers
configuration for your organization set to ALL
, you'll receive an error if you attempt to disable GuardDuty for a member account in your organization.
Deletes the publishing definition with the specified destinationId
.
Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.
", "DescribeMalwareScans": "Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all the member accounts.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", "DescribeOrganizationConfiguration": "Returns information about the account selected as the delegated administrator for GuardDuty.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", "DescribePublishingDestination": "Returns information about the publishing destination specified by the provided destinationId
.
Disables an Amazon Web Services account within the Organization as the GuardDuty delegated administrator.
", - "DisassociateFromAdministratorAccount": "Disassociates the current GuardDuty member account from its administrator account.
", + "DisassociateFromAdministratorAccount": "Disassociates the current GuardDuty member account from its administrator account.
With autoEnableOrganizationMembers
configuration for your organization set to ALL
, you'll receive an error if you attempt to disable GuardDuty in a member account.
Disassociates the current GuardDuty member account from its administrator account.
", - "DisassociateMembers": "Disassociates GuardDuty member accounts (to the current administrator account) specified by the account IDs.
", + "DisassociateMembers": "Disassociates GuardDuty member accounts (to the current administrator account) specified by the account IDs.
With autoEnableOrganizationMembers
configuration for your organization set to ALL
, you'll receive an error if you attempt to disassociate a member account before removing them from your Amazon Web Services organization.
Enables an Amazon Web Services account within the organization as the GuardDuty delegated administrator.
", "GetAdministratorAccount": "Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.
", "GetDetector": "Retrieves an Amazon GuardDuty detector specified by the detectorId.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", @@ -53,8 +53,8 @@ "ListPublishingDestinations": "Returns a list of publishing destinations associated with the specified detectorId
.
Lists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, and threat intel sets, with a limit of 50 tags per resource. When invoked, this operation returns all assigned tags for a given resource.
", "ListThreatIntelSets": "Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the ThreatIntelSets associated with the administrator account are returned.
", - "StartMonitoringMembers": "Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers
operation.
Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers
operation to restart monitoring for those accounts.
Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers operation.
", + "StopMonitoringMembers": "Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers
operation to restart monitoring for those accounts.
With autoEnableOrganizationMembers
configuration for your organization set to ALL
, you'll receive an error if you attempt to stop monitoring the member accounts in your organization.
Adds tags to a resource.
", "UnarchiveFindings": "Unarchives GuardDuty findings specified by the findingIds
.
Removes tags from a resource.
", @@ -64,7 +64,7 @@ "UpdateIPSet": "Updates the IPSet specified by the IPSet ID.
", "UpdateMalwareScanSettings": "Updates the malware scan settings.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", "UpdateMemberDetectors": "Contains information on member accounts to be updated.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", - "UpdateOrganizationConfiguration": "Updates the delegated administrator account with the values provided.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", + "UpdateOrganizationConfiguration": "Configures the delegated administrator account with the provided values. You must provide the value for either autoEnableOrganizationMembers
or autoEnable
.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
", "UpdatePublishingDestination": "Updates information about the publishing destination specified by the destinationId
.
Updates the ThreatIntelSet specified by the ThreatIntelSet ID.
" }, @@ -209,6 +209,13 @@ "refs": { } }, + "AutoEnableMembers": { + "base": null, + "refs": { + "DescribeOrganizationConfigurationResponse$AutoEnableOrganizationMembers": "Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization.
NEW
: Indicates that new accounts joining the organization are configured to have GuardDuty enabled automatically.
ALL
: Indicates that all accounts (new and existing members) in the organization are configured to have GuardDuty enabled automatically.
NONE
: Indicates that no account in the organization will be configured to have GuardDuty enabled automatically.
Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization.
NEW
: Indicates that new accounts joining the organization are configured to have GuardDuty enabled automatically.
ALL
: Indicates that all accounts (new and existing members) in the organization are configured to have GuardDuty enabled automatically.
NONE
: Indicates that no account in the organization will be configured to have GuardDuty enabled automatically.
Contains information about the API action.
", "refs": { @@ -717,7 +724,7 @@ "UpdateIPSetRequest$DetectorId": "The detectorID that specifies the GuardDuty service whose IPSet you want to update.
", "UpdateMalwareScanSettingsRequest$DetectorId": "The unique ID of the detector that specifies the GuardDuty service where you want to update scan settings.
", "UpdateMemberDetectorsRequest$DetectorId": "The detector ID of the administrator account.
", - "UpdateOrganizationConfigurationRequest$DetectorId": "The ID of the detector to update the delegated administrator for.
", + "UpdateOrganizationConfigurationRequest$DetectorId": "The ID of the detector that configures the delegated administrator.
", "UpdatePublishingDestinationRequest$DetectorId": "The ID of the detector associated with the publishing destinations to update.
", "UpdateThreatIntelSetRequest$DetectorId": "The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update.
" } diff --git a/models/apis/guardduty/2017-11-28/endpoint-tests-1.json b/models/apis/guardduty/2017-11-28/endpoint-tests-1.json index 0103573bb0c..9de07f649d7 100644 --- a/models/apis/guardduty/2017-11-28/endpoint-tests-1.json +++ b/models/apis/guardduty/2017-11-28/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { - "Region": "af-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "af-south-1" } }, { @@ -21,9 +21,9 @@ } }, "params": { - "Region": "ap-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-east-1" } }, { @@ -34,9 +34,9 @@ } }, "params": { - "Region": "ap-northeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-1" } }, { @@ -47,9 +47,9 @@ } }, "params": { - "Region": "ap-northeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-2" } }, { @@ -60,9 +60,9 @@ } }, "params": { - "Region": "ap-northeast-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-3" } }, { @@ -73,9 +73,9 @@ } }, "params": { - "Region": "ap-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-south-1" } }, { @@ -86,9 +86,9 @@ } }, "params": { - "Region": "ap-southeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-1" } }, { @@ -99,9 +99,9 @@ } }, "params": { - "Region": "ap-southeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-2" } }, { @@ -112,9 +112,9 @@ } }, "params": { - "Region": "ap-southeast-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-3" } }, { @@ -125,9 +125,9 @@ } }, "params": { - "Region": "ca-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ca-central-1" } }, { @@ -138,9 +138,9 @@ } }, "params": { - "Region": "eu-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-central-1" } }, { @@ -151,9 +151,9 @@ } }, "params": { - "Region": "eu-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-north-1" } }, { @@ -164,9 +164,9 @@ } }, "params": { - "Region": "eu-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-south-1" } }, { @@ -177,9 +177,9 @@ } }, "params": { - "Region": "eu-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-1" } }, { @@ -190,9 +190,9 @@ } }, "params": { - "Region": "eu-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-2" } }, { @@ -203,9 +203,9 @@ } }, "params": { - "Region": "eu-west-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-3" } }, { @@ -216,9 +216,9 @@ } }, "params": { - "Region": "me-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "me-south-1" } }, { @@ -229,9 +229,9 @@ } }, "params": { - "Region": "sa-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "sa-east-1" } }, { @@ -242,9 +242,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -255,9 +255,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -268,9 +268,9 @@ } }, "params": { - "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-2" } }, { @@ -281,9 +281,9 @@ } }, "params": { - "Region": "us-east-2", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-2" } }, { @@ -294,9 +294,9 @@ } }, "params": { - "Region": "us-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-1" } }, { @@ -307,9 +307,9 @@ } }, "params": { - "Region": "us-west-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-west-1" } }, { @@ -320,9 +320,9 @@ } }, "params": { - "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-2" } }, { @@ -333,9 +333,9 @@ } }, "params": { - "Region": "us-west-2", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-west-2" } }, { @@ -346,9 +346,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -359,9 +359,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -372,9 +372,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -385,9 +385,9 @@ } }, "params": { - "Region": "cn-northwest-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-northwest-1" } }, { @@ -398,9 +398,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -411,9 +411,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -424,9 +424,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -437,9 +437,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { @@ -450,9 +450,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -463,9 +463,9 @@ } }, "params": { - "Region": "us-gov-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-west-1" } }, { @@ -476,9 +476,9 @@ } }, "params": { - "Region": "us-gov-west-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-west-1" } }, { @@ -489,9 +489,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -502,9 +502,20 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-iso-east-1" } }, { @@ -515,9 +526,20 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-iso-east-1" } }, { @@ -528,9 +550,20 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-isob-east-1" } }, { @@ -541,9 +574,20 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-isob-east-1" } }, { @@ -554,9 +598,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-isob-east-1" } }, { @@ -567,9 +611,9 @@ } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -581,8 +625,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -592,9 +636,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -604,11 +648,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/ivs-realtime/2020-07-14/api-2.json b/models/apis/ivs-realtime/2020-07-14/api-2.json new file mode 100644 index 00000000000..303d8c33286 --- /dev/null +++ b/models/apis/ivs-realtime/2020-07-14/api-2.json @@ -0,0 +1,569 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-07-14", + "endpointPrefix":"ivsrealtime", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"ivsrealtime", + "serviceFullName":"Amazon Interactive Video Service RealTime", + "serviceId":"IVS RealTime", + "signatureVersion":"v4", + "signingName":"ivs", + "uid":"ivs-realtime-2020-07-14" + }, + "operations":{ + "CreateParticipantToken":{ + "name":"CreateParticipantToken", + "http":{ + "method":"POST", + "requestUri":"/CreateParticipantToken", + "responseCode":200 + }, + "input":{"shape":"CreateParticipantTokenRequest"}, + "output":{"shape":"CreateParticipantTokenResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"PendingVerification"} + ] + }, + "CreateStage":{ + "name":"CreateStage", + "http":{ + "method":"POST", + "requestUri":"/CreateStage", + "responseCode":200 + }, + "input":{"shape":"CreateStageRequest"}, + "output":{"shape":"CreateStageResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"PendingVerification"} + ] + }, + "DeleteStage":{ + "name":"DeleteStage", + "http":{ + "method":"POST", + "requestUri":"/DeleteStage", + "responseCode":200 + }, + "input":{"shape":"DeleteStageRequest"}, + "output":{"shape":"DeleteStageResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"PendingVerification"} + ] + }, + "DisconnectParticipant":{ + "name":"DisconnectParticipant", + "http":{ + "method":"POST", + "requestUri":"/DisconnectParticipant", + "responseCode":200 + }, + "input":{"shape":"DisconnectParticipantRequest"}, + "output":{"shape":"DisconnectParticipantResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"PendingVerification"} + ] + }, + "GetStage":{ + "name":"GetStage", + "http":{ + "method":"POST", + "requestUri":"/GetStage", + "responseCode":200 + }, + "input":{"shape":"GetStageRequest"}, + "output":{"shape":"GetStageResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ] + }, + "ListStages":{ + "name":"ListStages", + "http":{ + "method":"POST", + "requestUri":"/ListStages", + "responseCode":200 + }, + "input":{"shape":"ListStagesRequest"}, + "output":{"shape":"ListStagesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "idempotent":true + }, + "UpdateStage":{ + "name":"UpdateStage", + "http":{ + "method":"POST", + "requestUri":"/UpdateStage", + "responseCode":200 + }, + "input":{"shape":"UpdateStageRequest"}, + "output":{"shape":"UpdateStageResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"PendingVerification"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "ConflictException":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CreateParticipantTokenRequest":{ + "type":"structure", + "required":["stageArn"], + "members":{ + "attributes":{"shape":"ParticipantTokenAttributes"}, + "capabilities":{"shape":"ParticipantTokenCapabilities"}, + "duration":{"shape":"ParticipantTokenDurationMinutes"}, + "stageArn":{"shape":"StageArn"}, + "userId":{"shape":"ParticipantTokenUserId"} + } + }, + "CreateParticipantTokenResponse":{ + "type":"structure", + "members":{ + "participantToken":{"shape":"ParticipantToken"} + } + }, + "CreateStageRequest":{ + "type":"structure", + "members":{ + "name":{"shape":"StageName"}, + "participantTokenConfigurations":{"shape":"ParticipantTokenConfigurations"}, + "tags":{"shape":"Tags"} + } + }, + "CreateStageResponse":{ + "type":"structure", + "members":{ + "participantTokens":{"shape":"ParticipantTokenList"}, + "stage":{"shape":"Stage"} + } + }, + "DeleteStageRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{"shape":"StageArn"} + } + }, + "DeleteStageResponse":{ + "type":"structure", + "members":{ + } + }, + "DisconnectParticipantReason":{ + "type":"string", + "max":128, + "min":0 + }, + "DisconnectParticipantRequest":{ + "type":"structure", + "required":[ + "participantId", + "stageArn" + ], + "members":{ + "participantId":{"shape":"ParticipantTokenId"}, + "reason":{"shape":"DisconnectParticipantReason"}, + "stageArn":{"shape":"StageArn"} + } + }, + "DisconnectParticipantResponse":{ + "type":"structure", + "members":{ + } + }, + "GetStageRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{"shape":"StageArn"} + } + }, + "GetStageResponse":{ + "type":"structure", + "members":{ + "stage":{"shape":"Stage"} + } + }, + "InternalServerException":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "ListStagesRequest":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"MaxStageResults"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "ListStagesResponse":{ + "type":"structure", + "required":["stages"], + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "stages":{"shape":"StageSummaryList"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["tags"], + "members":{ + "tags":{"shape":"Tags"} + } + }, + "MaxStageResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "PaginationToken":{ + "type":"string", + "max":1024, + "min":0, + "pattern":"^[a-zA-Z0-9+/=_-]*$" + }, + "ParticipantToken":{ + "type":"structure", + "members":{ + "attributes":{"shape":"ParticipantTokenAttributes"}, + "capabilities":{"shape":"ParticipantTokenCapabilities"}, + "duration":{"shape":"ParticipantTokenDurationMinutes"}, + "expirationTime":{"shape":"ParticipantTokenExpirationTime"}, + "participantId":{"shape":"ParticipantTokenId"}, + "token":{"shape":"ParticipantTokenString"}, + "userId":{"shape":"ParticipantTokenUserId"} + } + }, + "ParticipantTokenAttributes":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "ParticipantTokenCapabilities":{ + "type":"list", + "member":{"shape":"ParticipantTokenCapability"}, + "max":2, + "min":0 + }, + "ParticipantTokenCapability":{ + "type":"string", + "enum":[ + "PUBLISH", + "SUBSCRIBE" + ] + }, + "ParticipantTokenConfiguration":{ + "type":"structure", + "members":{ + "attributes":{"shape":"ParticipantTokenAttributes"}, + "capabilities":{"shape":"ParticipantTokenCapabilities"}, + "duration":{"shape":"ParticipantTokenDurationMinutes"}, + "userId":{"shape":"ParticipantTokenUserId"} + } + }, + "ParticipantTokenConfigurations":{ + "type":"list", + "member":{"shape":"ParticipantTokenConfiguration"}, + "max":12, + "min":0 + }, + "ParticipantTokenDurationMinutes":{ + "type":"integer", + "max":20160, + "min":1 + }, + "ParticipantTokenExpirationTime":{"type":"timestamp"}, + "ParticipantTokenId":{"type":"string"}, + "ParticipantTokenList":{ + "type":"list", + "member":{"shape":"ParticipantToken"} + }, + "ParticipantTokenString":{"type":"string"}, + "ParticipantTokenUserId":{ + "type":"string", + "max":128, + "min":0 + }, + "PendingVerification":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "ResourceArn":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:[a-z-]/[a-zA-Z0-9-]+$" + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{ + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, + "Stage":{ + "type":"structure", + "required":["arn"], + "members":{ + "activeSessionId":{"shape":"StageSessionId"}, + "arn":{"shape":"StageArn"}, + "name":{"shape":"StageName"}, + "tags":{"shape":"Tags"} + } + }, + "StageArn":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$" + }, + "StageName":{ + "type":"string", + "max":128, + "min":0, + "pattern":"^[a-zA-Z0-9-_]*$" + }, + "StageSessionId":{ + "type":"string", + "max":16, + "min":16, + "pattern":"^st-[a-zA-Z0-9]+$" + }, + "StageSummary":{ + "type":"structure", + "required":["arn"], + "members":{ + "activeSessionId":{"shape":"StageSessionId"}, + "arn":{"shape":"StageArn"}, + "name":{"shape":"StageName"}, + "tags":{"shape":"Tags"} + } + }, + "StageSummaryList":{ + "type":"list", + "member":{"shape":"StageSummary"} + }, + "String":{"type":"string"}, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{"shape":"Tags"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "Tags":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":50, + "min":0 + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateStageRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{"shape":"StageArn"}, + "name":{"shape":"StageName"} + } + }, + "UpdateStageResponse":{ + "type":"structure", + "members":{ + "stage":{"shape":"Stage"} + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "exceptionMessage":{"shape":"errorMessage"} + }, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "errorMessage":{"type":"string"} + } +} diff --git a/models/apis/ivs-realtime/2020-07-14/docs-2.json b/models/apis/ivs-realtime/2020-07-14/docs-2.json new file mode 100644 index 00000000000..d20f8107389 --- /dev/null +++ b/models/apis/ivs-realtime/2020-07-14/docs-2.json @@ -0,0 +1,358 @@ +{ + "version": "2.0", + "service": "Introduction
The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard HTTP API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses, including errors.
Terminology: The IVS stage API sometimes is referred to as the IVS RealTime API.
Resources
The following resources contain information about your IVS live stream (see Getting Started with Amazon IVS):
Stage — A stage is a virtual space where multiple participants can exchange audio and video in real time.
Tagging
A tag is a metadata label that you assign to an AWS resource. A tag comprises a key and a value, both set by you. For example, you might set a tag as topic:nature
to label a particular video category. See Tagging AWS Resources for more information, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS stages has no service-specific constraints beyond what is documented there.
Tags can help you identify and organize your AWS resources. For example, you can use the same tag for different resources to indicate that they are related. You can also use tags to manage access (see Access Tags).
The Amazon IVS stage API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following resource supports tagging: Stage.
At most 50 tags can be applied to a resource.
Stages Endpoints
CreateParticipantToken — Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire.
CreateStage — Creates a new stage (and optionally participant tokens).
DeleteStage — Shuts down and deletes the specified stage (disconnecting all participants).
DisconnectParticipant — Disconnects a specified participant and revokes the participant permanently from a specified stage.
GetStage — Gets information for the specified stage.
ListStages — Gets summary information about all stages in your account, in the AWS region where the API request is processed.
UpdateStage — Updates a stage’s configuration.
Tags Endpoints
ListTagsForResource — Gets information about AWS tags for the specified ARN.
TagResource — Adds or updates tags for the AWS resource with the specified ARN.
UntagResource — Removes tags from the resource with the specified ARN.
Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created.
Encryption keys are owned by Amazon IVS and never used directly by your application.
", + "CreateStage": "Creates a new stage (and optionally participant tokens).
", + "DeleteStage": "Shuts down and deletes the specified stage (disconnecting all participants).
", + "DisconnectParticipant": "Disconnects a specified participant and revokes the participant permanently from a specified stage.
", + "GetStage": "Gets information for the specified stage.
", + "ListStages": "Gets summary information about all stages in your account, in the AWS region where the API request is processed.
", + "ListTagsForResource": "Gets information about AWS tags for the specified ARN.
", + "TagResource": "Adds or updates tags for the AWS resource with the specified ARN.
", + "UntagResource": "Removes tags from the resource with the specified ARN.
", + "UpdateStage": "Updates a stage’s configuration.
" + }, + "shapes": { + "AccessDeniedException": { + "base": "", + "refs": { + } + }, + "ConflictException": { + "base": "", + "refs": { + } + }, + "CreateParticipantTokenRequest": { + "base": null, + "refs": { + } + }, + "CreateParticipantTokenResponse": { + "base": null, + "refs": { + } + }, + "CreateStageRequest": { + "base": null, + "refs": { + } + }, + "CreateStageResponse": { + "base": null, + "refs": { + } + }, + "DeleteStageRequest": { + "base": null, + "refs": { + } + }, + "DeleteStageResponse": { + "base": null, + "refs": { + } + }, + "DisconnectParticipantReason": { + "base": null, + "refs": { + "DisconnectParticipantRequest$reason": "Description of why this participant is being disconnected.
" + } + }, + "DisconnectParticipantRequest": { + "base": null, + "refs": { + } + }, + "DisconnectParticipantResponse": { + "base": null, + "refs": { + } + }, + "GetStageRequest": { + "base": null, + "refs": { + } + }, + "GetStageResponse": { + "base": null, + "refs": { + } + }, + "InternalServerException": { + "base": "", + "refs": { + } + }, + "ListStagesRequest": { + "base": null, + "refs": { + } + }, + "ListStagesResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "MaxStageResults": { + "base": null, + "refs": { + "ListStagesRequest$maxResults": "Maximum number of results to return. Default: 50.
" + } + }, + "PaginationToken": { + "base": null, + "refs": { + "ListStagesRequest$nextToken": "The first stage to retrieve. This is used for pagination; see the nextToken
response field.
If there are more rooms than maxResults
, use nextToken
in the request to get the next set.
Object specifying a participant token in a stage.
", + "refs": { + "CreateParticipantTokenResponse$participantToken": "The participant token that was created.
", + "ParticipantTokenList$member": null + } + }, + "ParticipantTokenAttributes": { + "base": null, + "refs": { + "CreateParticipantTokenRequest$attributes": "Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
", + "ParticipantToken$attributes": "Application-provided attributes to encode into the token and attach to a stage. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
", + "ParticipantTokenConfiguration$attributes": "Application-provided attributes to encode into the corresponding participant token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
" + } + }, + "ParticipantTokenCapabilities": { + "base": null, + "refs": { + "CreateParticipantTokenRequest$capabilities": "Set of capabilities that the user is allowed to perform in the stage. Default: PUBLISH, SUBSCRIBE
.
Set of capabilities that the user is allowed to perform in the stage.
", + "ParticipantTokenConfiguration$capabilities": "Set of capabilities that the user is allowed to perform in the stage.
" + } + }, + "ParticipantTokenCapability": { + "base": null, + "refs": { + "ParticipantTokenCapabilities$member": null + } + }, + "ParticipantTokenConfiguration": { + "base": "Object specifying a participant token configuration in a stage.
", + "refs": { + "ParticipantTokenConfigurations$member": null + } + }, + "ParticipantTokenConfigurations": { + "base": null, + "refs": { + "CreateStageRequest$participantTokenConfigurations": "Array of participant token configuration objects to attach to the new stage.
" + } + }, + "ParticipantTokenDurationMinutes": { + "base": null, + "refs": { + "CreateParticipantTokenRequest$duration": "Duration (in minutes), after which the token expires. Default: 60 (1 hour).
", + "ParticipantToken$duration": "Duration (in minutes), after which the participant token expires. Default: 60 (1 hour).
", + "ParticipantTokenConfiguration$duration": "Duration (in minutes), after which the corresponding participant token expires. Default: 60 (1 hour).
" + } + }, + "ParticipantTokenExpirationTime": { + "base": null, + "refs": { + "ParticipantToken$expirationTime": "ISO 8601 timestamp (returned as a string) for when this token expires.
" + } + }, + "ParticipantTokenId": { + "base": null, + "refs": { + "DisconnectParticipantRequest$participantId": "Identifier of the participant to be disconnected. This is returned by CreateParticipantToken.
", + "ParticipantToken$participantId": "Unique identifier for this participant token, assigned by IVS.
" + } + }, + "ParticipantTokenList": { + "base": null, + "refs": { + "CreateStageResponse$participantTokens": "Participant tokens attached to the stage. These correspond to the participants
in the request.
The issued client token, encrypted.
" + } + }, + "ParticipantTokenUserId": { + "base": null, + "refs": { + "CreateParticipantTokenRequest$userId": "Name that can be specified to help identify the token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
", + "ParticipantToken$userId": "Name to help identify the token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
", + "ParticipantTokenConfiguration$userId": "Name that can be specified to help identify the corresponding participant token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
" + } + }, + "PendingVerification": { + "base": "", + "refs": { + } + }, + "ResourceArn": { + "base": null, + "refs": { + "ListTagsForResourceRequest$resourceArn": "The ARN of the resource to be retrieved. The ARN must be URL-encoded.
", + "TagResourceRequest$resourceArn": "The ARN of the resource to be tagged. The ARN must be URL-encoded.
", + "UntagResourceRequest$resourceArn": "The ARN of the resource to be untagged. The ARN must be URL-encoded.
" + } + }, + "ResourceNotFoundException": { + "base": "", + "refs": { + } + }, + "ServiceQuotaExceededException": { + "base": "", + "refs": { + } + }, + "Stage": { + "base": "Object specifying a stage.
", + "refs": { + "CreateStageResponse$stage": "The stage that was created.
", + "GetStageResponse$stage": "", + "UpdateStageResponse$stage": "The updated stage.
" + } + }, + "StageArn": { + "base": null, + "refs": { + "CreateParticipantTokenRequest$stageArn": "ARN of the stage to which this token is scoped.
", + "DeleteStageRequest$arn": "ARN of the stage to be deleted.
", + "DisconnectParticipantRequest$stageArn": "ARN of the stage to which the participant is attached.
", + "GetStageRequest$arn": "ARN of the stage for which the information is to be retrieved.
", + "Stage$arn": "Stage ARN.
", + "StageSummary$arn": "Stage ARN.
", + "UpdateStageRequest$arn": "ARN of the stage to be updated.
" + } + }, + "StageName": { + "base": null, + "refs": { + "CreateStageRequest$name": "Optional name that can be specified for the stage being created.
", + "Stage$name": "Stage name.
", + "StageSummary$name": "Stage name.
", + "UpdateStageRequest$name": "Name of the stage to be updated.
" + } + }, + "StageSessionId": { + "base": null, + "refs": { + "Stage$activeSessionId": "ID of the active session within the stage.
", + "StageSummary$activeSessionId": "ID of the active session within the stage.
" + } + }, + "StageSummary": { + "base": "Summary information about a stage.
", + "refs": { + "StageSummaryList$member": null + } + }, + "StageSummaryList": { + "base": null, + "refs": { + "ListStagesResponse$stages": "List of the matching stages (summary information only).
" + } + }, + "String": { + "base": null, + "refs": { + "ParticipantTokenAttributes$key": null, + "ParticipantTokenAttributes$value": null + } + }, + "TagKey": { + "base": null, + "refs": { + "TagKeyList$member": null, + "Tags$key": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "Array of tags to be removed. Array of maps, each of the form string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints beyond what is documented there.
Tags attached to the resource. Array of maps, each of the form string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags beyond what is documented there.
Tags attached to the resource. Array of maps, each of the form string:string (key:value)
.
Tags attached to the resource. Array of maps, each of the form string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags beyond what is documented there.
Tags attached to the resource. Array of maps, each of the form string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints on tags beyond what is documented there.
Array of tags to be added or updated. Array of maps, each of the form string:string (key:value)
. See Tagging AWS Resources for details, including restrictions that apply to tags and \"Tag naming limits and requirements\"; Amazon IVS has no constraints beyond what is documented there.
User does not have sufficient access to perform this action.
", + "ConflictException$exceptionMessage": "Updating or deleting a resource can cause an inconsistent state.
", + "InternalServerException$exceptionMessage": "Unexpected error during processing of request.
", + "PendingVerification$exceptionMessage": "Your account is pending verification.
", + "ResourceNotFoundException$exceptionMessage": "Request references a resource which does not exist.
", + "ServiceQuotaExceededException$exceptionMessage": "Request would cause a service quota to be exceeded.
", + "ValidationException$exceptionMessage": "The input fails to satisfy the constraints specified by an Amazon Web Services service.
" + } + } + } +} diff --git a/models/apis/ivs-realtime/2020-07-14/endpoint-rule-set-1.json b/models/apis/ivs-realtime/2020-07-14/endpoint-rule-set-1.json new file mode 100644 index 00000000000..0b1cc12c984 --- /dev/null +++ b/models/apis/ivs-realtime/2020-07-14/endpoint-rule-set-1.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ivsrealtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ivsrealtime-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ivsrealtime.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ivsrealtime.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ] + } + ] +} \ No newline at end of file diff --git a/models/apis/ivs-realtime/2020-07-14/endpoint-tests-1.json b/models/apis/ivs-realtime/2020-07-14/endpoint-tests-1.json new file mode 100644 index 00000000000..20bb7ce0205 --- /dev/null +++ b/models/apis/ivs-realtime/2020-07-14/endpoint-tests-1.json @@ -0,0 +1,295 @@ +{ + "testCases": [ + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ivsrealtime.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/ivs-realtime/2020-07-14/examples-1.json b/models/apis/ivs-realtime/2020-07-14/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/ivs-realtime/2020-07-14/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/ivs-realtime/2020-07-14/paginators-1.json b/models/apis/ivs-realtime/2020-07-14/paginators-1.json new file mode 100644 index 00000000000..23f23f56b01 --- /dev/null +++ b/models/apis/ivs-realtime/2020-07-14/paginators-1.json @@ -0,0 +1,9 @@ +{ + "pagination": { + "ListStages": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + } + } +} diff --git a/models/apis/mediaconvert/2017-08-29/api-2.json b/models/apis/mediaconvert/2017-08-29/api-2.json index 11cf07cd6e5..1beb9fa8bc7 100644 --- a/models/apis/mediaconvert/2017-08-29/api-2.json +++ b/models/apis/mediaconvert/2017-08-29/api-2.json @@ -11719,4 +11719,4 @@ "timestampFormat": "unixTimestamp" } } -} +} \ No newline at end of file diff --git a/models/apis/mediaconvert/2017-08-29/docs-2.json b/models/apis/mediaconvert/2017-08-29/docs-2.json index c7f78a7a6e3..99433c0d2ed 100644 --- a/models/apis/mediaconvert/2017-08-29/docs-2.json +++ b/models/apis/mediaconvert/2017-08-29/docs-2.json @@ -1252,9 +1252,9 @@ } }, "DvbddsHandling": { - "base": "Specify how MediaConvert handles the display definition segment (DDS). Keep the default, None (NONE), to exclude the DDS from this set of captions. Choose No display window (NO_DISPLAY_WINDOW) to have MediaConvert include the DDS but not include display window data. In this case, MediaConvert writes that information to the page composition segment (PCS) instead. Choose Specify (SPECIFIED) to have MediaConvert set up the display window based on the values that you specify in related job settings. For video resolutions that are 576 pixels or smaller in height, MediaConvert doesn't include the DDS, regardless of the value you choose for DDS handling (ddsHandling). In this case, it doesn't write the display window data to the PCS either. Related settings: Use the settings DDS x-coordinate (ddsXCoordinate) and DDS y-coordinate (ddsYCoordinate) to specify the offset between the top left corner of the display window and the top left corner of the video frame. All burn-in and DVB-Sub font settings must match.", + "base": "Specify how MediaConvert handles the display definition segment (DDS). To exclude the DDS from this set of captions: Keep the default, None. To include the DDS: Choose Specified. When you do, also specify the offset coordinates of the display window with DDS x-coordinate and DDS y-coordinate. To include the DDS, but not include display window data: Choose No display window. When you do, you can write position metadata to the page composition segment (PCS) with DDS x-coordinate and DDS y-coordinate. For video resolutions with a height of 576 pixels or less, MediaConvert doesn't include the DDS, regardless of the value you choose for DDS handling. All burn-in and DVB-Sub font settings must match.", "refs": { - "DvbSubDestinationSettings$DdsHandling": "Specify how MediaConvert handles the display definition segment (DDS). Keep the default, None (NONE), to exclude the DDS from this set of captions. Choose No display window (NO_DISPLAY_WINDOW) to have MediaConvert include the DDS but not include display window data. In this case, MediaConvert writes that information to the page composition segment (PCS) instead. Choose Specify (SPECIFIED) to have MediaConvert set up the display window based on the values that you specify in related job settings. For video resolutions that are 576 pixels or smaller in height, MediaConvert doesn't include the DDS, regardless of the value you choose for DDS handling (ddsHandling). In this case, it doesn't write the display window data to the PCS either. Related settings: Use the settings DDS x-coordinate (ddsXCoordinate) and DDS y-coordinate (ddsYCoordinate) to specify the offset between the top left corner of the display window and the top left corner of the video frame. All burn-in and DVB-Sub font settings must match." + "DvbSubDestinationSettings$DdsHandling": "Specify how MediaConvert handles the display definition segment (DDS). To exclude the DDS from this set of captions: Keep the default, None. To include the DDS: Choose Specified. When you do, also specify the offset coordinates of the display window with DDS x-coordinate and DDS y-coordinate. To include the DDS, but not include display window data: Choose No display window. When you do, you can write position metadata to the page composition segment (PCS) with DDS x-coordinate and DDS y-coordinate. For video resolutions with a height of 576 pixels or less, MediaConvert doesn't include the DDS, regardless of the value you choose for DDS handling. All burn-in and DVB-Sub font settings must match." } }, "Eac3AtmosBitstreamMode": { @@ -2593,9 +2593,9 @@ } }, "MovPaddingControl": { - "base": "To make this output compatible with Omenon, keep the default value, OMNEON. Unless you need Omneon compatibility, set this value to NONE. When you keep the default value, OMNEON, MediaConvert increases the length of the edit list atom. This might cause file rejections when a recipient of the output file doesn't expct this extra padding.", + "base": "Unless you need Omneon compatibility: Keep the default value, None. To make this output compatible with Omneon: Choose Omneon. When you do, MediaConvert increases the length of the 'elst' edit list atom. Note that this might cause file rejections when a recipient of the output file doesn't expect this extra padding.", "refs": { - "MovSettings$PaddingControl": "To make this output compatible with Omenon, keep the default value, OMNEON. Unless you need Omneon compatibility, set this value to NONE. When you keep the default value, OMNEON, MediaConvert increases the length of the edit list atom. This might cause file rejections when a recipient of the output file doesn't expct this extra padding." + "MovSettings$PaddingControl": "Unless you need Omneon compatibility: Keep the default value, None. To make this output compatible with Omneon: Choose Omneon. When you do, MediaConvert increases the length of the 'elst' edit list atom. Note that this might cause file rejections when a recipient of the output file doesn't expect this extra padding." } }, "MovReference": { diff --git a/models/apis/mediaconvert/2017-08-29/endpoint-tests-1.json b/models/apis/mediaconvert/2017-08-29/endpoint-tests-1.json index cec29153d73..3917e2cfa5f 100644 --- a/models/apis/mediaconvert/2017-08-29/endpoint-tests-1.json +++ b/models/apis/mediaconvert/2017-08-29/endpoint-tests-1.json @@ -8,8 +8,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-northeast-1" } }, @@ -21,8 +21,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-northeast-2" } }, @@ -34,8 +34,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-south-1" } }, @@ -47,8 +47,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-southeast-1" } }, @@ -60,8 +60,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-southeast-2" } }, @@ -73,8 +73,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ca-central-1" } }, @@ -86,8 +86,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "ca-central-1" } }, @@ -99,8 +99,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-central-1" } }, @@ -112,8 +112,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-north-1" } }, @@ -125,8 +125,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-west-1" } }, @@ -138,8 +138,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-west-2" } }, @@ -151,8 +151,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-west-3" } }, @@ -164,8 +164,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "sa-east-1" } }, @@ -177,8 +177,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -190,8 +190,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -203,8 +203,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-2" } }, @@ -216,8 +216,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-2" } }, @@ -229,8 +229,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-west-1" } }, @@ -242,8 +242,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-west-1" } }, @@ -255,8 +255,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-west-2" } }, @@ -268,8 +268,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-west-2" } }, @@ -281,8 +281,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "us-east-1" } }, @@ -294,8 +294,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1" } }, @@ -307,8 +307,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "cn-northwest-1" } }, @@ -320,8 +320,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "cn-north-1" } }, @@ -333,8 +333,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "cn-north-1" } }, @@ -346,8 +346,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "cn-north-1" } }, @@ -359,8 +359,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "cn-north-1" } }, @@ -372,8 +372,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-gov-west-1" } }, @@ -385,8 +385,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-gov-west-1" } }, @@ -398,8 +398,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "us-gov-east-1" } }, @@ -411,8 +411,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-gov-east-1" } }, @@ -424,8 +424,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-gov-east-1" } }, @@ -437,8 +437,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-gov-east-1" } }, @@ -450,8 +450,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-iso-east-1" } }, @@ -463,8 +463,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-iso-east-1" } }, @@ -476,8 +476,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-isob-east-1" } }, @@ -489,8 +489,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-isob-east-1" } }, @@ -502,8 +502,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -516,8 +516,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -527,8 +527,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -539,8 +539,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 265bcf3822a..c6ffd2fd909 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -129,6 +129,19 @@ {"shape":"ResourceLimitExceeded"} ] }, + "CreateAutoMLJobV2":{ + "name":"CreateAutoMLJobV2", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAutoMLJobV2Request"}, + "output":{"shape":"CreateAutoMLJobV2Response"}, + "errors":[ + {"shape":"ResourceInUse"}, + {"shape":"ResourceLimitExceeded"} + ] + }, "CreateCodeRepository":{ "name":"CreateCodeRepository", "http":{ @@ -1285,6 +1298,18 @@ {"shape":"ResourceNotFound"} ] }, + "DescribeAutoMLJobV2":{ + "name":"DescribeAutoMLJobV2", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAutoMLJobV2Request"}, + "output":{"shape":"DescribeAutoMLJobV2Response"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "DescribeCodeRepository":{ "name":"DescribeCodeRepository", "http":{ @@ -3729,7 +3754,8 @@ "ml.g5.16xlarge", "ml.g5.12xlarge", "ml.g5.24xlarge", - "ml.g5.48xlarge" + "ml.g5.48xlarge", + "ml.geospatial.interactive" ] }, "AppList":{ @@ -4076,7 +4102,8 @@ "EndTime":{"shape":"Timestamp"}, "LastModifiedTime":{"shape":"Timestamp"}, "FailureReason":{"shape":"AutoMLFailureReason"}, - "CandidateProperties":{"shape":"CandidateProperties"} + "CandidateProperties":{"shape":"CandidateProperties"}, + "InferenceContainerDefinitions":{"shape":"AutoMLInferenceContainerDefinitions"} } }, "AutoMLCandidateGenerationConfig":{ @@ -4158,6 +4185,12 @@ "type":"string", "max":1024 }, + "AutoMLInferenceContainerDefinitions":{ + "type":"map", + "key":{"shape":"AutoMLProcessingUnit"}, + "value":{"shape":"AutoMLContainerDefinitions"}, + "max":2 + }, "AutoMLInputDataConfig":{ "type":"list", "member":{"shape":"AutoMLChannel"}, @@ -4177,6 +4210,15 @@ "DataExplorationNotebookLocation":{"shape":"DataExplorationNotebookLocation"} } }, + "AutoMLJobChannel":{ + "type":"structure", + "members":{ + "ChannelType":{"shape":"AutoMLChannelType"}, + "ContentType":{"shape":"ContentType"}, + "CompressionType":{"shape":"CompressionType"}, + "DataSource":{"shape":"AutoMLDataSource"} + } + }, "AutoMLJobCompletionCriteria":{ "type":"structure", "members":{ @@ -4195,6 +4237,12 @@ "Mode":{"shape":"AutoMLMode"} } }, + "AutoMLJobInputDataConfig":{ + "type":"list", + "member":{"shape":"AutoMLJobChannel"}, + "max":2, + "min":1 + }, "AutoMLJobName":{ "type":"string", "max":32, @@ -4234,7 +4282,8 @@ "DeployingModel", "ModelDeploymentError", "GeneratingModelInsightsReport", - "ModelInsightsError" + "ModelInsightsError", + "TrainingModels" ] }, "AutoMLJobStatus":{ @@ -4355,6 +4404,21 @@ "max":5, "min":1 }, + "AutoMLProblemTypeConfig":{ + "type":"structure", + "members":{ + "ImageClassificationJobConfig":{"shape":"ImageClassificationJobConfig"}, + "TextClassificationJobConfig":{"shape":"TextClassificationJobConfig"} + }, + "union":true + }, + "AutoMLProcessingUnit":{ + "type":"string", + "enum":[ + "CPU", + "GPU" + ] + }, "AutoMLS3DataSource":{ "type":"structure", "required":[ @@ -4370,7 +4434,8 @@ "type":"string", "enum":[ "ManifestFile", - "S3Prefix" + "S3Prefix", + "AugmentedManifestFile" ] }, "AutoMLSecurityConfig":{ @@ -5369,6 +5434,11 @@ "member":{"shape":"ContentClassifier"}, "max":256 }, + "ContentColumn":{ + "type":"string", + "max":256, + "min":1 + }, "ContentDigest":{ "type":"string", "max":72, @@ -5583,6 +5653,35 @@ "AutoMLJobArn":{"shape":"AutoMLJobArn"} } }, + "CreateAutoMLJobV2Request":{ + "type":"structure", + "required":[ + "AutoMLJobName", + "AutoMLJobInputDataConfig", + "OutputDataConfig", + "AutoMLProblemTypeConfig", + "RoleArn" + ], + "members":{ + "AutoMLJobName":{"shape":"AutoMLJobName"}, + "AutoMLJobInputDataConfig":{"shape":"AutoMLJobInputDataConfig"}, + "OutputDataConfig":{"shape":"AutoMLOutputDataConfig"}, + "AutoMLProblemTypeConfig":{"shape":"AutoMLProblemTypeConfig"}, + "RoleArn":{"shape":"RoleArn"}, + "Tags":{"shape":"TagList"}, + "SecurityConfig":{"shape":"AutoMLSecurityConfig"}, + "AutoMLJobObjective":{"shape":"AutoMLJobObjective"}, + "ModelDeployConfig":{"shape":"ModelDeployConfig"}, + "DataSplitConfig":{"shape":"AutoMLDataSplitConfig"} + } + }, + "CreateAutoMLJobV2Response":{ + "type":"structure", + "required":["AutoMLJobArn"], + "members":{ + "AutoMLJobArn":{"shape":"AutoMLJobArn"} + } + }, "CreateCodeRepositoryInput":{ "type":"structure", "required":[ @@ -7651,6 +7750,48 @@ "ModelDeployResult":{"shape":"ModelDeployResult"} } }, + "DescribeAutoMLJobV2Request":{ + "type":"structure", + "required":["AutoMLJobName"], + "members":{ + "AutoMLJobName":{"shape":"AutoMLJobName"} + } + }, + "DescribeAutoMLJobV2Response":{ + "type":"structure", + "required":[ + "AutoMLJobName", + "AutoMLJobArn", + "AutoMLJobInputDataConfig", + "OutputDataConfig", + "RoleArn", + "CreationTime", + "LastModifiedTime", + "AutoMLJobStatus", + "AutoMLJobSecondaryStatus" + ], + "members":{ + "AutoMLJobName":{"shape":"AutoMLJobName"}, + "AutoMLJobArn":{"shape":"AutoMLJobArn"}, + "AutoMLJobInputDataConfig":{"shape":"AutoMLJobInputDataConfig"}, + "OutputDataConfig":{"shape":"AutoMLOutputDataConfig"}, + "RoleArn":{"shape":"RoleArn"}, + "AutoMLJobObjective":{"shape":"AutoMLJobObjective"}, + "AutoMLProblemTypeConfig":{"shape":"AutoMLProblemTypeConfig"}, + "CreationTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "FailureReason":{"shape":"AutoMLFailureReason"}, + "PartialFailureReasons":{"shape":"AutoMLPartialFailureReasons"}, + "BestCandidate":{"shape":"AutoMLCandidate"}, + "AutoMLJobStatus":{"shape":"AutoMLJobStatus"}, + "AutoMLJobSecondaryStatus":{"shape":"AutoMLJobSecondaryStatus"}, + "ModelDeployConfig":{"shape":"ModelDeployConfig"}, + "ModelDeployResult":{"shape":"ModelDeployResult"}, + "DataSplitConfig":{"shape":"AutoMLDataSplitConfig"}, + "SecurityConfig":{"shape":"AutoMLSecurityConfig"} + } + }, "DescribeCodeRepositoryInput":{ "type":"structure", "required":["CodeRepositoryName"], @@ -10247,7 +10388,7 @@ "type":"string", "max":64, "min":1, - "pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}" + "pattern":"^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}" }, "FeatureGroupNameContains":{ "type":"string", @@ -11406,6 +11547,12 @@ "min":1, "pattern":".*" }, + "ImageClassificationJobConfig":{ + "type":"structure", + "members":{ + "CompletionCriteria":{"shape":"AutoMLJobCompletionCriteria"} + } + }, "ImageConfig":{ "type":"structure", "required":["RepositoryAccessMode"], @@ -18755,6 +18902,11 @@ "imx8mplus" ] }, + "TargetLabelColumn":{ + "type":"string", + "max":256, + "min":1 + }, "TargetObjectiveMetricValue":{"type":"float"}, "TargetPlatform":{ "type":"structure", @@ -18876,6 +19028,14 @@ "max":3600, "min":0 }, + "TextClassificationJobConfig":{ + "type":"structure", + "members":{ + "CompletionCriteria":{"shape":"AutoMLJobCompletionCriteria"}, + "ContentColumn":{"shape":"ContentColumn"}, + "TargetLabelColumn":{"shape":"TargetLabelColumn"} + } + }, "ThingName":{ "type":"string", "max":128, diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json index 9b1bbfa79c1..d27ab4687e4 100644 --- a/models/apis/sagemaker/2017-07-24/docs-2.json +++ b/models/apis/sagemaker/2017-07-24/docs-2.json @@ -12,6 +12,7 @@ "CreateAppImageConfig": "Creates a configuration for running a SageMaker image as a KernelGateway app. The configuration specifies the Amazon Elastic File System (EFS) storage volume on the image, and a list of the kernels in the image.
", "CreateArtifact": "Creates an artifact. An artifact is a lineage tracking entity that represents a URI addressable object or data. Some examples are the S3 URI of a dataset and the ECR registry path of an image. For more information, see Amazon SageMaker ML Lineage Tracking.
", "CreateAutoMLJob": "Creates an Autopilot job.
Find the best-performing model after you run an Autopilot job by calling .
For information about how to use Autopilot, see Automate Model Development with Amazon SageMaker Autopilot.
", + "CreateAutoMLJobV2": "Creates an Amazon SageMaker AutoML job that uses non-tabular data such as images or text for Computer Vision or Natural Language Processing problems.
Find the resulting model after you run an AutoML job V2 by calling .
To create an AutoMLJob
using tabular data, see .
This API action is callable through SageMaker Canvas only. Calling it directly from the CLI or an SDK results in an error.
Creates a Git repository as a resource in your SageMaker account. You can associate the repository with notebook instances so that you can use Git source control for the notebooks you create. The Git repository is a resource in your SageMaker account, so it can be associated with more than one notebook instance, and it persists independently from the lifecycle of any notebook instances it is associated with.
The repository can be hosted either in Amazon Web Services CodeCommit or in any other Git repository.
", "CreateCompilationJob": "Starts a model compilation job. After the model has been compiled, Amazon SageMaker saves the resulting model artifacts to an Amazon Simple Storage Service (Amazon S3) bucket that you specify.
If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts with Amazon Web Services IoT Greengrass. In that case, deploy them as an ML resource.
In the request body, you provide the following:
A name for the compilation job
Information about the input model artifacts
The output location for the compiled model and the device (target) that the model runs on
The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the model compilation job.
You can also provide a Tag
to track the model compilation job's resource use and costs. The response body contains the CompilationJobArn
for the compiled job.
To stop a model compilation job, use StopCompilationJob. To get information about a particular model compilation job, use DescribeCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.
", "CreateContext": "Creates a context. A context is a lineage tracking entity that represents a logical grouping of other tracking or experiment entities. Some examples are an endpoint and a model package. For more information, see Amazon SageMaker ML Lineage Tracking.
", @@ -111,6 +112,7 @@ "DescribeAppImageConfig": "Describes an AppImageConfig.
", "DescribeArtifact": "Describes an artifact.
", "DescribeAutoMLJob": "Returns information about an Amazon SageMaker AutoML job.
", + "DescribeAutoMLJobV2": "Returns information about an Amazon SageMaker AutoML V2 job.
This API action is callable through SageMaker Canvas only. Calling it directly from the CLI or an SDK results in an error.
Gets details about the specified Git repository.
", "DescribeCompilationJob": "Returns information about a model compilation job.
To create a model compilation job, use CreateCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.
", "DescribeContext": "Describes a context.
", @@ -909,7 +911,8 @@ "base": "Information about a candidate produced by an AutoML training job, including its status, steps, and other properties.
", "refs": { "AutoMLCandidates$member": null, - "DescribeAutoMLJobResponse$BestCandidate": "The best model candidate selected by SageMaker Autopilot using both the best objective metric and lowest InferenceLatency for an experiment.
" + "DescribeAutoMLJobResponse$BestCandidate": "The best model candidate selected by SageMaker Autopilot using both the best objective metric and lowest InferenceLatency for an experiment.
", + "DescribeAutoMLJobV2Response$BestCandidate": "Information about the candidate produced by an AutoML training job V2, including its status, steps, and other properties.
" } }, "AutoMLCandidateGenerationConfig": { @@ -939,7 +942,8 @@ "AutoMLChannelType": { "base": null, "refs": { - "AutoMLChannel$ChannelType": "The channel type (optional) is an enum
string. The default value is training
. Channels for training and validation must share the same ContentType
and TargetAttributeName
. For information on specifying training and validation channel types, see How to specify training and validation datasets
.
The channel type (optional) is an enum
string. The default value is training
. Channels for training and validation must share the same ContentType
and TargetAttributeName
. For information on specifying training and validation channel types, see How to specify training and validation datasets
.
The type of channel. Defines whether the data are used for training or validation. The default value is training
. Channels for training
and validation
must share the same ContentType
Information about the inference container definitions.
" + "AutoMLCandidate$InferenceContainers": "Information about the recommended inference container definitions.
", + "AutoMLInferenceContainerDefinitions$value": "Information about the recommended inference container definitions.
" } }, "AutoMLDataSource": { "base": "The data source for the Autopilot job.
", "refs": { - "AutoMLChannel$DataSource": "The data source for an AutoML channel.
" + "AutoMLChannel$DataSource": "The data source for an AutoML channel.
", + "AutoMLJobChannel$DataSource": "The data source for an AutoML channel.
" } }, "AutoMLDataSplitConfig": { - "base": "This structure specifies how to split the data into train and validation datasets. The validation and training datasets must contain the same headers. The validation dataset must be less than 2 GB in size.
", + "base": "This structure specifies how to split the data into train and validation datasets.
If you are using the V1 API (for example CreateAutoMLJob
) or the V2 API for Natural Language Processing problems (for example CreateAutoMLJobV2
with a TextClassificationJobConfig
problem type), the validation and training datasets must contain the same headers. Also, for V1 API jobs, the validation dataset must be less than 2 GB in size.
The configuration for splitting the input training dataset.
Type: AutoMLDataSplitConfig
" + "AutoMLJobConfig$DataSplitConfig": "The configuration for splitting the input training dataset.
Type: AutoMLDataSplitConfig
", + "CreateAutoMLJobV2Request$DataSplitConfig": "This structure specifies how to split the data into train and validation datasets.
If you are using the V1 API (for example CreateAutoMLJob
) or the V2 API for Natural Language Processing problems (for example CreateAutoMLJobV2
with a TextClassificationJobConfig
problem type), the validation and training datasets must contain the same headers. Also, for V1 API jobs, the validation dataset must be less than 2 GB in size.
Returns the configuration settings of how the data are split into train and validation datasets.
" } }, "AutoMLFailureReason": { @@ -972,7 +980,14 @@ "AutoMLCandidate$FailureReason": "The failure reason.
", "AutoMLJobSummary$FailureReason": "The failure reason of an AutoML job.
", "AutoMLPartialFailureReason$PartialFailureMessage": "The message containing the reason for a partial failure of an AutoML job.
", - "DescribeAutoMLJobResponse$FailureReason": "Returns the failure reason for an AutoML job, when applicable.
" + "DescribeAutoMLJobResponse$FailureReason": "Returns the failure reason for an AutoML job, when applicable.
", + "DescribeAutoMLJobV2Response$FailureReason": "Returns the reason for the failure of the AutoML V2 job, when applicable.
" + } + }, + "AutoMLInferenceContainerDefinitions": { + "base": "The mapping of all supported processing unit (CPU, GPU, etc...) to inference container definitions for the candidate. This field is populated for the V2 API only (for example, for jobs created by calling CreateAutoMLJobV2
).
The mapping of all supported processing unit (CPU, GPU, etc...) to inference container definitions for the candidate. This field is populated for the V2 API only (for example, for jobs created by calling CreateAutoMLJobV2
).
The Amazon Resource Name (ARN) of the AutoML job.
", "AutoMLJobSummary$AutoMLJobArn": "The ARN of the AutoML job.
", "CreateAutoMLJobResponse$AutoMLJobArn": "The unique ARN assigned to the AutoML job when it is created.
", + "CreateAutoMLJobV2Response$AutoMLJobArn": "The unique ARN assigned to the AutoMLJob when it is created.
", "DescribeAutoMLJobResponse$AutoMLJobArn": "Returns the ARN of the AutoML job.
", + "DescribeAutoMLJobV2Response$AutoMLJobArn": "Returns the Amazon Resource Name (ARN) of the AutoML V2 job.
", "DescribeProcessingJobResponse$AutoMLJobArn": "The ARN of an AutoML job associated with this processing job.
", "DescribeTrainingJobResponse$AutoMLJobArn": "The Amazon Resource Name (ARN) of an AutoML job.
", "DescribeTransformJobResponse$AutoMLJobArn": "The Amazon Resource Name (ARN) of the AutoML transform job.
", @@ -1003,11 +1020,19 @@ "DescribeAutoMLJobResponse$AutoMLJobArtifacts": "Returns information on the job's artifacts found in AutoMLJobArtifacts
.
A channel is a named input source that training algorithms can consume. This channel is used for the non tabular training data of an AutoML job using the V2 API. For tabular training data, see . For more information, see .
", + "refs": { + "AutoMLJobInputDataConfig$member": null + } + }, "AutoMLJobCompletionCriteria": { "base": "How long a job is allowed to run, or how many candidates a job is allowed to generate.
", "refs": { "AutoMLJobConfig$CompletionCriteria": "How long an AutoML job is allowed to run, or how many candidates a job is allowed to generate.
", - "ResolvedAttributes$CompletionCriteria": null + "ImageClassificationJobConfig$CompletionCriteria": "How long a job is allowed to run, or how many candidates a job is allowed to generate.
", + "ResolvedAttributes$CompletionCriteria": null, + "TextClassificationJobConfig$CompletionCriteria": "How long a job is allowed to run, or how many candidates a job is allowed to generate.
" } }, "AutoMLJobConfig": { @@ -1017,22 +1042,34 @@ "DescribeAutoMLJobResponse$AutoMLJobConfig": "Returns the configuration for the AutoML job.
" } }, + "AutoMLJobInputDataConfig": { + "base": null, + "refs": { + "CreateAutoMLJobV2Request$AutoMLJobInputDataConfig": "An array of channel objects describing the input data and their location. Each channel is a named input source. Similar to InputDataConfig supported by CreateAutoMLJob
. The supported formats depend on the problem type:
ImageClassification: S3Prefix, ManifestFile
, AugmentedManifestFile
TextClassification: S3Prefix
Returns an array of channel objects describing the input data and their location.
" + } + }, "AutoMLJobName": { "base": null, "refs": { "AutoMLJobSummary$AutoMLJobName": "The name of the AutoML job you are requesting.
", "CreateAutoMLJobRequest$AutoMLJobName": "Identifies an Autopilot job. The name must be unique to your account and is case insensitive.
", + "CreateAutoMLJobV2Request$AutoMLJobName": "Identifies an Autopilot job. The name must be unique to your account and is case insensitive.
", "DescribeAutoMLJobRequest$AutoMLJobName": "Requests information about an AutoML job using its unique name.
", "DescribeAutoMLJobResponse$AutoMLJobName": "Returns the name of the AutoML job.
", + "DescribeAutoMLJobV2Request$AutoMLJobName": "Requests information about an AutoML V2 job using its unique name.
", + "DescribeAutoMLJobV2Response$AutoMLJobName": "Returns the name of the AutoML V2 job.
", "ListCandidatesForAutoMLJobRequest$AutoMLJobName": "List the candidates created for the job by providing the job's name.
", "StopAutoMLJobRequest$AutoMLJobName": "The name of the object you are requesting.
" } }, "AutoMLJobObjective": { - "base": "Specifies a metric to minimize or maximize as the objective of a job.
", + "base": "Specifies a metric to minimize or maximize as the objective of a job. V2 API jobs (for example jobs created by calling CreateAutoMLJobV2
), support Accuracy
only.
Defines the objective metric used to measure the predictive quality of an AutoML job. You provide an AutoMLJobObjective$MetricName and Autopilot infers whether to minimize or maximize it.
", + "CreateAutoMLJobRequest$AutoMLJobObjective": "Defines the objective metric used to measure the predictive quality of an AutoML job. You provide an AutoMLJobObjective$MetricName and Autopilot infers whether to minimize or maximize it. For , only Accuracy
is supported.
Specifies a metric to minimize or maximize as the objective of a job. For , only Accuracy
is supported.
Returns the job's objective.
", + "DescribeAutoMLJobV2Response$AutoMLJobObjective": "Returns the job's objective.
", "ResolvedAttributes$AutoMLJobObjective": null } }, @@ -1046,7 +1083,8 @@ "base": null, "refs": { "AutoMLJobSummary$AutoMLJobSecondaryStatus": "The secondary status of the AutoML job.
", - "DescribeAutoMLJobResponse$AutoMLJobSecondaryStatus": "Returns the secondary status of the AutoML job.
" + "DescribeAutoMLJobResponse$AutoMLJobSecondaryStatus": "Returns the secondary status of the AutoML job.
", + "DescribeAutoMLJobV2Response$AutoMLJobSecondaryStatus": "Returns the secondary status of the AutoML V2 job.
" } }, "AutoMLJobStatus": { @@ -1054,6 +1092,7 @@ "refs": { "AutoMLJobSummary$AutoMLJobStatus": "The status of the AutoML job.
", "DescribeAutoMLJobResponse$AutoMLJobStatus": "Returns the status of the AutoML job.
", + "DescribeAutoMLJobV2Response$AutoMLJobStatus": "Returns the status of the AutoML V2 job.
", "ListAutoMLJobsRequest$StatusEquals": "Request a list of jobs, using a filter for status.
" } }, @@ -1113,7 +1152,9 @@ "base": "The output data configuration.
", "refs": { "CreateAutoMLJobRequest$OutputDataConfig": "Provides information about encryption and the Amazon S3 output path needed to store artifacts from an AutoML job. Format(s) supported: CSV.
", - "DescribeAutoMLJobResponse$OutputDataConfig": "Returns the job's output data config.
" + "CreateAutoMLJobV2Request$OutputDataConfig": "Provides information about encryption and the Amazon S3 output path needed to store artifacts from an AutoML job.
", + "DescribeAutoMLJobResponse$OutputDataConfig": "Returns the job's output data config.
", + "DescribeAutoMLJobV2Response$OutputDataConfig": "Returns the job's output data config.
" } }, "AutoMLPartialFailureReason": { @@ -1126,11 +1167,25 @@ "base": null, "refs": { "AutoMLJobSummary$PartialFailureReasons": "The list of reasons for partial failures within an AutoML job.
", - "DescribeAutoMLJobResponse$PartialFailureReasons": "Returns a list of reasons for partial failures within an AutoML job.
" + "DescribeAutoMLJobResponse$PartialFailureReasons": "Returns a list of reasons for partial failures within an AutoML job.
", + "DescribeAutoMLJobV2Response$PartialFailureReasons": "Returns a list of reasons for partial failures within an AutoML V2 job.
" + } + }, + "AutoMLProblemTypeConfig": { + "base": "A collection of settings specific to the problem type used to configure an AutoML job using the V2 API. There must be one and only one config of the following type.
", + "refs": { + "CreateAutoMLJobV2Request$AutoMLProblemTypeConfig": "Defines the configuration settings of one of the supported problem types.
", + "DescribeAutoMLJobV2Response$AutoMLProblemTypeConfig": "Returns the configuration settings of the problem type set for the AutoML V2 job.
" + } + }, + "AutoMLProcessingUnit": { + "base": null, + "refs": { + "AutoMLInferenceContainerDefinitions$key": "Processing unit for an inference container. Currently Autopilot only supports CPU
or GPU
.
The Amazon S3 data source.
", + "base": "Describes the Amazon S3 data source.
", "refs": { "AutoMLDataSource$S3DataSource": "The Amazon S3 location of the input data.
" } @@ -1138,13 +1193,15 @@ "AutoMLS3DataType": { "base": null, "refs": { - "AutoMLS3DataSource$S3DataType": "The data type.
A ManifestFile should have the format shown below:
[ {\"prefix\": \"s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/\"},
\"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1\",
\"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2\",
... \"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N\" ]
An S3Prefix should have the following format:
s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE
The data type.
If you choose S3Prefix
, S3Uri
identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.
The S3Prefix
should have the following format:
s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE
If you choose ManifestFile
, S3Uri
identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.
A ManifestFile
should have the format shown below:
[ {\"prefix\": \"s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/\"},
\"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1\",
\"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2\",
... \"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N\" ]
If you choose AugmentedManifestFile
, S3Uri
identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile
is available for V2 API jobs only (for example, for jobs created by calling CreateAutoMLJobV2
).
Here is a minimal, single-record example of an AugmentedManifestFile
:
{\"source-ref\": \"s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg\",
\"label-metadata\": {\"class-name\": \"cat\"
}
For more information on AugmentedManifestFile
, see Provide Dataset Metadata to Training Jobs with an Augmented Manifest File.
Security options.
", "refs": { - "AutoMLJobConfig$SecurityConfig": "The security configuration for traffic encryption or Amazon VPC settings.
" + "AutoMLJobConfig$SecurityConfig": "The security configuration for traffic encryption or Amazon VPC settings.
", + "CreateAutoMLJobV2Request$SecurityConfig": "The security configuration for traffic encryption or Amazon VPC settings.
", + "DescribeAutoMLJobV2Response$SecurityConfig": "Returns the security configuration for traffic encryption or Amazon VPC settings.
" } }, "AutoMLSortBy": { @@ -1908,6 +1965,7 @@ "base": null, "refs": { "AutoMLChannel$CompressionType": "You can use Gzip
or None
. The default value is None
.
The allowed compression types depend on the input format. We allow the compression type Gzip
for S3Prefix
inputs only. For all other inputs, the compression type should be None
. If no compression type is provided, we default to None
.
If training data is compressed, the compression type. The default value is None
. CompressionType
is used only in Pipe input mode. In File mode, leave this field unset or set it to None.
If your transform data is compressed, specify the compression type. Amazon SageMaker automatically decompresses the data for the transform job accordingly. The default value is None
.
Declares that your content is free of personally identifiable information or adult content. SageMaker may restrict the Amazon Mechanical Turk workers that can view your task based on this information.
" } }, + "ContentColumn": { + "base": null, + "refs": { + "TextClassificationJobConfig$ContentColumn": "The name of the column used to provide the sentences to be classified. It should not be the same as the target column.
" + } + }, "ContentDigest": { "base": null, "refs": { @@ -2046,6 +2110,7 @@ "base": null, "refs": { "AutoMLChannel$ContentType": "The content type of the data from the input source. You can use text/csv;header=present
or x-application/vnd.amazon+parquet
. The default value is text/csv;header=present
.
The content type of the data from the input source. The following are the allowed content types for different problems:
ImageClassification: image/png
, image/jpeg
, image/*
TextClassification: text/csv;header=present
The MIME type of the data.
", "ContentTypes$member": null, "FileSource$ContentType": "The type of content stored in the file source.
", @@ -2175,6 +2240,16 @@ "refs": { } }, + "CreateAutoMLJobV2Request": { + "base": null, + "refs": { + } + }, + "CreateAutoMLJobV2Response": { + "base": null, + "refs": { + } + }, "CreateCodeRepositoryInput": { "base": null, "refs": { @@ -3312,6 +3387,16 @@ "refs": { } }, + "DescribeAutoMLJobV2Request": { + "base": null, + "refs": { + } + }, + "DescribeAutoMLJobV2Response": { + "base": null, + "refs": { + } + }, "DescribeCodeRepositoryInput": { "base": null, "refs": { @@ -6148,6 +6233,12 @@ "DescribeImageVersionResponse$BaseImage": "The registry path of the container image on which this image version is based.
" } }, + "ImageClassificationJobConfig": { + "base": "Stores the configuration information for the image classification problem of an AutoML job using the V2 API.
", + "refs": { + "AutoMLProblemTypeConfig$ImageClassificationJobConfig": "Settings used to configure an AutoML job using the V2 API for the image classification problem type.
" + } + }, "ImageConfig": { "base": "Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC).
", "refs": { @@ -6799,7 +6890,7 @@ "ModelCardSecurityConfig$KmsKeyId": "A Key Management Service key ID to use for encrypting a model card.
", "MonitoringClusterConfig$VolumeKmsKeyId": "The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.
", "MonitoringOutputConfig$KmsKeyId": "The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
", - "OnlineStoreSecurityConfig$KmsKeyId": "The Amazon Web Services Key Management Service (KMS) key ARN that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption.
The caller (either IAM user or IAM role) of CreateFeatureGroup
must have below permissions to the OnlineStore
KmsKeyId
:
\"kms:Encrypt\"
\"kms:Decrypt\"
\"kms:DescribeKey\"
\"kms:CreateGrant\"
\"kms:RetireGrant\"
\"kms:ReEncryptFrom\"
\"kms:ReEncryptTo\"
\"kms:GenerateDataKey\"
\"kms:ListAliases\"
\"kms:ListGrants\"
\"kms:RevokeGrant\"
The caller (either user or IAM role) to all DataPlane operations (PutRecord
, GetRecord
, DeleteRecord
) must have the following permissions to the KmsKeyId
:
\"kms:Decrypt\"
The Amazon Web Services Key Management Service (KMS) key ARN that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption.
The caller (either user or IAM role) of CreateFeatureGroup
must have below permissions to the OnlineStore
KmsKeyId
:
\"kms:Encrypt\"
\"kms:Decrypt\"
\"kms:DescribeKey\"
\"kms:CreateGrant\"
\"kms:RetireGrant\"
\"kms:ReEncryptFrom\"
\"kms:ReEncryptTo\"
\"kms:GenerateDataKey\"
\"kms:ListAliases\"
\"kms:ListGrants\"
\"kms:RevokeGrant\"
The caller (either user or IAM role) to all DataPlane operations (PutRecord
, GetRecord
, DeleteRecord
) must have the following permissions to the KmsKeyId
:
\"kms:Decrypt\"
The Amazon Web Services Key Management Service key (Amazon Web Services KMS) that Amazon SageMaker uses to encrypt your output models with Amazon S3 server-side encryption after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.
The KmsKeyId can be any of the following formats:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias name ARN: arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId
can be any of the following formats:
// KMS Key ID
\"1234abcd-12ab-34cd-56ef-1234567890ab\"
// Amazon Resource Name (ARN) of a KMS Key
\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"
// KMS Key Alias
\"alias/ExampleAlias\"
// Amazon Resource Name (ARN) of a KMS Key Alias
\"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\"
If you use a KMS key ID or an alias of your KMS key, the SageMaker execution role must include permissions to call kms:Encrypt
. If you don't provide a KMS key ID, SageMaker uses the default KMS key for Amazon S3 for your role's account. SageMaker uses server-side encryption with KMS-managed keys for OutputDataConfig
. If you use a bucket policy with an s3:PutObject
permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption
to \"aws:kms\"
. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.
The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob
, CreateTransformJob
, or CreateHyperParameterTuningJob
requests. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.
The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the processing job.
Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a VolumeKmsKeyId
when using an instance type with local storage.
For a list of instance types that support local instance storage, see Instance Store Volumes.
For more information about local instance storage encryption, see SSD Instance Store Volumes.
The maximum runtime, in seconds, an AutoML job has to complete.
If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended gracefully. The AutoML job identifies the best model whose training was completed and marks it as the best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, are not completed.
" + "AutoMLJobCompletionCriteria$MaxAutoMLJobRuntimeInSeconds": "The maximum runtime, in seconds, an AutoML job has to complete.
If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended gracefully. The AutoML job identifies the best model whose training was completed and marks it as the best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, are not completed.
" } }, "MaxCandidates": { "base": null, "refs": { - "AutoMLJobCompletionCriteria$MaxCandidates": "The maximum number of times a training job is allowed to run.
" + "AutoMLJobCompletionCriteria$MaxCandidates": "The maximum number of times a training job is allowed to run.
For V2 jobs (jobs created by calling CreateAutoMLJobV2
), the supported value is 1.
The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as part of a hyperparameter tuning job. For more information, see the used by the action.
" + "AutoMLJobCompletionCriteria$MaxRuntimePerTrainingJobInSeconds": "The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as part of a hyperparameter tuning job. For more information, see the used by the action.
For V2 jobs (jobs created by calling CreateAutoMLJobV2
), this field controls the runtime of the job candidate.
Specifies how to generate the endpoint name for an automatic one-click Autopilot model deployment.
", "refs": { "CreateAutoMLJobRequest$ModelDeployConfig": "Specifies how to generate the endpoint name for an automatic one-click Autopilot model deployment.
", - "DescribeAutoMLJobResponse$ModelDeployConfig": "Indicates whether the model was deployed automatically to an endpoint and the name of that endpoint if deployed automatically.
" + "CreateAutoMLJobV2Request$ModelDeployConfig": "Specifies how to generate the endpoint name for an automatic one-click Autopilot model deployment.
", + "DescribeAutoMLJobResponse$ModelDeployConfig": "Indicates whether the model was deployed automatically to an endpoint and the name of that endpoint if deployed automatically.
", + "DescribeAutoMLJobV2Response$ModelDeployConfig": "Indicates whether the model was deployed automatically to an endpoint and the name of that endpoint if deployed automatically.
" } }, "ModelDeployResult": { "base": "Provides information about the endpoint of the model deployment.
", "refs": { - "DescribeAutoMLJobResponse$ModelDeployResult": "Provides information about endpoint for the model deployment.
" + "DescribeAutoMLJobResponse$ModelDeployResult": "Provides information about endpoint for the model deployment.
", + "DescribeAutoMLJobV2Response$ModelDeployResult": "Provides information about endpoint for the model deployment.
" } }, "ModelDigests": { @@ -10373,7 +10467,7 @@ "ProblemType": { "base": null, "refs": { - "CreateAutoMLJobRequest$ProblemType": "Defines the type of supervised learning available for the candidates. For more information, see Amazon SageMaker Autopilot problem types and algorithm support.
", + "CreateAutoMLJobRequest$ProblemType": "Defines the type of supervised learning problem available for the candidates. For more information, see Amazon SageMaker Autopilot problem types and algorithm support.
", "DescribeAutoMLJobResponse$ProblemType": "Returns the job's problem type.
", "ResolvedAttributes$ProblemType": "The problem type.
" } @@ -10685,7 +10779,7 @@ "ProductionVariantSSMAccess": { "base": null, "refs": { - "ProductionVariant$EnableSSMAccess": " You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoints. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and calling UpdateEndpoint
.
You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and calling UpdateEndpoint
.
The IAM roles that SageMaker uses to run the training jobs.
", "CreateAutoMLJobRequest$RoleArn": "The ARN of the role that is used to access the data.
", + "CreateAutoMLJobV2Request$RoleArn": "The ARN of the role that is used to access the data.
", "CreateCompilationJobRequest$RoleArn": "The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
During model compilation, Amazon SageMaker needs your permission to:
Read input data from an S3 bucket
Write model artifacts to an S3 bucket
Write logs to Amazon CloudWatch Logs
Publish metrics to Amazon CloudWatch
You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole
permission. For more information, see Amazon SageMaker Roles.
The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
", "CreateDeviceFleetRequest$RoleArn": "The Amazon Resource Name (ARN) that has access to Amazon Web Services Internet of Things (IoT).
", @@ -11511,6 +11606,7 @@ "CreateTrainingJobRequest$RoleArn": "The Amazon Resource Name (ARN) of an IAM role that SageMaker can assume to perform tasks on your behalf.
During model training, SageMaker needs your permission to read input data from an S3 bucket, download a Docker image that contains training code, write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant permissions for all of these tasks to an IAM role. For more information, see SageMaker Roles.
To be able to pass this role to SageMaker, the caller of this API must have the iam:PassRole
permission.
The execution role for the space.
", "DescribeAutoMLJobResponse$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that has read permission to the input data location and write permission to the output data location in Amazon S3.
", + "DescribeAutoMLJobV2Response$RoleArn": "The ARN of the Identity and Access Management role that has read permission to the input data location and write permission to the output data location in Amazon S3.
", "DescribeCompilationJobResponse$RoleArn": "The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes to perform the model compilation job.
", "DescribeDataQualityJobDefinitionResponse$RoleArn": "The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
", "DescribeDeviceFleetResponse$RoleArn": "The Amazon Resource Name (ARN) that has access to Amazon Web Services Internet of Things (IoT).
", @@ -11620,7 +11716,7 @@ "AthenaDatasetDefinition$OutputS3Uri": "The location in Amazon S3 where Athena query results are stored.
", "AutoMLCandidateGenerationConfig$FeatureSpecificationS3Uri": "A URL to the Amazon S3 data source containing selected features from the input data source to run an Autopilot job. You can input FeatureAttributeNames
(optional) in JSON format as shown below:
{ \"FeatureAttributeNames\":[\"col1\", \"col2\", ...] }
.
You can also specify the data type of the feature (optional) in the format shown below:
{ \"FeatureDataTypes\":{\"col1\":\"numeric\", \"col2\":\"categorical\" ... } }
These column keys may not include the target column.
In ensembling mode, Autopilot only supports the following data types: numeric
, categorical
, text
, and datetime
. In HPO mode, Autopilot can support numeric
, categorical
, text
, datetime
, and sequence
.
If only FeatureDataTypes
is provided, the column keys (col1
, col2
,..) should be a subset of the column names in the input data.
If both FeatureDataTypes
and FeatureAttributeNames
are provided, then the column keys should be a subset of the column names provided in FeatureAttributeNames
.
The key name FeatureAttributeNames
is fixed. The values listed in [\"col1\", \"col2\", ...]
are case sensitive and should be a list of strings containing unique values that are a subset of the column names in the input data. The list of columns provided must not include the target column.
The Amazon S3 output path. Must be 128 characters or less.
", - "AutoMLS3DataSource$S3Uri": "The URL to the Amazon S3 data source.
", + "AutoMLS3DataSource$S3Uri": "The URL to the Amazon S3 data source. The Uri refers to the Amazon S3 prefix or ManifestFile depending on the data type.
", "BatchDataCaptureConfig$DestinationS3Uri": "The Amazon S3 location being used to capture the data.
", "CheckpointConfig$S3Uri": "Identifies the S3 path where you want SageMaker to store checkpoints. For example, s3://bucket-name/key-name-prefix
.
The S3 URI of the file, referred to as a label category configuration file, that defines the categories used to label the data objects.
For 3D point cloud and video frame task types, you can add label category attributes and frame attributes to your label category configuration file. To learn how, see Create a Labeling Category Configuration File for 3D Point Cloud Labeling Jobs.
For named entity recognition jobs, in addition to \"labels\"
, you must provide worker instructions in the label category configuration file using the \"instructions\"
parameter: \"instructions\": {\"shortInstruction\":\"<h1>Add header</h1><p>Add Instructions</p>\", \"fullInstruction\":\"<p>Add additional instructions.</p>\"}
. For details and an example, see Create a Named Entity Recognition Labeling Job (API) .
For all other built-in task types and custom tasks, your label category configuration file must be a JSON file in the following format. Identify the labels you want to use by replacing label_1
, label_2
,...
,label_n
with your label categories.
{
\"document-version\": \"2018-11-28\",
\"labels\": [{\"label\": \"label_1\"},{\"label\": \"label_2\"},...{\"label\": \"label_n\"}]
}
Note the following about the label category configuration file:
For image classification and text classification (single and multi-label) you must specify at least two label categories. For all other task types, the minimum number of label categories required is one.
Each label category must be unique, you cannot specify duplicate label categories.
If you create a 3D point cloud or video frame adjustment or verification labeling job, you must include auditLabelAttributeName
in the label category configuration. Use this parameter to enter the LabelAttributeName
of the labeling job you want to adjust or verify annotations of.
A list of tags to apply to the AppImageConfig.
", "CreateAppRequest$Tags": "Each tag consists of a key and an optional value. Tag keys must be unique per resource.
", "CreateArtifactRequest$Tags": "A list of tags to apply to the artifact.
", - "CreateAutoMLJobRequest$Tags": "Each tag consists of a key and an optional value. Tag keys must be unique per resource.
", + "CreateAutoMLJobRequest$Tags": "An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web ServicesResources. Tag keys must be unique per resource.
", + "CreateAutoMLJobV2Request$Tags": "An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, such as by purpose, owner, or environment. For more information, see Tagging Amazon Web ServicesResources. Tag keys must be unique per resource.
", "CreateCodeRepositoryInput$Tags": "An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
", "CreateCompilationJobRequest$Tags": "An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
", "CreateContextRequest$Tags": "A list of tags to apply to the context.
", @@ -12771,6 +12868,12 @@ "OutputConfig$TargetDevice": "Identifies the target device or the machine learning instance that you want to run your model on after the compilation has completed. Alternatively, you can specify OS, architecture, and accelerator using TargetPlatform fields. It can be used instead of TargetPlatform
.
The name of the column used to provide the class labels. It should not be same as the content column.
" + } + }, "TargetObjectiveMetricValue": { "base": null, "refs": { @@ -12901,6 +13004,12 @@ "BlueGreenUpdatePolicy$TerminationWaitInSeconds": "Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
" } }, + "TextClassificationJobConfig": { + "base": "Stores the configuration information for the text classification problem of an AutoML job using the V2 API.
", + "refs": { + "AutoMLProblemTypeConfig$TextClassificationJobConfig": "Settings used to configure an AutoML job using the V2 API for the text classification problem type.
" + } + }, "ThingName": { "base": null, "refs": { @@ -12950,6 +13059,9 @@ "DescribeAutoMLJobResponse$CreationTime": "Returns the creation time of the AutoML job.
", "DescribeAutoMLJobResponse$EndTime": "Returns the end time of the AutoML job.
", "DescribeAutoMLJobResponse$LastModifiedTime": "Returns the job's last modified time.
", + "DescribeAutoMLJobV2Response$CreationTime": "Returns the creation time of the AutoML V2 job.
", + "DescribeAutoMLJobV2Response$EndTime": "Returns the end time of the AutoML V2 job.
", + "DescribeAutoMLJobV2Response$LastModifiedTime": "Returns the job's last modified time.
", "DescribeCompilationJobResponse$CompilationStartTime": "The time when the model compilation job started the CompilationJob
instances.
You are billed for the time between this timestamp and the timestamp in the DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch Logs, the start time might be later than this time. That's because it takes time to download the compilation job, which depends on the size of the compilation job container.
", "DescribeCompilationJobResponse$CompilationEndTime": "The time when the model compilation job on a compilation job instance ended. For a successful or stopped job, this is when the job's model artifacts have finished uploading. For a failed job, this is when Amazon SageMaker detected that the job failed.
", "DescribeContextResponse$CreationTime": "When the context was created.
", diff --git a/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json b/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json index 4fa88195d42..0abd6961c5d 100644 --- a/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json +++ b/models/apis/sagemaker/2017-07-24/endpoint-tests-1.json @@ -9,8 +9,8 @@ }, "params": { "Region": "af-south-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -22,8 +22,8 @@ }, "params": { "Region": "ap-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -35,8 +35,8 @@ }, "params": { "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -48,8 +48,8 @@ }, "params": { "Region": "ap-northeast-2", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -61,8 +61,8 @@ }, "params": { "Region": "ap-northeast-3", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -74,8 +74,8 @@ }, "params": { "Region": "ap-south-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -87,8 +87,8 @@ }, "params": { "Region": "ap-southeast-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -100,8 +100,8 @@ }, "params": { "Region": "ap-southeast-2", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -113,8 +113,8 @@ }, "params": { "Region": "ca-central-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -126,8 +126,8 @@ }, "params": { "Region": "eu-central-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -139,8 +139,8 @@ }, "params": { "Region": "eu-north-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -152,8 +152,8 @@ }, "params": { "Region": "eu-south-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -165,8 +165,8 @@ }, "params": { "Region": "eu-west-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -178,8 +178,8 @@ }, "params": { "Region": "eu-west-2", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -191,8 +191,8 @@ }, "params": { "Region": "eu-west-3", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -204,8 +204,8 @@ }, "params": { "Region": "me-south-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -217,8 +217,8 @@ }, "params": { "Region": "sa-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -230,8 +230,8 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -243,8 +243,8 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -256,8 +256,8 @@ }, "params": { "Region": "us-east-2", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -269,8 +269,8 @@ }, "params": { "Region": "us-east-2", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -282,8 +282,8 @@ }, "params": { "Region": "us-west-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -295,8 +295,8 @@ }, "params": { "Region": "us-west-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -308,8 +308,8 @@ }, "params": { "Region": "us-west-2", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -321,8 +321,8 @@ }, "params": { "Region": "us-west-2", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -334,8 +334,8 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true + "UseDualStack": true, + "UseFIPS": true } }, { @@ -347,8 +347,8 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true + "UseDualStack": true, + "UseFIPS": false } }, { @@ -360,8 +360,8 @@ }, "params": { "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -373,8 +373,8 @@ }, "params": { "Region": "cn-northwest-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -386,8 +386,8 @@ }, "params": { "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true + "UseDualStack": true, + "UseFIPS": true } }, { @@ -399,8 +399,8 @@ }, "params": { "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -412,8 +412,8 @@ }, "params": { "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true + "UseDualStack": true, + "UseFIPS": false } }, { @@ -425,8 +425,8 @@ }, "params": { "Region": "us-gov-west-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -438,8 +438,8 @@ }, "params": { "Region": "us-gov-west-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -451,8 +451,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true + "UseDualStack": true, + "UseFIPS": true } }, { @@ -464,8 +464,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true } }, { @@ -477,8 +477,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true + "UseDualStack": true, + "UseFIPS": false } }, { @@ -490,8 +490,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -503,8 +503,19 @@ }, "params": { "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseDualStack": true, + "UseFIPS": true } }, { @@ -516,8 +527,30 @@ }, "params": { "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseDualStack": true, + "UseFIPS": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseDualStack": true, + "UseFIPS": true } }, { @@ -529,8 +562,19 @@ }, "params": { "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseDualStack": true, + "UseFIPS": false } }, { @@ -542,8 +586,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "UseFIPS": false } }, { @@ -555,8 +599,8 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": false, "UseDualStack": false, + "UseFIPS": false, "Endpoint": "https://example.com" } }, @@ -568,8 +612,8 @@ } }, "params": { - "UseFIPS": false, "UseDualStack": false, + "UseFIPS": false, "Endpoint": "https://example.com" } }, @@ -580,8 +624,8 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": true, "UseDualStack": false, + "UseFIPS": true, "Endpoint": "https://example.com" } }, @@ -592,10 +636,16 @@ }, "params": { "Region": "us-east-1", - "UseFIPS": false, "UseDualStack": true, + "UseFIPS": false, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/servicediscovery/2017-03-14/api-2.json b/models/apis/servicediscovery/2017-03-14/api-2.json index 19286b8bb07..11a508578c8 100644 --- a/models/apis/servicediscovery/2017-03-14/api-2.json +++ b/models/apis/servicediscovery/2017-03-14/api-2.json @@ -26,8 +26,7 @@ {"shape":"NamespaceAlreadyExists"}, {"shape":"ResourceLimitExceeded"}, {"shape":"DuplicateRequest"}, - {"shape":"TooManyTagsException"}, - {"shape":"RequestLimitExceeded"} + {"shape":"TooManyTagsException"} ] }, "CreatePrivateDnsNamespace":{ @@ -43,8 +42,7 @@ {"shape":"NamespaceAlreadyExists"}, {"shape":"ResourceLimitExceeded"}, {"shape":"DuplicateRequest"}, - {"shape":"TooManyTagsException"}, - {"shape":"RequestLimitExceeded"} + {"shape":"TooManyTagsException"} ] }, "CreatePublicDnsNamespace":{ @@ -60,8 +58,7 @@ {"shape":"NamespaceAlreadyExists"}, {"shape":"ResourceLimitExceeded"}, {"shape":"DuplicateRequest"}, - {"shape":"TooManyTagsException"}, - {"shape":"RequestLimitExceeded"} + {"shape":"TooManyTagsException"} ] }, "CreateService":{ @@ -77,8 +74,7 @@ {"shape":"ResourceLimitExceeded"}, {"shape":"NamespaceNotFound"}, {"shape":"ServiceAlreadyExists"}, - {"shape":"TooManyTagsException"}, - {"shape":"RequestLimitExceeded"} + {"shape":"TooManyTagsException"} ] }, "DeleteNamespace":{ @@ -93,8 +89,7 @@ {"shape":"InvalidInput"}, {"shape":"NamespaceNotFound"}, {"shape":"ResourceInUse"}, - {"shape":"DuplicateRequest"}, - {"shape":"RequestLimitExceeded"} + {"shape":"DuplicateRequest"} ] }, "DeleteService":{ @@ -108,8 +103,7 @@ "errors":[ {"shape":"InvalidInput"}, {"shape":"ServiceNotFound"}, - {"shape":"ResourceInUse"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ResourceInUse"} ] }, "DeregisterInstance":{ @@ -125,8 +119,7 @@ {"shape":"InvalidInput"}, {"shape":"InstanceNotFound"}, {"shape":"ResourceInUse"}, - {"shape":"ServiceNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ServiceNotFound"} ] }, "DiscoverInstances":{ @@ -156,8 +149,7 @@ "errors":[ {"shape":"InstanceNotFound"}, {"shape":"InvalidInput"}, - {"shape":"ServiceNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ServiceNotFound"} ] }, "GetInstancesHealthStatus":{ @@ -171,8 +163,7 @@ "errors":[ {"shape":"InstanceNotFound"}, {"shape":"InvalidInput"}, - {"shape":"ServiceNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ServiceNotFound"} ] }, "GetNamespace":{ @@ -198,8 +189,7 @@ "output":{"shape":"GetOperationResponse"}, "errors":[ {"shape":"InvalidInput"}, - {"shape":"OperationNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"OperationNotFound"} ] }, "GetService":{ @@ -212,8 +202,7 @@ "output":{"shape":"GetServiceResponse"}, "errors":[ {"shape":"InvalidInput"}, - {"shape":"ServiceNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ServiceNotFound"} ] }, "ListInstances":{ @@ -226,8 +215,7 @@ "output":{"shape":"ListInstancesResponse"}, "errors":[ {"shape":"ServiceNotFound"}, - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "ListNamespaces":{ @@ -239,8 +227,7 @@ "input":{"shape":"ListNamespacesRequest"}, "output":{"shape":"ListNamespacesResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "ListOperations":{ @@ -252,8 +239,7 @@ "input":{"shape":"ListOperationsRequest"}, "output":{"shape":"ListOperationsResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "ListServices":{ @@ -265,8 +251,7 @@ "input":{"shape":"ListServicesRequest"}, "output":{"shape":"ListServicesResponse"}, "errors":[ - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "ListTagsForResource":{ @@ -279,8 +264,7 @@ "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "RegisterInstance":{ @@ -296,8 +280,7 @@ {"shape":"InvalidInput"}, {"shape":"ResourceInUse"}, {"shape":"ResourceLimitExceeded"}, - {"shape":"ServiceNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ServiceNotFound"} ] }, "TagResource":{ @@ -311,8 +294,7 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"TooManyTagsException"}, - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "UntagResource":{ @@ -325,8 +307,7 @@ "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "UpdateHttpNamespace":{ @@ -341,8 +322,7 @@ {"shape":"InvalidInput"}, {"shape":"NamespaceNotFound"}, {"shape":"ResourceInUse"}, - {"shape":"DuplicateRequest"}, - {"shape":"RequestLimitExceeded"} + {"shape":"DuplicateRequest"} ] }, "UpdateInstanceCustomHealthStatus":{ @@ -356,8 +336,7 @@ {"shape":"InstanceNotFound"}, {"shape":"ServiceNotFound"}, {"shape":"CustomHealthNotFound"}, - {"shape":"InvalidInput"}, - {"shape":"RequestLimitExceeded"} + {"shape":"InvalidInput"} ] }, "UpdatePrivateDnsNamespace":{ @@ -372,8 +351,7 @@ {"shape":"InvalidInput"}, {"shape":"NamespaceNotFound"}, {"shape":"ResourceInUse"}, - {"shape":"DuplicateRequest"}, - {"shape":"RequestLimitExceeded"} + {"shape":"DuplicateRequest"} ] }, "UpdatePublicDnsNamespace":{ @@ -388,8 +366,7 @@ {"shape":"InvalidInput"}, {"shape":"NamespaceNotFound"}, {"shape":"ResourceInUse"}, - {"shape":"DuplicateRequest"}, - {"shape":"RequestLimitExceeded"} + {"shape":"DuplicateRequest"} ] }, "UpdateService":{ @@ -403,8 +380,7 @@ "errors":[ {"shape":"DuplicateRequest"}, {"shape":"InvalidInput"}, - {"shape":"ServiceNotFound"}, - {"shape":"RequestLimitExceeded"} + {"shape":"ServiceNotFound"} ] } }, diff --git a/models/apis/servicediscovery/2017-03-14/endpoint-tests-1.json b/models/apis/servicediscovery/2017-03-14/endpoint-tests-1.json index c9da34e47c9..ae95943c83d 100644 --- a/models/apis/servicediscovery/2017-03-14/endpoint-tests-1.json +++ b/models/apis/servicediscovery/2017-03-14/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { - "Region": "af-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "af-south-1" } }, { @@ -21,9 +21,9 @@ } }, "params": { - "Region": "ap-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-east-1" } }, { @@ -34,9 +34,9 @@ } }, "params": { - "Region": "ap-northeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-1" } }, { @@ -47,9 +47,9 @@ } }, "params": { - "Region": "ap-northeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-2" } }, { @@ -60,9 +60,9 @@ } }, "params": { - "Region": "ap-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-south-1" } }, { @@ -73,9 +73,9 @@ } }, "params": { - "Region": "ap-southeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-1" } }, { @@ -86,9 +86,9 @@ } }, "params": { - "Region": "ap-southeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-2" } }, { @@ -99,9 +99,9 @@ } }, "params": { - "Region": "ca-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ca-central-1" } }, { @@ -112,9 +112,9 @@ } }, "params": { - "Region": "ca-central-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "ca-central-1" } }, { @@ -125,9 +125,9 @@ } }, "params": { - "Region": "eu-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-central-1" } }, { @@ -138,9 +138,9 @@ } }, "params": { - "Region": "eu-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-north-1" } }, { @@ -151,9 +151,9 @@ } }, "params": { - "Region": "eu-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-south-1" } }, { @@ -164,9 +164,9 @@ } }, "params": { - "Region": "eu-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-1" } }, { @@ -177,9 +177,9 @@ } }, "params": { - "Region": "eu-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-2" } }, { @@ -190,9 +190,9 @@ } }, "params": { - "Region": "eu-west-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-3" } }, { @@ -203,9 +203,9 @@ } }, "params": { - "Region": "me-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "me-south-1" } }, { @@ -216,9 +216,9 @@ } }, "params": { - "Region": "sa-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "sa-east-1" } }, { @@ -229,9 +229,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -242,9 +242,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -255,9 +255,9 @@ } }, "params": { - "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-2" } }, { @@ -268,9 +268,9 @@ } }, "params": { - "Region": "us-east-2", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-2" } }, { @@ -281,9 +281,9 @@ } }, "params": { - "Region": "us-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-1" } }, { @@ -294,9 +294,9 @@ } }, "params": { - "Region": "us-west-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-west-1" } }, { @@ -307,9 +307,9 @@ } }, "params": { - "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-2" } }, { @@ -320,9 +320,9 @@ } }, "params": { - "Region": "us-west-2", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-west-2" } }, { @@ -333,9 +333,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -346,9 +346,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -359,9 +359,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -372,9 +372,9 @@ } }, "params": { - "Region": "cn-northwest-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-northwest-1" } }, { @@ -385,9 +385,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -398,9 +398,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -411,9 +411,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -424,9 +424,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { @@ -437,9 +437,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -450,9 +450,9 @@ } }, "params": { - "Region": "us-gov-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-west-1" } }, { @@ -463,9 +463,9 @@ } }, "params": { - "Region": "us-gov-west-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-west-1" } }, { @@ -476,9 +476,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -489,9 +489,20 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": false + "Region": "us-iso-east-1" } }, { @@ -502,9 +513,20 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-iso-east-1" } }, { @@ -515,9 +537,20 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseFIPS": true, + "UseDualStack": true, + "Region": "us-isob-east-1" } }, { @@ -528,9 +561,20 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseFIPS": false, + "UseDualStack": true, + "Region": "us-isob-east-1" } }, { @@ -541,9 +585,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-isob-east-1" } }, { @@ -554,9 +598,9 @@ } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -568,8 +612,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -579,9 +623,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -591,11 +635,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/textract/2018-06-27/api-2.json b/models/apis/textract/2018-06-27/api-2.json index b49010be82c..45eec36ec62 100644 --- a/models/apis/textract/2018-06-27/api-2.json +++ b/models/apis/textract/2018-06-27/api-2.json @@ -392,7 +392,9 @@ "TITLE", "QUERY", "QUERY_RESULT", - "SIGNATURE" + "SIGNATURE", + "TABLE_TITLE", + "TABLE_FOOTER" ] }, "BoundingBox":{ @@ -496,7 +498,13 @@ "enum":[ "KEY", "VALUE", - "COLUMN_HEADER" + "COLUMN_HEADER", + "TABLE_TITLE", + "TABLE_FOOTER", + "TABLE_SECTION_TITLE", + "TABLE_SUMMARY", + "STRUCTURED_TABLE", + "SEMI_STRUCTURED_TABLE" ] }, "EntityTypes":{ @@ -1085,7 +1093,10 @@ "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", - "ANSWER" + "ANSWER", + "TABLE", + "TABLE_TITLE", + "TABLE_FOOTER" ] }, "RoleArn":{ diff --git a/models/apis/textract/2018-06-27/docs-2.json b/models/apis/textract/2018-06-27/docs-2.json index 2af27d0636f..360c97f7eb1 100644 --- a/models/apis/textract/2018-06-27/docs-2.json +++ b/models/apis/textract/2018-06-27/docs-2.json @@ -4,7 +4,7 @@ "operations": { "AnalyzeDocument": "Analyzes an input document for relationships between detected items.
The types of information returned are as follows:
Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET
: a KEY Block
object and a VALUE Block
object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.
Table and table cell data. A TABLE Block
object contains information about a detected table. A CELL Block
object is returned for each cell in a table.
Lines and words of text. A LINE Block
object contains one or more WORD Block
objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of FeatureTypes
).
Signatures. A SIGNATURE Block
object contains the location information of a signature in a document. If used in conjunction with forms or tables, a signature can be given a Key-Value pairing or be detected in the cell of a table.
Query. A QUERY Block object contains the query text, alias and link to the associated Query results block object.
Query Result. A QUERY_RESULT Block object contains the answer to the query and an ID that connects it to the query asked. This Block also contains a confidence score.
Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block
object contains information about a selection element, including the selection status.
You can choose which type of analysis to perform by specifying the FeatureTypes
list.
The output is returned in a list of Block
objects.
AnalyzeDocument
is a synchronous operation. To analyze documents asynchronously, use StartDocumentAnalysis.
For more information, see Document Text Analysis.
", "AnalyzeExpense": " AnalyzeExpense
synchronously analyzes an input document for financially related relationships between text.
Information is returned as ExpenseDocuments
and seperated as follows:
LineItemGroups
- A data set containing LineItems
which store information about the lines of text, such as an item purchased and its price on a receipt.
SummaryFields
- Contains all other information a receipt, such as header information or the vendors name.
Analyzes identity documents for relevant information. This information is extracted and returned as IdentityDocumentFields
, which records both the normalized field and value of the extracted text.Unlike other Amazon Textract operations, AnalyzeID
doesn't return any Geometry data.
Analyzes identity documents for relevant information. This information is extracted and returned as IdentityDocumentFields
, which records both the normalized field and value of the extracted text. Unlike other Amazon Textract operations, AnalyzeID
doesn't return any Geometry data.
Detects text in the input document. Amazon Textract can detect lines of text and the words that make up a line of text. The input document must be in one of the following image formats: JPEG, PNG, PDF, or TIFF. DetectDocumentText
returns the detected text in an array of Block objects.
Each document page has as an associated Block
of type PAGE. Each PAGE Block
object is the parent of LINE Block
objects that represent the lines of detected text on a page. A LINE Block
object is a parent for each word that makes up the line. Words are represented by Block
objects of type WORD.
DetectDocumentText
is a synchronous operation. To analyze documents asynchronously, use StartDocumentTextDetection.
For more information, see Document Text Detection.
", "GetDocumentAnalysis": "Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.
You start asynchronous text analysis by calling StartDocumentAnalysis, which returns a job identifier (JobId
). When the text analysis operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartDocumentAnalysis
. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED
. If so, call GetDocumentAnalysis
, and pass the job identifier (JobId
) from the initial call to StartDocumentAnalysis
.
GetDocumentAnalysis
returns an array of Block objects. The following types of information are returned:
Form data (key-value pairs). The related information is returned in two Block objects, each of type KEY_VALUE_SET
: a KEY Block
object and a VALUE Block
object. For example, Name: Ana Silva Carolina contains a key and value. Name: is the key. Ana Silva Carolina is the value.
Table and table cell data. A TABLE Block
object contains information about a detected table. A CELL Block
object is returned for each cell in a table.
Lines and words of text. A LINE Block
object contains one or more WORD Block
objects. All lines and words that are detected in the document are returned (including text that doesn't have a relationship with the value of the StartDocumentAnalysis
FeatureTypes
input parameter).
Query. A QUERY Block object contains the query text, alias and link to the associated Query results block object.
Query Results. A QUERY_RESULT Block object contains the answer to the query and an ID that connects it to the query asked. This Block also contains a confidence score.
While processing a document with queries, look out for INVALID_REQUEST_PARAMETERS
output. This indicates that either the per page query limit has been exceeded or that the operation is trying to query a page in the document which doesn’t exist.
Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables. A SELECTION_ELEMENT Block
object contains information about a selection element, including the selection status.
Use the MaxResults
parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults
, the value of NextToken
in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetDocumentAnalysis
, and populate the NextToken
request parameter with the token value that's returned from the previous call to GetDocumentAnalysis
.
For more information, see Document Text Analysis.
", "GetDocumentTextDetection": "Gets the results for an Amazon Textract asynchronous operation that detects text in a document. Amazon Textract can detect lines of text and the words that make up a line of text.
You start asynchronous text detection by calling StartDocumentTextDetection, which returns a job identifier (JobId
). When the text detection operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartDocumentTextDetection
. To get the results of the text-detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED
. If so, call GetDocumentTextDetection
, and pass the job identifier (JobId
) from the initial call to StartDocumentTextDetection
.
GetDocumentTextDetection
returns an array of Block objects.
Each document page has as an associated Block
of type PAGE. Each PAGE Block
object is the parent of LINE Block
objects that represent the lines of detected text on a page. A LINE Block
object is a parent for each word that makes up the line. Words are represented by Block
objects of type WORD.
Use the MaxResults parameter to limit the number of blocks that are returned. If there are more results than specified in MaxResults
, the value of NextToken
in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetDocumentTextDetection
, and populate the NextToken
request parameter with the token value that's returned from the previous call to GetDocumentTextDetection
.
For more information, see Document Text Detection.
", @@ -84,7 +84,7 @@ "BlockType": { "base": null, "refs": { - "Block$BlockType": "The type of text item that's recognized. In operations for text detection, the following types are returned:
PAGE - Contains a list of the LINE Block
objects that are detected on a document page.
WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page.
In text analysis operations, the following types are returned:
PAGE - Contains a list of child Block
objects that are detected on a document page.
KEY_VALUE_SET - Stores the KEY and VALUE Block
objects for linked text that's detected on a document page. Use the EntityType
field to determine if a KEY_VALUE_SET object is a KEY Block
object or a VALUE Block
object.
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page.
TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each.
CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell.
SELECTION_ELEMENT - A selection element such as an option button (radio button) or a check box that's detected on a document page. Use the value of SelectionStatus
to determine the status of the selection element.
SIGNATURE - The location and confidene score of a signature detected on a document page. Can be returned as part of a Key-Value pair or a detected cell.
QUERY - A question asked during the call of AnalyzeDocument. Contains an alias and an ID that attaches it to its answer.
QUERY_RESULT - A response to a question asked during the call of analyze document. Comes with an alias and ID for ease of locating in a response. Also contains location and confidence score.
The type of text item that's recognized. In operations for text detection, the following types are returned:
PAGE - Contains a list of the LINE Block
objects that are detected on a document page.
WORD - A word detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page.
In text analysis operations, the following types are returned:
PAGE - Contains a list of child Block
objects that are detected on a document page.
KEY_VALUE_SET - Stores the KEY and VALUE Block
objects for linked text that's detected on a document page. Use the EntityType
field to determine if a KEY_VALUE_SET object is a KEY Block
object or a VALUE Block
object.
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
LINE - A string of tab-delimited, contiguous words that are detected on a document page.
TABLE - A table that's detected on a document page. A table is grid-based information with two or more rows or columns, with a cell span of one row and one column each.
TABLE_TITLE - The title of a table. A title is typically a line of text above or below a table, or embedded as the first row of a table.
TABLE_FOOTER - The footer associated with a table. A footer is typically a line or lines of text below a table or embedded as the last row of a table.
CELL - A cell within a detected table. The cell is the parent of the block that contains the text in the cell.
MERGED_CELL - A cell in a table whose content spans more than one row or column. The Relationships
array for this cell contain data from individual cells.
SELECTION_ELEMENT - A selection element such as an option button (radio button) or a check box that's detected on a document page. Use the value of SelectionStatus
to determine the status of the selection element.
SIGNATURE - The location and confidene score of a signature detected on a document page. Can be returned as part of a Key-Value pair or a detected cell.
QUERY - A question asked during the call of AnalyzeDocument. Contains an alias and an ID that attaches it to its answer.
QUERY_RESULT - A response to a question asked during the call of analyze document. Comes with an alias and ID for ease of locating in a response. Also contains location and confidence score.
The type of entity. The following can be returned:
KEY - An identifier for a field on the document.
VALUE - The field text.
EntityTypes
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The type of entity.
The following entity types can be returned by FORMS analysis:
KEY - An identifier for a field on the document.
VALUE - The field text.
The following entity types can be returned by TABLES analysis:
COLUMN_HEADER - Identifies a cell that is a header of a column.
TABLE_TITLE - Identifies a cell that is a title within the table.
TABLE_SECTION_TITLE - Identifies a cell that is a title of a section within a table. A section title is a cell that typically spans an entire row above a section.
TABLE_FOOTER - Identifies a cell that is a footer of a table.
TABLE_SUMMARY - Identifies a summary cell of a table. A summary cell can be a row of a table or an additional, smaller table that contains summary information for another table.
STRUCTURED_TABLE - Identifies a table with column headers where the content of each row corresponds to the headers.
SEMI_STRUCTURED_TABLE - Identifies a non-structured table.
EntityTypes
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The identifier for the recognized text. The identifier is only unique for a single operation.
", - "DocumentGroup$Type": "The type of document that Amazon Textract has detected. See LINK for a list of all types returned by Textract.
", + "DocumentGroup$Type": "The type of document that Amazon Textract has detected. See Analyze Lending Response Objects for a list of all types returned by Textract.
", "IdList$member": null, "Prediction$Value": "The predicted value of a detected object.
", "UndetectedDocumentTypeList$member": null @@ -773,13 +773,13 @@ "RelationshipList": { "base": null, "refs": { - "Block$Relationships": "A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text. There aren't Relationship objects in the list for relationships that don't exist, such as when the current block has no child blocks. The list size can be the following:
0 - The block has no child blocks.
1 - The block has child blocks.
A list of relationship objects that describe how blocks are related to each other. For example, a LINE block object contains a CHILD relationship type with the WORD blocks that make up the line of text. There aren't Relationship objects in the list for relationships that don't exist, such as when the current block has no child blocks.
" } }, "RelationshipType": { "base": null, "refs": { - "Relationship$Type": "The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE
or CHILD
. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.
The type of relationship between the blocks in the IDs array and the current block. The following list describes the relationship types that can be returned.
VALUE - A list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair.
CHILD - A list of IDs that identify blocks found within the current block object. For example, WORD blocks have a CHILD relationship to the LINE block type.
MERGED_CELL - A list of IDs that identify each of the MERGED_CELL block types in a table.
ANSWER - A list that contains the ID of the QUERY_RESULT block that’s associated with the corresponding QUERY block.
TABLE - A list of IDs that identify associated TABLE block types.
TABLE_TITLE - A list that contains the ID for the TABLE_TITLE block type in a table.
TABLE_FOOTER - A list of IDs that identify the TABLE_FOOTER block types in a table.
The row in which a table cell is located. The first row position is 1. RowIndex
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The column in which a table cell appears. The first column position is 1. ColumnIndex
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The number of rows that a table cell spans. Currently this value is always 1, even if the number of rows spanned is greater than 1. RowSpan
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The number of columns that a table cell spans. Currently this value is always 1, even if the number of columns spanned is greater than 1. ColumnSpan
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The page on which a block was detected. Page
is returned by synchronous and asynchronous operations. Page values greater than 1 are only returned for multipage documents that are in PDF or TIFF format. A scanned image (JPEG/PNG) provided to an asynchronous operation, even if it contains multiple document pages, is considered a single-page document. This means that for scanned images the value of Page
is always 1. Synchronous operations operations will also return a Page
value of 1 because every input document is considered to be a single-page document.
The number of rows that a table cell spans. RowSpan
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The number of columns that a table cell spans. ColumnSpan
isn't returned by DetectDocumentText
and GetDocumentTextDetection
.
The page on which a block was detected. Page
is returned by synchronous and asynchronous operations. Page values greater than 1 are only returned for multipage documents that are in PDF or TIFF format. A scanned image (JPEG/PNG) provided to an asynchronous operation, even if it contains multiple document pages, is considered a single-page document. This means that for scanned images the value of Page
is always 1. Synchronous operations will also return a Page
value of 1 because every input document is considered to be a single-page document.
The page a detected signature was found on.
", "DocumentMetadata$Pages": "The number of pages that are detected in the document.
", "ExpenseDocument$ExpenseIndex": "Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.
", diff --git a/models/apis/textract/2018-06-27/endpoint-rule-set-1.json b/models/apis/textract/2018-06-27/endpoint-rule-set-1.json index 8a897a50351..cf0040e78ad 100644 --- a/models/apis/textract/2018-06-27/endpoint-rule-set-1.json +++ b/models/apis/textract/2018-06-27/endpoint-rule-set-1.json @@ -3,7 +3,7 @@ "parameters": { "Region": { "builtIn": "AWS::Region", - "required": true, + "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "String" }, @@ -32,13 +32,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -46,23 +45,20 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], "type": "tree", "rules": [ { @@ -71,67 +67,42 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "endpoint": { + "url": { + "ref": "Endpoint" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", + "fn": "isSet", "argv": [ { - "ref": "UseDualStack" - }, - true + "ref": "Region" + } ] } ], @@ -140,90 +111,215 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "aws.partition", "argv": [ - true, { - "fn": "getAttr", + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] }, - "supportsFIPS" + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://textract-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" } ] }, { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsDualStack" + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://textract-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" } ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://textract-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsFIPS" + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://textract.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] - } - ], - "type": "tree", - "rules": [ + }, { "conditions": [], "type": "tree", @@ -231,7 +327,7 @@ { "conditions": [], "endpoint": { - "url": "https://textract-fips.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://textract.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, @@ -240,74 +336,13 @@ ] } ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://textract.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } ] }, { "conditions": [], - "endpoint": { - "url": "https://textract.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } diff --git a/models/apis/textract/2018-06-27/endpoint-tests-1.json b/models/apis/textract/2018-06-27/endpoint-tests-1.json index 87bf32c01ad..a711008edd0 100644 --- a/models/apis/textract/2018-06-27/endpoint-tests-1.json +++ b/models/apis/textract/2018-06-27/endpoint-tests-1.json @@ -1,42 +1,16 @@ { "testCases": [ { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.ap-south-1.api.aws" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-south-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.ap-south-1.api.aws" + "url": "https://textract.ap-northeast-2.amazonaws.com" } }, "params": { - "Region": "ap-south-1", + "Region": "ap-northeast-2", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false } }, { @@ -53,68 +27,42 @@ } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.us-gov-east-1.api.aws" + "url": "https://textract.ap-southeast-1.amazonaws.com" } }, "params": { - "Region": "us-gov-east-1", + "Region": "ap-southeast-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.us-gov-east-1.amazonaws.com" + "url": "https://textract.ap-southeast-2.amazonaws.com" } }, "params": { - "Region": "us-gov-east-1", + "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.ca-central-1.api.aws" + "url": "https://textract.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false } }, { @@ -131,120 +79,107 @@ } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.ca-central-1.api.aws" + "url": "https://textract.eu-central-1.amazonaws.com" } }, "params": { - "Region": "ca-central-1", + "Region": "eu-central-1", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.ca-central-1.amazonaws.com" + "url": "https://textract.eu-west-1.amazonaws.com" } }, "params": { - "Region": "ca-central-1", + "Region": "eu-west-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.eu-central-1.api.aws" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.eu-central-1.amazonaws.com" + "url": "https://textract.eu-west-2.amazonaws.com" } }, "params": { - "Region": "eu-central-1", - "UseFIPS": true, + "Region": "eu-west-2", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.eu-central-1.api.aws" + "url": "https://textract.eu-west-3.amazonaws.com" } }, "params": { - "Region": "eu-central-1", + "Region": "eu-west-3", "UseFIPS": false, - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.eu-central-1.amazonaws.com" + "url": "https://textract.us-east-1.amazonaws.com" } }, "params": { - "Region": "eu-central-1", + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.us-west-1.api.aws" + "url": "https://textract-fips.us-east-1.amazonaws.com" } }, "params": { - "Region": "us-west-1", + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.us-west-1.amazonaws.com" + "url": "https://textract.us-east-2.amazonaws.com" } }, "params": { - "Region": "us-west-1", - "UseFIPS": true, + "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.us-west-1.api.aws" + "url": "https://textract-fips.us-east-2.amazonaws.com" } }, "params": { - "Region": "us-west-1", - "UseFIPS": false, - "UseDualStack": true + "Region": "us-east-2", + "UseFIPS": true, + "UseDualStack": false } }, { @@ -261,44 +196,18 @@ } }, { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.us-west-2.api.aws" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.us-west-2.amazonaws.com" + "url": "https://textract-fips.us-west-1.amazonaws.com" } }, "params": { - "Region": "us-west-2", + "Region": "us-west-1", "UseFIPS": true, "UseDualStack": false } }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.us-west-2.api.aws" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": false, - "UseDualStack": true - } - }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { @@ -313,252 +222,122 @@ } }, { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.eu-west-3.api.aws" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.eu-west-3.amazonaws.com" + "url": "https://textract-fips.us-west-2.amazonaws.com" } }, "params": { - "Region": "eu-west-3", + "Region": "us-west-2", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.eu-west-3.api.aws" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract.eu-west-3.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-3", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://textract-fips.eu-west-2.api.aws" + "url": "https://textract-fips.us-east-1.api.aws" } }, "params": { - "Region": "eu-west-2", + "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://textract.eu-west-2.api.aws" + "url": "https://textract.us-east-1.api.aws" } }, "params": { - "Region": "eu-west-2", + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract.eu-west-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://textract-fips.eu-west-1.api.aws" + "url": "https://textract-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "eu-west-1", + "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.eu-west-1.amazonaws.com" + "url": "https://textract-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "eu-west-1", + "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://textract.eu-west-1.api.aws" + "url": "https://textract.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "eu-west-1", + "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.eu-west-1.amazonaws.com" + "url": "https://textract.cn-north-1.amazonaws.com.cn" } }, "params": { - "Region": "eu-west-1", + "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.ap-northeast-2.api.aws" - } - }, - "params": { - "Region": "ap-northeast-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.ap-northeast-2.amazonaws.com" + "url": "https://textract.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "ap-northeast-2", + "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.us-gov-west-1.api.aws" - } - }, - "params": { - "Region": "us-gov-west-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.us-gov-west-1.amazonaws.com" + "url": "https://textract-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "Region": "us-gov-west-1", + "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, - { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.us-gov-west-1.api.aws" - } - }, - "params": { - "Region": "us-gov-west-1", - "UseFIPS": false, - "UseDualStack": true - } - }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { @@ -573,117 +352,41 @@ } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.ap-southeast-1.api.aws" - } - }, - "params": { - "Region": "ap-southeast-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.ap-southeast-1.amazonaws.com" + "url": "https://textract-fips.us-gov-west-1.amazonaws.com" } }, "params": { - "Region": "ap-southeast-1", + "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.ap-southeast-1.api.aws" - } - }, - "params": { - "Region": "ap-southeast-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract.ap-southeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-southeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.ap-southeast-2.api.aws" - } - }, - "params": { - "Region": "ap-southeast-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://textract-fips.ap-southeast-2.amazonaws.com" + "url": "https://textract-fips.us-gov-east-1.api.aws" } }, "params": { - "Region": "ap-southeast-2", + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.ap-southeast-2.api.aws" - } - }, - "params": { - "Region": "ap-southeast-2", - "UseFIPS": false, "UseDualStack": true } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://textract.ap-southeast-2.amazonaws.com" + "url": "https://textract.us-gov-east-1.api.aws" } }, "params": { - "Region": "ap-southeast-2", + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, "UseDualStack": true } }, @@ -700,17 +403,6 @@ "UseDualStack": false } }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { @@ -725,118 +417,53 @@ } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.us-east-1.api.aws" + "url": "https://textract-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", + "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://textract.us-east-1.amazonaws.com" + "url": "https://textract.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "Region": "us-east-1", + "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { - "url": "https://textract-fips.us-east-2.api.aws" - } - }, - "params": { - "Region": "us-east-2", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract-fips.us-east-2.amazonaws.com" - } - }, - "params": { - "Region": "us-east-2", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://textract.us-east-2.api.aws" - } - }, - "params": { - "Region": "us-east-2", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://textract.us-east-2.amazonaws.com" + "url": "https://example.com" } }, "params": { - "Region": "us-east-2", + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": false, + "Endpoint": "https://example.com" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { - "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index f4abea9748d..a0a4d63371a 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -1071,6 +1071,7 @@ "ap-southeast-3" : { }, "ca-central-1" : { }, "eu-central-1" : { }, + "eu-central-2" : { }, "eu-north-1" : { }, "eu-south-1" : { }, "eu-west-1" : { }, @@ -10138,6 +10139,7 @@ "ap-southeast-3" : { }, "ca-central-1" : { }, "eu-central-1" : { }, + "eu-central-2" : { }, "eu-north-1" : { }, "eu-south-1" : { }, "eu-west-1" : { }, @@ -12620,6 +12622,7 @@ "ap-southeast-3" : { }, "ca-central-1" : { }, "eu-central-1" : { }, + "eu-central-2" : { }, "eu-north-1" : { }, "eu-south-1" : { }, "eu-west-1" : { }, @@ -13624,6 +13627,7 @@ "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { @@ -20390,6 +20394,11 @@ } } }, + "iottwinmaker" : { + "endpoints" : { + "us-gov-west-1" : { } + } + }, "kafka" : { "endpoints" : { "us-gov-east-1" : { }, diff --git a/service/batch/api.go b/service/batch/api.go index 5515f5c6ca2..44eb95738e1 100644 --- a/service/batch/api.go +++ b/service/batch/api.go @@ -56,10 +56,13 @@ func (c *Batch) CancelJobRequest(input *CancelJobInput) (req *request.Request, o // CancelJob API operation for AWS Batch. // -// Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED, PENDING, -// or RUNNABLE state are canceled. Jobs that progressed to the STARTING or RUNNING -// state aren't canceled. However, the API operation still succeeds, even if -// no job is canceled. These jobs must be terminated with the TerminateJob operation. +// Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED or PENDING +// are canceled. A job inRUNNABLE remains in RUNNABLE until it reaches the head +// of the job queue. Then the job status is updated to FAILED. +// +// Jobs that progressed to the STARTING or RUNNING state aren't canceled. However, +// the API operation still succeeds, even if no job is canceled. These jobs +// must be terminated with the TerminateJob operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2968,8 +2971,17 @@ type ComputeEnvironmentDetail struct { // If the state is DISABLED, then the Batch scheduler doesn't attempt to place // jobs within the environment. Jobs in a STARTING or RUNNING state continue // to progress normally. Managed compute environments in the DISABLED state - // don't scale out. However, they scale in to minvCpus value after instances - // become idle. + // don't scale out. + // + // Compute environments in a DISABLED state may continue to incur billing charges. + // To prevent additional charges, turn off and then delete the compute environment. + // For more information, see State (https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state) + // in the Batch User Guide. + // + // When an instance is idle, the instance scales down to the minvCpus value. + // However, the instance size doesn't change. For example, consider a c5.8xlarge + // instance with a minvCpus value of 4 and a desiredvCpus value of 36. This + // instance doesn't scale down to a c5.large instance. State *string `locationName:"state" type:"string" enum:"CEState"` // The current status of the compute environment (for example, CREATING or VALID). @@ -3648,6 +3660,14 @@ type ComputeResourceUpdate struct { // Batch doesn't support changing the desired number of vCPUs of an existing // compute environment. Don't specify this parameter for compute environments // using Amazon EKS clusters. + // + // When you update the desiredvCpus setting, the value must be between the minvCpus + // and maxvCpus values. + // + // Additionally, the updated desiredvCpus value must be greater than or equal + // to the current desiredvCpus value. For more information, see Troubleshooting + // Batch (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#error-desired-vcpus-update) + // in the Batch User Guide. DesiredvCpus *int64 `locationName:"desiredvCpus" type:"integer"` // Provides information used to select Amazon Machine Images (AMIs) for EC2 @@ -4035,6 +4055,11 @@ type ContainerDetail struct { // is reserved for variables that Batch sets. Environment []*KeyValuePair `locationName:"environment" type:"list"` + // The amount of ephemeral storage to allocate for the task. This parameter + // is used to expand the total amount of ephemeral storage available, beyond + // the default amount, for tasks hosted on Fargate. + EphemeralStorage *EphemeralStorage `locationName:"ephemeralStorage" type:"structure"` + // The Amazon Resource Name (ARN) of the execution role that Batch can assume. // For more information, see Batch execution IAM role (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) // in the Batch User Guide. @@ -4217,6 +4242,12 @@ func (s *ContainerDetail) SetEnvironment(v []*KeyValuePair) *ContainerDetail { return s } +// SetEphemeralStorage sets the EphemeralStorage field's value. +func (s *ContainerDetail) SetEphemeralStorage(v *EphemeralStorage) *ContainerDetail { + s.EphemeralStorage = v + return s +} + // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *ContainerDetail) SetExecutionRoleArn(v string) *ContainerDetail { s.ExecutionRoleArn = &v @@ -4512,6 +4543,11 @@ type ContainerProperties struct { // is reserved for variables that Batch sets. Environment []*KeyValuePair `locationName:"environment" type:"list"` + // The amount of ephemeral storage to allocate for the task. This parameter + // is used to expand the total amount of ephemeral storage available, beyond + // the default amount, for tasks hosted on Fargate. + EphemeralStorage *EphemeralStorage `locationName:"ephemeralStorage" type:"structure"` + // The Amazon Resource Name (ARN) of the execution role that Batch can assume. // For jobs that run on Fargate resources, you must provide an execution role. // For more information, see Batch execution IAM role (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) @@ -4703,6 +4739,11 @@ func (s ContainerProperties) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ContainerProperties) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ContainerProperties"} + if s.EphemeralStorage != nil { + if err := s.EphemeralStorage.Validate(); err != nil { + invalidParams.AddNested("EphemeralStorage", err.(request.ErrInvalidParams)) + } + } if s.LinuxParameters != nil { if err := s.LinuxParameters.Validate(); err != nil { invalidParams.AddNested("LinuxParameters", err.(request.ErrInvalidParams)) @@ -4772,6 +4813,12 @@ func (s *ContainerProperties) SetEnvironment(v []*KeyValuePair) *ContainerProper return s } +// SetEphemeralStorage sets the EphemeralStorage field's value. +func (s *ContainerProperties) SetEphemeralStorage(v *EphemeralStorage) *ContainerProperties { + s.EphemeralStorage = v + return s +} + // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *ContainerProperties) SetExecutionRoleArn(v string) *ContainerProperties { s.ExecutionRoleArn = &v @@ -4978,8 +5025,17 @@ type CreateComputeEnvironmentInput struct { // If the state is DISABLED, then the Batch scheduler doesn't attempt to place // jobs within the environment. Jobs in a STARTING or RUNNING state continue // to progress normally. Managed compute environments in the DISABLED state - // don't scale out. However, they scale in to minvCpus value after instances - // become idle. + // don't scale out. + // + // Compute environments in a DISABLED state may continue to incur billing charges. + // To prevent additional charges, turn off and then delete the compute environment. + // For more information, see State (https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state) + // in the Batch User Guide. + // + // When an instance is idle, the instance scales down to the minvCpus value. + // However, the instance size doesn't change. For example, consider a c5.8xlarge + // instance with a minvCpus value of 4 and a desiredvCpus value of 36. This + // instance doesn't scale down to a c5.large instance. State *string `locationName:"state" type:"string" enum:"CEState"` // The tags that you apply to the compute environment to help you categorize @@ -7629,6 +7685,36 @@ func (s *EksHostPath) SetPath(v string) *EksHostPath { return s } +type EksMetadata struct { + _ struct{} `type:"structure"` + + Labels map[string]*string `locationName:"labels" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EksMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EksMetadata) GoString() string { + return s.String() +} + +// SetLabels sets the Labels field's value. +func (s *EksMetadata) SetLabels(v map[string]*string) *EksMetadata { + s.Labels = v + return s +} + // The properties for the pod. type EksPodProperties struct { _ struct{} `type:"structure"` @@ -7655,6 +7741,8 @@ type EksPodProperties struct { // in the Kubernetes documentation. HostNetwork *bool `locationName:"hostNetwork" type:"boolean"` + Metadata *EksMetadata `locationName:"metadata" type:"structure"` + // The name of the service account that's used to run the pod. For more information, // see Kubernetes service accounts (https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html) // and Configure a Kubernetes service account to assume an IAM role (https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html) @@ -7732,6 +7820,12 @@ func (s *EksPodProperties) SetHostNetwork(v bool) *EksPodProperties { return s } +// SetMetadata sets the Metadata field's value. +func (s *EksPodProperties) SetMetadata(v *EksMetadata) *EksPodProperties { + s.Metadata = v + return s +} + // SetServiceAccountName sets the ServiceAccountName field's value. func (s *EksPodProperties) SetServiceAccountName(v string) *EksPodProperties { s.ServiceAccountName = &v @@ -7860,6 +7954,8 @@ type EksPodPropertiesOverride struct { // The overrides for the container that's used on the Amazon EKS pod. Containers []*EksContainerOverride `locationName:"containers" type:"list"` + + Metadata *EksMetadata `locationName:"metadata" type:"structure"` } // String returns the string representation. @@ -7906,6 +8002,12 @@ func (s *EksPodPropertiesOverride) SetContainers(v []*EksContainerOverride) *Eks return s } +// SetMetadata sets the Metadata field's value. +func (s *EksPodPropertiesOverride) SetMetadata(v *EksMetadata) *EksPodPropertiesOverride { + s.Metadata = v + return s +} + // An object that contains the properties for the Kubernetes resources of a // job. type EksProperties struct { @@ -8185,6 +8287,56 @@ func (s *EksVolume) SetSecret(v *EksSecret) *EksVolume { return s } +// The amount of ephemeral storage to allocate for the task. This parameter +// is used to expand the total amount of ephemeral storage available, beyond +// the default amount, for tasks hosted on Fargate. +type EphemeralStorage struct { + _ struct{} `type:"structure"` + + // The total amount, in GiB, of ephemeral storage to set for the task. The minimum + // supported value is 21 GiB and the maximum supported value is 200 GiB. + // + // SizeInGiB is a required field + SizeInGiB *int64 `locationName:"sizeInGiB" type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EphemeralStorage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EphemeralStorage) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EphemeralStorage) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EphemeralStorage"} + if s.SizeInGiB == nil { + invalidParams.Add(request.NewErrParamRequired("SizeInGiB")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSizeInGiB sets the SizeInGiB field's value. +func (s *EphemeralStorage) SetSizeInGiB(v int64) *EphemeralStorage { + s.SizeInGiB = &v + return s +} + // Specifies an array of up to 5 conditions to be met, and an action to take // (RETRY or EXIT) if all conditions are met. If none of the EvaluateOnExit // conditions in a RetryStrategy match, then the job is retried. @@ -11058,7 +11210,7 @@ type ResourceRequirement struct { // // value = 8192 // - // VCPU = 1, 2, 4, or 8 + // VCPU = 1, 2, or 4 // // value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360 // @@ -11610,9 +11762,12 @@ type SubmitJobInput struct { // resources with various properties that override defaults for the job definition. EksPropertiesOverride *EksPropertiesOverride `locationName:"eksPropertiesOverride" type:"structure"` - // The job definition used by this job. This value can be one of name, name:revision, - // or the Amazon Resource Name (ARN) for the job definition. If name is specified - // without a revision then the latest active revision is used. + // The job definition used by this job. This value can be one of definition-name, + // definition-name:revision, or the Amazon Resource Name (ARN) for the job definition, + // with or without the revision (arn:aws:batch:region:account:job-definition/definition-name:revision + // , or arn:aws:batch:region:account:job-definition/definition-name ). + // + // If the revision is not specified, then the latest active revision is used. // // JobDefinition is a required field JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` @@ -12369,8 +12524,17 @@ type UpdateComputeEnvironmentInput struct { // If the state is DISABLED, then the Batch scheduler doesn't attempt to place // jobs within the environment. Jobs in a STARTING or RUNNING state continue // to progress normally. Managed compute environments in the DISABLED state - // don't scale out. However, they scale in to minvCpus value after instances - // become idle. + // don't scale out. + // + // Compute environments in a DISABLED state may continue to incur billing charges. + // To prevent additional charges, turn off and then delete the compute environment. + // For more information, see State (https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state) + // in the Batch User Guide. + // + // When an instance is idle, the instance scales down to the minvCpus value. + // However, the instance size doesn't change. For example, consider a c5.8xlarge + // instance with a minvCpus value of 4 and a desiredvCpus value of 36. This + // instance doesn't scale down to a c5.large instance. State *string `locationName:"state" type:"string" enum:"CEState"` // The maximum number of vCPUs expected to be used for an unmanaged compute diff --git a/service/chimesdkidentity/api.go b/service/chimesdkidentity/api.go index 1e1c5f8cc56..580180512fe 100644 --- a/service/chimesdkidentity/api.go +++ b/service/chimesdkidentity/api.go @@ -161,14 +161,15 @@ func (c *ChimeSDKIdentity) CreateAppInstanceAdminRequest(input *CreateAppInstanc // CreateAppInstanceAdmin API operation for Amazon Chime SDK Identity. // -// Promotes an AppInstanceUser to an AppInstanceAdmin. The promoted user can -// perform the following actions. +// Promotes an AppInstanceUser or AppInstanceBot to an AppInstanceAdmin. The +// promoted entity can perform the following actions. // // - ChannelModerator actions across all channels in the AppInstance. // // - DeleteChannelMessage actions. // -// Only an AppInstanceUser can be promoted to an AppInstanceAdmin role. +// Only an AppInstanceUser and AppInstanceBot can be promoted to an AppInstanceAdmin +// role. // // 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 @@ -226,6 +227,108 @@ func (c *ChimeSDKIdentity) CreateAppInstanceAdminWithContext(ctx aws.Context, in return out, req.Send() } +const opCreateAppInstanceBot = "CreateAppInstanceBot" + +// CreateAppInstanceBotRequest generates a "aws/request.Request" representing the +// client's request for the CreateAppInstanceBot 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 CreateAppInstanceBot for more information on using the CreateAppInstanceBot +// 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 CreateAppInstanceBotRequest method. +// req, resp := client.CreateAppInstanceBotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceBot +func (c *ChimeSDKIdentity) CreateAppInstanceBotRequest(input *CreateAppInstanceBotInput) (req *request.Request, output *CreateAppInstanceBotOutput) { + op := &request.Operation{ + Name: opCreateAppInstanceBot, + HTTPMethod: "POST", + HTTPPath: "/app-instance-bots", + } + + if input == nil { + input = &CreateAppInstanceBotInput{} + } + + output = &CreateAppInstanceBotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAppInstanceBot API operation for Amazon Chime SDK Identity. +// +// Creates a bot under an Amazon Chime AppInstance. The request consists of +// a unique Configuration and Name for that bot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Identity's +// API operation CreateAppInstanceBot for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceBot +func (c *ChimeSDKIdentity) CreateAppInstanceBot(input *CreateAppInstanceBotInput) (*CreateAppInstanceBotOutput, error) { + req, out := c.CreateAppInstanceBotRequest(input) + return out, req.Send() +} + +// CreateAppInstanceBotWithContext is the same as CreateAppInstanceBot with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAppInstanceBot 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 *ChimeSDKIdentity) CreateAppInstanceBotWithContext(ctx aws.Context, input *CreateAppInstanceBotInput, opts ...request.Option) (*CreateAppInstanceBotOutput, error) { + req, out := c.CreateAppInstanceBotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateAppInstanceUser = "CreateAppInstanceUser" // CreateAppInstanceUserRequest generates a "aws/request.Request" representing the @@ -470,8 +573,8 @@ func (c *ChimeSDKIdentity) DeleteAppInstanceAdminRequest(input *DeleteAppInstanc // DeleteAppInstanceAdmin API operation for Amazon Chime SDK Identity. // -// Demotes an AppInstanceAdmin to an AppInstanceUser. This action does not delete -// the user. +// Demotes an AppInstanceAdmin to an AppInstanceUser or AppInstanceBot. This +// action does not delete the user. // // 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 @@ -529,6 +632,108 @@ func (c *ChimeSDKIdentity) DeleteAppInstanceAdminWithContext(ctx aws.Context, in return out, req.Send() } +const opDeleteAppInstanceBot = "DeleteAppInstanceBot" + +// DeleteAppInstanceBotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppInstanceBot 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 DeleteAppInstanceBot for more information on using the DeleteAppInstanceBot +// 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 DeleteAppInstanceBotRequest method. +// req, resp := client.DeleteAppInstanceBotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceBot +func (c *ChimeSDKIdentity) DeleteAppInstanceBotRequest(input *DeleteAppInstanceBotInput) (req *request.Request, output *DeleteAppInstanceBotOutput) { + op := &request.Operation{ + Name: opDeleteAppInstanceBot, + HTTPMethod: "DELETE", + HTTPPath: "/app-instance-bots/{appInstanceBotArn}", + } + + if input == nil { + input = &DeleteAppInstanceBotInput{} + } + + output = &DeleteAppInstanceBotOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteAppInstanceBot API operation for Amazon Chime SDK Identity. +// +// Deletes an AppInstanceBot. +// +// 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 SDK Identity's +// API operation DeleteAppInstanceBot for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceBot +func (c *ChimeSDKIdentity) DeleteAppInstanceBot(input *DeleteAppInstanceBotInput) (*DeleteAppInstanceBotOutput, error) { + req, out := c.DeleteAppInstanceBotRequest(input) + return out, req.Send() +} + +// DeleteAppInstanceBotWithContext is the same as DeleteAppInstanceBot with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAppInstanceBot 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 *ChimeSDKIdentity) DeleteAppInstanceBotWithContext(ctx aws.Context, input *DeleteAppInstanceBotInput, opts ...request.Option) (*DeleteAppInstanceBotOutput, error) { + req, out := c.DeleteAppInstanceBotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteAppInstanceUser = "DeleteAppInstanceUser" // DeleteAppInstanceUserRequest generates a "aws/request.Request" representing the @@ -914,6 +1119,103 @@ func (c *ChimeSDKIdentity) DescribeAppInstanceAdminWithContext(ctx aws.Context, return out, req.Send() } +const opDescribeAppInstanceBot = "DescribeAppInstanceBot" + +// DescribeAppInstanceBotRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAppInstanceBot 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 DescribeAppInstanceBot for more information on using the DescribeAppInstanceBot +// 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 DescribeAppInstanceBotRequest method. +// req, resp := client.DescribeAppInstanceBotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceBot +func (c *ChimeSDKIdentity) DescribeAppInstanceBotRequest(input *DescribeAppInstanceBotInput) (req *request.Request, output *DescribeAppInstanceBotOutput) { + op := &request.Operation{ + Name: opDescribeAppInstanceBot, + HTTPMethod: "GET", + HTTPPath: "/app-instance-bots/{appInstanceBotArn}", + } + + if input == nil { + input = &DescribeAppInstanceBotInput{} + } + + output = &DescribeAppInstanceBotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAppInstanceBot API operation for Amazon Chime SDK Identity. +// +// The AppInstanceBot's information. +// +// 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 SDK Identity's +// API operation DescribeAppInstanceBot for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceBot +func (c *ChimeSDKIdentity) DescribeAppInstanceBot(input *DescribeAppInstanceBotInput) (*DescribeAppInstanceBotOutput, error) { + req, out := c.DescribeAppInstanceBotRequest(input) + return out, req.Send() +} + +// DescribeAppInstanceBotWithContext is the same as DescribeAppInstanceBot with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAppInstanceBot 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 *ChimeSDKIdentity) DescribeAppInstanceBotWithContext(ctx aws.Context, input *DescribeAppInstanceBotInput, opts ...request.Option) (*DescribeAppInstanceBotOutput, error) { + req, out := c.DescribeAppInstanceBotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeAppInstanceUser = "DescribeAppInstanceUser" // DescribeAppInstanceUserRequest generates a "aws/request.Request" representing the @@ -1350,36 +1652,36 @@ func (c *ChimeSDKIdentity) ListAppInstanceAdminsPagesWithContext(ctx aws.Context return p.Err() } -const opListAppInstanceUserEndpoints = "ListAppInstanceUserEndpoints" +const opListAppInstanceBots = "ListAppInstanceBots" -// ListAppInstanceUserEndpointsRequest generates a "aws/request.Request" representing the -// client's request for the ListAppInstanceUserEndpoints operation. The "output" return +// ListAppInstanceBotsRequest generates a "aws/request.Request" representing the +// client's request for the ListAppInstanceBots 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 ListAppInstanceUserEndpoints for more information on using the ListAppInstanceUserEndpoints +// See ListAppInstanceBots for more information on using the ListAppInstanceBots // 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 ListAppInstanceUserEndpointsRequest method. -// req, resp := client.ListAppInstanceUserEndpointsRequest(params) +// // Example sending a request using the ListAppInstanceBotsRequest method. +// req, resp := client.ListAppInstanceBotsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUserEndpoints -func (c *ChimeSDKIdentity) ListAppInstanceUserEndpointsRequest(input *ListAppInstanceUserEndpointsInput) (req *request.Request, output *ListAppInstanceUserEndpointsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceBots +func (c *ChimeSDKIdentity) ListAppInstanceBotsRequest(input *ListAppInstanceBotsInput) (req *request.Request, output *ListAppInstanceBotsOutput) { op := &request.Operation{ - Name: opListAppInstanceUserEndpoints, + Name: opListAppInstanceBots, HTTPMethod: "GET", - HTTPPath: "/app-instance-users/{appInstanceUserArn}/endpoints", + HTTPPath: "/app-instance-bots", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -1389,24 +1691,24 @@ func (c *ChimeSDKIdentity) ListAppInstanceUserEndpointsRequest(input *ListAppIns } if input == nil { - input = &ListAppInstanceUserEndpointsInput{} + input = &ListAppInstanceBotsInput{} } - output = &ListAppInstanceUserEndpointsOutput{} + output = &ListAppInstanceBotsOutput{} req = c.newRequest(op, input, output) return } -// ListAppInstanceUserEndpoints API operation for Amazon Chime SDK Identity. +// ListAppInstanceBots API operation for Amazon Chime SDK Identity. // -// Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. +// Lists all AppInstanceBots created under a single AppInstance. // // 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 SDK Identity's -// API operation ListAppInstanceUserEndpoints for usage and error information. +// API operation ListAppInstanceBots for usage and error information. // // Returned Error Types: // @@ -1416,6 +1718,9 @@ func (c *ChimeSDKIdentity) ListAppInstanceUserEndpointsRequest(input *ListAppIns // - ForbiddenException // The client is permanently forbidden from making the request. // +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// // - ThrottledClientException // The client exceeded its request rate limit. // @@ -1428,22 +1733,173 @@ func (c *ChimeSDKIdentity) ListAppInstanceUserEndpointsRequest(input *ListAppIns // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUserEndpoints -func (c *ChimeSDKIdentity) ListAppInstanceUserEndpoints(input *ListAppInstanceUserEndpointsInput) (*ListAppInstanceUserEndpointsOutput, error) { - req, out := c.ListAppInstanceUserEndpointsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceBots +func (c *ChimeSDKIdentity) ListAppInstanceBots(input *ListAppInstanceBotsInput) (*ListAppInstanceBotsOutput, error) { + req, out := c.ListAppInstanceBotsRequest(input) return out, req.Send() } -// ListAppInstanceUserEndpointsWithContext is the same as ListAppInstanceUserEndpoints with the addition of +// ListAppInstanceBotsWithContext is the same as ListAppInstanceBots with the addition of // the ability to pass a context and additional request options. // -// See ListAppInstanceUserEndpoints for details on how to use this API operation. +// See ListAppInstanceBots 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 *ChimeSDKIdentity) ListAppInstanceUserEndpointsWithContext(ctx aws.Context, input *ListAppInstanceUserEndpointsInput, opts ...request.Option) (*ListAppInstanceUserEndpointsOutput, error) { +func (c *ChimeSDKIdentity) ListAppInstanceBotsWithContext(ctx aws.Context, input *ListAppInstanceBotsInput, opts ...request.Option) (*ListAppInstanceBotsOutput, error) { + req, out := c.ListAppInstanceBotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAppInstanceBotsPages iterates over the pages of a ListAppInstanceBots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAppInstanceBots 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 ListAppInstanceBots operation. +// pageNum := 0 +// err := client.ListAppInstanceBotsPages(params, +// func(page *chimesdkidentity.ListAppInstanceBotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKIdentity) ListAppInstanceBotsPages(input *ListAppInstanceBotsInput, fn func(*ListAppInstanceBotsOutput, bool) bool) error { + return c.ListAppInstanceBotsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAppInstanceBotsPagesWithContext same as ListAppInstanceBotsPages 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 *ChimeSDKIdentity) ListAppInstanceBotsPagesWithContext(ctx aws.Context, input *ListAppInstanceBotsInput, fn func(*ListAppInstanceBotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAppInstanceBotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAppInstanceBotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAppInstanceBotsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListAppInstanceUserEndpoints = "ListAppInstanceUserEndpoints" + +// ListAppInstanceUserEndpointsRequest generates a "aws/request.Request" representing the +// client's request for the ListAppInstanceUserEndpoints 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 ListAppInstanceUserEndpoints for more information on using the ListAppInstanceUserEndpoints +// 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 ListAppInstanceUserEndpointsRequest method. +// req, resp := client.ListAppInstanceUserEndpointsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUserEndpoints +func (c *ChimeSDKIdentity) ListAppInstanceUserEndpointsRequest(input *ListAppInstanceUserEndpointsInput) (req *request.Request, output *ListAppInstanceUserEndpointsOutput) { + op := &request.Operation{ + Name: opListAppInstanceUserEndpoints, + HTTPMethod: "GET", + HTTPPath: "/app-instance-users/{appInstanceUserArn}/endpoints", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAppInstanceUserEndpointsInput{} + } + + output = &ListAppInstanceUserEndpointsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAppInstanceUserEndpoints API operation for Amazon Chime SDK Identity. +// +// Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. +// +// 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 SDK Identity's +// API operation ListAppInstanceUserEndpoints for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUserEndpoints +func (c *ChimeSDKIdentity) ListAppInstanceUserEndpoints(input *ListAppInstanceUserEndpointsInput) (*ListAppInstanceUserEndpointsOutput, error) { + req, out := c.ListAppInstanceUserEndpointsRequest(input) + return out, req.Send() +} + +// ListAppInstanceUserEndpointsWithContext is the same as ListAppInstanceUserEndpoints with the addition of +// the ability to pass a context and additional request options. +// +// See ListAppInstanceUserEndpoints 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 *ChimeSDKIdentity) ListAppInstanceUserEndpointsWithContext(ctx aws.Context, input *ListAppInstanceUserEndpointsInput, opts ...request.Option) (*ListAppInstanceUserEndpointsOutput, error) { req, out := c.ListAppInstanceUserEndpointsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) @@ -1991,6 +2447,110 @@ func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettingsWithContext(ctx aws.Co return out, req.Send() } +const opPutAppInstanceUserExpirationSettings = "PutAppInstanceUserExpirationSettings" + +// PutAppInstanceUserExpirationSettingsRequest generates a "aws/request.Request" representing the +// client's request for the PutAppInstanceUserExpirationSettings 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 PutAppInstanceUserExpirationSettings for more information on using the PutAppInstanceUserExpirationSettings +// 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 PutAppInstanceUserExpirationSettingsRequest method. +// req, resp := client.PutAppInstanceUserExpirationSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/PutAppInstanceUserExpirationSettings +func (c *ChimeSDKIdentity) PutAppInstanceUserExpirationSettingsRequest(input *PutAppInstanceUserExpirationSettingsInput) (req *request.Request, output *PutAppInstanceUserExpirationSettingsOutput) { + op := &request.Operation{ + Name: opPutAppInstanceUserExpirationSettings, + HTTPMethod: "PUT", + HTTPPath: "/app-instance-users/{appInstanceUserArn}/expiration-settings", + } + + if input == nil { + input = &PutAppInstanceUserExpirationSettingsInput{} + } + + output = &PutAppInstanceUserExpirationSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAppInstanceUserExpirationSettings API operation for Amazon Chime SDK Identity. +// +// Sets the number of days before the AppInstanceUser is automatically deleted. +// +// A background process deletes expired AppInstanceUsers within 6 hours of expiration. +// Actual deletion times may vary. +// +// Expired AppInstanceUsers that have not yet been deleted appear as active, +// and you can update their expiration settings. The system honors the new settings. +// +// 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 SDK Identity's +// API operation PutAppInstanceUserExpirationSettings for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/PutAppInstanceUserExpirationSettings +func (c *ChimeSDKIdentity) PutAppInstanceUserExpirationSettings(input *PutAppInstanceUserExpirationSettingsInput) (*PutAppInstanceUserExpirationSettingsOutput, error) { + req, out := c.PutAppInstanceUserExpirationSettingsRequest(input) + return out, req.Send() +} + +// PutAppInstanceUserExpirationSettingsWithContext is the same as PutAppInstanceUserExpirationSettings with the addition of +// the ability to pass a context and additional request options. +// +// See PutAppInstanceUserExpirationSettings 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 *ChimeSDKIdentity) PutAppInstanceUserExpirationSettingsWithContext(ctx aws.Context, input *PutAppInstanceUserExpirationSettingsInput, opts ...request.Option) (*PutAppInstanceUserExpirationSettingsOutput, error) { + req, out := c.PutAppInstanceUserExpirationSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRegisterAppInstanceUserEndpoint = "RegisterAppInstanceUserEndpoint" // RegisterAppInstanceUserEndpointRequest generates a "aws/request.Request" representing the @@ -2385,57 +2945,57 @@ func (c *ChimeSDKIdentity) UpdateAppInstanceWithContext(ctx aws.Context, input * return out, req.Send() } -const opUpdateAppInstanceUser = "UpdateAppInstanceUser" +const opUpdateAppInstanceBot = "UpdateAppInstanceBot" -// UpdateAppInstanceUserRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAppInstanceUser operation. The "output" return +// UpdateAppInstanceBotRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAppInstanceBot 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 UpdateAppInstanceUser for more information on using the UpdateAppInstanceUser +// See UpdateAppInstanceBot for more information on using the UpdateAppInstanceBot // 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 UpdateAppInstanceUserRequest method. -// req, resp := client.UpdateAppInstanceUserRequest(params) +// // Example sending a request using the UpdateAppInstanceBotRequest method. +// req, resp := client.UpdateAppInstanceBotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser -func (c *ChimeSDKIdentity) UpdateAppInstanceUserRequest(input *UpdateAppInstanceUserInput) (req *request.Request, output *UpdateAppInstanceUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceBot +func (c *ChimeSDKIdentity) UpdateAppInstanceBotRequest(input *UpdateAppInstanceBotInput) (req *request.Request, output *UpdateAppInstanceBotOutput) { op := &request.Operation{ - Name: opUpdateAppInstanceUser, + Name: opUpdateAppInstanceBot, HTTPMethod: "PUT", - HTTPPath: "/app-instance-users/{appInstanceUserArn}", + HTTPPath: "/app-instance-bots/{appInstanceBotArn}", } if input == nil { - input = &UpdateAppInstanceUserInput{} + input = &UpdateAppInstanceBotInput{} } - output = &UpdateAppInstanceUserOutput{} + output = &UpdateAppInstanceBotOutput{} req = c.newRequest(op, input, output) return } -// UpdateAppInstanceUser API operation for Amazon Chime SDK Identity. +// UpdateAppInstanceBot API operation for Amazon Chime SDK Identity. // -// Updates the details of an AppInstanceUser. You can update names and metadata. +// Updates the name and metadata of an AppInstanceBot. // // 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 SDK Identity's -// API operation UpdateAppInstanceUser for usage and error information. +// API operation UpdateAppInstanceBot for usage and error information. // // Returned Error Types: // @@ -2464,56 +3024,157 @@ func (c *ChimeSDKIdentity) UpdateAppInstanceUserRequest(input *UpdateAppInstance // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser -func (c *ChimeSDKIdentity) UpdateAppInstanceUser(input *UpdateAppInstanceUserInput) (*UpdateAppInstanceUserOutput, error) { - req, out := c.UpdateAppInstanceUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceBot +func (c *ChimeSDKIdentity) UpdateAppInstanceBot(input *UpdateAppInstanceBotInput) (*UpdateAppInstanceBotOutput, error) { + req, out := c.UpdateAppInstanceBotRequest(input) return out, req.Send() } -// UpdateAppInstanceUserWithContext is the same as UpdateAppInstanceUser with the addition of +// UpdateAppInstanceBotWithContext is the same as UpdateAppInstanceBot with the addition of // the ability to pass a context and additional request options. // -// See UpdateAppInstanceUser for details on how to use this API operation. +// See UpdateAppInstanceBot 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 *ChimeSDKIdentity) UpdateAppInstanceUserWithContext(ctx aws.Context, input *UpdateAppInstanceUserInput, opts ...request.Option) (*UpdateAppInstanceUserOutput, error) { - req, out := c.UpdateAppInstanceUserRequest(input) +func (c *ChimeSDKIdentity) UpdateAppInstanceBotWithContext(ctx aws.Context, input *UpdateAppInstanceBotInput, opts ...request.Option) (*UpdateAppInstanceBotOutput, error) { + req, out := c.UpdateAppInstanceBotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAppInstanceUserEndpoint = "UpdateAppInstanceUserEndpoint" +const opUpdateAppInstanceUser = "UpdateAppInstanceUser" -// UpdateAppInstanceUserEndpointRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAppInstanceUserEndpoint operation. The "output" return +// UpdateAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAppInstanceUser 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 UpdateAppInstanceUserEndpoint for more information on using the UpdateAppInstanceUserEndpoint +// See UpdateAppInstanceUser for more information on using the UpdateAppInstanceUser // 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 UpdateAppInstanceUserEndpointRequest method. -// req, resp := client.UpdateAppInstanceUserEndpointRequest(params) +// // Example sending a request using the UpdateAppInstanceUserRequest method. +// req, resp := client.UpdateAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUserEndpoint -func (c *ChimeSDKIdentity) UpdateAppInstanceUserEndpointRequest(input *UpdateAppInstanceUserEndpointInput) (req *request.Request, output *UpdateAppInstanceUserEndpointOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser +func (c *ChimeSDKIdentity) UpdateAppInstanceUserRequest(input *UpdateAppInstanceUserInput) (req *request.Request, output *UpdateAppInstanceUserOutput) { op := &request.Operation{ - Name: opUpdateAppInstanceUserEndpoint, + Name: opUpdateAppInstanceUser, + HTTPMethod: "PUT", + HTTPPath: "/app-instance-users/{appInstanceUserArn}", + } + + if input == nil { + input = &UpdateAppInstanceUserInput{} + } + + output = &UpdateAppInstanceUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAppInstanceUser API operation for Amazon Chime SDK Identity. +// +// Updates the details of an AppInstanceUser. You can update names and metadata. +// +// 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 SDK Identity's +// API operation UpdateAppInstanceUser for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser +func (c *ChimeSDKIdentity) UpdateAppInstanceUser(input *UpdateAppInstanceUserInput) (*UpdateAppInstanceUserOutput, error) { + req, out := c.UpdateAppInstanceUserRequest(input) + return out, req.Send() +} + +// UpdateAppInstanceUserWithContext is the same as UpdateAppInstanceUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAppInstanceUser 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 *ChimeSDKIdentity) UpdateAppInstanceUserWithContext(ctx aws.Context, input *UpdateAppInstanceUserInput, opts ...request.Option) (*UpdateAppInstanceUserOutput, error) { + req, out := c.UpdateAppInstanceUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAppInstanceUserEndpoint = "UpdateAppInstanceUserEndpoint" + +// UpdateAppInstanceUserEndpointRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAppInstanceUserEndpoint 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 UpdateAppInstanceUserEndpoint for more information on using the UpdateAppInstanceUserEndpoint +// 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 UpdateAppInstanceUserEndpointRequest method. +// req, resp := client.UpdateAppInstanceUserEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUserEndpoint +func (c *ChimeSDKIdentity) UpdateAppInstanceUserEndpointRequest(input *UpdateAppInstanceUserEndpointInput) (req *request.Request, output *UpdateAppInstanceUserEndpointOutput) { + op := &request.Operation{ + Name: opUpdateAppInstanceUserEndpoint, HTTPMethod: "PUT", HTTPPath: "/app-instance-users/{appInstanceUserArn}/endpoints/{endpointId}", } @@ -2662,7 +3323,7 @@ func (s *AppInstance) SetName(v string) *AppInstance { return s } -// The details of an AppInstanceAdmin. +// The name and ARN of the admin for the AppInstance. type AppInstanceAdmin struct { _ struct{} `type:"structure"` @@ -2744,6 +3405,149 @@ func (s *AppInstanceAdminSummary) SetAdmin(v *Identity) *AppInstanceAdminSummary return s } +// An Amazon Lex V2 chat bot created under an AppInstance. +type AppInstanceBot struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstanceBot. + AppInstanceBotArn *string `min:"5" type:"string"` + + // The data processing instructions for an AppInstanceBot. + Configuration *Configuration `type:"structure"` + + // The time at which the AppInstanceBot was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The time at which the AppInstanceBot was last updated. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The metadata for an AppInstanceBot. + // + // Metadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by AppInstanceBot's + // String and GoString methods. + Metadata *string `type:"string" sensitive:"true"` + + // The name of the AppInstanceBot. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by AppInstanceBot's + // String and GoString methods. + Name *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AppInstanceBot) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AppInstanceBot) GoString() string { + return s.String() +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *AppInstanceBot) SetAppInstanceBotArn(v string) *AppInstanceBot { + s.AppInstanceBotArn = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *AppInstanceBot) SetConfiguration(v *Configuration) *AppInstanceBot { + s.Configuration = v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *AppInstanceBot) SetCreatedTimestamp(v time.Time) *AppInstanceBot { + s.CreatedTimestamp = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *AppInstanceBot) SetLastUpdatedTimestamp(v time.Time) *AppInstanceBot { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *AppInstanceBot) SetMetadata(v string) *AppInstanceBot { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppInstanceBot) SetName(v string) *AppInstanceBot { + s.Name = &v + return s +} + +// High-level information about an AppInstanceBot. +type AppInstanceBotSummary struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstanceBot. + AppInstanceBotArn *string `min:"5" type:"string"` + + // The metadata of the AppInstanceBot. + // + // Metadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by AppInstanceBotSummary's + // String and GoString methods. + Metadata *string `type:"string" sensitive:"true"` + + // The name of the AppInstanceBox. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by AppInstanceBotSummary's + // String and GoString methods. + Name *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AppInstanceBotSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AppInstanceBotSummary) GoString() string { + return s.String() +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *AppInstanceBotSummary) SetAppInstanceBotArn(v string) *AppInstanceBotSummary { + s.AppInstanceBotArn = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *AppInstanceBotSummary) SetMetadata(v string) *AppInstanceBotSummary { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppInstanceBotSummary) SetName(v string) *AppInstanceBotSummary { + s.Name = &v + return s +} + // The details of the data-retention settings for an AppInstance. type AppInstanceRetentionSettings struct { _ struct{} `type:"structure"` @@ -2859,6 +3663,9 @@ type AppInstanceUser struct { // The time at which the AppInstanceUser was created. CreatedTimestamp *time.Time `type:"timestamp"` + // The interval after which an AppInstanceUser is automatically deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` + // The time at which the AppInstanceUser was last updated. LastUpdatedTimestamp *time.Time `type:"timestamp"` @@ -2907,6 +3714,12 @@ func (s *AppInstanceUser) SetCreatedTimestamp(v time.Time) *AppInstanceUser { return s } +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *AppInstanceUser) SetExpirationSettings(v *ExpirationSettings) *AppInstanceUser { + s.ExpirationSettings = v + return s +} + // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. func (s *AppInstanceUser) SetLastUpdatedTimestamp(v time.Time) *AppInstanceUser { s.LastUpdatedTimestamp = &v @@ -2985,11 +3798,7 @@ type AppInstanceUserEndpoint struct { Name *string `type:"string" sensitive:"true"` // The ARN of the resource to which the endpoint belongs. - // - // ResourceArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by AppInstanceUserEndpoint's - // String and GoString methods. - ResourceArn *string `min:"5" type:"string" sensitive:"true"` + ResourceArn *string `min:"5" type:"string"` // The type of the AppInstanceUserEndpoint. Type *string `type:"string" enum:"AppInstanceUserEndpointType"` @@ -3333,6 +4142,58 @@ func (s *ChannelRetentionSettings) SetRetentionDays(v int64) *ChannelRetentionSe return s } +// A structure that contains configuration data. +type Configuration struct { + _ struct{} `type:"structure"` + + // The configuration for an Amazon Lex V2 bot. + // + // Lex is a required field + Lex *LexConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Configuration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Configuration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Configuration"} + if s.Lex == nil { + invalidParams.Add(request.NewErrParamRequired("Lex")) + } + if s.Lex != nil { + if err := s.Lex.Validate(); err != nil { + invalidParams.AddNested("Lex", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLex sets the Lex field's value. +func (s *Configuration) SetLex(v *LexConfiguration) *Configuration { + s.Lex = v + return s +} + // The request could not be processed because of conflict in the current state // of the resource. type ConflictException struct { @@ -3469,7 +4330,8 @@ func (s *CreateAppInstanceAdminInput) SetAppInstanceArn(v string) *CreateAppInst type CreateAppInstanceAdminOutput struct { _ struct{} `type:"structure"` - // The name and ARN of the admin for the AppInstance. + // The ARN and name of the administrator, the ARN of the AppInstance, and the + // created and last-updated timestamps. All timestamps use epoch milliseconds. AppInstanceAdmin *Identity `type:"structure"` // The ARN of the of the admin for the AppInstance. @@ -3506,17 +4368,173 @@ func (s *CreateAppInstanceAdminOutput) SetAppInstanceArn(v string) *CreateAppIns return s } -type CreateAppInstanceInput struct { +type CreateAppInstanceBotInput struct { _ struct{} `type:"structure"` - // The ClientRequestToken of the AppInstance. + // The ARN of the AppInstance request. + // + // AppInstanceArn is a required field + AppInstanceArn *string `min:"5" type:"string" required:"true"` + + // The unique ID for the client making the request. Use different tokens for + // different AppInstanceBots. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true"` + + // Configuration information about the Amazon Lex V2 V2 bot. // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateAppInstanceInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + // Configuration is a required field + Configuration *Configuration `type:"structure" required:"true"` - // The metadata of the AppInstance. Limited to a 1KB string in UTF-8. + // The request metadata. Limited to a 1KB string in UTF-8. + // + // Metadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateAppInstanceBotInput's + // String and GoString methods. + Metadata *string `type:"string" sensitive:"true"` + + // The user's name. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateAppInstanceBotInput's + // String and GoString methods. + Name *string `type:"string" sensitive:"true"` + + // The tags assigned to the AppInstanceBot. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAppInstanceBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAppInstanceBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAppInstanceBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceBotInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Configuration == nil { + invalidParams.Add(request.NewErrParamRequired("Configuration")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Configuration != nil { + if err := s.Configuration.Validate(); err != nil { + invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *CreateAppInstanceBotInput) SetAppInstanceArn(v string) *CreateAppInstanceBotInput { + s.AppInstanceArn = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateAppInstanceBotInput) SetClientRequestToken(v string) *CreateAppInstanceBotInput { + s.ClientRequestToken = &v + return s +} + +// SetConfiguration sets the Configuration field's value. +func (s *CreateAppInstanceBotInput) SetConfiguration(v *Configuration) *CreateAppInstanceBotInput { + s.Configuration = v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateAppInstanceBotInput) SetMetadata(v string) *CreateAppInstanceBotInput { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInstanceBotInput) SetName(v string) *CreateAppInstanceBotInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAppInstanceBotInput) SetTags(v []*Tag) *CreateAppInstanceBotInput { + s.Tags = v + return s +} + +type CreateAppInstanceBotOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the AppinstanceBot. + AppInstanceBotArn *string `min:"5" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAppInstanceBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAppInstanceBotOutput) GoString() string { + return s.String() +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *CreateAppInstanceBotOutput) SetAppInstanceBotArn(v string) *CreateAppInstanceBotOutput { + s.AppInstanceBotArn = &v + return s +} + +type CreateAppInstanceInput struct { + _ struct{} `type:"structure"` + + // The unique ID of the request. Use different tokens to create different AppInstances. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true"` + + // The metadata of the AppInstance. Limited to a 1KB string in UTF-8. // // Metadata is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateAppInstanceInput's @@ -3532,7 +4550,7 @@ type CreateAppInstanceInput struct { // Name is a required field Name *string `min:"1" type:"string" required:"true" sensitive:"true"` - // Tags assigned to the AppInstanceUser. + // Tags assigned to the AppInstance. Tags []*Tag `min:"1" type:"list"` } @@ -3658,12 +4676,13 @@ type CreateAppInstanceUserInput struct { // AppInstanceUserId is a required field AppInstanceUserId *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The token assigned to the user requesting an AppInstance. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateAppInstanceUserInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + // The unique ID of the request. Use different tokens to request additional + // AppInstances. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true"` + + // Settings that control the interval after which the AppInstanceUser is automatically + // deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` // The request's metadata. Limited to a 1KB string in UTF-8. // @@ -3730,6 +4749,11 @@ func (s *CreateAppInstanceUserInput) Validate() error { if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } + if s.ExpirationSettings != nil { + if err := s.ExpirationSettings.Validate(); err != nil { + invalidParams.AddNested("ExpirationSettings", err.(request.ErrInvalidParams)) + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -3765,6 +4789,12 @@ func (s *CreateAppInstanceUserInput) SetClientRequestToken(v string) *CreateAppI return s } +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *CreateAppInstanceUserInput) SetExpirationSettings(v *ExpirationSettings) *CreateAppInstanceUserInput { + s.ExpirationSettings = v + return s +} + // SetMetadata sets the Metadata field's value. func (s *CreateAppInstanceUserInput) SetMetadata(v string) *CreateAppInstanceUserInput { s.Metadata = &v @@ -3902,6 +4932,77 @@ func (s DeleteAppInstanceAdminOutput) GoString() string { return s.String() } +type DeleteAppInstanceBotInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ARN of the AppInstanceBot being deleted. + // + // AppInstanceBotArn is a required field + AppInstanceBotArn *string `location:"uri" locationName:"appInstanceBotArn" min:"5" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAppInstanceBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAppInstanceBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAppInstanceBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceBotInput"} + if s.AppInstanceBotArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceBotArn")) + } + if s.AppInstanceBotArn != nil && len(*s.AppInstanceBotArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceBotArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *DeleteAppInstanceBotInput) SetAppInstanceBotArn(v string) *DeleteAppInstanceBotInput { + s.AppInstanceBotArn = &v + return s +} + +type DeleteAppInstanceBotOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAppInstanceBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAppInstanceBotOutput) GoString() string { + return s.String() +} + type DeleteAppInstanceInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -4238,6 +5339,86 @@ func (s *DescribeAppInstanceAdminOutput) SetAppInstanceAdmin(v *AppInstanceAdmin return s } +type DescribeAppInstanceBotInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ARN of the AppInstanceBot. + // + // AppInstanceBotArn is a required field + AppInstanceBotArn *string `location:"uri" locationName:"appInstanceBotArn" min:"5" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAppInstanceBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAppInstanceBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAppInstanceBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceBotInput"} + if s.AppInstanceBotArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceBotArn")) + } + if s.AppInstanceBotArn != nil && len(*s.AppInstanceBotArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceBotArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *DescribeAppInstanceBotInput) SetAppInstanceBotArn(v string) *DescribeAppInstanceBotInput { + s.AppInstanceBotArn = &v + return s +} + +type DescribeAppInstanceBotOutput struct { + _ struct{} `type:"structure"` + + // The detials of the AppInstanceBot. + AppInstanceBot *AppInstanceBot `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAppInstanceBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAppInstanceBotOutput) GoString() string { + return s.String() +} + +// SetAppInstanceBot sets the AppInstanceBot field's value. +func (s *DescribeAppInstanceBotOutput) SetAppInstanceBot(v *AppInstanceBot) *DescribeAppInstanceBotOutput { + s.AppInstanceBot = v + return s +} + type DescribeAppInstanceInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -4634,6 +5815,70 @@ func (s *EndpointState) SetStatusReason(v string) *EndpointState { return s } +// Determines the interval after which an AppInstanceUser is automatically deleted. +type ExpirationSettings struct { + _ struct{} `type:"structure"` + + // Specifies the conditions under which an AppInstanceUser will expire. + // + // ExpirationCriterion is a required field + ExpirationCriterion *string `type:"string" required:"true" enum:"ExpirationCriterion"` + + // The period in days after which an AppInstanceUser will be automatically deleted. + // + // ExpirationDays is a required field + ExpirationDays *int64 `min:"1" type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExpirationSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExpirationSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExpirationSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExpirationSettings"} + if s.ExpirationCriterion == nil { + invalidParams.Add(request.NewErrParamRequired("ExpirationCriterion")) + } + if s.ExpirationDays == nil { + invalidParams.Add(request.NewErrParamRequired("ExpirationDays")) + } + if s.ExpirationDays != nil && *s.ExpirationDays < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpirationDays", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExpirationCriterion sets the ExpirationCriterion field's value. +func (s *ExpirationSettings) SetExpirationCriterion(v string) *ExpirationSettings { + s.ExpirationCriterion = &v + return s +} + +// SetExpirationDays sets the ExpirationDays field's value. +func (s *ExpirationSettings) SetExpirationDays(v int64) *ExpirationSettings { + s.ExpirationDays = &v + return s +} + // The client is permanently forbidden from making the request. type ForbiddenException struct { _ struct{} `type:"structure"` @@ -4790,7 +6035,7 @@ func (s *GetAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v t return s } -// The details of a user. +// The details of a user or bot. type Identity struct { _ struct{} `type:"structure"` @@ -4835,6 +6080,101 @@ func (s *Identity) SetName(v string) *Identity { return s } +// The configuration for an Amazon Lex V2 bot. +type LexConfiguration struct { + _ struct{} `type:"structure"` + + // The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS + // + // LexBotAliasArn is a required field + LexBotAliasArn *string `min:"15" type:"string" required:"true"` + + // Identifies the Amazon Lex V2 bot's language and locale. The string must match + // one of the supported locales in Amazon Lex V2. All of the intents, slot types, + // and slots used in the bot must have the same locale. For more information, + // see Supported languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + // in the Amazon Lex V2 Developer Guide. + // + // LocaleId is a required field + LocaleId *string `type:"string" required:"true"` + + // Determines whether the Amazon Lex V2 bot responds to all standard messages. + // Control messages are not supported. + // + // RespondsTo is a required field + RespondsTo *string `type:"string" required:"true" enum:"RespondsTo"` + + // The name of the welcome intent configured in the Amazon Lex V2 bot. + WelcomeIntent *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LexConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LexConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LexConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LexConfiguration"} + if s.LexBotAliasArn == nil { + invalidParams.Add(request.NewErrParamRequired("LexBotAliasArn")) + } + if s.LexBotAliasArn != nil && len(*s.LexBotAliasArn) < 15 { + invalidParams.Add(request.NewErrParamMinLen("LexBotAliasArn", 15)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + if s.RespondsTo == nil { + invalidParams.Add(request.NewErrParamRequired("RespondsTo")) + } + if s.WelcomeIntent != nil && len(*s.WelcomeIntent) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WelcomeIntent", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLexBotAliasArn sets the LexBotAliasArn field's value. +func (s *LexConfiguration) SetLexBotAliasArn(v string) *LexConfiguration { + s.LexBotAliasArn = &v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *LexConfiguration) SetLocaleId(v string) *LexConfiguration { + s.LocaleId = &v + return s +} + +// SetRespondsTo sets the RespondsTo field's value. +func (s *LexConfiguration) SetRespondsTo(v string) *LexConfiguration { + s.RespondsTo = &v + return s +} + +// SetWelcomeIntent sets the WelcomeIntent field's value. +func (s *LexConfiguration) SetWelcomeIntent(v string) *LexConfiguration { + s.WelcomeIntent = &v + return s +} + type ListAppInstanceAdminsInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -4919,11 +6259,138 @@ type ListAppInstanceAdminsOutput struct { // The ARN of the AppInstance. AppInstanceArn *string `min:"5" type:"string"` - // The token returned from previous API requests until the number of administrators - // is reached. + // The token returned from previous API requests until the number of administrators + // is reached. + // + // NextToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ListAppInstanceAdminsOutput's + // String and GoString methods. + NextToken *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAppInstanceAdminsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAppInstanceAdminsOutput) GoString() string { + return s.String() +} + +// SetAppInstanceAdmins sets the AppInstanceAdmins field's value. +func (s *ListAppInstanceAdminsOutput) SetAppInstanceAdmins(v []*AppInstanceAdminSummary) *ListAppInstanceAdminsOutput { + s.AppInstanceAdmins = v + return s +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceAdminsOutput) SetAppInstanceArn(v string) *ListAppInstanceAdminsOutput { + s.AppInstanceArn = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstanceAdminsOutput) SetNextToken(v string) *ListAppInstanceAdminsOutput { + s.NextToken = &v + return s +} + +type ListAppInstanceBotsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ARN of the AppInstance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"querystring" locationName:"app-instance-arn" min:"5" type:"string" required:"true"` + + // The maximum number of requests to return. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested bots are returned. + // + // NextToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ListAppInstanceBotsInput's + // String and GoString methods. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAppInstanceBotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAppInstanceBotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAppInstanceBotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceBotsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceBotsInput) SetAppInstanceArn(v string) *ListAppInstanceBotsInput { + s.AppInstanceArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAppInstanceBotsInput) SetMaxResults(v int64) *ListAppInstanceBotsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstanceBotsInput) SetNextToken(v string) *ListAppInstanceBotsInput { + s.NextToken = &v + return s +} + +type ListAppInstanceBotsOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstance. + AppInstanceArn *string `min:"5" type:"string"` + + // The information for each requested AppInstanceBot. + AppInstanceBots []*AppInstanceBotSummary `type:"list"` + + // The token passed by previous API calls until all requested bots are returned. // // NextToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ListAppInstanceAdminsOutput's + // replaced with "sensitive" in string returned by ListAppInstanceBotsOutput's // String and GoString methods. NextToken *string `type:"string" sensitive:"true"` } @@ -4933,7 +6400,7 @@ type ListAppInstanceAdminsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAppInstanceAdminsOutput) String() string { +func (s ListAppInstanceBotsOutput) String() string { return awsutil.Prettify(s) } @@ -4942,24 +6409,24 @@ func (s ListAppInstanceAdminsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAppInstanceAdminsOutput) GoString() string { +func (s ListAppInstanceBotsOutput) GoString() string { return s.String() } -// SetAppInstanceAdmins sets the AppInstanceAdmins field's value. -func (s *ListAppInstanceAdminsOutput) SetAppInstanceAdmins(v []*AppInstanceAdminSummary) *ListAppInstanceAdminsOutput { - s.AppInstanceAdmins = v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceBotsOutput) SetAppInstanceArn(v string) *ListAppInstanceBotsOutput { + s.AppInstanceArn = &v return s } -// SetAppInstanceArn sets the AppInstanceArn field's value. -func (s *ListAppInstanceAdminsOutput) SetAppInstanceArn(v string) *ListAppInstanceAdminsOutput { - s.AppInstanceArn = &v +// SetAppInstanceBots sets the AppInstanceBots field's value. +func (s *ListAppInstanceBotsOutput) SetAppInstanceBots(v []*AppInstanceBotSummary) *ListAppInstanceBotsOutput { + s.AppInstanceBots = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListAppInstanceAdminsOutput) SetNextToken(v string) *ListAppInstanceAdminsOutput { +func (s *ListAppInstanceBotsOutput) SetNextToken(v string) *ListAppInstanceBotsOutput { s.NextToken = &v return s } @@ -5398,6 +6865,72 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput return s } +// One or more of the resources in the request does not exist in the system. +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { + return nil +} + +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + type PutAppInstanceRetentionSettingsInput struct { _ struct{} `type:"structure"` @@ -5506,6 +7039,111 @@ func (s *PutAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v t return s } +type PutAppInstanceUserExpirationSettingsInput struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstanceUser. + // + // AppInstanceUserArn is a required field + AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` + + // Settings that control the interval after which an AppInstanceUser is automatically + // deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAppInstanceUserExpirationSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAppInstanceUserExpirationSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAppInstanceUserExpirationSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAppInstanceUserExpirationSettingsInput"} + if s.AppInstanceUserArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) + } + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) + } + if s.ExpirationSettings != nil { + if err := s.ExpirationSettings.Validate(); err != nil { + invalidParams.AddNested("ExpirationSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *PutAppInstanceUserExpirationSettingsInput) SetAppInstanceUserArn(v string) *PutAppInstanceUserExpirationSettingsInput { + s.AppInstanceUserArn = &v + return s +} + +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *PutAppInstanceUserExpirationSettingsInput) SetExpirationSettings(v *ExpirationSettings) *PutAppInstanceUserExpirationSettingsInput { + s.ExpirationSettings = v + return s +} + +type PutAppInstanceUserExpirationSettingsOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstanceUser. + AppInstanceUserArn *string `min:"5" type:"string"` + + // Settings that control the interval after which an AppInstanceUser is automatically + // deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAppInstanceUserExpirationSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutAppInstanceUserExpirationSettingsOutput) GoString() string { + return s.String() +} + +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *PutAppInstanceUserExpirationSettingsOutput) SetAppInstanceUserArn(v string) *PutAppInstanceUserExpirationSettingsOutput { + s.AppInstanceUserArn = &v + return s +} + +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *PutAppInstanceUserExpirationSettingsOutput) SetExpirationSettings(v *ExpirationSettings) *PutAppInstanceUserExpirationSettingsOutput { + s.ExpirationSettings = v + return s +} + type RegisterAppInstanceUserEndpointInput struct { _ struct{} `type:"structure"` @@ -5523,12 +7161,9 @@ type RegisterAppInstanceUserEndpointInput struct { // AppInstanceUserArn is a required field AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true" sensitive:"true"` - // The idempotency token for each client request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by RegisterAppInstanceUserEndpointInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + // The unique ID assigned to the request. Use different tokens to register other + // endpoints. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true"` // The attributes of an Endpoint. // @@ -5544,12 +7179,8 @@ type RegisterAppInstanceUserEndpointInput struct { // The ARN of the resource to which the endpoint belongs. // - // ResourceArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by RegisterAppInstanceUserEndpointInput's - // String and GoString methods. - // // ResourceArn is a required field - ResourceArn *string `min:"5" type:"string" required:"true" sensitive:"true"` + ResourceArn *string `min:"5" type:"string" required:"true"` // The type of the AppInstanceUserEndpoint. Supported types: // @@ -6301,6 +7932,122 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +type UpdateAppInstanceBotInput struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstanceBot. + // + // AppInstanceBotArn is a required field + AppInstanceBotArn *string `location:"uri" locationName:"appInstanceBotArn" min:"5" type:"string" required:"true"` + + // The metadata of the AppInstanceBot. + // + // Metadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateAppInstanceBotInput's + // String and GoString methods. + // + // Metadata is a required field + Metadata *string `type:"string" required:"true" sensitive:"true"` + + // The name of the AppInstanceBot. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateAppInstanceBotInput's + // String and GoString methods. + // + // Name is a required field + Name *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAppInstanceBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAppInstanceBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAppInstanceBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceBotInput"} + if s.AppInstanceBotArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceBotArn")) + } + if s.AppInstanceBotArn != nil && len(*s.AppInstanceBotArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceBotArn", 5)) + } + if s.Metadata == nil { + invalidParams.Add(request.NewErrParamRequired("Metadata")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *UpdateAppInstanceBotInput) SetAppInstanceBotArn(v string) *UpdateAppInstanceBotInput { + s.AppInstanceBotArn = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *UpdateAppInstanceBotInput) SetMetadata(v string) *UpdateAppInstanceBotInput { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAppInstanceBotInput) SetName(v string) *UpdateAppInstanceBotInput { + s.Name = &v + return s +} + +type UpdateAppInstanceBotOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the AppInstanceBot. + AppInstanceBotArn *string `min:"5" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAppInstanceBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAppInstanceBotOutput) GoString() string { + return s.String() +} + +// SetAppInstanceBotArn sets the AppInstanceBotArn field's value. +func (s *UpdateAppInstanceBotOutput) SetAppInstanceBotArn(v string) *UpdateAppInstanceBotOutput { + s.AppInstanceBotArn = &v + return s +} + type UpdateAppInstanceInput struct { _ struct{} `type:"structure"` @@ -6820,3 +8567,27 @@ func ErrorCode_Values() []string { ErrorCodePhoneNumberAssociationsExist, } } + +const ( + // ExpirationCriterionCreatedTimestamp is a ExpirationCriterion enum value + ExpirationCriterionCreatedTimestamp = "CREATED_TIMESTAMP" +) + +// ExpirationCriterion_Values returns all elements of the ExpirationCriterion enum +func ExpirationCriterion_Values() []string { + return []string{ + ExpirationCriterionCreatedTimestamp, + } +} + +const ( + // RespondsToStandardMessages is a RespondsTo enum value + RespondsToStandardMessages = "STANDARD_MESSAGES" +) + +// RespondsTo_Values returns all elements of the RespondsTo enum +func RespondsTo_Values() []string { + return []string{ + RespondsToStandardMessages, + } +} diff --git a/service/chimesdkidentity/chimesdkidentityiface/interface.go b/service/chimesdkidentity/chimesdkidentityiface/interface.go index c21bcbf347a..9ff1d56a144 100644 --- a/service/chimesdkidentity/chimesdkidentityiface/interface.go +++ b/service/chimesdkidentity/chimesdkidentityiface/interface.go @@ -68,6 +68,10 @@ type ChimeSDKIdentityAPI interface { CreateAppInstanceAdminWithContext(aws.Context, *chimesdkidentity.CreateAppInstanceAdminInput, ...request.Option) (*chimesdkidentity.CreateAppInstanceAdminOutput, error) CreateAppInstanceAdminRequest(*chimesdkidentity.CreateAppInstanceAdminInput) (*request.Request, *chimesdkidentity.CreateAppInstanceAdminOutput) + CreateAppInstanceBot(*chimesdkidentity.CreateAppInstanceBotInput) (*chimesdkidentity.CreateAppInstanceBotOutput, error) + CreateAppInstanceBotWithContext(aws.Context, *chimesdkidentity.CreateAppInstanceBotInput, ...request.Option) (*chimesdkidentity.CreateAppInstanceBotOutput, error) + CreateAppInstanceBotRequest(*chimesdkidentity.CreateAppInstanceBotInput) (*request.Request, *chimesdkidentity.CreateAppInstanceBotOutput) + CreateAppInstanceUser(*chimesdkidentity.CreateAppInstanceUserInput) (*chimesdkidentity.CreateAppInstanceUserOutput, error) CreateAppInstanceUserWithContext(aws.Context, *chimesdkidentity.CreateAppInstanceUserInput, ...request.Option) (*chimesdkidentity.CreateAppInstanceUserOutput, error) CreateAppInstanceUserRequest(*chimesdkidentity.CreateAppInstanceUserInput) (*request.Request, *chimesdkidentity.CreateAppInstanceUserOutput) @@ -80,6 +84,10 @@ type ChimeSDKIdentityAPI interface { DeleteAppInstanceAdminWithContext(aws.Context, *chimesdkidentity.DeleteAppInstanceAdminInput, ...request.Option) (*chimesdkidentity.DeleteAppInstanceAdminOutput, error) DeleteAppInstanceAdminRequest(*chimesdkidentity.DeleteAppInstanceAdminInput) (*request.Request, *chimesdkidentity.DeleteAppInstanceAdminOutput) + DeleteAppInstanceBot(*chimesdkidentity.DeleteAppInstanceBotInput) (*chimesdkidentity.DeleteAppInstanceBotOutput, error) + DeleteAppInstanceBotWithContext(aws.Context, *chimesdkidentity.DeleteAppInstanceBotInput, ...request.Option) (*chimesdkidentity.DeleteAppInstanceBotOutput, error) + DeleteAppInstanceBotRequest(*chimesdkidentity.DeleteAppInstanceBotInput) (*request.Request, *chimesdkidentity.DeleteAppInstanceBotOutput) + DeleteAppInstanceUser(*chimesdkidentity.DeleteAppInstanceUserInput) (*chimesdkidentity.DeleteAppInstanceUserOutput, error) DeleteAppInstanceUserWithContext(aws.Context, *chimesdkidentity.DeleteAppInstanceUserInput, ...request.Option) (*chimesdkidentity.DeleteAppInstanceUserOutput, error) DeleteAppInstanceUserRequest(*chimesdkidentity.DeleteAppInstanceUserInput) (*request.Request, *chimesdkidentity.DeleteAppInstanceUserOutput) @@ -96,6 +104,10 @@ type ChimeSDKIdentityAPI interface { DescribeAppInstanceAdminWithContext(aws.Context, *chimesdkidentity.DescribeAppInstanceAdminInput, ...request.Option) (*chimesdkidentity.DescribeAppInstanceAdminOutput, error) DescribeAppInstanceAdminRequest(*chimesdkidentity.DescribeAppInstanceAdminInput) (*request.Request, *chimesdkidentity.DescribeAppInstanceAdminOutput) + DescribeAppInstanceBot(*chimesdkidentity.DescribeAppInstanceBotInput) (*chimesdkidentity.DescribeAppInstanceBotOutput, error) + DescribeAppInstanceBotWithContext(aws.Context, *chimesdkidentity.DescribeAppInstanceBotInput, ...request.Option) (*chimesdkidentity.DescribeAppInstanceBotOutput, error) + DescribeAppInstanceBotRequest(*chimesdkidentity.DescribeAppInstanceBotInput) (*request.Request, *chimesdkidentity.DescribeAppInstanceBotOutput) + DescribeAppInstanceUser(*chimesdkidentity.DescribeAppInstanceUserInput) (*chimesdkidentity.DescribeAppInstanceUserOutput, error) DescribeAppInstanceUserWithContext(aws.Context, *chimesdkidentity.DescribeAppInstanceUserInput, ...request.Option) (*chimesdkidentity.DescribeAppInstanceUserOutput, error) DescribeAppInstanceUserRequest(*chimesdkidentity.DescribeAppInstanceUserInput) (*request.Request, *chimesdkidentity.DescribeAppInstanceUserOutput) @@ -115,6 +127,13 @@ type ChimeSDKIdentityAPI interface { ListAppInstanceAdminsPages(*chimesdkidentity.ListAppInstanceAdminsInput, func(*chimesdkidentity.ListAppInstanceAdminsOutput, bool) bool) error ListAppInstanceAdminsPagesWithContext(aws.Context, *chimesdkidentity.ListAppInstanceAdminsInput, func(*chimesdkidentity.ListAppInstanceAdminsOutput, bool) bool, ...request.Option) error + ListAppInstanceBots(*chimesdkidentity.ListAppInstanceBotsInput) (*chimesdkidentity.ListAppInstanceBotsOutput, error) + ListAppInstanceBotsWithContext(aws.Context, *chimesdkidentity.ListAppInstanceBotsInput, ...request.Option) (*chimesdkidentity.ListAppInstanceBotsOutput, error) + ListAppInstanceBotsRequest(*chimesdkidentity.ListAppInstanceBotsInput) (*request.Request, *chimesdkidentity.ListAppInstanceBotsOutput) + + ListAppInstanceBotsPages(*chimesdkidentity.ListAppInstanceBotsInput, func(*chimesdkidentity.ListAppInstanceBotsOutput, bool) bool) error + ListAppInstanceBotsPagesWithContext(aws.Context, *chimesdkidentity.ListAppInstanceBotsInput, func(*chimesdkidentity.ListAppInstanceBotsOutput, bool) bool, ...request.Option) error + ListAppInstanceUserEndpoints(*chimesdkidentity.ListAppInstanceUserEndpointsInput) (*chimesdkidentity.ListAppInstanceUserEndpointsOutput, error) ListAppInstanceUserEndpointsWithContext(aws.Context, *chimesdkidentity.ListAppInstanceUserEndpointsInput, ...request.Option) (*chimesdkidentity.ListAppInstanceUserEndpointsOutput, error) ListAppInstanceUserEndpointsRequest(*chimesdkidentity.ListAppInstanceUserEndpointsInput) (*request.Request, *chimesdkidentity.ListAppInstanceUserEndpointsOutput) @@ -144,6 +163,10 @@ type ChimeSDKIdentityAPI interface { PutAppInstanceRetentionSettingsWithContext(aws.Context, *chimesdkidentity.PutAppInstanceRetentionSettingsInput, ...request.Option) (*chimesdkidentity.PutAppInstanceRetentionSettingsOutput, error) PutAppInstanceRetentionSettingsRequest(*chimesdkidentity.PutAppInstanceRetentionSettingsInput) (*request.Request, *chimesdkidentity.PutAppInstanceRetentionSettingsOutput) + PutAppInstanceUserExpirationSettings(*chimesdkidentity.PutAppInstanceUserExpirationSettingsInput) (*chimesdkidentity.PutAppInstanceUserExpirationSettingsOutput, error) + PutAppInstanceUserExpirationSettingsWithContext(aws.Context, *chimesdkidentity.PutAppInstanceUserExpirationSettingsInput, ...request.Option) (*chimesdkidentity.PutAppInstanceUserExpirationSettingsOutput, error) + PutAppInstanceUserExpirationSettingsRequest(*chimesdkidentity.PutAppInstanceUserExpirationSettingsInput) (*request.Request, *chimesdkidentity.PutAppInstanceUserExpirationSettingsOutput) + RegisterAppInstanceUserEndpoint(*chimesdkidentity.RegisterAppInstanceUserEndpointInput) (*chimesdkidentity.RegisterAppInstanceUserEndpointOutput, error) RegisterAppInstanceUserEndpointWithContext(aws.Context, *chimesdkidentity.RegisterAppInstanceUserEndpointInput, ...request.Option) (*chimesdkidentity.RegisterAppInstanceUserEndpointOutput, error) RegisterAppInstanceUserEndpointRequest(*chimesdkidentity.RegisterAppInstanceUserEndpointInput) (*request.Request, *chimesdkidentity.RegisterAppInstanceUserEndpointOutput) @@ -160,6 +183,10 @@ type ChimeSDKIdentityAPI interface { UpdateAppInstanceWithContext(aws.Context, *chimesdkidentity.UpdateAppInstanceInput, ...request.Option) (*chimesdkidentity.UpdateAppInstanceOutput, error) UpdateAppInstanceRequest(*chimesdkidentity.UpdateAppInstanceInput) (*request.Request, *chimesdkidentity.UpdateAppInstanceOutput) + UpdateAppInstanceBot(*chimesdkidentity.UpdateAppInstanceBotInput) (*chimesdkidentity.UpdateAppInstanceBotOutput, error) + UpdateAppInstanceBotWithContext(aws.Context, *chimesdkidentity.UpdateAppInstanceBotInput, ...request.Option) (*chimesdkidentity.UpdateAppInstanceBotOutput, error) + UpdateAppInstanceBotRequest(*chimesdkidentity.UpdateAppInstanceBotInput) (*request.Request, *chimesdkidentity.UpdateAppInstanceBotOutput) + UpdateAppInstanceUser(*chimesdkidentity.UpdateAppInstanceUserInput) (*chimesdkidentity.UpdateAppInstanceUserOutput, error) UpdateAppInstanceUserWithContext(aws.Context, *chimesdkidentity.UpdateAppInstanceUserInput, ...request.Option) (*chimesdkidentity.UpdateAppInstanceUserOutput, error) UpdateAppInstanceUserRequest(*chimesdkidentity.UpdateAppInstanceUserInput) (*request.Request, *chimesdkidentity.UpdateAppInstanceUserOutput) diff --git a/service/chimesdkidentity/errors.go b/service/chimesdkidentity/errors.go index e1c74cc8547..985d43322fb 100644 --- a/service/chimesdkidentity/errors.go +++ b/service/chimesdkidentity/errors.go @@ -27,6 +27,12 @@ const ( // The client is permanently forbidden from making the request. ErrCodeForbiddenException = "ForbiddenException" + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // One or more of the resources in the request does not exist in the system. + ErrCodeNotFoundException = "NotFoundException" + // ErrCodeResourceLimitExceededException for service response error code // "ResourceLimitExceededException". // @@ -62,6 +68,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "BadRequestException": newErrorBadRequestException, "ConflictException": newErrorConflictException, "ForbiddenException": newErrorForbiddenException, + "NotFoundException": newErrorNotFoundException, "ResourceLimitExceededException": newErrorResourceLimitExceededException, "ServiceFailureException": newErrorServiceFailureException, "ServiceUnavailableException": newErrorServiceUnavailableException, diff --git a/service/chimesdkmediapipelines/api.go b/service/chimesdkmediapipelines/api.go index 8b0e5cf7f5a..45651501a11 100644 --- a/service/chimesdkmediapipelines/api.go +++ b/service/chimesdkmediapipelines/api.go @@ -207,6 +207,207 @@ func (c *ChimeSDKMediaPipelines) CreateMediaConcatenationPipelineWithContext(ctx return out, req.Send() } +const opCreateMediaInsightsPipeline = "CreateMediaInsightsPipeline" + +// CreateMediaInsightsPipelineRequest generates a "aws/request.Request" representing the +// client's request for the CreateMediaInsightsPipeline 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 CreateMediaInsightsPipeline for more information on using the CreateMediaInsightsPipeline +// 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 CreateMediaInsightsPipelineRequest method. +// req, resp := client.CreateMediaInsightsPipelineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/CreateMediaInsightsPipeline +func (c *ChimeSDKMediaPipelines) CreateMediaInsightsPipelineRequest(input *CreateMediaInsightsPipelineInput) (req *request.Request, output *CreateMediaInsightsPipelineOutput) { + op := &request.Operation{ + Name: opCreateMediaInsightsPipeline, + HTTPMethod: "POST", + HTTPPath: "/media-insights-pipelines", + } + + if input == nil { + input = &CreateMediaInsightsPipelineInput{} + } + + output = &CreateMediaInsightsPipelineOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMediaInsightsPipeline API operation for Amazon Chime SDK Media Pipelines. +// +// Creates a media insights pipeline. +// +// 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 SDK Media Pipelines's +// API operation CreateMediaInsightsPipeline for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/CreateMediaInsightsPipeline +func (c *ChimeSDKMediaPipelines) CreateMediaInsightsPipeline(input *CreateMediaInsightsPipelineInput) (*CreateMediaInsightsPipelineOutput, error) { + req, out := c.CreateMediaInsightsPipelineRequest(input) + return out, req.Send() +} + +// CreateMediaInsightsPipelineWithContext is the same as CreateMediaInsightsPipeline with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMediaInsightsPipeline 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 *ChimeSDKMediaPipelines) CreateMediaInsightsPipelineWithContext(ctx aws.Context, input *CreateMediaInsightsPipelineInput, opts ...request.Option) (*CreateMediaInsightsPipelineOutput, error) { + req, out := c.CreateMediaInsightsPipelineRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateMediaInsightsPipelineConfiguration = "CreateMediaInsightsPipelineConfiguration" + +// CreateMediaInsightsPipelineConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the CreateMediaInsightsPipelineConfiguration 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 CreateMediaInsightsPipelineConfiguration for more information on using the CreateMediaInsightsPipelineConfiguration +// 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 CreateMediaInsightsPipelineConfigurationRequest method. +// req, resp := client.CreateMediaInsightsPipelineConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/CreateMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) CreateMediaInsightsPipelineConfigurationRequest(input *CreateMediaInsightsPipelineConfigurationInput) (req *request.Request, output *CreateMediaInsightsPipelineConfigurationOutput) { + op := &request.Operation{ + Name: opCreateMediaInsightsPipelineConfiguration, + HTTPMethod: "POST", + HTTPPath: "/media-insights-pipeline-configurations", + } + + if input == nil { + input = &CreateMediaInsightsPipelineConfigurationInput{} + } + + output = &CreateMediaInsightsPipelineConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMediaInsightsPipelineConfiguration API operation for Amazon Chime SDK Media Pipelines. +// +// A structure that contains the static configurations for a media insights +// pipeline. +// +// 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 SDK Media Pipelines's +// API operation CreateMediaInsightsPipelineConfiguration for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/CreateMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) CreateMediaInsightsPipelineConfiguration(input *CreateMediaInsightsPipelineConfigurationInput) (*CreateMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.CreateMediaInsightsPipelineConfigurationRequest(input) + return out, req.Send() +} + +// CreateMediaInsightsPipelineConfigurationWithContext is the same as CreateMediaInsightsPipelineConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMediaInsightsPipelineConfiguration 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 *ChimeSDKMediaPipelines) CreateMediaInsightsPipelineConfigurationWithContext(ctx aws.Context, input *CreateMediaInsightsPipelineConfigurationInput, opts ...request.Option) (*CreateMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.CreateMediaInsightsPipelineConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateMediaLiveConnectorPipeline = "CreateMediaLiveConnectorPipeline" // CreateMediaLiveConnectorPipelineRequest generates a "aws/request.Request" representing the @@ -250,7 +451,7 @@ func (c *ChimeSDKMediaPipelines) CreateMediaLiveConnectorPipelineRequest(input * // CreateMediaLiveConnectorPipeline API operation for Amazon Chime SDK Media Pipelines. // -// Creates a streaming media pipeline in an Amazon Chime SDK meeting. +// Creates a media live connector pipeline in an Amazon Chime SDK meeting. // // 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 @@ -402,6 +603,108 @@ func (c *ChimeSDKMediaPipelines) DeleteMediaCapturePipelineWithContext(ctx aws.C return out, req.Send() } +const opDeleteMediaInsightsPipelineConfiguration = "DeleteMediaInsightsPipelineConfiguration" + +// DeleteMediaInsightsPipelineConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMediaInsightsPipelineConfiguration 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 DeleteMediaInsightsPipelineConfiguration for more information on using the DeleteMediaInsightsPipelineConfiguration +// 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 DeleteMediaInsightsPipelineConfigurationRequest method. +// req, resp := client.DeleteMediaInsightsPipelineConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/DeleteMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) DeleteMediaInsightsPipelineConfigurationRequest(input *DeleteMediaInsightsPipelineConfigurationInput) (req *request.Request, output *DeleteMediaInsightsPipelineConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteMediaInsightsPipelineConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/media-insights-pipeline-configurations/{identifier}", + } + + if input == nil { + input = &DeleteMediaInsightsPipelineConfigurationInput{} + } + + output = &DeleteMediaInsightsPipelineConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteMediaInsightsPipelineConfiguration API operation for Amazon Chime SDK Media Pipelines. +// +// Deletes the specified configuration settings. +// +// 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 SDK Media Pipelines's +// API operation DeleteMediaInsightsPipelineConfiguration for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/DeleteMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) DeleteMediaInsightsPipelineConfiguration(input *DeleteMediaInsightsPipelineConfigurationInput) (*DeleteMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.DeleteMediaInsightsPipelineConfigurationRequest(input) + return out, req.Send() +} + +// DeleteMediaInsightsPipelineConfigurationWithContext is the same as DeleteMediaInsightsPipelineConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteMediaInsightsPipelineConfiguration 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 *ChimeSDKMediaPipelines) DeleteMediaInsightsPipelineConfigurationWithContext(ctx aws.Context, input *DeleteMediaInsightsPipelineConfigurationInput, opts ...request.Option) (*DeleteMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.DeleteMediaInsightsPipelineConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteMediaPipeline = "DeleteMediaPipeline" // DeleteMediaPipelineRequest generates a "aws/request.Request" representing the @@ -597,57 +900,57 @@ func (c *ChimeSDKMediaPipelines) GetMediaCapturePipelineWithContext(ctx aws.Cont return out, req.Send() } -const opGetMediaPipeline = "GetMediaPipeline" +const opGetMediaInsightsPipelineConfiguration = "GetMediaInsightsPipelineConfiguration" -// GetMediaPipelineRequest generates a "aws/request.Request" representing the -// client's request for the GetMediaPipeline operation. The "output" return +// GetMediaInsightsPipelineConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetMediaInsightsPipelineConfiguration 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 GetMediaPipeline for more information on using the GetMediaPipeline +// See GetMediaInsightsPipelineConfiguration for more information on using the GetMediaInsightsPipelineConfiguration // 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 GetMediaPipelineRequest method. -// req, resp := client.GetMediaPipelineRequest(params) +// // Example sending a request using the GetMediaInsightsPipelineConfigurationRequest method. +// req, resp := client.GetMediaInsightsPipelineConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetMediaPipeline -func (c *ChimeSDKMediaPipelines) GetMediaPipelineRequest(input *GetMediaPipelineInput) (req *request.Request, output *GetMediaPipelineOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) GetMediaInsightsPipelineConfigurationRequest(input *GetMediaInsightsPipelineConfigurationInput) (req *request.Request, output *GetMediaInsightsPipelineConfigurationOutput) { op := &request.Operation{ - Name: opGetMediaPipeline, + Name: opGetMediaInsightsPipelineConfiguration, HTTPMethod: "GET", - HTTPPath: "/sdk-media-pipelines/{mediaPipelineId}", + HTTPPath: "/media-insights-pipeline-configurations/{identifier}", } if input == nil { - input = &GetMediaPipelineInput{} + input = &GetMediaInsightsPipelineConfigurationInput{} } - output = &GetMediaPipelineOutput{} + output = &GetMediaInsightsPipelineConfigurationOutput{} req = c.newRequest(op, input, output) return } -// GetMediaPipeline API operation for Amazon Chime SDK Media Pipelines. +// GetMediaInsightsPipelineConfiguration API operation for Amazon Chime SDK Media Pipelines. // -// Gets an existing media pipeline. +// Gets the configuration settings for a media insights pipeline. // // 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 SDK Media Pipelines's -// API operation GetMediaPipeline for usage and error information. +// API operation GetMediaInsightsPipelineConfiguration for usage and error information. // // Returned Error Types: // @@ -672,23 +975,120 @@ func (c *ChimeSDKMediaPipelines) GetMediaPipelineRequest(input *GetMediaPipeline // - ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetMediaPipeline -func (c *ChimeSDKMediaPipelines) GetMediaPipeline(input *GetMediaPipelineInput) (*GetMediaPipelineOutput, error) { - req, out := c.GetMediaPipelineRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) GetMediaInsightsPipelineConfiguration(input *GetMediaInsightsPipelineConfigurationInput) (*GetMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.GetMediaInsightsPipelineConfigurationRequest(input) return out, req.Send() } -// GetMediaPipelineWithContext is the same as GetMediaPipeline with the addition of +// GetMediaInsightsPipelineConfigurationWithContext is the same as GetMediaInsightsPipelineConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetMediaPipeline for details on how to use this API operation. +// See GetMediaInsightsPipelineConfiguration 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 *ChimeSDKMediaPipelines) GetMediaPipelineWithContext(ctx aws.Context, input *GetMediaPipelineInput, opts ...request.Option) (*GetMediaPipelineOutput, error) { - req, out := c.GetMediaPipelineRequest(input) +func (c *ChimeSDKMediaPipelines) GetMediaInsightsPipelineConfigurationWithContext(ctx aws.Context, input *GetMediaInsightsPipelineConfigurationInput, opts ...request.Option) (*GetMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.GetMediaInsightsPipelineConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMediaPipeline = "GetMediaPipeline" + +// GetMediaPipelineRequest generates a "aws/request.Request" representing the +// client's request for the GetMediaPipeline 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 GetMediaPipeline for more information on using the GetMediaPipeline +// 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 GetMediaPipelineRequest method. +// req, resp := client.GetMediaPipelineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetMediaPipeline +func (c *ChimeSDKMediaPipelines) GetMediaPipelineRequest(input *GetMediaPipelineInput) (req *request.Request, output *GetMediaPipelineOutput) { + op := &request.Operation{ + Name: opGetMediaPipeline, + HTTPMethod: "GET", + HTTPPath: "/sdk-media-pipelines/{mediaPipelineId}", + } + + if input == nil { + input = &GetMediaPipelineInput{} + } + + output = &GetMediaPipelineOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMediaPipeline API operation for Amazon Chime SDK Media Pipelines. +// +// Gets an existing media pipeline. +// +// 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 SDK Media Pipelines's +// API operation GetMediaPipeline for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/GetMediaPipeline +func (c *ChimeSDKMediaPipelines) GetMediaPipeline(input *GetMediaPipelineInput) (*GetMediaPipelineOutput, error) { + req, out := c.GetMediaPipelineRequest(input) + return out, req.Send() +} + +// GetMediaPipelineWithContext is the same as GetMediaPipeline with the addition of +// the ability to pass a context and additional request options. +// +// See GetMediaPipeline 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 *ChimeSDKMediaPipelines) GetMediaPipelineWithContext(ctx aws.Context, input *GetMediaPipelineInput, opts ...request.Option) (*GetMediaPipelineOutput, error) { + req, out := c.GetMediaPipelineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() @@ -848,6 +1248,160 @@ func (c *ChimeSDKMediaPipelines) ListMediaCapturePipelinesPagesWithContext(ctx a return p.Err() } +const opListMediaInsightsPipelineConfigurations = "ListMediaInsightsPipelineConfigurations" + +// ListMediaInsightsPipelineConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListMediaInsightsPipelineConfigurations 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 ListMediaInsightsPipelineConfigurations for more information on using the ListMediaInsightsPipelineConfigurations +// 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 ListMediaInsightsPipelineConfigurationsRequest method. +// req, resp := client.ListMediaInsightsPipelineConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/ListMediaInsightsPipelineConfigurations +func (c *ChimeSDKMediaPipelines) ListMediaInsightsPipelineConfigurationsRequest(input *ListMediaInsightsPipelineConfigurationsInput) (req *request.Request, output *ListMediaInsightsPipelineConfigurationsOutput) { + op := &request.Operation{ + Name: opListMediaInsightsPipelineConfigurations, + HTTPMethod: "GET", + HTTPPath: "/media-insights-pipeline-configurations", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListMediaInsightsPipelineConfigurationsInput{} + } + + output = &ListMediaInsightsPipelineConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListMediaInsightsPipelineConfigurations API operation for Amazon Chime SDK Media Pipelines. +// +// Lists the available media insights pipeline configurations. +// +// 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 SDK Media Pipelines's +// API operation ListMediaInsightsPipelineConfigurations for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - ResourceLimitExceededException +// The request exceeds the resource limit. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/ListMediaInsightsPipelineConfigurations +func (c *ChimeSDKMediaPipelines) ListMediaInsightsPipelineConfigurations(input *ListMediaInsightsPipelineConfigurationsInput) (*ListMediaInsightsPipelineConfigurationsOutput, error) { + req, out := c.ListMediaInsightsPipelineConfigurationsRequest(input) + return out, req.Send() +} + +// ListMediaInsightsPipelineConfigurationsWithContext is the same as ListMediaInsightsPipelineConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See ListMediaInsightsPipelineConfigurations 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 *ChimeSDKMediaPipelines) ListMediaInsightsPipelineConfigurationsWithContext(ctx aws.Context, input *ListMediaInsightsPipelineConfigurationsInput, opts ...request.Option) (*ListMediaInsightsPipelineConfigurationsOutput, error) { + req, out := c.ListMediaInsightsPipelineConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMediaInsightsPipelineConfigurationsPages iterates over the pages of a ListMediaInsightsPipelineConfigurations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMediaInsightsPipelineConfigurations 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 ListMediaInsightsPipelineConfigurations operation. +// pageNum := 0 +// err := client.ListMediaInsightsPipelineConfigurationsPages(params, +// func(page *chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKMediaPipelines) ListMediaInsightsPipelineConfigurationsPages(input *ListMediaInsightsPipelineConfigurationsInput, fn func(*ListMediaInsightsPipelineConfigurationsOutput, bool) bool) error { + return c.ListMediaInsightsPipelineConfigurationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMediaInsightsPipelineConfigurationsPagesWithContext same as ListMediaInsightsPipelineConfigurationsPages 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 *ChimeSDKMediaPipelines) ListMediaInsightsPipelineConfigurationsPagesWithContext(ctx aws.Context, input *ListMediaInsightsPipelineConfigurationsInput, fn func(*ListMediaInsightsPipelineConfigurationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMediaInsightsPipelineConfigurationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMediaInsightsPipelineConfigurationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMediaInsightsPipelineConfigurationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListMediaPipelines = "ListMediaPipelines" // ListMediaPipelinesRequest generates a "aws/request.Request" representing the @@ -1143,7 +1697,7 @@ func (c *ChimeSDKMediaPipelines) TagResourceRequest(input *TagResourceInput) (re // TagResource API operation for Amazon Chime SDK Media Pipelines. // -// The ARN of the media pipeline that you want to tag. Consists of he pipeline's +// The ARN of the media pipeline that you want to tag. Consists of the pipeline's // endpoint region, resource ID, and pipeline ID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1296,44 +1850,335 @@ func (c *ChimeSDKMediaPipelines) UntagResourceWithContext(ctx aws.Context, input return out, req.Send() } -// The configuration for the artifacts concatenation. -type ArtifactsConcatenationConfiguration struct { - _ struct{} `type:"structure"` +const opUpdateMediaInsightsPipelineConfiguration = "UpdateMediaInsightsPipelineConfiguration" - // The configuration for the audio artifacts concatenation. - // - // Audio is a required field - Audio *AudioConcatenationConfiguration `type:"structure" required:"true"` +// UpdateMediaInsightsPipelineConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMediaInsightsPipelineConfiguration 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 UpdateMediaInsightsPipelineConfiguration for more information on using the UpdateMediaInsightsPipelineConfiguration +// 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 UpdateMediaInsightsPipelineConfigurationRequest method. +// req, resp := client.UpdateMediaInsightsPipelineConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationRequest(input *UpdateMediaInsightsPipelineConfigurationInput) (req *request.Request, output *UpdateMediaInsightsPipelineConfigurationOutput) { + op := &request.Operation{ + Name: opUpdateMediaInsightsPipelineConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/media-insights-pipeline-configurations/{identifier}", + } - // The configuration for the composited video artifacts concatenation. - // - // CompositedVideo is a required field - CompositedVideo *CompositedVideoConcatenationConfiguration `type:"structure" required:"true"` + if input == nil { + input = &UpdateMediaInsightsPipelineConfigurationInput{} + } - // The configuration for the content artifacts concatenation. - // - // Content is a required field - Content *ContentConcatenationConfiguration `type:"structure" required:"true"` + output = &UpdateMediaInsightsPipelineConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} - // The configuration for the data channel artifacts concatenation. +// UpdateMediaInsightsPipelineConfiguration API operation for Amazon Chime SDK Media Pipelines. +// +// Updates the media insights pipeline's configuration settings. +// +// 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 SDK Media Pipelines's +// API operation UpdateMediaInsightsPipelineConfiguration for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineConfiguration +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfiguration(input *UpdateMediaInsightsPipelineConfigurationInput) (*UpdateMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.UpdateMediaInsightsPipelineConfigurationRequest(input) + return out, req.Send() +} + +// UpdateMediaInsightsPipelineConfigurationWithContext is the same as UpdateMediaInsightsPipelineConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateMediaInsightsPipelineConfiguration 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 *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineConfigurationWithContext(ctx aws.Context, input *UpdateMediaInsightsPipelineConfigurationInput, opts ...request.Option) (*UpdateMediaInsightsPipelineConfigurationOutput, error) { + req, out := c.UpdateMediaInsightsPipelineConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateMediaInsightsPipelineStatus = "UpdateMediaInsightsPipelineStatus" + +// UpdateMediaInsightsPipelineStatusRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMediaInsightsPipelineStatus 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 UpdateMediaInsightsPipelineStatus for more information on using the UpdateMediaInsightsPipelineStatus +// 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 UpdateMediaInsightsPipelineStatusRequest method. +// req, resp := client.UpdateMediaInsightsPipelineStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineStatus +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusRequest(input *UpdateMediaInsightsPipelineStatusInput) (req *request.Request, output *UpdateMediaInsightsPipelineStatusOutput) { + op := &request.Operation{ + Name: opUpdateMediaInsightsPipelineStatus, + HTTPMethod: "PUT", + HTTPPath: "/media-insights-pipeline-status/{identifier}", + } + + if input == nil { + input = &UpdateMediaInsightsPipelineStatusInput{} + } + + output = &UpdateMediaInsightsPipelineStatusOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateMediaInsightsPipelineStatus API operation for Amazon Chime SDK Media Pipelines. +// +// Updates the status of a media insights pipeline. +// +// 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 SDK Media Pipelines's +// API operation UpdateMediaInsightsPipelineStatus for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/UpdateMediaInsightsPipelineStatus +func (c *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatus(input *UpdateMediaInsightsPipelineStatusInput) (*UpdateMediaInsightsPipelineStatusOutput, error) { + req, out := c.UpdateMediaInsightsPipelineStatusRequest(input) + return out, req.Send() +} + +// UpdateMediaInsightsPipelineStatusWithContext is the same as UpdateMediaInsightsPipelineStatus with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateMediaInsightsPipelineStatus 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 *ChimeSDKMediaPipelines) UpdateMediaInsightsPipelineStatusWithContext(ctx aws.Context, input *UpdateMediaInsightsPipelineStatusInput, opts ...request.Option) (*UpdateMediaInsightsPipelineStatusOutput, error) { + req, out := c.UpdateMediaInsightsPipelineStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// A structure that contains the configuration settings for an Amazon Transcribe +// call analytics processor. +type AmazonTranscribeCallAnalyticsProcessorConfiguration struct { + _ struct{} `type:"structure"` + + // By default, all CategoryEvents will be sent to the insights target. If this + // parameter is specified, only included categories will be sent to the insights + // target. + CallAnalyticsStreamCategories []*string `min:"1" type:"list"` + + // Labels all personally identifiable information (PII) identified in your transcript. // - // DataChannel is a required field - DataChannel *DataChannelConcatenationConfiguration `type:"structure" required:"true"` + // Content identification is performed at the segment level; PII specified in + // PiiEntityTypes is flagged upon complete transcription of an audio segment. + // + // You can’t set ContentIdentificationType and ContentRedactionType in the + // same request. If you do, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentIdentificationType *string `type:"string" enum:"ContentType"` - // The configuration for the meeting events artifacts concatenation. + // Redacts all personally identifiable information (PII) identified in your + // transcript. // - // MeetingEvents is a required field - MeetingEvents *MeetingEventsConcatenationConfiguration `type:"structure" required:"true"` + // Content redaction is performed at the segment level; PII specified in PiiEntityTypes + // is redacted upon complete transcription of an audio segment. + // + // You can’t set ContentRedactionType and ContentIdentificationType in the + // same request. If you do, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentRedactionType *string `type:"string" enum:"ContentType"` + + // Enables partial result stabilization for your transcription. Partial result + // stabilization can reduce latency in your output, but may impact accuracy. + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + EnablePartialResultsStabilization *bool `type:"boolean"` + + // If true, UtteranceEvents with IsPartial: true are filtered out of the insights + // target. + FilterPartialResults *bool `type:"boolean"` + + // The language code in the configuration. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"CallAnalyticsLanguageCode"` - // The configuration for the transcription messages artifacts concatenation. + // Specifies the name of the custom language model to use when processing a + // transcription. Note that language model names are case sensitive. // - // TranscriptionMessages is a required field - TranscriptionMessages *TranscriptionMessagesConcatenationConfiguration `type:"structure" required:"true"` + // The language of the specified language model must match the language code + // specified in the transcription request. If the languages don't match, the + // custom language model isn't applied. Language mismatches don't generate errors + // or warnings. + // + // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html) + // in the Amazon Transcribe Developer Guide. + LanguageModelName *string `min:"1" type:"string"` - // The configuration for the video artifacts concatenation. + // Specifies the level of stability to use when you enable partial results stabilization + // (EnablePartialResultsStabilization). // - // Video is a required field - Video *VideoConcatenationConfiguration `type:"structure" required:"true"` + // Low stability provides the highest accuracy. High stability transcribes faster, + // but with slightly lower accuracy. + // + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + PartialResultsStability *string `type:"string" enum:"PartialResultsStability"` + + // Specifies the types of personally identifiable information (PII) to redact + // from a transcript. You can include as many types as you'd like, or you can + // select ALL. + // + // To include PiiEntityTypes in your Call Analytics request, you must also include + // ContentIdentificationType or ContentRedactionType, but you can't include + // both. + // + // Values must be comma-separated and can include: ADDRESS, BANK_ACCOUNT_NUMBER, + // BANK_ROUTING, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, CREDIT_DEBIT_NUMBER, + // EMAIL, NAME, PHONE, PIN, SSN, or ALL. + // + // Length Constraints: Minimum length of 1. Maximum length of 300. + PiiEntityTypes *string `min:"1" type:"string"` + + // The settings for a post-call analysis task in an analytics configuration. + PostCallAnalyticsSettings *PostCallAnalyticsSettings `type:"structure"` + + // Specifies how to apply a vocabulary filter to a transcript. + // + // To replace words with ***, choose mask. + // + // To delete words, choose remove. + // + // To flag words without changing them, choose tag. + VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` + + // Specifies the name of the custom vocabulary filter to use when processing + // a transcription. Note that vocabulary filter names are case sensitive. + // + // If the language of the specified custom vocabulary filter doesn't match the + // language identified in your media, the vocabulary filter is not applied to + // your transcription. + // + // For more information, see Using vocabulary filtering with unwanted words + // (https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html) + // in the Amazon Transcribe Developer Guide. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyFilterName *string `min:"1" type:"string"` + + // Specifies the name of the custom vocabulary to use when processing a transcription. + // Note that vocabulary names are case sensitive. + // + // If the language of the specified custom vocabulary doesn't match the language + // identified in your media, the custom vocabulary is not applied to your transcription. + // + // For more information, see Custom vocabularies (https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html) + // in the Amazon Transcribe Developer Guide. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyName *string `min:"1" type:"string"` } // String returns the string representation. @@ -1341,7 +2186,7 @@ type ArtifactsConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ArtifactsConcatenationConfiguration) String() string { +func (s AmazonTranscribeCallAnalyticsProcessorConfiguration) String() string { return awsutil.Prettify(s) } @@ -1350,67 +2195,34 @@ func (s ArtifactsConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ArtifactsConcatenationConfiguration) GoString() string { +func (s AmazonTranscribeCallAnalyticsProcessorConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ArtifactsConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ArtifactsConcatenationConfiguration"} - if s.Audio == nil { - invalidParams.Add(request.NewErrParamRequired("Audio")) - } - if s.CompositedVideo == nil { - invalidParams.Add(request.NewErrParamRequired("CompositedVideo")) - } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } - if s.DataChannel == nil { - invalidParams.Add(request.NewErrParamRequired("DataChannel")) - } - if s.MeetingEvents == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingEvents")) - } - if s.TranscriptionMessages == nil { - invalidParams.Add(request.NewErrParamRequired("TranscriptionMessages")) - } - if s.Video == nil { - invalidParams.Add(request.NewErrParamRequired("Video")) - } - if s.Audio != nil { - if err := s.Audio.Validate(); err != nil { - invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) - } +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AmazonTranscribeCallAnalyticsProcessorConfiguration"} + if s.CallAnalyticsStreamCategories != nil && len(s.CallAnalyticsStreamCategories) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CallAnalyticsStreamCategories", 1)) } - if s.CompositedVideo != nil { - if err := s.CompositedVideo.Validate(); err != nil { - invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) - } + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) } - if s.Content != nil { - if err := s.Content.Validate(); err != nil { - invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) - } + if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) } - if s.DataChannel != nil { - if err := s.DataChannel.Validate(); err != nil { - invalidParams.AddNested("DataChannel", err.(request.ErrInvalidParams)) - } + if s.PiiEntityTypes != nil && len(*s.PiiEntityTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PiiEntityTypes", 1)) } - if s.MeetingEvents != nil { - if err := s.MeetingEvents.Validate(); err != nil { - invalidParams.AddNested("MeetingEvents", err.(request.ErrInvalidParams)) - } + if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) } - if s.TranscriptionMessages != nil { - if err := s.TranscriptionMessages.Validate(); err != nil { - invalidParams.AddNested("TranscriptionMessages", err.(request.ErrInvalidParams)) - } + if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) } - if s.Video != nil { - if err := s.Video.Validate(); err != nil { - invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + if s.PostCallAnalyticsSettings != nil { + if err := s.PostCallAnalyticsSettings.Validate(); err != nil { + invalidParams.AddNested("PostCallAnalyticsSettings", err.(request.ErrInvalidParams)) } } @@ -1420,69 +2232,2661 @@ func (s *ArtifactsConcatenationConfiguration) Validate() error { return nil } -// SetAudio sets the Audio field's value. -func (s *ArtifactsConcatenationConfiguration) SetAudio(v *AudioConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.Audio = v +// SetCallAnalyticsStreamCategories sets the CallAnalyticsStreamCategories field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetCallAnalyticsStreamCategories(v []*string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.CallAnalyticsStreamCategories = v return s } -// SetCompositedVideo sets the CompositedVideo field's value. -func (s *ArtifactsConcatenationConfiguration) SetCompositedVideo(v *CompositedVideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.CompositedVideo = v +// SetContentIdentificationType sets the ContentIdentificationType field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetContentIdentificationType(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.ContentIdentificationType = &v return s } -// SetContent sets the Content field's value. -func (s *ArtifactsConcatenationConfiguration) SetContent(v *ContentConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.Content = v +// SetContentRedactionType sets the ContentRedactionType field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetContentRedactionType(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.ContentRedactionType = &v return s } -// SetDataChannel sets the DataChannel field's value. -func (s *ArtifactsConcatenationConfiguration) SetDataChannel(v *DataChannelConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.DataChannel = v +// SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetEnablePartialResultsStabilization(v bool) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.EnablePartialResultsStabilization = &v return s } -// SetMeetingEvents sets the MeetingEvents field's value. -func (s *ArtifactsConcatenationConfiguration) SetMeetingEvents(v *MeetingEventsConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.MeetingEvents = v +// SetFilterPartialResults sets the FilterPartialResults field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetFilterPartialResults(v bool) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.FilterPartialResults = &v return s } -// SetTranscriptionMessages sets the TranscriptionMessages field's value. -func (s *ArtifactsConcatenationConfiguration) SetTranscriptionMessages(v *TranscriptionMessagesConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.TranscriptionMessages = v +// SetLanguageCode sets the LanguageCode field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetLanguageCode(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.LanguageCode = &v return s } -// SetVideo sets the Video field's value. -func (s *ArtifactsConcatenationConfiguration) SetVideo(v *VideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { - s.Video = v +// SetLanguageModelName sets the LanguageModelName field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetLanguageModelName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.LanguageModelName = &v + return s +} + +// SetPartialResultsStability sets the PartialResultsStability field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPartialResultsStability(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.PartialResultsStability = &v + return s +} + +// SetPiiEntityTypes sets the PiiEntityTypes field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPiiEntityTypes(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.PiiEntityTypes = &v + return s +} + +// SetPostCallAnalyticsSettings sets the PostCallAnalyticsSettings field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetPostCallAnalyticsSettings(v *PostCallAnalyticsSettings) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.PostCallAnalyticsSettings = v + return s +} + +// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyFilterMethod(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.VocabularyFilterMethod = &v + return s +} + +// SetVocabularyFilterName sets the VocabularyFilterName field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyFilterName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.VocabularyFilterName = &v + return s +} + +// SetVocabularyName sets the VocabularyName field's value. +func (s *AmazonTranscribeCallAnalyticsProcessorConfiguration) SetVocabularyName(v string) *AmazonTranscribeCallAnalyticsProcessorConfiguration { + s.VocabularyName = &v return s } -// The configuration for the artifacts. -type ArtifactsConfiguration struct { +// A structure that contains the configuration settings for an Amazon Transcribe +// processor. +type AmazonTranscribeProcessorConfiguration struct { + _ struct{} `type:"structure"` + + // Labels all personally identifiable information (PII) identified in your transcript. + // + // Content identification is performed at the segment level; PII specified in + // PiiEntityTypes is flagged upon complete transcription of an audio segment. + // + // You can’t set ContentIdentificationType and ContentRedactionType in the + // same request. If you set both, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentIdentificationType *string `type:"string" enum:"ContentType"` + + // Redacts all personally identifiable information (PII) identified in your + // transcript. + // + // Content redaction is performed at the segment level; PII specified in PiiEntityTypes + // is redacted upon complete transcription of an audio segment. + // + // You can’t set ContentRedactionType and ContentIdentificationType in the + // same request. If you set both, your request returns a BadRequestException. + // + // For more information, see Redacting or identifying personally identifiable + // information (https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html) + // in the Amazon Transcribe Developer Guide. + ContentRedactionType *string `type:"string" enum:"ContentType"` + + // Enables partial result stabilization for your transcription. Partial result + // stabilization can reduce latency in your output, but may impact accuracy. + // + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + EnablePartialResultsStabilization *bool `type:"boolean"` + + // If true, TranscriptEvents with IsPartial: true are filtered out of the insights + // target. + FilterPartialResults *bool `type:"boolean"` + + // The language code that represents the language spoken in your audio. + // + // If you're unsure of the language spoken in your audio, consider using IdentifyLanguage + // to enable automatic language identification. + // + // For a list of languages that real-time Call Analytics supports, see the Supported + // languages table (https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) + // in the Amazon Transcribe Developer Guide. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"CallAnalyticsLanguageCode"` + + // The name of the custom language model that you want to use when processing + // your transcription. Note that language model names are case sensitive. + // + // The language of the specified language model must match the language code + // you specify in your transcription request. If the languages don't match, + // the custom language model isn't applied. There are no errors or warnings + // associated with a language mismatch. + // + // For more information, see Custom language models (https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html) + // in the Amazon Transcribe Developer Guide. + LanguageModelName *string `min:"1" type:"string"` + + // The level of stability to use when you enable partial results stabilization + // (EnablePartialResultsStabilization). + // + // Low stability provides the highest accuracy. High stability transcribes faster, + // but with slightly lower accuracy. + // + // For more information, see Partial-result stabilization (https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization) + // in the Amazon Transcribe Developer Guide. + PartialResultsStability *string `type:"string" enum:"PartialResultsStability"` + + // The types of personally identifiable information (PII) to redact from a transcript. + // You can include as many types as you'd like, or you can select ALL. + // + // To include PiiEntityTypes in your Call Analytics request, you must also include + // ContentIdentificationType or ContentRedactionType, but you can't include + // both. + // + // Values must be comma-separated and can include: ADDRESS, BANK_ACCOUNT_NUMBER, + // BANK_ROUTING, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, CREDIT_DEBIT_NUMBER, + // EMAIL, NAME, PHONE, PIN, SSN, or ALL. + // + // Length Constraints: Minimum length of 1. Maximum length of 300. + PiiEntityTypes *string `min:"1" type:"string"` + + // Enables speaker partitioning (diarization) in your transcription output. + // Speaker partitioning labels the speech from individual speakers in your media + // file. + // + // For more information, see Partitioning speakers (diarization) (https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html) + // in the Amazon Transcribe Developer Guide. + ShowSpeakerLabel *bool `type:"boolean"` + + // The vocabulary filtering method used in your Call Analytics transcription. + VocabularyFilterMethod *string `type:"string" enum:"VocabularyFilterMethod"` + + // The name of the custom vocabulary filter that you specified in your Call + // Analytics request. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyFilterName *string `min:"1" type:"string"` + + // The name of the custom vocabulary that you specified in your Call Analytics + // request. + // + // Length Constraints: Minimum length of 1. Maximum length of 200. + VocabularyName *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AmazonTranscribeProcessorConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AmazonTranscribeProcessorConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AmazonTranscribeProcessorConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AmazonTranscribeProcessorConfiguration"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.LanguageModelName != nil && len(*s.LanguageModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LanguageModelName", 1)) + } + if s.PiiEntityTypes != nil && len(*s.PiiEntityTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PiiEntityTypes", 1)) + } + if s.VocabularyFilterName != nil && len(*s.VocabularyFilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyFilterName", 1)) + } + if s.VocabularyName != nil && len(*s.VocabularyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VocabularyName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContentIdentificationType sets the ContentIdentificationType field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetContentIdentificationType(v string) *AmazonTranscribeProcessorConfiguration { + s.ContentIdentificationType = &v + return s +} + +// SetContentRedactionType sets the ContentRedactionType field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetContentRedactionType(v string) *AmazonTranscribeProcessorConfiguration { + s.ContentRedactionType = &v + return s +} + +// SetEnablePartialResultsStabilization sets the EnablePartialResultsStabilization field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetEnablePartialResultsStabilization(v bool) *AmazonTranscribeProcessorConfiguration { + s.EnablePartialResultsStabilization = &v + return s +} + +// SetFilterPartialResults sets the FilterPartialResults field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetFilterPartialResults(v bool) *AmazonTranscribeProcessorConfiguration { + s.FilterPartialResults = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetLanguageCode(v string) *AmazonTranscribeProcessorConfiguration { + s.LanguageCode = &v + return s +} + +// SetLanguageModelName sets the LanguageModelName field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetLanguageModelName(v string) *AmazonTranscribeProcessorConfiguration { + s.LanguageModelName = &v + return s +} + +// SetPartialResultsStability sets the PartialResultsStability field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetPartialResultsStability(v string) *AmazonTranscribeProcessorConfiguration { + s.PartialResultsStability = &v + return s +} + +// SetPiiEntityTypes sets the PiiEntityTypes field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetPiiEntityTypes(v string) *AmazonTranscribeProcessorConfiguration { + s.PiiEntityTypes = &v + return s +} + +// SetShowSpeakerLabel sets the ShowSpeakerLabel field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetShowSpeakerLabel(v bool) *AmazonTranscribeProcessorConfiguration { + s.ShowSpeakerLabel = &v + return s +} + +// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterMethod(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyFilterMethod = &v + return s +} + +// SetVocabularyFilterName sets the VocabularyFilterName field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyFilterName(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyFilterName = &v + return s +} + +// SetVocabularyName sets the VocabularyName field's value. +func (s *AmazonTranscribeProcessorConfiguration) SetVocabularyName(v string) *AmazonTranscribeProcessorConfiguration { + s.VocabularyName = &v + return s +} + +// The configuration for the artifacts concatenation. +type ArtifactsConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for the audio artifacts concatenation. + // + // Audio is a required field + Audio *AudioConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the composited video artifacts concatenation. + // + // CompositedVideo is a required field + CompositedVideo *CompositedVideoConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the content artifacts concatenation. + // + // Content is a required field + Content *ContentConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the data channel artifacts concatenation. + // + // DataChannel is a required field + DataChannel *DataChannelConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the meeting events artifacts concatenation. + // + // MeetingEvents is a required field + MeetingEvents *MeetingEventsConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the transcription messages artifacts concatenation. + // + // TranscriptionMessages is a required field + TranscriptionMessages *TranscriptionMessagesConcatenationConfiguration `type:"structure" required:"true"` + + // The configuration for the video artifacts concatenation. + // + // Video is a required field + Video *VideoConcatenationConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ArtifactsConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ArtifactsConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ArtifactsConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ArtifactsConcatenationConfiguration"} + if s.Audio == nil { + invalidParams.Add(request.NewErrParamRequired("Audio")) + } + if s.CompositedVideo == nil { + invalidParams.Add(request.NewErrParamRequired("CompositedVideo")) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.DataChannel == nil { + invalidParams.Add(request.NewErrParamRequired("DataChannel")) + } + if s.MeetingEvents == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingEvents")) + } + if s.TranscriptionMessages == nil { + invalidParams.Add(request.NewErrParamRequired("TranscriptionMessages")) + } + if s.Video == nil { + invalidParams.Add(request.NewErrParamRequired("Video")) + } + if s.Audio != nil { + if err := s.Audio.Validate(); err != nil { + invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) + } + } + if s.CompositedVideo != nil { + if err := s.CompositedVideo.Validate(); err != nil { + invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) + } + } + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } + } + if s.DataChannel != nil { + if err := s.DataChannel.Validate(); err != nil { + invalidParams.AddNested("DataChannel", err.(request.ErrInvalidParams)) + } + } + if s.MeetingEvents != nil { + if err := s.MeetingEvents.Validate(); err != nil { + invalidParams.AddNested("MeetingEvents", err.(request.ErrInvalidParams)) + } + } + if s.TranscriptionMessages != nil { + if err := s.TranscriptionMessages.Validate(); err != nil { + invalidParams.AddNested("TranscriptionMessages", err.(request.ErrInvalidParams)) + } + } + if s.Video != nil { + if err := s.Video.Validate(); err != nil { + invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAudio sets the Audio field's value. +func (s *ArtifactsConcatenationConfiguration) SetAudio(v *AudioConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.Audio = v + return s +} + +// SetCompositedVideo sets the CompositedVideo field's value. +func (s *ArtifactsConcatenationConfiguration) SetCompositedVideo(v *CompositedVideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.CompositedVideo = v + return s +} + +// SetContent sets the Content field's value. +func (s *ArtifactsConcatenationConfiguration) SetContent(v *ContentConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.Content = v + return s +} + +// SetDataChannel sets the DataChannel field's value. +func (s *ArtifactsConcatenationConfiguration) SetDataChannel(v *DataChannelConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.DataChannel = v + return s +} + +// SetMeetingEvents sets the MeetingEvents field's value. +func (s *ArtifactsConcatenationConfiguration) SetMeetingEvents(v *MeetingEventsConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.MeetingEvents = v + return s +} + +// SetTranscriptionMessages sets the TranscriptionMessages field's value. +func (s *ArtifactsConcatenationConfiguration) SetTranscriptionMessages(v *TranscriptionMessagesConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.TranscriptionMessages = v + return s +} + +// SetVideo sets the Video field's value. +func (s *ArtifactsConcatenationConfiguration) SetVideo(v *VideoConcatenationConfiguration) *ArtifactsConcatenationConfiguration { + s.Video = v + return s +} + +// The configuration for the artifacts. +type ArtifactsConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for the audio artifacts. + // + // Audio is a required field + Audio *AudioArtifactsConfiguration `type:"structure" required:"true"` + + // Enables video compositing. + CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` + + // The configuration for the content artifacts. + // + // Content is a required field + Content *ContentArtifactsConfiguration `type:"structure" required:"true"` + + // The configuration for the video artifacts. + // + // Video is a required field + Video *VideoArtifactsConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ArtifactsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ArtifactsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ArtifactsConfiguration"} + if s.Audio == nil { + invalidParams.Add(request.NewErrParamRequired("Audio")) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Video == nil { + invalidParams.Add(request.NewErrParamRequired("Video")) + } + if s.Audio != nil { + if err := s.Audio.Validate(); err != nil { + invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) + } + } + if s.CompositedVideo != nil { + if err := s.CompositedVideo.Validate(); err != nil { + invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) + } + } + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } + } + if s.Video != nil { + if err := s.Video.Validate(); err != nil { + invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAudio sets the Audio field's value. +func (s *ArtifactsConfiguration) SetAudio(v *AudioArtifactsConfiguration) *ArtifactsConfiguration { + s.Audio = v + return s +} + +// SetCompositedVideo sets the CompositedVideo field's value. +func (s *ArtifactsConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ArtifactsConfiguration { + s.CompositedVideo = v + return s +} + +// SetContent sets the Content field's value. +func (s *ArtifactsConfiguration) SetContent(v *ContentArtifactsConfiguration) *ArtifactsConfiguration { + s.Content = v + return s +} + +// SetVideo sets the Video field's value. +func (s *ArtifactsConfiguration) SetVideo(v *VideoArtifactsConfiguration) *ArtifactsConfiguration { + s.Video = v + return s +} + +// The audio artifact configuration object. +type AudioArtifactsConfiguration struct { + _ struct{} `type:"structure"` + + // The MUX type of the audio artifact configuration object. + // + // MuxType is a required field + MuxType *string `type:"string" required:"true" enum:"AudioMuxType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AudioArtifactsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AudioArtifactsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AudioArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AudioArtifactsConfiguration"} + if s.MuxType == nil { + invalidParams.Add(request.NewErrParamRequired("MuxType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMuxType sets the MuxType field's value. +func (s *AudioArtifactsConfiguration) SetMuxType(v string) *AudioArtifactsConfiguration { + s.MuxType = &v + return s +} + +// The audio artifact concatenation configuration object. +type AudioConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // Enables or disables the configuration object. + // + // State is a required field + State *string `type:"string" required:"true" enum:"AudioArtifactsConcatenationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AudioConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AudioConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AudioConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AudioConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetState sets the State field's value. +func (s *AudioConcatenationConfiguration) SetState(v string) *AudioConcatenationConfiguration { + s.State = &v + return s +} + +// The input parameters don't match the service's restrictions. +type BadRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil +} + +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BadRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BadRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Defines an audio channel in a Kinesis video stream. +type ChannelDefinition struct { + _ struct{} `type:"structure"` + + // The channel ID. + // + // ChannelId is a required field + ChannelId *int64 `type:"integer" required:"true"` + + // Specifies whether the audio in a channel belongs to the AGENT or CUSTOMER. + ParticipantRole *string `type:"string" enum:"ParticipantRole"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChannelDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChannelDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChannelDefinition"} + if s.ChannelId == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelId sets the ChannelId field's value. +func (s *ChannelDefinition) SetChannelId(v int64) *ChannelDefinition { + s.ChannelId = &v + return s +} + +// SetParticipantRole sets the ParticipantRole field's value. +func (s *ChannelDefinition) SetParticipantRole(v string) *ChannelDefinition { + s.ParticipantRole = &v + return s +} + +// The configuration object of the Amazon Chime SDK meeting concatenation for +// a specified media pipeline. +type ChimeSdkMeetingConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for the artifacts in an Amazon Chime SDK meeting concatenation. + // + // ArtifactsConfiguration is a required field + ArtifactsConfiguration *ArtifactsConcatenationConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChimeSdkMeetingConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChimeSdkMeetingConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChimeSdkMeetingConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConcatenationConfiguration"} + if s.ArtifactsConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ArtifactsConfiguration")) + } + if s.ArtifactsConfiguration != nil { + if err := s.ArtifactsConfiguration.Validate(); err != nil { + invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. +func (s *ChimeSdkMeetingConcatenationConfiguration) SetArtifactsConfiguration(v *ArtifactsConcatenationConfiguration) *ChimeSdkMeetingConcatenationConfiguration { + s.ArtifactsConfiguration = v + return s +} + +// The configuration object of the Amazon Chime SDK meeting for a specified +// media pipeline. SourceType must be ChimeSdkMeeting. +type ChimeSdkMeetingConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration for the artifacts in an Amazon Chime SDK meeting. + ArtifactsConfiguration *ArtifactsConfiguration `type:"structure"` + + // The source configuration for a specified media pipeline. + SourceConfiguration *SourceConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChimeSdkMeetingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChimeSdkMeetingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChimeSdkMeetingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConfiguration"} + if s.ArtifactsConfiguration != nil { + if err := s.ArtifactsConfiguration.Validate(); err != nil { + invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SourceConfiguration != nil { + if err := s.SourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. +func (s *ChimeSdkMeetingConfiguration) SetArtifactsConfiguration(v *ArtifactsConfiguration) *ChimeSdkMeetingConfiguration { + s.ArtifactsConfiguration = v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *ChimeSdkMeetingConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingConfiguration { + s.SourceConfiguration = v + return s +} + +// The media pipeline's configuration object. +type ChimeSdkMeetingLiveConnectorConfiguration struct { + _ struct{} `type:"structure"` + + // The configuration object's Chime SDK meeting ARN. + // + // Arn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ChimeSdkMeetingLiveConnectorConfiguration's + // String and GoString methods. + // + // Arn is a required field + Arn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The media pipeline's composited video. + CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` + + // The configuration object's multiplex type. + // + // MuxType is a required field + MuxType *string `type:"string" required:"true" enum:"LiveConnectorMuxType"` + + // The source configuration settings of the media pipeline's configuration object. + SourceConfiguration *SourceConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChimeSdkMeetingLiveConnectorConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChimeSdkMeetingLiveConnectorConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingLiveConnectorConfiguration"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + if s.MuxType == nil { + invalidParams.Add(request.NewErrParamRequired("MuxType")) + } + if s.CompositedVideo != nil { + if err := s.CompositedVideo.Validate(); err != nil { + invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) + } + } + if s.SourceConfiguration != nil { + if err := s.SourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetArn(v string) *ChimeSdkMeetingLiveConnectorConfiguration { + s.Arn = &v + return s +} + +// SetCompositedVideo sets the CompositedVideo field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { + s.CompositedVideo = v + return s +} + +// SetMuxType sets the MuxType field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetMuxType(v string) *ChimeSdkMeetingLiveConnectorConfiguration { + s.MuxType = &v + return s +} + +// SetSourceConfiguration sets the SourceConfiguration field's value. +func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { + s.SourceConfiguration = v + return s +} + +// Specifies the configuration for compositing video artifacts. +type CompositedVideoArtifactsConfiguration struct { + _ struct{} `type:"structure"` + + // The GridView configuration setting. + // + // GridViewConfiguration is a required field + GridViewConfiguration *GridViewConfiguration `type:"structure" required:"true"` + + // The layout setting, such as GridView in the configuration object. + Layout *string `type:"string" enum:"LayoutOption"` + + // The video resolution setting in the configuration object. Default: HD at + // 1280 x 720. FHD resolution: 1920 x 1080. + Resolution *string `type:"string" enum:"ResolutionOption"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CompositedVideoArtifactsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CompositedVideoArtifactsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CompositedVideoArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompositedVideoArtifactsConfiguration"} + if s.GridViewConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("GridViewConfiguration")) + } + if s.GridViewConfiguration != nil { + if err := s.GridViewConfiguration.Validate(); err != nil { + invalidParams.AddNested("GridViewConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGridViewConfiguration sets the GridViewConfiguration field's value. +func (s *CompositedVideoArtifactsConfiguration) SetGridViewConfiguration(v *GridViewConfiguration) *CompositedVideoArtifactsConfiguration { + s.GridViewConfiguration = v + return s +} + +// SetLayout sets the Layout field's value. +func (s *CompositedVideoArtifactsConfiguration) SetLayout(v string) *CompositedVideoArtifactsConfiguration { + s.Layout = &v + return s +} + +// SetResolution sets the Resolution field's value. +func (s *CompositedVideoArtifactsConfiguration) SetResolution(v string) *CompositedVideoArtifactsConfiguration { + s.Resolution = &v + return s +} + +// The composited video configuration object for a specified media pipeline. +// SourceType must be ChimeSdkMeeting. +type CompositedVideoConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // Enables or disables the configuration object. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CompositedVideoConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CompositedVideoConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CompositedVideoConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompositedVideoConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetState sets the State field's value. +func (s *CompositedVideoConcatenationConfiguration) SetState(v string) *CompositedVideoConcatenationConfiguration { + s.State = &v + return s +} + +// The data sink of the configuration object. +type ConcatenationSink struct { + _ struct{} `type:"structure"` + + // The configuration settings for an Amazon S3 bucket sink. + // + // S3BucketSinkConfiguration is a required field + S3BucketSinkConfiguration *S3BucketSinkConfiguration `type:"structure" required:"true"` + + // The type of data sink in the configuration object. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ConcatenationSinkType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConcatenationSink) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConcatenationSink) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConcatenationSink) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConcatenationSink"} + if s.S3BucketSinkConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketSinkConfiguration")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.S3BucketSinkConfiguration != nil { + if err := s.S3BucketSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3BucketSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3BucketSinkConfiguration sets the S3BucketSinkConfiguration field's value. +func (s *ConcatenationSink) SetS3BucketSinkConfiguration(v *S3BucketSinkConfiguration) *ConcatenationSink { + s.S3BucketSinkConfiguration = v + return s +} + +// SetType sets the Type field's value. +func (s *ConcatenationSink) SetType(v string) *ConcatenationSink { + s.Type = &v + return s +} + +// The source type and media pipeline configuration settings in a configuration +// object. +type ConcatenationSource struct { + _ struct{} `type:"structure"` + + // The concatenation settings for the media pipeline in a configuration object. + // + // MediaCapturePipelineSourceConfiguration is a required field + MediaCapturePipelineSourceConfiguration *MediaCapturePipelineSourceConfiguration `type:"structure" required:"true"` + + // The type of concatenation source in a configuration object. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ConcatenationSourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConcatenationSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConcatenationSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConcatenationSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConcatenationSource"} + if s.MediaCapturePipelineSourceConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("MediaCapturePipelineSourceConfiguration")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.MediaCapturePipelineSourceConfiguration != nil { + if err := s.MediaCapturePipelineSourceConfiguration.Validate(); err != nil { + invalidParams.AddNested("MediaCapturePipelineSourceConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMediaCapturePipelineSourceConfiguration sets the MediaCapturePipelineSourceConfiguration field's value. +func (s *ConcatenationSource) SetMediaCapturePipelineSourceConfiguration(v *MediaCapturePipelineSourceConfiguration) *ConcatenationSource { + s.MediaCapturePipelineSourceConfiguration = v + return s +} + +// SetType sets the Type field's value. +func (s *ConcatenationSource) SetType(v string) *ConcatenationSource { + s.Type = &v + return s +} + +// The request could not be processed because of conflict in the current state +// of the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The content artifact object. +type ContentArtifactsConfiguration struct { + _ struct{} `type:"structure"` + + // The MUX type of the artifact configuration. + MuxType *string `type:"string" enum:"ContentMuxType"` + + // Indicates whether the content artifact is enabled or disabled. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContentArtifactsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContentArtifactsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContentArtifactsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContentArtifactsConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMuxType sets the MuxType field's value. +func (s *ContentArtifactsConfiguration) SetMuxType(v string) *ContentArtifactsConfiguration { + s.MuxType = &v + return s +} + +// SetState sets the State field's value. +func (s *ContentArtifactsConfiguration) SetState(v string) *ContentArtifactsConfiguration { + s.State = &v + return s +} + +// The composited content configuration object for a specified media pipeline. +type ContentConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // Enables or disables the configuration object. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContentConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContentConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContentConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContentConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetState sets the State field's value. +func (s *ContentConcatenationConfiguration) SetState(v string) *ContentConcatenationConfiguration { + s.State = &v + return s +} + +type CreateMediaCapturePipelineInput struct { + _ struct{} `type:"structure"` + + // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. + ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` + + // The unique identifier for the client request. The token makes the API request + // idempotent. Use a unique token for each media pipeline request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The ARN of the sink type. + // + // SinkArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // String and GoString methods. + // + // SinkArn is a required field + SinkArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Destination type to which the media artifacts are saved. You must use an + // S3 bucket. + // + // SinkType is a required field + SinkType *string `type:"string" required:"true" enum:"MediaPipelineSinkType"` + + // ARN of the source from which the media artifacts are captured. + // + // SourceArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's + // String and GoString methods. + // + // SourceArn is a required field + SourceArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Source type from which the media artifacts are captured. A Chime SDK Meeting + // is the only supported source. + // + // SourceType is a required field + SourceType *string `type:"string" required:"true" enum:"MediaPipelineSourceType"` + + // The tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaCapturePipelineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaCapturePipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMediaCapturePipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaCapturePipelineInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.SinkArn == nil { + invalidParams.Add(request.NewErrParamRequired("SinkArn")) + } + if s.SinkArn != nil && len(*s.SinkArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SinkArn", 1)) + } + if s.SinkType == nil { + invalidParams.Add(request.NewErrParamRequired("SinkType")) + } + if s.SourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceArn")) + } + if s.SourceArn != nil && len(*s.SourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1)) + } + if s.SourceType == nil { + invalidParams.Add(request.NewErrParamRequired("SourceType")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.ChimeSdkMeetingConfiguration != nil { + if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. +func (s *CreateMediaCapturePipelineInput) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *CreateMediaCapturePipelineInput { + s.ChimeSdkMeetingConfiguration = v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaCapturePipelineInput) SetClientRequestToken(v string) *CreateMediaCapturePipelineInput { + s.ClientRequestToken = &v + return s +} + +// SetSinkArn sets the SinkArn field's value. +func (s *CreateMediaCapturePipelineInput) SetSinkArn(v string) *CreateMediaCapturePipelineInput { + s.SinkArn = &v + return s +} + +// SetSinkType sets the SinkType field's value. +func (s *CreateMediaCapturePipelineInput) SetSinkType(v string) *CreateMediaCapturePipelineInput { + s.SinkType = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *CreateMediaCapturePipelineInput) SetSourceArn(v string) *CreateMediaCapturePipelineInput { + s.SourceArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateMediaCapturePipelineInput) SetSourceType(v string) *CreateMediaCapturePipelineInput { + s.SourceType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaCapturePipelineInput) SetTags(v []*Tag) *CreateMediaCapturePipelineInput { + s.Tags = v + return s +} + +type CreateMediaCapturePipelineOutput struct { + _ struct{} `type:"structure"` + + // A media pipeline object, the ID, source type, source ARN, sink type, and + // sink ARN of a media pipeline object. + MediaCapturePipeline *MediaCapturePipeline `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaCapturePipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaCapturePipelineOutput) GoString() string { + return s.String() +} + +// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. +func (s *CreateMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *CreateMediaCapturePipelineOutput { + s.MediaCapturePipeline = v + return s +} + +type CreateMediaConcatenationPipelineInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the client request. The token makes the API request + // idempotent. Use a unique token for each media concatenation pipeline request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaConcatenationPipelineInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // An object that specifies the data sinks for the media concatenation pipeline. + // + // Sinks is a required field + Sinks []*ConcatenationSink `min:"1" type:"list" required:"true"` + + // An object that specifies the sources for the media concatenation pipeline. + // + // Sources is a required field + Sources []*ConcatenationSource `min:"1" type:"list" required:"true"` + + // The tags associated with the media concatenation pipeline. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaConcatenationPipelineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaConcatenationPipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMediaConcatenationPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaConcatenationPipelineInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Sinks == nil { + invalidParams.Add(request.NewErrParamRequired("Sinks")) + } + if s.Sinks != nil && len(s.Sinks) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Sinks", 1)) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil && len(s.Sources) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Sources", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Sinks != nil { + for i, v := range s.Sinks { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sinks", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaConcatenationPipelineInput) SetClientRequestToken(v string) *CreateMediaConcatenationPipelineInput { + s.ClientRequestToken = &v + return s +} + +// SetSinks sets the Sinks field's value. +func (s *CreateMediaConcatenationPipelineInput) SetSinks(v []*ConcatenationSink) *CreateMediaConcatenationPipelineInput { + s.Sinks = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateMediaConcatenationPipelineInput) SetSources(v []*ConcatenationSource) *CreateMediaConcatenationPipelineInput { + s.Sources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaConcatenationPipelineInput) SetTags(v []*Tag) *CreateMediaConcatenationPipelineInput { + s.Tags = v + return s +} + +type CreateMediaConcatenationPipelineOutput struct { + _ struct{} `type:"structure"` + + // A media concatenation pipeline object, the ID, source type, MediaPipelineARN, + // and sink of a media concatenation pipeline object. + MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaConcatenationPipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaConcatenationPipelineOutput) GoString() string { + return s.String() +} + +// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. +func (s *CreateMediaConcatenationPipelineOutput) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *CreateMediaConcatenationPipelineOutput { + s.MediaConcatenationPipeline = v + return s +} + +type CreateMediaInsightsPipelineConfigurationInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the media insights pipeline configuration request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineConfigurationInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The elements in the request, such as a processor for Amazon Transcribe or + // a sink for a Kinesis Data Stream. + // + // Elements is a required field + Elements []*MediaInsightsPipelineConfigurationElement `type:"list" required:"true"` + + // The name of the media insights pipeline configuration. + // + // MediaInsightsPipelineConfigurationName is a required field + MediaInsightsPipelineConfigurationName *string `min:"2" type:"string" required:"true"` + + // The configuration settings for the real-time alerts in a media insights pipeline + // configuration. + RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` + + // The ARN of the role used by the service to access Amazon Web Services resources, + // including Transcribe and Transcribe Call Analytics, on the caller’s behalf. + // + // ResourceAccessRoleArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineConfigurationInput's + // String and GoString methods. + // + // ResourceAccessRoleArn is a required field + ResourceAccessRoleArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The tags assigned to the media insights pipeline configuration. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaInsightsPipelineConfigurationInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Elements == nil { + invalidParams.Add(request.NewErrParamRequired("Elements")) + } + if s.MediaInsightsPipelineConfigurationName == nil { + invalidParams.Add(request.NewErrParamRequired("MediaInsightsPipelineConfigurationName")) + } + if s.MediaInsightsPipelineConfigurationName != nil && len(*s.MediaInsightsPipelineConfigurationName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("MediaInsightsPipelineConfigurationName", 2)) + } + if s.ResourceAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceAccessRoleArn")) + } + if s.ResourceAccessRoleArn != nil && len(*s.ResourceAccessRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceAccessRoleArn", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Elements != nil { + for i, v := range s.Elements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Elements", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RealTimeAlertConfiguration != nil { + if err := s.RealTimeAlertConfiguration.Validate(); err != nil { + invalidParams.AddNested("RealTimeAlertConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetClientRequestToken(v string) *CreateMediaInsightsPipelineConfigurationInput { + s.ClientRequestToken = &v + return s +} + +// SetElements sets the Elements field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetElements(v []*MediaInsightsPipelineConfigurationElement) *CreateMediaInsightsPipelineConfigurationInput { + s.Elements = v + return s +} + +// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetMediaInsightsPipelineConfigurationName(v string) *CreateMediaInsightsPipelineConfigurationInput { + s.MediaInsightsPipelineConfigurationName = &v + return s +} + +// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *CreateMediaInsightsPipelineConfigurationInput { + s.RealTimeAlertConfiguration = v + return s +} + +// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetResourceAccessRoleArn(v string) *CreateMediaInsightsPipelineConfigurationInput { + s.ResourceAccessRoleArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaInsightsPipelineConfigurationInput) SetTags(v []*Tag) *CreateMediaInsightsPipelineConfigurationInput { + s.Tags = v + return s +} + +type CreateMediaInsightsPipelineConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The configuration settings for the media insights pipeline. + MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineConfigurationOutput) GoString() string { + return s.String() +} + +// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. +func (s *CreateMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *CreateMediaInsightsPipelineConfigurationOutput { + s.MediaInsightsPipelineConfiguration = v + return s +} + +type CreateMediaInsightsPipelineInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the media insights pipeline request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The runtime configuration for the Kinesis video recording stream source. + KinesisVideoStreamRecordingSourceRuntimeConfiguration *KinesisVideoStreamRecordingSourceRuntimeConfiguration `type:"structure"` + + // The runtime configuration for the Kinesis video stream source of the media + // insights pipeline. + KinesisVideoStreamSourceRuntimeConfiguration *KinesisVideoStreamSourceRuntimeConfiguration `type:"structure"` + + // The ARN of the pipeline's configuration. + // + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's + // String and GoString methods. + // + // MediaInsightsPipelineConfigurationArn is a required field + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The runtime metadata for the media insights pipeline. Consists of a key-value + // map of strings. + // + // MediaInsightsRuntimeMetadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaInsightsPipelineInput's + // String and GoString methods. + MediaInsightsRuntimeMetadata map[string]*string `type:"map" sensitive:"true"` + + // The runtime configuration for the S3 recording sink. + S3RecordingSinkRuntimeConfiguration *S3RecordingSinkRuntimeConfiguration `type:"structure"` + + // The tags assigned to the media insights pipeline. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMediaInsightsPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaInsightsPipelineInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.MediaInsightsPipelineConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("MediaInsightsPipelineConfigurationArn")) + } + if s.MediaInsightsPipelineConfigurationArn != nil && len(*s.MediaInsightsPipelineConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MediaInsightsPipelineConfigurationArn", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.KinesisVideoStreamRecordingSourceRuntimeConfiguration != nil { + if err := s.KinesisVideoStreamRecordingSourceRuntimeConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamRecordingSourceRuntimeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.KinesisVideoStreamSourceRuntimeConfiguration != nil { + if err := s.KinesisVideoStreamSourceRuntimeConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamSourceRuntimeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3RecordingSinkRuntimeConfiguration != nil { + if err := s.S3RecordingSinkRuntimeConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3RecordingSinkRuntimeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaInsightsPipelineInput) SetClientRequestToken(v string) *CreateMediaInsightsPipelineInput { + s.ClientRequestToken = &v + return s +} + +// SetKinesisVideoStreamRecordingSourceRuntimeConfiguration sets the KinesisVideoStreamRecordingSourceRuntimeConfiguration field's value. +func (s *CreateMediaInsightsPipelineInput) SetKinesisVideoStreamRecordingSourceRuntimeConfiguration(v *KinesisVideoStreamRecordingSourceRuntimeConfiguration) *CreateMediaInsightsPipelineInput { + s.KinesisVideoStreamRecordingSourceRuntimeConfiguration = v + return s +} + +// SetKinesisVideoStreamSourceRuntimeConfiguration sets the KinesisVideoStreamSourceRuntimeConfiguration field's value. +func (s *CreateMediaInsightsPipelineInput) SetKinesisVideoStreamSourceRuntimeConfiguration(v *KinesisVideoStreamSourceRuntimeConfiguration) *CreateMediaInsightsPipelineInput { + s.KinesisVideoStreamSourceRuntimeConfiguration = v + return s +} + +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *CreateMediaInsightsPipelineInput) SetMediaInsightsPipelineConfigurationArn(v string) *CreateMediaInsightsPipelineInput { + s.MediaInsightsPipelineConfigurationArn = &v + return s +} + +// SetMediaInsightsRuntimeMetadata sets the MediaInsightsRuntimeMetadata field's value. +func (s *CreateMediaInsightsPipelineInput) SetMediaInsightsRuntimeMetadata(v map[string]*string) *CreateMediaInsightsPipelineInput { + s.MediaInsightsRuntimeMetadata = v + return s +} + +// SetS3RecordingSinkRuntimeConfiguration sets the S3RecordingSinkRuntimeConfiguration field's value. +func (s *CreateMediaInsightsPipelineInput) SetS3RecordingSinkRuntimeConfiguration(v *S3RecordingSinkRuntimeConfiguration) *CreateMediaInsightsPipelineInput { + s.S3RecordingSinkRuntimeConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaInsightsPipelineInput) SetTags(v []*Tag) *CreateMediaInsightsPipelineInput { + s.Tags = v + return s +} + +type CreateMediaInsightsPipelineOutput struct { + _ struct{} `type:"structure"` + + // The media insights pipeline object. + // + // MediaInsightsPipeline is a required field + MediaInsightsPipeline *MediaInsightsPipeline `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaInsightsPipelineOutput) GoString() string { + return s.String() +} + +// SetMediaInsightsPipeline sets the MediaInsightsPipeline field's value. +func (s *CreateMediaInsightsPipelineOutput) SetMediaInsightsPipeline(v *MediaInsightsPipeline) *CreateMediaInsightsPipelineOutput { + s.MediaInsightsPipeline = v + return s +} + +type CreateMediaLiveConnectorPipelineInput struct { + _ struct{} `type:"structure"` + + // The token assigned to the client making the request. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMediaLiveConnectorPipelineInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The media live connector pipeline's data sinks. + // + // Sinks is a required field + Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list" required:"true"` + + // The media live connector pipeline's data sources. + // + // Sources is a required field + Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list" required:"true"` + + // The tags associated with the media live connector pipeline. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaLiveConnectorPipelineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaLiveConnectorPipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMediaLiveConnectorPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMediaLiveConnectorPipelineInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Sinks == nil { + invalidParams.Add(request.NewErrParamRequired("Sinks")) + } + if s.Sinks != nil && len(s.Sinks) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Sinks", 1)) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil && len(s.Sources) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Sources", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Sinks != nil { + for i, v := range s.Sinks { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sinks", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMediaLiveConnectorPipelineInput) SetClientRequestToken(v string) *CreateMediaLiveConnectorPipelineInput { + s.ClientRequestToken = &v + return s +} + +// SetSinks sets the Sinks field's value. +func (s *CreateMediaLiveConnectorPipelineInput) SetSinks(v []*LiveConnectorSinkConfiguration) *CreateMediaLiveConnectorPipelineInput { + s.Sinks = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateMediaLiveConnectorPipelineInput) SetSources(v []*LiveConnectorSourceConfiguration) *CreateMediaLiveConnectorPipelineInput { + s.Sources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMediaLiveConnectorPipelineInput) SetTags(v []*Tag) *CreateMediaLiveConnectorPipelineInput { + s.Tags = v + return s +} + +type CreateMediaLiveConnectorPipelineOutput struct { + _ struct{} `type:"structure"` + + // The new media live connector pipeline. + MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaLiveConnectorPipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateMediaLiveConnectorPipelineOutput) GoString() string { + return s.String() +} + +// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. +func (s *CreateMediaLiveConnectorPipelineOutput) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *CreateMediaLiveConnectorPipelineOutput { + s.MediaLiveConnectorPipeline = v + return s +} + +// The content configuration object's data channel. +type DataChannelConcatenationConfiguration struct { + _ struct{} `type:"structure"` + + // Enables or disables the configuration object. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataChannelConcatenationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataChannelConcatenationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataChannelConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataChannelConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetState sets the State field's value. +func (s *DataChannelConcatenationConfiguration) SetState(v string) *DataChannelConcatenationConfiguration { + s.State = &v + return s +} + +type DeleteMediaCapturePipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the media pipeline being deleted. + // + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaCapturePipelineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaCapturePipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMediaCapturePipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMediaCapturePipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *DeleteMediaCapturePipelineInput) SetMediaPipelineId(v string) *DeleteMediaCapturePipelineInput { + s.MediaPipelineId = &v + return s +} + +type DeleteMediaCapturePipelineOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaCapturePipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaCapturePipelineOutput) GoString() string { + return s.String() +} + +type DeleteMediaInsightsPipelineConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the resource to be deleted. Valid values include + // the name and ARN of the media insights pipeline configuration. + // + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaInsightsPipelineConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaInsightsPipelineConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMediaInsightsPipelineConfigurationInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentifier sets the Identifier field's value. +func (s *DeleteMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *DeleteMediaInsightsPipelineConfigurationInput { + s.Identifier = &v + return s +} + +type DeleteMediaInsightsPipelineConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaInsightsPipelineConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaInsightsPipelineConfigurationOutput) GoString() string { + return s.String() +} + +type DeleteMediaPipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the media pipeline to delete. + // + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaPipelineInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaPipelineInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMediaPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMediaPipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *DeleteMediaPipelineInput) SetMediaPipelineId(v string) *DeleteMediaPipelineInput { + s.MediaPipelineId = &v + return s +} + +type DeleteMediaPipelineOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaPipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteMediaPipelineOutput) GoString() string { + return s.String() +} + +// The client is permanently forbidden from making the request. +type ForbiddenException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + RequestId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s *ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ForbiddenException) OrigErr() error { + return nil +} + +func (s *ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ForbiddenException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ForbiddenException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes the timestamp range and timestamp origin of a range of fragments. +// +// Only fragments with a start timestamp greater than or equal to the given +// start time and less than or equal to the end time are returned. For example, +// say a stream contains fragments with the following start timestamps: +// +// - 00:00:00 +// +// - 00:00:02 +// +// - 00:00:04 +// +// - 00:00:06 +// +// A fragment selector range with a start time of 00:00:01 and end time of 00:00:04 +// would return the fragments with start times of 00:00:02 and 00:00:04. +type FragmentSelector struct { _ struct{} `type:"structure"` - // The configuration for the audio artifacts. - // - // Audio is a required field - Audio *AudioArtifactsConfiguration `type:"structure" required:"true"` - - // Enables video compositing. - CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` - - // The configuration for the content artifacts. + // The origin of the timestamps to use, Server or Producer. For more information, + // see StartSelectorType (kinesisvideostreams/latest/dg/API_dataplane_StartSelector.html#KinesisVideo-Type-dataplane_StartSelector-StartSelectorType) + // in the Amazon Kinesis Video Streams Developer Guide. // - // Content is a required field - Content *ContentArtifactsConfiguration `type:"structure" required:"true"` + // FragmentSelectorType is a required field + FragmentSelectorType *string `type:"string" required:"true" enum:"FragmentSelectorType"` - // The configuration for the video artifacts. + // The range of timestamps to return. // - // Video is a required field - Video *VideoArtifactsConfiguration `type:"structure" required:"true"` + // TimestampRange is a required field + TimestampRange *TimestampRange `type:"structure" required:"true"` } // String returns the string representation. @@ -1490,7 +4894,7 @@ type ArtifactsConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ArtifactsConfiguration) String() string { +func (s FragmentSelector) String() string { return awsutil.Prettify(s) } @@ -1499,40 +4903,22 @@ func (s ArtifactsConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ArtifactsConfiguration) GoString() string { +func (s FragmentSelector) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ArtifactsConfiguration"} - if s.Audio == nil { - invalidParams.Add(request.NewErrParamRequired("Audio")) - } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } - if s.Video == nil { - invalidParams.Add(request.NewErrParamRequired("Video")) - } - if s.Audio != nil { - if err := s.Audio.Validate(); err != nil { - invalidParams.AddNested("Audio", err.(request.ErrInvalidParams)) - } - } - if s.CompositedVideo != nil { - if err := s.CompositedVideo.Validate(); err != nil { - invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) - } +func (s *FragmentSelector) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FragmentSelector"} + if s.FragmentSelectorType == nil { + invalidParams.Add(request.NewErrParamRequired("FragmentSelectorType")) } - if s.Content != nil { - if err := s.Content.Validate(); err != nil { - invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) - } + if s.TimestampRange == nil { + invalidParams.Add(request.NewErrParamRequired("TimestampRange")) } - if s.Video != nil { - if err := s.Video.Validate(); err != nil { - invalidParams.AddNested("Video", err.(request.ErrInvalidParams)) + if s.TimestampRange != nil { + if err := s.TimestampRange.Validate(); err != nil { + invalidParams.AddNested("TimestampRange", err.(request.ErrInvalidParams)) } } @@ -1542,38 +4928,25 @@ func (s *ArtifactsConfiguration) Validate() error { return nil } -// SetAudio sets the Audio field's value. -func (s *ArtifactsConfiguration) SetAudio(v *AudioArtifactsConfiguration) *ArtifactsConfiguration { - s.Audio = v - return s -} - -// SetCompositedVideo sets the CompositedVideo field's value. -func (s *ArtifactsConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ArtifactsConfiguration { - s.CompositedVideo = v - return s -} - -// SetContent sets the Content field's value. -func (s *ArtifactsConfiguration) SetContent(v *ContentArtifactsConfiguration) *ArtifactsConfiguration { - s.Content = v +// SetFragmentSelectorType sets the FragmentSelectorType field's value. +func (s *FragmentSelector) SetFragmentSelectorType(v string) *FragmentSelector { + s.FragmentSelectorType = &v return s } -// SetVideo sets the Video field's value. -func (s *ArtifactsConfiguration) SetVideo(v *VideoArtifactsConfiguration) *ArtifactsConfiguration { - s.Video = v +// SetTimestampRange sets the TimestampRange field's value. +func (s *FragmentSelector) SetTimestampRange(v *TimestampRange) *FragmentSelector { + s.TimestampRange = v return s } -// The audio artifact configuration object. -type AudioArtifactsConfiguration struct { - _ struct{} `type:"structure"` +type GetMediaCapturePipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The MUX type of the audio artifact configuration object. + // The ID of the pipeline that you want to get. // - // MuxType is a required field - MuxType *string `type:"string" required:"true" enum:"AudioMuxType"` + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -1581,7 +4954,7 @@ type AudioArtifactsConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AudioArtifactsConfiguration) String() string { +func (s GetMediaCapturePipelineInput) String() string { return awsutil.Prettify(s) } @@ -1590,15 +4963,18 @@ func (s AudioArtifactsConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AudioArtifactsConfiguration) GoString() string { +func (s GetMediaCapturePipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AudioArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AudioArtifactsConfiguration"} - if s.MuxType == nil { - invalidParams.Add(request.NewErrParamRequired("MuxType")) +func (s *GetMediaCapturePipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMediaCapturePipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) } if invalidParams.Len() > 0 { @@ -1607,21 +4983,51 @@ func (s *AudioArtifactsConfiguration) Validate() error { return nil } -// SetMuxType sets the MuxType field's value. -func (s *AudioArtifactsConfiguration) SetMuxType(v string) *AudioArtifactsConfiguration { - s.MuxType = &v +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *GetMediaCapturePipelineInput) SetMediaPipelineId(v string) *GetMediaCapturePipelineInput { + s.MediaPipelineId = &v return s } -// The audio artifact concatenation configuration object. -type AudioConcatenationConfiguration struct { +type GetMediaCapturePipelineOutput struct { _ struct{} `type:"structure"` - // Enables the name object, where name is the name of the configuration object, - // such as AudioConcatenation. + // The media pipeline object. + MediaCapturePipeline *MediaCapturePipeline `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMediaCapturePipelineOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMediaCapturePipelineOutput) GoString() string { + return s.String() +} + +// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. +func (s *GetMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *GetMediaCapturePipelineOutput { + s.MediaCapturePipeline = v + return s +} + +type GetMediaInsightsPipelineConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the requested resource. Valid values include the + // name and ARN of the media insights pipeline configuration. // - // State is a required field - State *string `type:"string" required:"true" enum:"AudioArtifactsConcatenationState"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` } // String returns the string representation. @@ -1629,7 +5035,7 @@ type AudioConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AudioConcatenationConfiguration) String() string { +func (s GetMediaInsightsPipelineConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -1638,15 +5044,18 @@ func (s AudioConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AudioConcatenationConfiguration) GoString() string { +func (s GetMediaInsightsPipelineConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AudioConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AudioConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *GetMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMediaInsightsPipelineConfigurationInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) } if invalidParams.Len() > 0 { @@ -1655,23 +5064,50 @@ func (s *AudioConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *AudioConcatenationConfiguration) SetState(v string) *AudioConcatenationConfiguration { - s.State = &v +// SetIdentifier sets the Identifier field's value. +func (s *GetMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *GetMediaInsightsPipelineConfigurationInput { + s.Identifier = &v return s } -// The input parameters don't match the service's restrictions. -type BadRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type GetMediaInsightsPipelineConfigurationOutput struct { + _ struct{} `type:"structure"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // The requested media insights pipeline configuration. + MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` +} - Message_ *string `locationName:"Message" type:"string"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMediaInsightsPipelineConfigurationOutput) String() string { + return awsutil.Prettify(s) +} - // The request id associated with the call responsible for the exception. - RequestId *string `type:"string"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMediaInsightsPipelineConfigurationOutput) GoString() string { + return s.String() +} + +// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. +func (s *GetMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *GetMediaInsightsPipelineConfigurationOutput { + s.MediaInsightsPipelineConfiguration = v + return s +} + +type GetMediaPipelineInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the pipeline that you want to get. + // + // MediaPipelineId is a required field + MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -1679,7 +5115,7 @@ type BadRequestException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BadRequestException) String() string { +func (s GetMediaPipelineInput) String() string { return awsutil.Prettify(s) } @@ -1688,57 +5124,74 @@ func (s BadRequestException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BadRequestException) GoString() string { +func (s GetMediaPipelineInput) GoString() string { return s.String() } -func newErrorBadRequestException(v protocol.ResponseMetadata) error { - return &BadRequestException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMediaPipelineInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMediaPipelineInput"} + if s.MediaPipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) + } + if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) } -} -// Code returns the exception type name. -func (s *BadRequestException) Code() string { - return "BadRequestException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *BadRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *GetMediaPipelineInput) SetMediaPipelineId(v string) *GetMediaPipelineInput { + s.MediaPipelineId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *BadRequestException) OrigErr() error { - return nil +type GetMediaPipelineOutput struct { + _ struct{} `type:"structure"` + + // The media pipeline object. + MediaPipeline *MediaPipeline `type:"structure"` } -func (s *BadRequestException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMediaPipelineOutput) String() string { + return awsutil.Prettify(s) } -// Status code returns the HTTP status code for the request's response error. -func (s *BadRequestException) StatusCode() int { - return s.RespMetadata.StatusCode +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetMediaPipelineOutput) GoString() string { + return s.String() } -// RequestID returns the service's response RequestID for request. -func (s *BadRequestException) RequestID() string { - return s.RespMetadata.RequestID +// SetMediaPipeline sets the MediaPipeline field's value. +func (s *GetMediaPipelineOutput) SetMediaPipeline(v *MediaPipeline) *GetMediaPipelineOutput { + s.MediaPipeline = v + return s } -// The configuration object of the Amazon Chime SDK meeting concatenation for -// a specified media pipeline. -type ChimeSdkMeetingConcatenationConfiguration struct { +// Specifies the type of grid layout. +type GridViewConfiguration struct { _ struct{} `type:"structure"` - // The configuration for the artifacts in an Amazon Chime SDK meeting concatenation. + // Defines the layout of the video tiles when content sharing is enabled. // - // ArtifactsConfiguration is a required field - ArtifactsConfiguration *ArtifactsConcatenationConfiguration `type:"structure" required:"true"` + // ContentShareLayout is a required field + ContentShareLayout *string `type:"string" required:"true" enum:"ContentShareLayoutOption"` + + // Defines the configuration options for a presenter only video tile. + PresenterOnlyConfiguration *PresenterOnlyConfiguration `type:"structure"` } // String returns the string representation. @@ -1746,7 +5199,7 @@ type ChimeSdkMeetingConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChimeSdkMeetingConcatenationConfiguration) String() string { +func (s GridViewConfiguration) String() string { return awsutil.Prettify(s) } @@ -1755,20 +5208,15 @@ func (s ChimeSdkMeetingConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChimeSdkMeetingConcatenationConfiguration) GoString() string { +func (s GridViewConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChimeSdkMeetingConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConcatenationConfiguration"} - if s.ArtifactsConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ArtifactsConfiguration")) - } - if s.ArtifactsConfiguration != nil { - if err := s.ArtifactsConfiguration.Validate(); err != nil { - invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) - } +func (s *GridViewConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GridViewConfiguration"} + if s.ContentShareLayout == nil { + invalidParams.Add(request.NewErrParamRequired("ContentShareLayout")) } if invalidParams.Len() > 0 { @@ -1777,22 +5225,27 @@ func (s *ChimeSdkMeetingConcatenationConfiguration) Validate() error { return nil } -// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. -func (s *ChimeSdkMeetingConcatenationConfiguration) SetArtifactsConfiguration(v *ArtifactsConcatenationConfiguration) *ChimeSdkMeetingConcatenationConfiguration { - s.ArtifactsConfiguration = v +// SetContentShareLayout sets the ContentShareLayout field's value. +func (s *GridViewConfiguration) SetContentShareLayout(v string) *GridViewConfiguration { + s.ContentShareLayout = &v return s } -// The configuration object of the Amazon Chime SDK meeting for a specified -// media pipeline. SourceType must be ChimeSdkMeeting. -type ChimeSdkMeetingConfiguration struct { - _ struct{} `type:"structure"` +// SetPresenterOnlyConfiguration sets the PresenterOnlyConfiguration field's value. +func (s *GridViewConfiguration) SetPresenterOnlyConfiguration(v *PresenterOnlyConfiguration) *GridViewConfiguration { + s.PresenterOnlyConfiguration = v + return s +} - // The configuration for the artifacts in an Amazon Chime SDK meeting. - ArtifactsConfiguration *ArtifactsConfiguration `type:"structure"` +// A structure that contains the configuration settings for an issue detection +// task. +type IssueDetectionConfiguration struct { + _ struct{} `type:"structure"` - // The source configuration for a specified media pipline. - SourceConfiguration *SourceConfiguration `type:"structure"` + // The name of the issue detection rule. + // + // RuleName is a required field + RuleName *string `min:"2" type:"string" required:"true"` } // String returns the string representation. @@ -1800,7 +5253,7 @@ type ChimeSdkMeetingConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChimeSdkMeetingConfiguration) String() string { +func (s IssueDetectionConfiguration) String() string { return awsutil.Prettify(s) } @@ -1809,22 +5262,18 @@ func (s ChimeSdkMeetingConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChimeSdkMeetingConfiguration) GoString() string { +func (s IssueDetectionConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChimeSdkMeetingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingConfiguration"} - if s.ArtifactsConfiguration != nil { - if err := s.ArtifactsConfiguration.Validate(); err != nil { - invalidParams.AddNested("ArtifactsConfiguration", err.(request.ErrInvalidParams)) - } +func (s *IssueDetectionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IssueDetectionConfiguration"} + if s.RuleName == nil { + invalidParams.Add(request.NewErrParamRequired("RuleName")) } - if s.SourceConfiguration != nil { - if err := s.SourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) - } + if s.RuleName != nil && len(*s.RuleName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) } if invalidParams.Len() > 0 { @@ -1833,41 +5282,30 @@ func (s *ChimeSdkMeetingConfiguration) Validate() error { return nil } -// SetArtifactsConfiguration sets the ArtifactsConfiguration field's value. -func (s *ChimeSdkMeetingConfiguration) SetArtifactsConfiguration(v *ArtifactsConfiguration) *ChimeSdkMeetingConfiguration { - s.ArtifactsConfiguration = v - return s -} - -// SetSourceConfiguration sets the SourceConfiguration field's value. -func (s *ChimeSdkMeetingConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingConfiguration { - s.SourceConfiguration = v +// SetRuleName sets the RuleName field's value. +func (s *IssueDetectionConfiguration) SetRuleName(v string) *IssueDetectionConfiguration { + s.RuleName = &v return s } -// The media pipeline's configuration object. -type ChimeSdkMeetingLiveConnectorConfiguration struct { +// A structure that contains the settings for a keyword match task. +type KeywordMatchConfiguration struct { _ struct{} `type:"structure"` - // The configuration object's Chime SDK meeting ARN. - // - // Arn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ChimeSdkMeetingLiveConnectorConfiguration's - // String and GoString methods. + // The keywords or phrases that you want to match. // - // Arn is a required field - Arn *string `min:"1" type:"string" required:"true" sensitive:"true"` + // Keywords is a required field + Keywords []*string `min:"1" type:"list" required:"true"` - // The media pipeline's composited video. - CompositedVideo *CompositedVideoArtifactsConfiguration `type:"structure"` + // Matches keywords or phrases on their presence or absence. If set to TRUE, + // the rule matches when all the specified keywords or phrases are absent. Default: + // FALSE. + Negate *bool `type:"boolean"` - // The configuration object's multiplex type. + // The name of the keyword match rule. // - // MuxType is a required field - MuxType *string `type:"string" required:"true" enum:"LiveConnectorMuxType"` - - // The source configuration settings of the media pipeline's configuration object. - SourceConfiguration *SourceConfiguration `type:"structure"` + // RuleName is a required field + RuleName *string `min:"2" type:"string" required:"true"` } // String returns the string representation. @@ -1875,7 +5313,7 @@ type ChimeSdkMeetingLiveConnectorConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChimeSdkMeetingLiveConnectorConfiguration) String() string { +func (s KeywordMatchConfiguration) String() string { return awsutil.Prettify(s) } @@ -1884,31 +5322,24 @@ func (s ChimeSdkMeetingLiveConnectorConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChimeSdkMeetingLiveConnectorConfiguration) GoString() string { +func (s KeywordMatchConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChimeSdkMeetingLiveConnectorConfiguration"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - if s.Arn != nil && len(*s.Arn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) +func (s *KeywordMatchConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KeywordMatchConfiguration"} + if s.Keywords == nil { + invalidParams.Add(request.NewErrParamRequired("Keywords")) } - if s.MuxType == nil { - invalidParams.Add(request.NewErrParamRequired("MuxType")) + if s.Keywords != nil && len(s.Keywords) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Keywords", 1)) } - if s.CompositedVideo != nil { - if err := s.CompositedVideo.Validate(); err != nil { - invalidParams.AddNested("CompositedVideo", err.(request.ErrInvalidParams)) - } + if s.RuleName == nil { + invalidParams.Add(request.NewErrParamRequired("RuleName")) } - if s.SourceConfiguration != nil { - if err := s.SourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) - } + if s.RuleName != nil && len(*s.RuleName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) } if invalidParams.Len() > 0 { @@ -1917,45 +5348,35 @@ func (s *ChimeSdkMeetingLiveConnectorConfiguration) Validate() error { return nil } -// SetArn sets the Arn field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetArn(v string) *ChimeSdkMeetingLiveConnectorConfiguration { - s.Arn = &v - return s -} - -// SetCompositedVideo sets the CompositedVideo field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetCompositedVideo(v *CompositedVideoArtifactsConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { - s.CompositedVideo = v +// SetKeywords sets the Keywords field's value. +func (s *KeywordMatchConfiguration) SetKeywords(v []*string) *KeywordMatchConfiguration { + s.Keywords = v return s } -// SetMuxType sets the MuxType field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetMuxType(v string) *ChimeSdkMeetingLiveConnectorConfiguration { - s.MuxType = &v +// SetNegate sets the Negate field's value. +func (s *KeywordMatchConfiguration) SetNegate(v bool) *KeywordMatchConfiguration { + s.Negate = &v return s } -// SetSourceConfiguration sets the SourceConfiguration field's value. -func (s *ChimeSdkMeetingLiveConnectorConfiguration) SetSourceConfiguration(v *SourceConfiguration) *ChimeSdkMeetingLiveConnectorConfiguration { - s.SourceConfiguration = v +// SetRuleName sets the RuleName field's value. +func (s *KeywordMatchConfiguration) SetRuleName(v string) *KeywordMatchConfiguration { + s.RuleName = &v return s } -// Describes the configuration for the composited video artifacts. -type CompositedVideoArtifactsConfiguration struct { +// A structure that contains the configuration settings for a Kinesis Data Stream +// sink. +type KinesisDataStreamSinkConfiguration struct { _ struct{} `type:"structure"` - // The GridView configuration setting. + // The URL of the sink, https://aws.amazon.com/kinesis/data-streams/ (https://aws.amazon.com/kinesis/data-streams/). // - // GridViewConfiguration is a required field - GridViewConfiguration *GridViewConfiguration `type:"structure" required:"true"` - - // The layout setting, such as GridView in the configuration object. - Layout *string `type:"string" enum:"LayoutOption"` - - // The video resolution setting in the configuration object. Default: HD at - // 1280 x 720. FHD resolution: 1920 x 1080. - Resolution *string `type:"string" enum:"ResolutionOption"` + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by KinesisDataStreamSinkConfiguration's + // String and GoString methods. + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -1963,7 +5384,7 @@ type CompositedVideoArtifactsConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CompositedVideoArtifactsConfiguration) String() string { +func (s KinesisDataStreamSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -1972,20 +5393,15 @@ func (s CompositedVideoArtifactsConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CompositedVideoArtifactsConfiguration) GoString() string { +func (s KinesisDataStreamSinkConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CompositedVideoArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompositedVideoArtifactsConfiguration"} - if s.GridViewConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("GridViewConfiguration")) - } - if s.GridViewConfiguration != nil { - if err := s.GridViewConfiguration.Validate(); err != nil { - invalidParams.AddNested("GridViewConfiguration", err.(request.ErrInvalidParams)) - } +func (s *KinesisDataStreamSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisDataStreamSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) } if invalidParams.Len() > 0 { @@ -1994,33 +5410,27 @@ func (s *CompositedVideoArtifactsConfiguration) Validate() error { return nil } -// SetGridViewConfiguration sets the GridViewConfiguration field's value. -func (s *CompositedVideoArtifactsConfiguration) SetGridViewConfiguration(v *GridViewConfiguration) *CompositedVideoArtifactsConfiguration { - s.GridViewConfiguration = v - return s -} - -// SetLayout sets the Layout field's value. -func (s *CompositedVideoArtifactsConfiguration) SetLayout(v string) *CompositedVideoArtifactsConfiguration { - s.Layout = &v - return s -} - -// SetResolution sets the Resolution field's value. -func (s *CompositedVideoArtifactsConfiguration) SetResolution(v string) *CompositedVideoArtifactsConfiguration { - s.Resolution = &v +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *KinesisDataStreamSinkConfiguration) SetInsightsTarget(v string) *KinesisDataStreamSinkConfiguration { + s.InsightsTarget = &v return s } -// The composited video configuration object for a specified media pipeline. -// SourceType must be ChimeSdkMeeting. -type CompositedVideoConcatenationConfiguration struct { +// A structure that contains the runtime settings for recording a Kinesis video +// stream. +type KinesisVideoStreamRecordingSourceRuntimeConfiguration struct { _ struct{} `type:"structure"` - // Enables or disables the configuration object. + // Describes the timestamp range and timestamp origin of a range of fragments + // in the Kinesis video stream. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // FragmentSelector is a required field + FragmentSelector *FragmentSelector `type:"structure" required:"true"` + + // The stream or streams to be recorded. + // + // Streams is a required field + Streams []*RecordingStreamConfiguration `min:"2" type:"list" required:"true"` } // String returns the string representation. @@ -2028,7 +5438,7 @@ type CompositedVideoConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CompositedVideoConcatenationConfiguration) String() string { +func (s KinesisVideoStreamRecordingSourceRuntimeConfiguration) String() string { return awsutil.Prettify(s) } @@ -2037,15 +5447,36 @@ func (s CompositedVideoConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CompositedVideoConcatenationConfiguration) GoString() string { +func (s KinesisVideoStreamRecordingSourceRuntimeConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CompositedVideoConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompositedVideoConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamRecordingSourceRuntimeConfiguration"} + if s.FragmentSelector == nil { + invalidParams.Add(request.NewErrParamRequired("FragmentSelector")) + } + if s.Streams == nil { + invalidParams.Add(request.NewErrParamRequired("Streams")) + } + if s.Streams != nil && len(s.Streams) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Streams", 2)) + } + if s.FragmentSelector != nil { + if err := s.FragmentSelector.Validate(); err != nil { + invalidParams.AddNested("FragmentSelector", err.(request.ErrInvalidParams)) + } + } + if s.Streams != nil { + for i, v := range s.Streams { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Streams", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -2054,25 +5485,45 @@ func (s *CompositedVideoConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *CompositedVideoConcatenationConfiguration) SetState(v string) *CompositedVideoConcatenationConfiguration { - s.State = &v +// SetFragmentSelector sets the FragmentSelector field's value. +func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) SetFragmentSelector(v *FragmentSelector) *KinesisVideoStreamRecordingSourceRuntimeConfiguration { + s.FragmentSelector = v return s } -// The data sink of the configuration object. -type ConcatenationSink struct { +// SetStreams sets the Streams field's value. +func (s *KinesisVideoStreamRecordingSourceRuntimeConfiguration) SetStreams(v []*RecordingStreamConfiguration) *KinesisVideoStreamRecordingSourceRuntimeConfiguration { + s.Streams = v + return s +} + +// The runtime configuration settings for the Kinesis video stream source. +type KinesisVideoStreamSourceRuntimeConfiguration struct { _ struct{} `type:"structure"` - // The configuration settings for an Amazon S3 bucket sink. + // Specifies the encoding of your input audio. Supported format: PCM (only signed + // 16-bit little-endian audio formats, which does not include WAV) // - // S3BucketSinkConfiguration is a required field - S3BucketSinkConfiguration *S3BucketSinkConfiguration `type:"structure" required:"true"` + // For more information, see Media formats (https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio) + // in the Amazon Transcribe Developer Guide. + // + // MediaEncoding is a required field + MediaEncoding *string `type:"string" required:"true" enum:"MediaEncoding"` - // The type of data sink in the configuration object. + // The sample rate of the input audio (in hertz). Low-quality audio, such as + // telephone audio, is typically around 8,000 Hz. High-quality audio typically + // ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify + // must match that of your audio. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"ConcatenationSinkType"` + // Valid Range: Minimum value of 8000. Maximum value of 48000. + // + // MediaSampleRate is a required field + MediaSampleRate *int64 `min:"8000" type:"integer" required:"true"` + + // The streams in the source runtime configuration of a Kinesis video stream. + // + // Streams is a required field + Streams []*StreamConfiguration `min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -2080,7 +5531,7 @@ type ConcatenationSink struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConcatenationSink) String() string { +func (s KinesisVideoStreamSourceRuntimeConfiguration) String() string { return awsutil.Prettify(s) } @@ -2089,22 +5540,36 @@ func (s ConcatenationSink) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConcatenationSink) GoString() string { +func (s KinesisVideoStreamSourceRuntimeConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConcatenationSink) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConcatenationSink"} - if s.S3BucketSinkConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("S3BucketSinkConfiguration")) +func (s *KinesisVideoStreamSourceRuntimeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamSourceRuntimeConfiguration"} + if s.MediaEncoding == nil { + invalidParams.Add(request.NewErrParamRequired("MediaEncoding")) } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.MediaSampleRate == nil { + invalidParams.Add(request.NewErrParamRequired("MediaSampleRate")) } - if s.S3BucketSinkConfiguration != nil { - if err := s.S3BucketSinkConfiguration.Validate(); err != nil { - invalidParams.AddNested("S3BucketSinkConfiguration", err.(request.ErrInvalidParams)) + if s.MediaSampleRate != nil && *s.MediaSampleRate < 8000 { + invalidParams.Add(request.NewErrParamMinValue("MediaSampleRate", 8000)) + } + if s.Streams == nil { + invalidParams.Add(request.NewErrParamRequired("Streams")) + } + if s.Streams != nil && len(s.Streams) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Streams", 1)) + } + if s.Streams != nil { + for i, v := range s.Streams { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Streams", i), err.(request.ErrInvalidParams)) + } } } @@ -2114,32 +5579,83 @@ func (s *ConcatenationSink) Validate() error { return nil } -// SetS3BucketSinkConfiguration sets the S3BucketSinkConfiguration field's value. -func (s *ConcatenationSink) SetS3BucketSinkConfiguration(v *S3BucketSinkConfiguration) *ConcatenationSink { - s.S3BucketSinkConfiguration = v +// SetMediaEncoding sets the MediaEncoding field's value. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetMediaEncoding(v string) *KinesisVideoStreamSourceRuntimeConfiguration { + s.MediaEncoding = &v + return s +} + +// SetMediaSampleRate sets the MediaSampleRate field's value. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetMediaSampleRate(v int64) *KinesisVideoStreamSourceRuntimeConfiguration { + s.MediaSampleRate = &v return s } -// SetType sets the Type field's value. -func (s *ConcatenationSink) SetType(v string) *ConcatenationSink { - s.Type = &v +// SetStreams sets the Streams field's value. +func (s *KinesisVideoStreamSourceRuntimeConfiguration) SetStreams(v []*StreamConfiguration) *KinesisVideoStreamSourceRuntimeConfiguration { + s.Streams = v + return s +} + +// A structure that contains the configuration settings for an AWS Lambda function's +// data sink. +type LambdaFunctionSinkConfiguration struct { + _ struct{} `type:"structure"` + + // The URL of the sink, https://aws.amazon.com/kinesis/data-streams/ (https://aws.amazon.com/kinesis/data-streams/). + // + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by LambdaFunctionSinkConfiguration's + // String and GoString methods. + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LambdaFunctionSinkConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LambdaFunctionSinkConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LambdaFunctionSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *LambdaFunctionSinkConfiguration) SetInsightsTarget(v string) *LambdaFunctionSinkConfiguration { + s.InsightsTarget = &v return s } -// The source type and media pipeline configuration settings in a configuration -// object. -type ConcatenationSource struct { - _ struct{} `type:"structure"` +type ListMediaCapturePipelinesInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The concatenation settings for the media pipeline in a configuration object. - // - // MediaCapturePipelineSourceConfiguration is a required field - MediaCapturePipelineSourceConfiguration *MediaCapturePipelineSourceConfiguration `type:"structure" required:"true"` + // The maximum number of results to return in a single call. Valid Range: 1 + // - 99. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The type of concatenation source in a configuration object. - // - // Type is a required field - Type *string `type:"string" required:"true" enum:"ConcatenationSourceType"` + // The token used to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -2147,7 +5663,7 @@ type ConcatenationSource struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConcatenationSource) String() string { +func (s ListMediaCapturePipelinesInput) String() string { return awsutil.Prettify(s) } @@ -2156,23 +5672,15 @@ func (s ConcatenationSource) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConcatenationSource) GoString() string { +func (s ListMediaCapturePipelinesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConcatenationSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConcatenationSource"} - if s.MediaCapturePipelineSourceConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("MediaCapturePipelineSourceConfiguration")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.MediaCapturePipelineSourceConfiguration != nil { - if err := s.MediaCapturePipelineSourceConfiguration.Validate(); err != nil { - invalidParams.AddNested("MediaCapturePipelineSourceConfiguration", err.(request.ErrInvalidParams)) - } +func (s *ListMediaCapturePipelinesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMediaCapturePipelinesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -2181,29 +5689,26 @@ func (s *ConcatenationSource) Validate() error { return nil } -// SetMediaCapturePipelineSourceConfiguration sets the MediaCapturePipelineSourceConfiguration field's value. -func (s *ConcatenationSource) SetMediaCapturePipelineSourceConfiguration(v *MediaCapturePipelineSourceConfiguration) *ConcatenationSource { - s.MediaCapturePipelineSourceConfiguration = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMediaCapturePipelinesInput) SetMaxResults(v int64) *ListMediaCapturePipelinesInput { + s.MaxResults = &v return s } -// SetType sets the Type field's value. -func (s *ConcatenationSource) SetType(v string) *ConcatenationSource { - s.Type = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaCapturePipelinesInput) SetNextToken(v string) *ListMediaCapturePipelinesInput { + s.NextToken = &v return s } -// The content artifact object. -type ContentArtifactsConfiguration struct { +type ListMediaCapturePipelinesOutput struct { _ struct{} `type:"structure"` - // The MUX type of the artifact configuration. - MuxType *string `type:"string" enum:"ContentMuxType"` + // The media pipeline objects in the list. + MediaCapturePipelines []*MediaCapturePipelineSummary `type:"list"` - // Indicates whether the content artifact is enabled or disabled. - // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsState"` + // The token used to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -2211,7 +5716,7 @@ type ContentArtifactsConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ContentArtifactsConfiguration) String() string { +func (s ListMediaCapturePipelinesOutput) String() string { return awsutil.Prettify(s) } @@ -2220,43 +5725,30 @@ func (s ContentArtifactsConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ContentArtifactsConfiguration) GoString() string { +func (s ListMediaCapturePipelinesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ContentArtifactsConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContentArtifactsConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMuxType sets the MuxType field's value. -func (s *ContentArtifactsConfiguration) SetMuxType(v string) *ContentArtifactsConfiguration { - s.MuxType = &v +// SetMediaCapturePipelines sets the MediaCapturePipelines field's value. +func (s *ListMediaCapturePipelinesOutput) SetMediaCapturePipelines(v []*MediaCapturePipelineSummary) *ListMediaCapturePipelinesOutput { + s.MediaCapturePipelines = v return s } -// SetState sets the State field's value. -func (s *ContentArtifactsConfiguration) SetState(v string) *ContentArtifactsConfiguration { - s.State = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaCapturePipelinesOutput) SetNextToken(v string) *ListMediaCapturePipelinesOutput { + s.NextToken = &v return s } -// The composited content configuration object for a specified media pipeline. -type ContentConcatenationConfiguration struct { - _ struct{} `type:"structure"` +type ListMediaInsightsPipelineConfigurationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // Enables or disables the configuration object. - // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token used to return the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -2264,7 +5756,7 @@ type ContentConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ContentConcatenationConfiguration) String() string { +func (s ListMediaInsightsPipelineConfigurationsInput) String() string { return awsutil.Prettify(s) } @@ -2273,15 +5765,15 @@ func (s ContentConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ContentConcatenationConfiguration) GoString() string { +func (s ListMediaInsightsPipelineConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ContentConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContentConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *ListMediaInsightsPipelineConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMediaInsightsPipelineConfigurationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -2290,58 +5782,26 @@ func (s *ContentConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *ContentConcatenationConfiguration) SetState(v string) *ContentConcatenationConfiguration { - s.State = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMediaInsightsPipelineConfigurationsInput) SetMaxResults(v int64) *ListMediaInsightsPipelineConfigurationsInput { + s.MaxResults = &v return s } -type CreateMediaCapturePipelineInput struct { - _ struct{} `type:"structure"` - - // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. - ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` - - // The unique identifier for the client request. The token makes the API request - // idempotent. Use a unique token for each media pipeline request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The ARN of the sink type. - // - // SinkArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's - // String and GoString methods. - // - // SinkArn is a required field - SinkArn *string `min:"1" type:"string" required:"true" sensitive:"true"` - - // Destination type to which the media artifacts are saved. You must use an - // S3 bucket. - // - // SinkType is a required field - SinkType *string `type:"string" required:"true" enum:"MediaPipelineSinkType"` +// SetNextToken sets the NextToken field's value. +func (s *ListMediaInsightsPipelineConfigurationsInput) SetNextToken(v string) *ListMediaInsightsPipelineConfigurationsInput { + s.NextToken = &v + return s +} - // ARN of the source from which the media artifacts are captured. - // - // SourceArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaCapturePipelineInput's - // String and GoString methods. - // - // SourceArn is a required field - SourceArn *string `min:"1" type:"string" required:"true" sensitive:"true"` +type ListMediaInsightsPipelineConfigurationsOutput struct { + _ struct{} `type:"structure"` - // Source type from which the media artifacts are captured. A Chime SDK Meeting - // is the only supported source. - // - // SourceType is a required field - SourceType *string `type:"string" required:"true" enum:"MediaPipelineSourceType"` + // The requested list of media insights pipeline configurations. + MediaInsightsPipelineConfigurations []*MediaInsightsPipelineConfigurationSummary `type:"list"` - // The tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` + // The token used to return the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -2349,7 +5809,7 @@ type CreateMediaCapturePipelineInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaCapturePipelineInput) String() string { +func (s ListMediaInsightsPipelineConfigurationsOutput) String() string { return awsutil.Prettify(s) } @@ -2358,107 +5818,84 @@ func (s CreateMediaCapturePipelineInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaCapturePipelineInput) GoString() string { +func (s ListMediaInsightsPipelineConfigurationsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaCapturePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaCapturePipelineInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.SinkArn == nil { - invalidParams.Add(request.NewErrParamRequired("SinkArn")) - } - if s.SinkArn != nil && len(*s.SinkArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SinkArn", 1)) - } - if s.SinkType == nil { - invalidParams.Add(request.NewErrParamRequired("SinkType")) - } - if s.SourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("SourceArn")) - } - if s.SourceArn != nil && len(*s.SourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1)) - } - if s.SourceType == nil { - invalidParams.Add(request.NewErrParamRequired("SourceType")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.ChimeSdkMeetingConfiguration != nil { - if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { - invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMediaInsightsPipelineConfigurations sets the MediaInsightsPipelineConfigurations field's value. +func (s *ListMediaInsightsPipelineConfigurationsOutput) SetMediaInsightsPipelineConfigurations(v []*MediaInsightsPipelineConfigurationSummary) *ListMediaInsightsPipelineConfigurationsOutput { + s.MediaInsightsPipelineConfigurations = v + return s } -// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. -func (s *CreateMediaCapturePipelineInput) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *CreateMediaCapturePipelineInput { - s.ChimeSdkMeetingConfiguration = v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaInsightsPipelineConfigurationsOutput) SetNextToken(v string) *ListMediaInsightsPipelineConfigurationsOutput { + s.NextToken = &v return s } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaCapturePipelineInput) SetClientRequestToken(v string) *CreateMediaCapturePipelineInput { - s.ClientRequestToken = &v - return s +type ListMediaPipelinesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The maximum number of results to return in a single call. Valid Range: 1 + // - 99. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token used to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } -// SetSinkArn sets the SinkArn field's value. -func (s *CreateMediaCapturePipelineInput) SetSinkArn(v string) *CreateMediaCapturePipelineInput { - s.SinkArn = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMediaPipelinesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMediaPipelinesInput) GoString() string { + return s.String() } -// SetSinkType sets the SinkType field's value. -func (s *CreateMediaCapturePipelineInput) SetSinkType(v string) *CreateMediaCapturePipelineInput { - s.SinkType = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMediaPipelinesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMediaPipelinesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -// SetSourceArn sets the SourceArn field's value. -func (s *CreateMediaCapturePipelineInput) SetSourceArn(v string) *CreateMediaCapturePipelineInput { - s.SourceArn = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSourceType sets the SourceType field's value. -func (s *CreateMediaCapturePipelineInput) SetSourceType(v string) *CreateMediaCapturePipelineInput { - s.SourceType = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMediaPipelinesInput) SetMaxResults(v int64) *ListMediaPipelinesInput { + s.MaxResults = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateMediaCapturePipelineInput) SetTags(v []*Tag) *CreateMediaCapturePipelineInput { - s.Tags = v +// SetNextToken sets the NextToken field's value. +func (s *ListMediaPipelinesInput) SetNextToken(v string) *ListMediaPipelinesInput { + s.NextToken = &v return s } -type CreateMediaCapturePipelineOutput struct { +type ListMediaPipelinesOutput struct { _ struct{} `type:"structure"` - // A media pipeline object, the ID, source type, source ARN, sink type, and - // sink ARN of a media pipeline object. - MediaCapturePipeline *MediaCapturePipeline `type:"structure"` + // The media pipeline objects in the list. + MediaPipelines []*MediaPipelineSummary `type:"list"` + + // The token used to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -2466,7 +5903,7 @@ type CreateMediaCapturePipelineOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaCapturePipelineOutput) String() string { +func (s ListMediaPipelinesOutput) String() string { return awsutil.Prettify(s) } @@ -2475,39 +5912,30 @@ func (s CreateMediaCapturePipelineOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaCapturePipelineOutput) GoString() string { +func (s ListMediaPipelinesOutput) GoString() string { return s.String() } -// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. -func (s *CreateMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *CreateMediaCapturePipelineOutput { - s.MediaCapturePipeline = v +// SetMediaPipelines sets the MediaPipelines field's value. +func (s *ListMediaPipelinesOutput) SetMediaPipelines(v []*MediaPipelineSummary) *ListMediaPipelinesOutput { + s.MediaPipelines = v return s } -type CreateMediaConcatenationPipelineInput struct { - _ struct{} `type:"structure"` - - // The unique identifier for the client request. The token makes the API request - // idempotent. Use a unique token for each media concatenation pipeline request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaConcatenationPipelineInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListMediaPipelinesOutput) SetNextToken(v string) *ListMediaPipelinesOutput { + s.NextToken = &v + return s +} - // An object that specifies the data sinks for the media concatenation pipeline. - // - // Sinks is a required field - Sinks []*ConcatenationSink `min:"1" type:"list" required:"true"` +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // An object that specifies the sources for the media concatenation pipeline. + // The ARN of the media pipeline associated with any tags. The ARN consists + // of the pipeline's region, resource ID, and pipeline ID. // - // Sources is a required field - Sources []*ConcatenationSource `min:"1" type:"list" required:"true"` - - // The tags associated with the media concatenation pipeline. - Tags []*Tag `min:"1" type:"list"` + // ResourceARN is a required field + ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -2515,7 +5943,7 @@ type CreateMediaConcatenationPipelineInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaConcatenationPipelineInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -2524,60 +5952,18 @@ func (s CreateMediaConcatenationPipelineInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaConcatenationPipelineInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaConcatenationPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaConcatenationPipelineInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.Sinks == nil { - invalidParams.Add(request.NewErrParamRequired("Sinks")) - } - if s.Sinks != nil && len(s.Sinks) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sinks", 1)) - } - if s.Sources == nil { - invalidParams.Add(request.NewErrParamRequired("Sources")) - } - if s.Sources != nil && len(s.Sources) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sources", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Sinks != nil { - for i, v := range s.Sinks { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sinks", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Sources != nil { - for i, v := range s.Sources { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) - } - } +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if invalidParams.Len() > 0 { @@ -2586,36 +5972,61 @@ func (s *CreateMediaConcatenationPipelineInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaConcatenationPipelineInput) SetClientRequestToken(v string) *CreateMediaConcatenationPipelineInput { - s.ClientRequestToken = &v +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { + s.ResourceARN = &v return s } -// SetSinks sets the Sinks field's value. -func (s *CreateMediaConcatenationPipelineInput) SetSinks(v []*ConcatenationSink) *CreateMediaConcatenationPipelineInput { - s.Sinks = v - return s +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The tags associated with the specified media pipeline. + Tags []*Tag `min:"1" type:"list"` } -// SetSources sets the Sources field's value. -func (s *CreateMediaConcatenationPipelineInput) SetSources(v []*ConcatenationSource) *CreateMediaConcatenationPipelineInput { - s.Sources = v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() } // SetTags sets the Tags field's value. -func (s *CreateMediaConcatenationPipelineInput) SetTags(v []*Tag) *CreateMediaConcatenationPipelineInput { +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { s.Tags = v return s } -type CreateMediaConcatenationPipelineOutput struct { +// The media pipeline's RTMP configuration object. +type LiveConnectorRTMPConfiguration struct { _ struct{} `type:"structure"` - // A media concatenation pipeline object, the ID, source type, MediaPipelineARN, - // and sink of a media concatenation pipeline object. - MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` + // The audio channels set for the RTMP configuration + AudioChannels *string `type:"string" enum:"AudioChannelsOption"` + + // The audio sample rate set for the RTMP configuration. Default: 48000. + AudioSampleRate *string `type:"string"` + + // The URL of the RTMP configuration. + // + // Url is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by LiveConnectorRTMPConfiguration's + // String and GoString methods. + // + // Url is a required field + Url *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -2623,7 +6034,7 @@ type CreateMediaConcatenationPipelineOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaConcatenationPipelineOutput) String() string { +func (s LiveConnectorRTMPConfiguration) String() string { return awsutil.Prettify(s) } @@ -2632,38 +6043,57 @@ func (s CreateMediaConcatenationPipelineOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaConcatenationPipelineOutput) GoString() string { +func (s LiveConnectorRTMPConfiguration) GoString() string { return s.String() } -// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. -func (s *CreateMediaConcatenationPipelineOutput) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *CreateMediaConcatenationPipelineOutput { - s.MediaConcatenationPipeline = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *LiveConnectorRTMPConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LiveConnectorRTMPConfiguration"} + if s.Url == nil { + invalidParams.Add(request.NewErrParamRequired("Url")) + } + if s.Url != nil && len(*s.Url) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Url", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAudioChannels sets the AudioChannels field's value. +func (s *LiveConnectorRTMPConfiguration) SetAudioChannels(v string) *LiveConnectorRTMPConfiguration { + s.AudioChannels = &v return s } -type CreateMediaLiveConnectorPipelineInput struct { - _ struct{} `type:"structure"` +// SetAudioSampleRate sets the AudioSampleRate field's value. +func (s *LiveConnectorRTMPConfiguration) SetAudioSampleRate(v string) *LiveConnectorRTMPConfiguration { + s.AudioSampleRate = &v + return s +} - // The token assigned to the client making the request. - // - // ClientRequestToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateMediaLiveConnectorPipelineInput's - // String and GoString methods. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` +// SetUrl sets the Url field's value. +func (s *LiveConnectorRTMPConfiguration) SetUrl(v string) *LiveConnectorRTMPConfiguration { + s.Url = &v + return s +} - // The media pipeline's data sinks. - // - // Sinks is a required field - Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list" required:"true"` +// The media pipeline's sink configuration settings. +type LiveConnectorSinkConfiguration struct { + _ struct{} `type:"structure"` - // The media pipeline's data sources. + // The sink configuration's RTMP configuration settings. // - // Sources is a required field - Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list" required:"true"` + // RTMPConfiguration is a required field + RTMPConfiguration *LiveConnectorRTMPConfiguration `type:"structure" required:"true"` - // The tags associated with the media pipeline. - Tags []*Tag `min:"1" type:"list"` + // The sink configuration's sink type. + // + // SinkType is a required field + SinkType *string `type:"string" required:"true" enum:"LiveConnectorSinkType"` } // String returns the string representation. @@ -2671,7 +6101,7 @@ type CreateMediaLiveConnectorPipelineInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaLiveConnectorPipelineInput) String() string { +func (s LiveConnectorSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -2680,59 +6110,22 @@ func (s CreateMediaLiveConnectorPipelineInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaLiveConnectorPipelineInput) GoString() string { +func (s LiveConnectorSinkConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMediaLiveConnectorPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMediaLiveConnectorPipelineInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.Sinks == nil { - invalidParams.Add(request.NewErrParamRequired("Sinks")) - } - if s.Sinks != nil && len(s.Sinks) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sinks", 1)) - } - if s.Sources == nil { - invalidParams.Add(request.NewErrParamRequired("Sources")) - } - if s.Sources != nil && len(s.Sources) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Sources", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Sinks != nil { - for i, v := range s.Sinks { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sinks", i), err.(request.ErrInvalidParams)) - } - } +func (s *LiveConnectorSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSinkConfiguration"} + if s.RTMPConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("RTMPConfiguration")) } - if s.Sources != nil { - for i, v := range s.Sources { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) - } - } + if s.SinkType == nil { + invalidParams.Add(request.NewErrParamRequired("SinkType")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } + if s.RTMPConfiguration != nil { + if err := s.RTMPConfiguration.Validate(); err != nil { + invalidParams.AddNested("RTMPConfiguration", err.(request.ErrInvalidParams)) } } @@ -2742,35 +6135,31 @@ func (s *CreateMediaLiveConnectorPipelineInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetClientRequestToken(v string) *CreateMediaLiveConnectorPipelineInput { - s.ClientRequestToken = &v - return s -} - -// SetSinks sets the Sinks field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetSinks(v []*LiveConnectorSinkConfiguration) *CreateMediaLiveConnectorPipelineInput { - s.Sinks = v - return s -} - -// SetSources sets the Sources field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetSources(v []*LiveConnectorSourceConfiguration) *CreateMediaLiveConnectorPipelineInput { - s.Sources = v +// SetRTMPConfiguration sets the RTMPConfiguration field's value. +func (s *LiveConnectorSinkConfiguration) SetRTMPConfiguration(v *LiveConnectorRTMPConfiguration) *LiveConnectorSinkConfiguration { + s.RTMPConfiguration = v return s } -// SetTags sets the Tags field's value. -func (s *CreateMediaLiveConnectorPipelineInput) SetTags(v []*Tag) *CreateMediaLiveConnectorPipelineInput { - s.Tags = v +// SetSinkType sets the SinkType field's value. +func (s *LiveConnectorSinkConfiguration) SetSinkType(v string) *LiveConnectorSinkConfiguration { + s.SinkType = &v return s } -type CreateMediaLiveConnectorPipelineOutput struct { +// The data source configuration object of a streaming media pipeline. +type LiveConnectorSourceConfiguration struct { _ struct{} `type:"structure"` - // The new media pipeline. - MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` + // The configuration settings of the connector pipeline. + // + // ChimeSdkMeetingLiveConnectorConfiguration is a required field + ChimeSdkMeetingLiveConnectorConfiguration *ChimeSdkMeetingLiveConnectorConfiguration `type:"structure" required:"true"` + + // The source configuration's media source type. + // + // SourceType is a required field + SourceType *string `type:"string" required:"true" enum:"LiveConnectorSourceType"` } // String returns the string representation. @@ -2778,7 +6167,7 @@ type CreateMediaLiveConnectorPipelineOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaLiveConnectorPipelineOutput) String() string { +func (s LiveConnectorSourceConfiguration) String() string { return awsutil.Prettify(s) } @@ -2787,24 +6176,86 @@ func (s CreateMediaLiveConnectorPipelineOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateMediaLiveConnectorPipelineOutput) GoString() string { +func (s LiveConnectorSourceConfiguration) GoString() string { return s.String() } -// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. -func (s *CreateMediaLiveConnectorPipelineOutput) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *CreateMediaLiveConnectorPipelineOutput { - s.MediaLiveConnectorPipeline = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *LiveConnectorSourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSourceConfiguration"} + if s.ChimeSdkMeetingLiveConnectorConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingLiveConnectorConfiguration")) + } + if s.SourceType == nil { + invalidParams.Add(request.NewErrParamRequired("SourceType")) + } + if s.ChimeSdkMeetingLiveConnectorConfiguration != nil { + if err := s.ChimeSdkMeetingLiveConnectorConfiguration.Validate(); err != nil { + invalidParams.AddNested("ChimeSdkMeetingLiveConnectorConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChimeSdkMeetingLiveConnectorConfiguration sets the ChimeSdkMeetingLiveConnectorConfiguration field's value. +func (s *LiveConnectorSourceConfiguration) SetChimeSdkMeetingLiveConnectorConfiguration(v *ChimeSdkMeetingLiveConnectorConfiguration) *LiveConnectorSourceConfiguration { + s.ChimeSdkMeetingLiveConnectorConfiguration = v return s } -// The content configuration object's data channel. -type DataChannelConcatenationConfiguration struct { +// SetSourceType sets the SourceType field's value. +func (s *LiveConnectorSourceConfiguration) SetSourceType(v string) *LiveConnectorSourceConfiguration { + s.SourceType = &v + return s +} + +// A media pipeline object consisting of an ID, source type, source ARN, a sink +// type, a sink ARN, and a configuration object. +type MediaCapturePipeline struct { _ struct{} `type:"structure"` - // Enables or disables the configuration object. + // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. + ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` + + // The time at which the pipeline was created, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The ARN of the media capture pipeline + MediaPipelineArn *string `min:"1" type:"string"` + + // The ID of a media pipeline. + MediaPipelineId *string `min:"36" type:"string"` + + // ARN of the destination to which the media artifacts are saved. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // SinkArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaCapturePipeline's + // String and GoString methods. + SinkArn *string `min:"1" type:"string" sensitive:"true"` + + // Destination type to which the media artifacts are saved. You must use an + // S3 Bucket. + SinkType *string `type:"string" enum:"MediaPipelineSinkType"` + + // ARN of the source from which the media artifacts are saved. + // + // SourceArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaCapturePipeline's + // String and GoString methods. + SourceArn *string `min:"1" type:"string" sensitive:"true"` + + // Source type from which media artifacts are saved. You must use ChimeMeeting. + SourceType *string `type:"string" enum:"MediaPipelineSourceType"` + + // The status of the media pipeline. + Status *string `type:"string" enum:"MediaPipelineStatus"` + + // The time at which the pipeline was updated, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -2812,7 +6263,7 @@ type DataChannelConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DataChannelConcatenationConfiguration) String() string { +func (s MediaCapturePipeline) String() string { return awsutil.Prettify(s) } @@ -2821,36 +6272,88 @@ func (s DataChannelConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DataChannelConcatenationConfiguration) GoString() string { +func (s MediaCapturePipeline) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DataChannelConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DataChannelConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) - } +// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. +func (s *MediaCapturePipeline) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *MediaCapturePipeline { + s.ChimeSdkMeetingConfiguration = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaCapturePipeline) SetCreatedTimestamp(v time.Time) *MediaCapturePipeline { + s.CreatedTimestamp = &v + return s } -// SetState sets the State field's value. -func (s *DataChannelConcatenationConfiguration) SetState(v string) *DataChannelConcatenationConfiguration { - s.State = &v +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaCapturePipeline) SetMediaPipelineArn(v string) *MediaCapturePipeline { + s.MediaPipelineArn = &v + return s +} + +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaCapturePipeline) SetMediaPipelineId(v string) *MediaCapturePipeline { + s.MediaPipelineId = &v + return s +} + +// SetSinkArn sets the SinkArn field's value. +func (s *MediaCapturePipeline) SetSinkArn(v string) *MediaCapturePipeline { + s.SinkArn = &v + return s +} + +// SetSinkType sets the SinkType field's value. +func (s *MediaCapturePipeline) SetSinkType(v string) *MediaCapturePipeline { + s.SinkType = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *MediaCapturePipeline) SetSourceArn(v string) *MediaCapturePipeline { + s.SourceArn = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *MediaCapturePipeline) SetSourceType(v string) *MediaCapturePipeline { + s.SourceType = &v return s } -type DeleteMediaCapturePipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetStatus sets the Status field's value. +func (s *MediaCapturePipeline) SetStatus(v string) *MediaCapturePipeline { + s.Status = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaCapturePipeline) SetUpdatedTimestamp(v time.Time) *MediaCapturePipeline { + s.UpdatedTimestamp = &v + return s +} + +// The source configuration object of a media capture pipeline. +type MediaCapturePipelineSourceConfiguration struct { + _ struct{} `type:"structure"` + + // The meeting configuration settings in a media capture pipeline configuration + // object. + // + // ChimeSdkMeetingConfiguration is a required field + ChimeSdkMeetingConfiguration *ChimeSdkMeetingConcatenationConfiguration `type:"structure" required:"true"` - // The ID of the media pipeline being deleted. + // The media pipeline ARN in the configuration object of a media capture pipeline. // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` + // MediaPipelineArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaCapturePipelineSourceConfiguration's + // String and GoString methods. + // + // MediaPipelineArn is a required field + MediaPipelineArn *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -2858,7 +6361,7 @@ type DeleteMediaCapturePipelineInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteMediaCapturePipelineInput) String() string { +func (s MediaCapturePipelineSourceConfiguration) String() string { return awsutil.Prettify(s) } @@ -2867,18 +6370,26 @@ func (s DeleteMediaCapturePipelineInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteMediaCapturePipelineInput) GoString() string { +func (s MediaCapturePipelineSourceConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMediaCapturePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMediaCapturePipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) +func (s *MediaCapturePipelineSourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MediaCapturePipelineSourceConfiguration"} + if s.ChimeSdkMeetingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingConfiguration")) } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) + if s.MediaPipelineArn == nil { + invalidParams.Add(request.NewErrParamRequired("MediaPipelineArn")) + } + if s.MediaPipelineArn != nil && len(*s.MediaPipelineArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MediaPipelineArn", 1)) + } + if s.ChimeSdkMeetingConfiguration != nil { + if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { + invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -2887,41 +6398,27 @@ func (s *DeleteMediaCapturePipelineInput) Validate() error { return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *DeleteMediaCapturePipelineInput) SetMediaPipelineId(v string) *DeleteMediaCapturePipelineInput { - s.MediaPipelineId = &v +// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. +func (s *MediaCapturePipelineSourceConfiguration) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConcatenationConfiguration) *MediaCapturePipelineSourceConfiguration { + s.ChimeSdkMeetingConfiguration = v return s } -type DeleteMediaCapturePipelineOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteMediaCapturePipelineOutput) String() string { - return awsutil.Prettify(s) +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaCapturePipelineSourceConfiguration) SetMediaPipelineArn(v string) *MediaCapturePipelineSourceConfiguration { + s.MediaPipelineArn = &v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteMediaCapturePipelineOutput) GoString() string { - return s.String() -} +// The summary data of a media capture pipeline. +type MediaCapturePipelineSummary struct { + _ struct{} `type:"structure"` -type DeleteMediaPipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // The ARN of the media pipeline in the summary. + MediaPipelineArn *string `min:"1" type:"string"` - // The ID of the media pipeline to delete. - // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` + // The ID of the media pipeline in the summary. + MediaPipelineId *string `min:"36" type:"string"` } // String returns the string representation. @@ -2929,7 +6426,7 @@ type DeleteMediaPipelineInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteMediaPipelineInput) String() string { +func (s MediaCapturePipelineSummary) String() string { return awsutil.Prettify(s) } @@ -2938,65 +6435,47 @@ func (s DeleteMediaPipelineInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteMediaPipelineInput) GoString() string { +func (s MediaCapturePipelineSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMediaPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMediaPipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) - } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaCapturePipelineSummary) SetMediaPipelineArn(v string) *MediaCapturePipelineSummary { + s.MediaPipelineArn = &v + return s } // SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *DeleteMediaPipelineInput) SetMediaPipelineId(v string) *DeleteMediaPipelineInput { +func (s *MediaCapturePipelineSummary) SetMediaPipelineId(v string) *MediaCapturePipelineSummary { s.MediaPipelineId = &v return s } -type DeleteMediaPipelineOutput struct { +// Concatenates audio and video data from one or more data streams. +type MediaConcatenationPipeline struct { _ struct{} `type:"structure"` -} -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteMediaPipelineOutput) String() string { - return awsutil.Prettify(s) -} + // The time at which the concatenation pipeline was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteMediaPipelineOutput) GoString() string { - return s.String() -} + // The ARN of the media pipeline that you specify in the SourceConfiguration + // object. + MediaPipelineArn *string `min:"1" type:"string"` -// The client is permanently forbidden from making the request. -type ForbiddenException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The ID of the media pipeline being concatenated. + MediaPipelineId *string `min:"36" type:"string"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // The data sinks of the concatenation pipeline. + Sinks []*ConcatenationSink `min:"1" type:"list"` - Message_ *string `locationName:"Message" type:"string"` + // The data sources being concatenated. + Sources []*ConcatenationSource `min:"1" type:"list"` - // The request id associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The status of the concatenation pipeline. + Status *string `type:"string" enum:"MediaPipelineStatus"` + + // The time at which the concatenation pipeline was last updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -3004,7 +6483,7 @@ type ForbiddenException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ForbiddenException) String() string { +func (s MediaConcatenationPipeline) String() string { return awsutil.Prettify(s) } @@ -3013,102 +6492,97 @@ func (s ForbiddenException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ForbiddenException) GoString() string { +func (s MediaConcatenationPipeline) GoString() string { return s.String() } -func newErrorForbiddenException(v protocol.ResponseMetadata) error { - return &ForbiddenException{ - RespMetadata: v, - } +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaConcatenationPipeline) SetCreatedTimestamp(v time.Time) *MediaConcatenationPipeline { + s.CreatedTimestamp = &v + return s } -// Code returns the exception type name. -func (s *ForbiddenException) Code() string { - return "ForbiddenException" +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaConcatenationPipeline) SetMediaPipelineArn(v string) *MediaConcatenationPipeline { + s.MediaPipelineArn = &v + return s } -// Message returns the exception's message. -func (s *ForbiddenException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaConcatenationPipeline) SetMediaPipelineId(v string) *MediaConcatenationPipeline { + s.MediaPipelineId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ForbiddenException) OrigErr() error { - return nil +// SetSinks sets the Sinks field's value. +func (s *MediaConcatenationPipeline) SetSinks(v []*ConcatenationSink) *MediaConcatenationPipeline { + s.Sinks = v + return s } -func (s *ForbiddenException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetSources sets the Sources field's value. +func (s *MediaConcatenationPipeline) SetSources(v []*ConcatenationSource) *MediaConcatenationPipeline { + s.Sources = v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ForbiddenException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetStatus sets the Status field's value. +func (s *MediaConcatenationPipeline) SetStatus(v string) *MediaConcatenationPipeline { + s.Status = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ForbiddenException) RequestID() string { - return s.RespMetadata.RequestID +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaConcatenationPipeline) SetUpdatedTimestamp(v time.Time) *MediaConcatenationPipeline { + s.UpdatedTimestamp = &v + return s } -type GetMediaCapturePipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// A media pipeline that streams call analytics data. +type MediaInsightsPipeline struct { + _ struct{} `type:"structure"` - // The ID of the pipeline that you want to get. - // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` -} + // The time at which the media insights pipeline was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetMediaCapturePipelineInput) String() string { - return awsutil.Prettify(s) -} + // The runtime configuration settings for a Kinesis recording video stream in + // a media insights pipeline. + KinesisVideoStreamRecordingSourceRuntimeConfiguration *KinesisVideoStreamRecordingSourceRuntimeConfiguration `type:"structure"` -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetMediaCapturePipelineInput) GoString() string { - return s.String() -} + // The configuration settings for a Kinesis runtime video stream in a media + // insights pipeline. + KinesisVideoStreamSourceRuntimeConfiguration *KinesisVideoStreamSourceRuntimeConfiguration `type:"structure"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMediaCapturePipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMediaCapturePipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) - } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) - } + // The ARN of a media insight pipeline's configuration settings. + // + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipeline's + // String and GoString methods. + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The runtime metadata of a media insights pipeline. + // + // MediaInsightsRuntimeMetadata is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipeline's + // String and GoString methods. + MediaInsightsRuntimeMetadata map[string]*string `type:"map" sensitive:"true"` -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *GetMediaCapturePipelineInput) SetMediaPipelineId(v string) *GetMediaCapturePipelineInput { - s.MediaPipelineId = &v - return s -} + // The ARN of a media insights pipeline. + // + // MediaPipelineArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipeline's + // String and GoString methods. + MediaPipelineArn *string `min:"1" type:"string" sensitive:"true"` -type GetMediaCapturePipelineOutput struct { - _ struct{} `type:"structure"` + // The ID of a media insights pipeline. + MediaPipelineId *string `min:"36" type:"string"` - // The media pipeline object. - MediaCapturePipeline *MediaCapturePipeline `type:"structure"` + // The runtime configuration of the Amazon S3 bucket that stores recordings + // in a media insights pipeline. + S3RecordingSinkRuntimeConfiguration *S3RecordingSinkRuntimeConfiguration `type:"structure"` + + // The status of a media insights pipeline. + Status *string `type:"string" enum:"MediaPipelineStatus"` } // String returns the string representation. @@ -3116,7 +6590,7 @@ type GetMediaCapturePipelineOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetMediaCapturePipelineOutput) String() string { +func (s MediaInsightsPipeline) String() string { return awsutil.Prettify(s) } @@ -3125,70 +6599,100 @@ func (s GetMediaCapturePipelineOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetMediaCapturePipelineOutput) GoString() string { +func (s MediaInsightsPipeline) GoString() string { return s.String() } -// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. -func (s *GetMediaCapturePipelineOutput) SetMediaCapturePipeline(v *MediaCapturePipeline) *GetMediaCapturePipelineOutput { - s.MediaCapturePipeline = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaInsightsPipeline) SetCreatedTimestamp(v time.Time) *MediaInsightsPipeline { + s.CreatedTimestamp = &v return s } -type GetMediaPipelineInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The ID of the pipeline that you want to get. - // - // MediaPipelineId is a required field - MediaPipelineId *string `location:"uri" locationName:"mediaPipelineId" min:"36" type:"string" required:"true"` +// SetKinesisVideoStreamRecordingSourceRuntimeConfiguration sets the KinesisVideoStreamRecordingSourceRuntimeConfiguration field's value. +func (s *MediaInsightsPipeline) SetKinesisVideoStreamRecordingSourceRuntimeConfiguration(v *KinesisVideoStreamRecordingSourceRuntimeConfiguration) *MediaInsightsPipeline { + s.KinesisVideoStreamRecordingSourceRuntimeConfiguration = v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetMediaPipelineInput) String() string { - return awsutil.Prettify(s) +// SetKinesisVideoStreamSourceRuntimeConfiguration sets the KinesisVideoStreamSourceRuntimeConfiguration field's value. +func (s *MediaInsightsPipeline) SetKinesisVideoStreamSourceRuntimeConfiguration(v *KinesisVideoStreamSourceRuntimeConfiguration) *MediaInsightsPipeline { + s.KinesisVideoStreamSourceRuntimeConfiguration = v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetMediaPipelineInput) GoString() string { - return s.String() +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *MediaInsightsPipeline) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipeline { + s.MediaInsightsPipelineConfigurationArn = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMediaPipelineInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMediaPipelineInput"} - if s.MediaPipelineId == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineId")) - } - if s.MediaPipelineId != nil && len(*s.MediaPipelineId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineId", 36)) - } +// SetMediaInsightsRuntimeMetadata sets the MediaInsightsRuntimeMetadata field's value. +func (s *MediaInsightsPipeline) SetMediaInsightsRuntimeMetadata(v map[string]*string) *MediaInsightsPipeline { + s.MediaInsightsRuntimeMetadata = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaInsightsPipeline) SetMediaPipelineArn(v string) *MediaInsightsPipeline { + s.MediaPipelineArn = &v + return s } // SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *GetMediaPipelineInput) SetMediaPipelineId(v string) *GetMediaPipelineInput { +func (s *MediaInsightsPipeline) SetMediaPipelineId(v string) *MediaInsightsPipeline { s.MediaPipelineId = &v return s } -type GetMediaPipelineOutput struct { +// SetS3RecordingSinkRuntimeConfiguration sets the S3RecordingSinkRuntimeConfiguration field's value. +func (s *MediaInsightsPipeline) SetS3RecordingSinkRuntimeConfiguration(v *S3RecordingSinkRuntimeConfiguration) *MediaInsightsPipeline { + s.S3RecordingSinkRuntimeConfiguration = v + return s +} + +// SetStatus sets the Status field's value. +func (s *MediaInsightsPipeline) SetStatus(v string) *MediaInsightsPipeline { + s.Status = &v + return s +} + +// A structure that contains the configuration settings for a media insights +// pipeline. +type MediaInsightsPipelineConfiguration struct { _ struct{} `type:"structure"` - // The media pipeline object. - MediaPipeline *MediaPipeline `type:"structure"` + // The time at which the configuration was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The elements in the configuration. + Elements []*MediaInsightsPipelineConfigurationElement `type:"list"` + + // The ARN of the configuration. + // + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipelineConfiguration's + // String and GoString methods. + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` + + // The ID of the configuration. + MediaInsightsPipelineConfigurationId *string `min:"36" type:"string"` + + // The name of the configuration. + MediaInsightsPipelineConfigurationName *string `min:"2" type:"string"` + + // Lists the rules that trigger a real-time alert. + RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` + + // The ARN of the role used by the service to access Amazon Web Services resources. + // + // ResourceAccessRoleArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipelineConfiguration's + // String and GoString methods. + ResourceAccessRoleArn *string `min:"1" type:"string" sensitive:"true"` + + // The time at which the configuration was last updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -3196,7 +6700,7 @@ type GetMediaPipelineOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetMediaPipelineOutput) String() string { +func (s MediaInsightsPipelineConfiguration) String() string { return awsutil.Prettify(s) } @@ -3205,81 +6709,98 @@ func (s GetMediaPipelineOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetMediaPipelineOutput) GoString() string { +func (s MediaInsightsPipelineConfiguration) GoString() string { return s.String() } -// SetMediaPipeline sets the MediaPipeline field's value. -func (s *GetMediaPipelineOutput) SetMediaPipeline(v *MediaPipeline) *GetMediaPipelineOutput { - s.MediaPipeline = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaInsightsPipelineConfiguration) SetCreatedTimestamp(v time.Time) *MediaInsightsPipelineConfiguration { + s.CreatedTimestamp = &v return s } -// Specifies the type of grid layout. -type GridViewConfiguration struct { - _ struct{} `type:"structure"` - - // Defines the layout of the video tiles when content sharing is enabled. - // - // ContentShareLayout is a required field - ContentShareLayout *string `type:"string" required:"true" enum:"ContentShareLayoutOption"` - - // Defines the configuration options for a presenter only video tile. - PresenterOnlyConfiguration *PresenterOnlyConfiguration `type:"structure"` +// SetElements sets the Elements field's value. +func (s *MediaInsightsPipelineConfiguration) SetElements(v []*MediaInsightsPipelineConfigurationElement) *MediaInsightsPipelineConfiguration { + s.Elements = v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GridViewConfiguration) String() string { - return awsutil.Prettify(s) +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipelineConfiguration { + s.MediaInsightsPipelineConfigurationArn = &v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GridViewConfiguration) GoString() string { - return s.String() +// SetMediaInsightsPipelineConfigurationId sets the MediaInsightsPipelineConfigurationId field's value. +func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationId(v string) *MediaInsightsPipelineConfiguration { + s.MediaInsightsPipelineConfigurationId = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GridViewConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GridViewConfiguration"} - if s.ContentShareLayout == nil { - invalidParams.Add(request.NewErrParamRequired("ContentShareLayout")) - } +// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. +func (s *MediaInsightsPipelineConfiguration) SetMediaInsightsPipelineConfigurationName(v string) *MediaInsightsPipelineConfiguration { + s.MediaInsightsPipelineConfigurationName = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. +func (s *MediaInsightsPipelineConfiguration) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *MediaInsightsPipelineConfiguration { + s.RealTimeAlertConfiguration = v + return s } -// SetContentShareLayout sets the ContentShareLayout field's value. -func (s *GridViewConfiguration) SetContentShareLayout(v string) *GridViewConfiguration { - s.ContentShareLayout = &v +// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. +func (s *MediaInsightsPipelineConfiguration) SetResourceAccessRoleArn(v string) *MediaInsightsPipelineConfiguration { + s.ResourceAccessRoleArn = &v return s } -// SetPresenterOnlyConfiguration sets the PresenterOnlyConfiguration field's value. -func (s *GridViewConfiguration) SetPresenterOnlyConfiguration(v *PresenterOnlyConfiguration) *GridViewConfiguration { - s.PresenterOnlyConfiguration = v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaInsightsPipelineConfiguration) SetUpdatedTimestamp(v time.Time) *MediaInsightsPipelineConfiguration { + s.UpdatedTimestamp = &v return s } -type ListMediaCapturePipelinesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// An element in a media insights pipeline configuration. +type MediaInsightsPipelineConfigurationElement struct { + _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. Valid Range: 1 - // - 99. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The analytics configuration settings for transcribing audio in a media insights + // pipeline configuration element. + AmazonTranscribeCallAnalyticsProcessorConfiguration *AmazonTranscribeCallAnalyticsProcessorConfiguration `type:"structure"` - // The token used to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The transcription processor configuration settings in a media insights pipeline + // configuration element. + AmazonTranscribeProcessorConfiguration *AmazonTranscribeProcessorConfiguration `type:"structure"` + + // The configuration settings for the Kinesis Data Stream Sink in a media insights + // pipeline configuration element. + KinesisDataStreamSinkConfiguration *KinesisDataStreamSinkConfiguration `type:"structure"` + + // The configuration settings for the Amazon Web Services Lambda sink in a media + // insights pipeline configuration element. + LambdaFunctionSinkConfiguration *LambdaFunctionSinkConfiguration `type:"structure"` + + // The configuration settings for the Amazon S3 recording bucket in a media + // insights pipeline configuration element. + S3RecordingSinkConfiguration *S3RecordingSinkConfiguration `type:"structure"` + + // The configuration settings for an SNS topic sink in a media insights pipeline + // configuration element. + SnsTopicSinkConfiguration *SnsTopicSinkConfiguration `type:"structure"` + + // The configuration settings for an SQS queue sink in a media insights pipeline + // configuration element. + SqsQueueSinkConfiguration *SqsQueueSinkConfiguration `type:"structure"` + + // The element type. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"MediaInsightsPipelineConfigurationElementType"` + + // The voice analytics configuration settings in a media insights pipeline configuration + // element. + VoiceAnalyticsProcessorConfiguration *VoiceAnalyticsProcessorConfiguration `type:"structure"` } // String returns the string representation. @@ -3287,7 +6808,7 @@ type ListMediaCapturePipelinesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMediaCapturePipelinesInput) String() string { +func (s MediaInsightsPipelineConfigurationElement) String() string { return awsutil.Prettify(s) } @@ -3296,15 +6817,50 @@ func (s ListMediaCapturePipelinesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMediaCapturePipelinesInput) GoString() string { +func (s MediaInsightsPipelineConfigurationElement) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListMediaCapturePipelinesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMediaCapturePipelinesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *MediaInsightsPipelineConfigurationElement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MediaInsightsPipelineConfigurationElement"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.AmazonTranscribeCallAnalyticsProcessorConfiguration != nil { + if err := s.AmazonTranscribeCallAnalyticsProcessorConfiguration.Validate(); err != nil { + invalidParams.AddNested("AmazonTranscribeCallAnalyticsProcessorConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.AmazonTranscribeProcessorConfiguration != nil { + if err := s.AmazonTranscribeProcessorConfiguration.Validate(); err != nil { + invalidParams.AddNested("AmazonTranscribeProcessorConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.KinesisDataStreamSinkConfiguration != nil { + if err := s.KinesisDataStreamSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("KinesisDataStreamSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.LambdaFunctionSinkConfiguration != nil { + if err := s.LambdaFunctionSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("LambdaFunctionSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3RecordingSinkConfiguration != nil { + if err := s.S3RecordingSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("S3RecordingSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SnsTopicSinkConfiguration != nil { + if err := s.SnsTopicSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("SnsTopicSinkConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SqsQueueSinkConfiguration != nil { + if err := s.SqsQueueSinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("SqsQueueSinkConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -3313,67 +6869,76 @@ func (s *ListMediaCapturePipelinesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListMediaCapturePipelinesInput) SetMaxResults(v int64) *ListMediaCapturePipelinesInput { - s.MaxResults = &v +// SetAmazonTranscribeCallAnalyticsProcessorConfiguration sets the AmazonTranscribeCallAnalyticsProcessorConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetAmazonTranscribeCallAnalyticsProcessorConfiguration(v *AmazonTranscribeCallAnalyticsProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { + s.AmazonTranscribeCallAnalyticsProcessorConfiguration = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaCapturePipelinesInput) SetNextToken(v string) *ListMediaCapturePipelinesInput { - s.NextToken = &v +// SetAmazonTranscribeProcessorConfiguration sets the AmazonTranscribeProcessorConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetAmazonTranscribeProcessorConfiguration(v *AmazonTranscribeProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { + s.AmazonTranscribeProcessorConfiguration = v return s } -type ListMediaCapturePipelinesOutput struct { - _ struct{} `type:"structure"` +// SetKinesisDataStreamSinkConfiguration sets the KinesisDataStreamSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetKinesisDataStreamSinkConfiguration(v *KinesisDataStreamSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.KinesisDataStreamSinkConfiguration = v + return s +} - // The media pipeline objects in the list. - MediaCapturePipelines []*MediaCapturePipelineSummary `type:"list"` +// SetLambdaFunctionSinkConfiguration sets the LambdaFunctionSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetLambdaFunctionSinkConfiguration(v *LambdaFunctionSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.LambdaFunctionSinkConfiguration = v + return s +} - // The token used to retrieve the next page of results. - NextToken *string `type:"string"` +// SetS3RecordingSinkConfiguration sets the S3RecordingSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetS3RecordingSinkConfiguration(v *S3RecordingSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.S3RecordingSinkConfiguration = v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListMediaCapturePipelinesOutput) String() string { - return awsutil.Prettify(s) +// SetSnsTopicSinkConfiguration sets the SnsTopicSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetSnsTopicSinkConfiguration(v *SnsTopicSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.SnsTopicSinkConfiguration = v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListMediaCapturePipelinesOutput) GoString() string { - return s.String() +// SetSqsQueueSinkConfiguration sets the SqsQueueSinkConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetSqsQueueSinkConfiguration(v *SqsQueueSinkConfiguration) *MediaInsightsPipelineConfigurationElement { + s.SqsQueueSinkConfiguration = v + return s } -// SetMediaCapturePipelines sets the MediaCapturePipelines field's value. -func (s *ListMediaCapturePipelinesOutput) SetMediaCapturePipelines(v []*MediaCapturePipelineSummary) *ListMediaCapturePipelinesOutput { - s.MediaCapturePipelines = v +// SetType sets the Type field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetType(v string) *MediaInsightsPipelineConfigurationElement { + s.Type = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaCapturePipelinesOutput) SetNextToken(v string) *ListMediaCapturePipelinesOutput { - s.NextToken = &v +// SetVoiceAnalyticsProcessorConfiguration sets the VoiceAnalyticsProcessorConfiguration field's value. +func (s *MediaInsightsPipelineConfigurationElement) SetVoiceAnalyticsProcessorConfiguration(v *VoiceAnalyticsProcessorConfiguration) *MediaInsightsPipelineConfigurationElement { + s.VoiceAnalyticsProcessorConfiguration = v return s } -type ListMediaPipelinesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// A summary of the media insights pipeline configuration. +type MediaInsightsPipelineConfigurationSummary struct { + _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. Valid Range: 1 - // - 99. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The ARN of the media insights pipeline configuration. + // + // MediaInsightsPipelineConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsPipelineConfigurationSummary's + // String and GoString methods. + MediaInsightsPipelineConfigurationArn *string `min:"1" type:"string" sensitive:"true"` - // The token used to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The ID of the media insights pipeline configuration. + MediaInsightsPipelineConfigurationId *string `min:"36" type:"string"` + + // The name of the media insights pipeline configuration. + MediaInsightsPipelineConfigurationName *string `min:"2" type:"string"` } // String returns the string representation. @@ -3381,7 +6946,7 @@ type ListMediaPipelinesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMediaPipelinesInput) String() string { +func (s MediaInsightsPipelineConfigurationSummary) String() string { return awsutil.Prettify(s) } @@ -3390,43 +6955,52 @@ func (s ListMediaPipelinesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMediaPipelinesInput) GoString() string { +func (s MediaInsightsPipelineConfigurationSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMediaPipelinesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMediaPipelinesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetMediaInsightsPipelineConfigurationArn sets the MediaInsightsPipelineConfigurationArn field's value. +func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationArn(v string) *MediaInsightsPipelineConfigurationSummary { + s.MediaInsightsPipelineConfigurationArn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMediaInsightsPipelineConfigurationId sets the MediaInsightsPipelineConfigurationId field's value. +func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationId(v string) *MediaInsightsPipelineConfigurationSummary { + s.MediaInsightsPipelineConfigurationId = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListMediaPipelinesInput) SetMaxResults(v int64) *ListMediaPipelinesInput { - s.MaxResults = &v +// SetMediaInsightsPipelineConfigurationName sets the MediaInsightsPipelineConfigurationName field's value. +func (s *MediaInsightsPipelineConfigurationSummary) SetMediaInsightsPipelineConfigurationName(v string) *MediaInsightsPipelineConfigurationSummary { + s.MediaInsightsPipelineConfigurationName = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaPipelinesInput) SetNextToken(v string) *ListMediaPipelinesInput { - s.NextToken = &v - return s -} +// The connector pipeline. +type MediaLiveConnectorPipeline struct { + _ struct{} `type:"structure"` + + // The time at which the connector pipeline was created. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The connector pipeline's ARN. + MediaPipelineArn *string `min:"1" type:"string"` + + // The connector pipeline's ID. + MediaPipelineId *string `min:"36" type:"string"` -type ListMediaPipelinesOutput struct { - _ struct{} `type:"structure"` + // The connector pipeline's data sinks. + Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list"` - // The media pipeline objects in the list. - MediaPipelines []*MediaPipelineSummary `type:"list"` + // The connector pipeline's data sources. + Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list"` - // The token used to retrieve the next page of results. - NextToken *string `type:"string"` + // The connector pipeline's status. + Status *string `type:"string" enum:"MediaPipelineStatus"` + + // The time at which the connector pipeline was last updated. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -3434,7 +7008,7 @@ type ListMediaPipelinesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMediaPipelinesOutput) String() string { +func (s MediaLiveConnectorPipeline) String() string { return awsutil.Prettify(s) } @@ -3443,30 +7017,68 @@ func (s ListMediaPipelinesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMediaPipelinesOutput) GoString() string { +func (s MediaLiveConnectorPipeline) GoString() string { return s.String() } -// SetMediaPipelines sets the MediaPipelines field's value. -func (s *ListMediaPipelinesOutput) SetMediaPipelines(v []*MediaPipelineSummary) *ListMediaPipelinesOutput { - s.MediaPipelines = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *MediaLiveConnectorPipeline) SetCreatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { + s.CreatedTimestamp = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMediaPipelinesOutput) SetNextToken(v string) *ListMediaPipelinesOutput { - s.NextToken = &v +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaLiveConnectorPipeline) SetMediaPipelineArn(v string) *MediaLiveConnectorPipeline { + s.MediaPipelineArn = &v return s } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaLiveConnectorPipeline) SetMediaPipelineId(v string) *MediaLiveConnectorPipeline { + s.MediaPipelineId = &v + return s +} - // The ARN of the media pipeline associated with any tags. The ARN consists - // of the pipeline's region, resource ID, and pipeline ID. - // - // ResourceARN is a required field - ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true"` +// SetSinks sets the Sinks field's value. +func (s *MediaLiveConnectorPipeline) SetSinks(v []*LiveConnectorSinkConfiguration) *MediaLiveConnectorPipeline { + s.Sinks = v + return s +} + +// SetSources sets the Sources field's value. +func (s *MediaLiveConnectorPipeline) SetSources(v []*LiveConnectorSourceConfiguration) *MediaLiveConnectorPipeline { + s.Sources = v + return s +} + +// SetStatus sets the Status field's value. +func (s *MediaLiveConnectorPipeline) SetStatus(v string) *MediaLiveConnectorPipeline { + s.Status = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *MediaLiveConnectorPipeline) SetUpdatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { + s.UpdatedTimestamp = &v + return s +} + +// A pipeline consisting of a media capture, media concatenation, or live-streaming +// pipeline. +type MediaPipeline struct { + _ struct{} `type:"structure"` + + // A pipeline that enables users to capture audio and video. + MediaCapturePipeline *MediaCapturePipeline `type:"structure"` + + // The media concatenation pipeline in a media pipeline. + MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` + + // The media insights pipeline of a media pipeline. + MediaInsightsPipeline *MediaInsightsPipeline `type:"structure"` + + // The connector pipeline of the media pipeline. + MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` } // String returns the string representation. @@ -3474,7 +7086,7 @@ type ListTagsForResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceInput) String() string { +func (s MediaPipeline) String() string { return awsutil.Prettify(s) } @@ -3483,37 +7095,43 @@ func (s ListTagsForResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceInput) GoString() string { +func (s MediaPipeline) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) - } +// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. +func (s *MediaPipeline) SetMediaCapturePipeline(v *MediaCapturePipeline) *MediaPipeline { + s.MediaCapturePipeline = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. +func (s *MediaPipeline) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *MediaPipeline { + s.MediaConcatenationPipeline = v + return s } -// SetResourceARN sets the ResourceARN field's value. -func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { - s.ResourceARN = &v +// SetMediaInsightsPipeline sets the MediaInsightsPipeline field's value. +func (s *MediaPipeline) SetMediaInsightsPipeline(v *MediaInsightsPipeline) *MediaPipeline { + s.MediaInsightsPipeline = v return s } -type ListTagsForResourceOutput struct { +// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. +func (s *MediaPipeline) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *MediaPipeline { + s.MediaLiveConnectorPipeline = v + return s +} + +// The summary of the media pipeline. +type MediaPipelineSummary struct { _ struct{} `type:"structure"` - // The tags associated with the specified media pipeline. - Tags []*Tag `min:"1" type:"list"` + // The ARN of the media pipeline in the summary. + MediaPipelineArn *string `min:"1" type:"string"` + + // The ID of the media pipeline in the summary. + MediaPipelineId *string `min:"36" type:"string"` } // String returns the string representation. @@ -3521,7 +7139,7 @@ type ListTagsForResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) String() string { +func (s MediaPipelineSummary) String() string { return awsutil.Prettify(s) } @@ -3530,34 +7148,30 @@ func (s ListTagsForResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) GoString() string { +func (s MediaPipelineSummary) GoString() string { return s.String() } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v +// SetMediaPipelineArn sets the MediaPipelineArn field's value. +func (s *MediaPipelineSummary) SetMediaPipelineArn(v string) *MediaPipelineSummary { + s.MediaPipelineArn = &v return s } -// The media pipeline's RTMP configuration object. -type LiveConnectorRTMPConfiguration struct { - _ struct{} `type:"structure"` - - // The audio channels set for the RTMP configuration - AudioChannels *string `type:"string" enum:"AudioChannelsOption"` +// SetMediaPipelineId sets the MediaPipelineId field's value. +func (s *MediaPipelineSummary) SetMediaPipelineId(v string) *MediaPipelineSummary { + s.MediaPipelineId = &v + return s +} - // The audio sample rate set for the RTMP configuration. Default: 48000. - AudioSampleRate *string `type:"string"` +// The configuration object for an event concatenation pipeline. +type MeetingEventsConcatenationConfiguration struct { + _ struct{} `type:"structure"` - // The URL of the RTMP configuration. - // - // Url is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by LiveConnectorRTMPConfiguration's - // String and GoString methods. + // Enables or disables the configuration object. // - // Url is a required field - Url *string `min:"1" type:"string" required:"true" sensitive:"true"` + // State is a required field + State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` } // String returns the string representation. @@ -3565,7 +7179,7 @@ type LiveConnectorRTMPConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LiveConnectorRTMPConfiguration) String() string { +func (s MeetingEventsConcatenationConfiguration) String() string { return awsutil.Prettify(s) } @@ -3574,18 +7188,15 @@ func (s LiveConnectorRTMPConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LiveConnectorRTMPConfiguration) GoString() string { +func (s MeetingEventsConcatenationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LiveConnectorRTMPConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiveConnectorRTMPConfiguration"} - if s.Url == nil { - invalidParams.Add(request.NewErrParamRequired("Url")) - } - if s.Url != nil && len(*s.Url) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Url", 1)) +func (s *MeetingEventsConcatenationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MeetingEventsConcatenationConfiguration"} + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) } if invalidParams.Len() > 0 { @@ -3594,37 +7205,23 @@ func (s *LiveConnectorRTMPConfiguration) Validate() error { return nil } -// SetAudioChannels sets the AudioChannels field's value. -func (s *LiveConnectorRTMPConfiguration) SetAudioChannels(v string) *LiveConnectorRTMPConfiguration { - s.AudioChannels = &v - return s -} - -// SetAudioSampleRate sets the AudioSampleRate field's value. -func (s *LiveConnectorRTMPConfiguration) SetAudioSampleRate(v string) *LiveConnectorRTMPConfiguration { - s.AudioSampleRate = &v +// SetState sets the State field's value. +func (s *MeetingEventsConcatenationConfiguration) SetState(v string) *MeetingEventsConcatenationConfiguration { + s.State = &v return s } -// SetUrl sets the Url field's value. -func (s *LiveConnectorRTMPConfiguration) SetUrl(v string) *LiveConnectorRTMPConfiguration { - s.Url = &v - return s -} +// One or more of the resources in the request does not exist in the system. +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` -// The media pipeline's sink configuration settings. -type LiveConnectorSinkConfiguration struct { - _ struct{} `type:"structure"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The sink configuration's RTMP configuration setttings. - // - // RTMPConfiguration is a required field - RTMPConfiguration *LiveConnectorRTMPConfiguration `type:"structure" required:"true"` + Message_ *string `locationName:"Message" type:"string"` - // The sink configuration's sink type. - // - // SinkType is a required field - SinkType *string `type:"string" required:"true" enum:"LiveConnectorSinkType"` + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -3632,7 +7229,7 @@ type LiveConnectorSinkConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LiveConnectorSinkConfiguration) String() string { +func (s NotFoundException) String() string { return awsutil.Prettify(s) } @@ -3641,56 +7238,70 @@ func (s LiveConnectorSinkConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LiveConnectorSinkConfiguration) GoString() string { +func (s NotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LiveConnectorSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSinkConfiguration"} - if s.RTMPConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("RTMPConfiguration")) - } - if s.SinkType == nil { - invalidParams.Add(request.NewErrParamRequired("SinkType")) - } - if s.RTMPConfiguration != nil { - if err := s.RTMPConfiguration.Validate(); err != nil { - invalidParams.AddNested("RTMPConfiguration", err.(request.ErrInvalidParams)) - } +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { return nil } -// SetRTMPConfiguration sets the RTMPConfiguration field's value. -func (s *LiveConnectorSinkConfiguration) SetRTMPConfiguration(v *LiveConnectorRTMPConfiguration) *LiveConnectorSinkConfiguration { - s.RTMPConfiguration = v - return s +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetSinkType sets the SinkType field's value. -func (s *LiveConnectorSinkConfiguration) SetSinkType(v string) *LiveConnectorSinkConfiguration { - s.SinkType = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode } -// The data source configuration object of a streaming media pipeline. -type LiveConnectorSourceConfiguration struct { +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The settings for a post-call voice analytics task. +type PostCallAnalyticsSettings struct { _ struct{} `type:"structure"` - // The configuration settings of the connector pipeline. + // The content redaction output settings for a post-call analysis task. + ContentRedactionOutput *string `type:"string" enum:"ContentRedactionOutput_"` + + // The ARN of the role used by Amazon Web Services Transcribe to upload your + // post call analysis. For more information, see Post-call analytics with real-time + // transcriptions (https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html) + // in the Amazon Transcribe Developer Guide. // - // ChimeSdkMeetingLiveConnectorConfiguration is a required field - ChimeSdkMeetingLiveConnectorConfiguration *ChimeSdkMeetingLiveConnectorConfiguration `type:"structure" required:"true"` + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `type:"string" required:"true"` - // The source configuration's media source type. + // The ID of the KMS (Key Management System) key used to encrypt the output. + OutputEncryptionKMSKeyId *string `type:"string"` + + // The URL of the Amazon S3 bucket that contains the post-call data. // - // SourceType is a required field - SourceType *string `type:"string" required:"true" enum:"LiveConnectorSourceType"` + // OutputLocation is a required field + OutputLocation *string `type:"string" required:"true"` } // String returns the string representation. @@ -3698,7 +7309,7 @@ type LiveConnectorSourceConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LiveConnectorSourceConfiguration) String() string { +func (s PostCallAnalyticsSettings) String() string { return awsutil.Prettify(s) } @@ -3707,23 +7318,18 @@ func (s LiveConnectorSourceConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LiveConnectorSourceConfiguration) GoString() string { +func (s PostCallAnalyticsSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LiveConnectorSourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LiveConnectorSourceConfiguration"} - if s.ChimeSdkMeetingLiveConnectorConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingLiveConnectorConfiguration")) - } - if s.SourceType == nil { - invalidParams.Add(request.NewErrParamRequired("SourceType")) +func (s *PostCallAnalyticsSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PostCallAnalyticsSettings"} + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } - if s.ChimeSdkMeetingLiveConnectorConfiguration != nil { - if err := s.ChimeSdkMeetingLiveConnectorConfiguration.Validate(); err != nil { - invalidParams.AddNested("ChimeSdkMeetingLiveConnectorConfiguration", err.(request.ErrInvalidParams)) - } + if s.OutputLocation == nil { + invalidParams.Add(request.NewErrParamRequired("OutputLocation")) } if invalidParams.Len() > 0 { @@ -3732,61 +7338,36 @@ func (s *LiveConnectorSourceConfiguration) Validate() error { return nil } -// SetChimeSdkMeetingLiveConnectorConfiguration sets the ChimeSdkMeetingLiveConnectorConfiguration field's value. -func (s *LiveConnectorSourceConfiguration) SetChimeSdkMeetingLiveConnectorConfiguration(v *ChimeSdkMeetingLiveConnectorConfiguration) *LiveConnectorSourceConfiguration { - s.ChimeSdkMeetingLiveConnectorConfiguration = v +// SetContentRedactionOutput sets the ContentRedactionOutput field's value. +func (s *PostCallAnalyticsSettings) SetContentRedactionOutput(v string) *PostCallAnalyticsSettings { + s.ContentRedactionOutput = &v return s } -// SetSourceType sets the SourceType field's value. -func (s *LiveConnectorSourceConfiguration) SetSourceType(v string) *LiveConnectorSourceConfiguration { - s.SourceType = &v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *PostCallAnalyticsSettings) SetDataAccessRoleArn(v string) *PostCallAnalyticsSettings { + s.DataAccessRoleArn = &v return s } -// A media pipeline object consisting of an ID, source type, source ARN, a sink -// type, a sink ARN, and a configuration object. -type MediaCapturePipeline struct { - _ struct{} `type:"structure"` - - // The configuration for a specified media pipeline. SourceType must be ChimeSdkMeeting. - ChimeSdkMeetingConfiguration *ChimeSdkMeetingConfiguration `type:"structure"` - - // The time at which the pipeline was created, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The ARN of the media capture pipeline - MediaPipelineArn *string `min:"1" type:"string"` - - // The ID of a media pipeline. - MediaPipelineId *string `min:"36" type:"string"` - - // ARN of the destination to which the media artifacts are saved. - // - // SinkArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaCapturePipeline's - // String and GoString methods. - SinkArn *string `min:"1" type:"string" sensitive:"true"` - - // Destination type to which the media artifacts are saved. You must use an - // S3 Bucket. - SinkType *string `type:"string" enum:"MediaPipelineSinkType"` - - // ARN of the source from which the media artifacts are saved. - // - // SourceArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaCapturePipeline's - // String and GoString methods. - SourceArn *string `min:"1" type:"string" sensitive:"true"` +// SetOutputEncryptionKMSKeyId sets the OutputEncryptionKMSKeyId field's value. +func (s *PostCallAnalyticsSettings) SetOutputEncryptionKMSKeyId(v string) *PostCallAnalyticsSettings { + s.OutputEncryptionKMSKeyId = &v + return s +} - // Source type from which media artifacts are saved. You must use ChimeMeeting. - SourceType *string `type:"string" enum:"MediaPipelineSourceType"` +// SetOutputLocation sets the OutputLocation field's value. +func (s *PostCallAnalyticsSettings) SetOutputLocation(v string) *PostCallAnalyticsSettings { + s.OutputLocation = &v + return s +} - // The status of the media pipeline. - Status *string `type:"string" enum:"MediaPipelineStatus"` +// Defines the configuration for a presenter only video tile. +type PresenterOnlyConfiguration struct { + _ struct{} `type:"structure"` - // The time at which the pipeline was updated, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // Defines the position of the presenter video tile. Default: TopRight. + PresenterPosition *string `type:"string" enum:"PresenterPosition"` } // String returns the string representation. @@ -3794,7 +7375,7 @@ type MediaCapturePipeline struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaCapturePipeline) String() string { +func (s PresenterOnlyConfiguration) String() string { return awsutil.Prettify(s) } @@ -3803,88 +7384,98 @@ func (s MediaCapturePipeline) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaCapturePipeline) GoString() string { +func (s PresenterOnlyConfiguration) GoString() string { return s.String() } -// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. -func (s *MediaCapturePipeline) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConfiguration) *MediaCapturePipeline { - s.ChimeSdkMeetingConfiguration = v +// SetPresenterPosition sets the PresenterPosition field's value. +func (s *PresenterOnlyConfiguration) SetPresenterPosition(v string) *PresenterOnlyConfiguration { + s.PresenterPosition = &v return s } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaCapturePipeline) SetCreatedTimestamp(v time.Time) *MediaCapturePipeline { - s.CreatedTimestamp = &v - return s -} +// A structure that contains the configuration settings for real-time alerts. +type RealTimeAlertConfiguration struct { + _ struct{} `type:"structure"` -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaCapturePipeline) SetMediaPipelineArn(v string) *MediaCapturePipeline { - s.MediaPipelineArn = &v - return s -} + // Turns off real-time alerts. + Disabled *bool `type:"boolean"` -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaCapturePipeline) SetMediaPipelineId(v string) *MediaCapturePipeline { - s.MediaPipelineId = &v - return s + // The rules in the alert. Rules specify the words or phrases that you want + // to be notified about. + Rules []*RealTimeAlertRule `min:"1" type:"list"` } -// SetSinkArn sets the SinkArn field's value. -func (s *MediaCapturePipeline) SetSinkArn(v string) *MediaCapturePipeline { - s.SinkArn = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RealTimeAlertConfiguration) String() string { + return awsutil.Prettify(s) } -// SetSinkType sets the SinkType field's value. -func (s *MediaCapturePipeline) SetSinkType(v string) *MediaCapturePipeline { - s.SinkType = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RealTimeAlertConfiguration) GoString() string { + return s.String() } -// SetSourceArn sets the SourceArn field's value. -func (s *MediaCapturePipeline) SetSourceArn(v string) *MediaCapturePipeline { - s.SourceArn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *RealTimeAlertConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RealTimeAlertConfiguration"} + if s.Rules != nil && len(s.Rules) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Rules", 1)) + } + if s.Rules != nil { + for i, v := range s.Rules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams)) + } + } + } -// SetSourceType sets the SourceType field's value. -func (s *MediaCapturePipeline) SetSourceType(v string) *MediaCapturePipeline { - s.SourceType = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetStatus sets the Status field's value. -func (s *MediaCapturePipeline) SetStatus(v string) *MediaCapturePipeline { - s.Status = &v +// SetDisabled sets the Disabled field's value. +func (s *RealTimeAlertConfiguration) SetDisabled(v bool) *RealTimeAlertConfiguration { + s.Disabled = &v return s } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaCapturePipeline) SetUpdatedTimestamp(v time.Time) *MediaCapturePipeline { - s.UpdatedTimestamp = &v +// SetRules sets the Rules field's value. +func (s *RealTimeAlertConfiguration) SetRules(v []*RealTimeAlertRule) *RealTimeAlertConfiguration { + s.Rules = v return s } -// The source configuration object of a media capture pipeline. -type MediaCapturePipelineSourceConfiguration struct { +// Specifies the words or phrases that trigger an alert. +type RealTimeAlertRule struct { _ struct{} `type:"structure"` - // The meeting configuration settings in a media capture pipeline configuration - // object. - // - // ChimeSdkMeetingConfiguration is a required field - ChimeSdkMeetingConfiguration *ChimeSdkMeetingConcatenationConfiguration `type:"structure" required:"true"` + // Specifies the issue detection settings for a real-time alert rule. + IssueDetectionConfiguration *IssueDetectionConfiguration `type:"structure"` - // The media pipeline ARN in the configuration object of a media capture pipeline. - // - // MediaPipelineArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by MediaCapturePipelineSourceConfiguration's - // String and GoString methods. + // Specifies the settings for matching the keywords in a real-time alert rule. + KeywordMatchConfiguration *KeywordMatchConfiguration `type:"structure"` + + // Specifies the settings for predicting sentiment in a real-time alert rule. + SentimentConfiguration *SentimentConfiguration `type:"structure"` + + // The type of alert rule. // - // MediaPipelineArn is a required field - MediaPipelineArn *string `min:"1" type:"string" required:"true" sensitive:"true"` + // Type is a required field + Type *string `type:"string" required:"true" enum:"RealTimeAlertRuleType"` } // String returns the string representation. @@ -3892,7 +7483,7 @@ type MediaCapturePipelineSourceConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaCapturePipelineSourceConfiguration) String() string { +func (s RealTimeAlertRule) String() string { return awsutil.Prettify(s) } @@ -3901,25 +7492,29 @@ func (s MediaCapturePipelineSourceConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaCapturePipelineSourceConfiguration) GoString() string { +func (s RealTimeAlertRule) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MediaCapturePipelineSourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MediaCapturePipelineSourceConfiguration"} - if s.ChimeSdkMeetingConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("ChimeSdkMeetingConfiguration")) +func (s *RealTimeAlertRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RealTimeAlertRule"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } - if s.MediaPipelineArn == nil { - invalidParams.Add(request.NewErrParamRequired("MediaPipelineArn")) + if s.IssueDetectionConfiguration != nil { + if err := s.IssueDetectionConfiguration.Validate(); err != nil { + invalidParams.AddNested("IssueDetectionConfiguration", err.(request.ErrInvalidParams)) + } } - if s.MediaPipelineArn != nil && len(*s.MediaPipelineArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MediaPipelineArn", 1)) + if s.KeywordMatchConfiguration != nil { + if err := s.KeywordMatchConfiguration.Validate(); err != nil { + invalidParams.AddNested("KeywordMatchConfiguration", err.(request.ErrInvalidParams)) + } } - if s.ChimeSdkMeetingConfiguration != nil { - if err := s.ChimeSdkMeetingConfiguration.Validate(); err != nil { - invalidParams.AddNested("ChimeSdkMeetingConfiguration", err.(request.ErrInvalidParams)) + if s.SentimentConfiguration != nil { + if err := s.SentimentConfiguration.Validate(); err != nil { + invalidParams.AddNested("SentimentConfiguration", err.(request.ErrInvalidParams)) } } @@ -3929,27 +7524,36 @@ func (s *MediaCapturePipelineSourceConfiguration) Validate() error { return nil } -// SetChimeSdkMeetingConfiguration sets the ChimeSdkMeetingConfiguration field's value. -func (s *MediaCapturePipelineSourceConfiguration) SetChimeSdkMeetingConfiguration(v *ChimeSdkMeetingConcatenationConfiguration) *MediaCapturePipelineSourceConfiguration { - s.ChimeSdkMeetingConfiguration = v +// SetIssueDetectionConfiguration sets the IssueDetectionConfiguration field's value. +func (s *RealTimeAlertRule) SetIssueDetectionConfiguration(v *IssueDetectionConfiguration) *RealTimeAlertRule { + s.IssueDetectionConfiguration = v return s } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaCapturePipelineSourceConfiguration) SetMediaPipelineArn(v string) *MediaCapturePipelineSourceConfiguration { - s.MediaPipelineArn = &v +// SetKeywordMatchConfiguration sets the KeywordMatchConfiguration field's value. +func (s *RealTimeAlertRule) SetKeywordMatchConfiguration(v *KeywordMatchConfiguration) *RealTimeAlertRule { + s.KeywordMatchConfiguration = v return s } -// The summary data of a media capture pipeline. -type MediaCapturePipelineSummary struct { - _ struct{} `type:"structure"` +// SetSentimentConfiguration sets the SentimentConfiguration field's value. +func (s *RealTimeAlertRule) SetSentimentConfiguration(v *SentimentConfiguration) *RealTimeAlertRule { + s.SentimentConfiguration = v + return s +} - // The ARN of the media pipeline in the summary. - MediaPipelineArn *string `min:"1" type:"string"` +// SetType sets the Type field's value. +func (s *RealTimeAlertRule) SetType(v string) *RealTimeAlertRule { + s.Type = &v + return s +} - // The ID of the media pipeline in the summary. - MediaPipelineId *string `min:"36" type:"string"` +// A structure the holds the settings for recording audio and video. +type RecordingStreamConfiguration struct { + _ struct{} `type:"structure"` + + // The ARN of the recording stream. + StreamArn *string `min:"1" type:"string"` } // String returns the string representation. @@ -3957,7 +7561,7 @@ type MediaCapturePipelineSummary struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaCapturePipelineSummary) String() string { +func (s RecordingStreamConfiguration) String() string { return awsutil.Prettify(s) } @@ -3966,47 +7570,40 @@ func (s MediaCapturePipelineSummary) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaCapturePipelineSummary) GoString() string { +func (s RecordingStreamConfiguration) GoString() string { return s.String() } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaCapturePipelineSummary) SetMediaPipelineArn(v string) *MediaCapturePipelineSummary { - s.MediaPipelineArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *RecordingStreamConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RecordingStreamConfiguration"} + if s.StreamArn != nil && len(*s.StreamArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaCapturePipelineSummary) SetMediaPipelineId(v string) *MediaCapturePipelineSummary { - s.MediaPipelineId = &v +// SetStreamArn sets the StreamArn field's value. +func (s *RecordingStreamConfiguration) SetStreamArn(v string) *RecordingStreamConfiguration { + s.StreamArn = &v return s } -// Concatenates audio and video data from one or more data streams. -type MediaConcatenationPipeline struct { - _ struct{} `type:"structure"` - - // The time at which the concatenation pipeline was created. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The ARN of the media pipeline that you specify in the SourceConfiguration - // object. - MediaPipelineArn *string `min:"1" type:"string"` - - // The ID of the media pipeline being concatenated. - MediaPipelineId *string `min:"36" type:"string"` - - // The data sinks of the concatenation pipeline. - Sinks []*ConcatenationSink `min:"1" type:"list"` +// The request exceeds the resource limit. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The data sources being concatnated. - Sources []*ConcatenationSource `min:"1" type:"list"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The status of the concatenation pipeline. - Status *string `type:"string" enum:"MediaPipelineStatus"` + Message_ *string `locationName:"Message" type:"string"` - // The time at which the concatenation pipeline was last updated. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` } // String returns the string representation. @@ -4014,7 +7611,7 @@ type MediaConcatenationPipeline struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaConcatenationPipeline) String() string { +func (s ResourceLimitExceededException) String() string { return awsutil.Prettify(s) } @@ -4023,76 +7620,60 @@ func (s MediaConcatenationPipeline) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaConcatenationPipeline) GoString() string { +func (s ResourceLimitExceededException) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaConcatenationPipeline) SetCreatedTimestamp(v time.Time) *MediaConcatenationPipeline { - s.CreatedTimestamp = &v - return s +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + RespMetadata: v, + } } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaConcatenationPipeline) SetMediaPipelineArn(v string) *MediaConcatenationPipeline { - s.MediaPipelineArn = &v - return s +// Code returns the exception type name. +func (s *ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaConcatenationPipeline) SetMediaPipelineId(v string) *MediaConcatenationPipeline { - s.MediaPipelineId = &v - return s +// Message returns the exception's message. +func (s *ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetSinks sets the Sinks field's value. -func (s *MediaConcatenationPipeline) SetSinks(v []*ConcatenationSink) *MediaConcatenationPipeline { - s.Sinks = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceLimitExceededException) OrigErr() error { + return nil } -// SetSources sets the Sources field's value. -func (s *MediaConcatenationPipeline) SetSources(v []*ConcatenationSource) *MediaConcatenationPipeline { - s.Sources = v - return s +func (s *ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetStatus sets the Status field's value. -func (s *MediaConcatenationPipeline) SetStatus(v string) *MediaConcatenationPipeline { - s.Status = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaConcatenationPipeline) SetUpdatedTimestamp(v time.Time) *MediaConcatenationPipeline { - s.UpdatedTimestamp = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *ResourceLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID } -// The connector pipeline. -type MediaLiveConnectorPipeline struct { +// The configuration settings for the S3 bucket. +type S3BucketSinkConfiguration struct { _ struct{} `type:"structure"` - // Thetime at which the connector pipeline was created. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The connector pipeline's ARN. - MediaPipelineArn *string `min:"1" type:"string"` - - // The connector pipeline's ID. - MediaPipelineId *string `min:"36" type:"string"` - - // The connector pipeline's data sinks. - Sinks []*LiveConnectorSinkConfiguration `min:"1" type:"list"` - - // The connector pipeline's data sources. - Sources []*LiveConnectorSourceConfiguration `min:"1" type:"list"` - - // The connector pipeline's status. - Status *string `type:"string" enum:"MediaPipelineStatus"` - - // The time at which the connector pipeline was last updated. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The destination URL of the S3 bucket. + // + // Destination is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by S3BucketSinkConfiguration's + // String and GoString methods. + // + // Destination is a required field + Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -4100,7 +7681,7 @@ type MediaLiveConnectorPipeline struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaLiveConnectorPipeline) String() string { +func (s S3BucketSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -4109,65 +7690,100 @@ func (s MediaLiveConnectorPipeline) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaLiveConnectorPipeline) GoString() string { +func (s S3BucketSinkConfiguration) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *MediaLiveConnectorPipeline) SetCreatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { - s.CreatedTimestamp = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3BucketSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3BucketSinkConfiguration"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Destination != nil && len(*s.Destination) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaLiveConnectorPipeline) SetMediaPipelineArn(v string) *MediaLiveConnectorPipeline { - s.MediaPipelineArn = &v +// SetDestination sets the Destination field's value. +func (s *S3BucketSinkConfiguration) SetDestination(v string) *S3BucketSinkConfiguration { + s.Destination = &v return s } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaLiveConnectorPipeline) SetMediaPipelineId(v string) *MediaLiveConnectorPipeline { - s.MediaPipelineId = &v - return s +// The structure that holds the settings for transmitting audio and video to +// the Amazon S3 bucket. +type S3RecordingSinkConfiguration struct { + _ struct{} `type:"structure"` + + // The URL of the Amazon S3 bucket used as the recording sink. + // + // Destination is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by S3RecordingSinkConfiguration's + // String and GoString methods. + Destination *string `min:"1" type:"string" sensitive:"true"` } -// SetSinks sets the Sinks field's value. -func (s *MediaLiveConnectorPipeline) SetSinks(v []*LiveConnectorSinkConfiguration) *MediaLiveConnectorPipeline { - s.Sinks = v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s S3RecordingSinkConfiguration) String() string { + return awsutil.Prettify(s) } -// SetSources sets the Sources field's value. -func (s *MediaLiveConnectorPipeline) SetSources(v []*LiveConnectorSourceConfiguration) *MediaLiveConnectorPipeline { - s.Sources = v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s S3RecordingSinkConfiguration) GoString() string { + return s.String() } -// SetStatus sets the Status field's value. -func (s *MediaLiveConnectorPipeline) SetStatus(v string) *MediaLiveConnectorPipeline { - s.Status = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3RecordingSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3RecordingSinkConfiguration"} + if s.Destination != nil && len(*s.Destination) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *MediaLiveConnectorPipeline) SetUpdatedTimestamp(v time.Time) *MediaLiveConnectorPipeline { - s.UpdatedTimestamp = &v +// SetDestination sets the Destination field's value. +func (s *S3RecordingSinkConfiguration) SetDestination(v string) *S3RecordingSinkConfiguration { + s.Destination = &v return s } -// A pipeline consisting of a media capture, media concatenation, or live-streaming -// pipeline. -type MediaPipeline struct { +// A structure that holds the settings for transmitting audio and video recordings +// to the runtime Amazon S3 bucket. +type S3RecordingSinkRuntimeConfiguration struct { _ struct{} `type:"structure"` - // A pipeline that enables users to capture audio and video. - MediaCapturePipeline *MediaCapturePipeline `type:"structure"` - - // The media concatenation pipeline in a media pipeline. - MediaConcatenationPipeline *MediaConcatenationPipeline `type:"structure"` + // The URL of the S3 bucket used as the runtime sink. + // + // Destination is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by S3RecordingSinkRuntimeConfiguration's + // String and GoString methods. + // + // Destination is a required field + Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The connector pipeline of the media pipeline. - MediaLiveConnectorPipeline *MediaLiveConnectorPipeline `type:"structure"` + // The file formats for the audio and video files sent to the Amazon S3 bucket. + // + // RecordingFileFormat is a required field + RecordingFileFormat *string `type:"string" required:"true" enum:"RecordingFileFormat"` } // String returns the string representation. @@ -4175,7 +7791,7 @@ type MediaPipeline struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaPipeline) String() string { +func (s S3RecordingSinkRuntimeConfiguration) String() string { return awsutil.Prettify(s) } @@ -4184,37 +7800,51 @@ func (s MediaPipeline) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaPipeline) GoString() string { +func (s S3RecordingSinkRuntimeConfiguration) GoString() string { return s.String() } -// SetMediaCapturePipeline sets the MediaCapturePipeline field's value. -func (s *MediaPipeline) SetMediaCapturePipeline(v *MediaCapturePipeline) *MediaPipeline { - s.MediaCapturePipeline = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3RecordingSinkRuntimeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3RecordingSinkRuntimeConfiguration"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Destination != nil && len(*s.Destination) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) + } + if s.RecordingFileFormat == nil { + invalidParams.Add(request.NewErrParamRequired("RecordingFileFormat")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMediaConcatenationPipeline sets the MediaConcatenationPipeline field's value. -func (s *MediaPipeline) SetMediaConcatenationPipeline(v *MediaConcatenationPipeline) *MediaPipeline { - s.MediaConcatenationPipeline = v +// SetDestination sets the Destination field's value. +func (s *S3RecordingSinkRuntimeConfiguration) SetDestination(v string) *S3RecordingSinkRuntimeConfiguration { + s.Destination = &v return s } -// SetMediaLiveConnectorPipeline sets the MediaLiveConnectorPipeline field's value. -func (s *MediaPipeline) SetMediaLiveConnectorPipeline(v *MediaLiveConnectorPipeline) *MediaPipeline { - s.MediaLiveConnectorPipeline = v +// SetRecordingFileFormat sets the RecordingFileFormat field's value. +func (s *S3RecordingSinkRuntimeConfiguration) SetRecordingFileFormat(v string) *S3RecordingSinkRuntimeConfiguration { + s.RecordingFileFormat = &v return s } -// The summary of the media pipeline. -type MediaPipelineSummary struct { +// The video streams for a specified media pipeline. The total number of video +// streams can't exceed 25. +type SelectedVideoStreams struct { _ struct{} `type:"structure"` - // The ARN of the media pipeline in the summary. - MediaPipelineArn *string `min:"1" type:"string"` + // The attendee IDs of the streams selected for a media pipeline. + AttendeeIds []*string `min:"1" type:"list"` - // The ID of the media pipeline in the summary. - MediaPipelineId *string `min:"36" type:"string"` + // The external user IDs of the streams selected for a media pipeline. + ExternalUserIds []*string `min:"1" type:"list"` } // String returns the string representation. @@ -4222,7 +7852,7 @@ type MediaPipelineSummary struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaPipelineSummary) String() string { +func (s SelectedVideoStreams) String() string { return awsutil.Prettify(s) } @@ -4231,30 +7861,57 @@ func (s MediaPipelineSummary) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MediaPipelineSummary) GoString() string { +func (s SelectedVideoStreams) GoString() string { return s.String() } -// SetMediaPipelineArn sets the MediaPipelineArn field's value. -func (s *MediaPipelineSummary) SetMediaPipelineArn(v string) *MediaPipelineSummary { - s.MediaPipelineArn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *SelectedVideoStreams) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SelectedVideoStreams"} + if s.AttendeeIds != nil && len(s.AttendeeIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeIds", 1)) + } + if s.ExternalUserIds != nil && len(s.ExternalUserIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExternalUserIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendeeIds sets the AttendeeIds field's value. +func (s *SelectedVideoStreams) SetAttendeeIds(v []*string) *SelectedVideoStreams { + s.AttendeeIds = v return s } -// SetMediaPipelineId sets the MediaPipelineId field's value. -func (s *MediaPipelineSummary) SetMediaPipelineId(v string) *MediaPipelineSummary { - s.MediaPipelineId = &v +// SetExternalUserIds sets the ExternalUserIds field's value. +func (s *SelectedVideoStreams) SetExternalUserIds(v []*string) *SelectedVideoStreams { + s.ExternalUserIds = v return s } -// The configuration object for an event concatenation pipeline. -type MeetingEventsConcatenationConfiguration struct { +// A structure that contains the configuration settings for a sentiment analysis +// task. +type SentimentConfiguration struct { _ struct{} `type:"structure"` - // Enables or disables the configuration object. + // The name of the rule in the sentiment configuration. // - // State is a required field - State *string `type:"string" required:"true" enum:"ArtifactsConcatenationState"` + // RuleName is a required field + RuleName *string `min:"2" type:"string" required:"true"` + + // The type of sentiment, POSITIVE, NEGATIVE, or NEUTRAL. + // + // SentimentType is a required field + SentimentType *string `type:"string" required:"true" enum:"SentimentType"` + + // Specifies the analysis interval. + // + // TimePeriod is a required field + TimePeriod *int64 `min:"60" type:"integer" required:"true"` } // String returns the string representation. @@ -4262,7 +7919,7 @@ type MeetingEventsConcatenationConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MeetingEventsConcatenationConfiguration) String() string { +func (s SentimentConfiguration) String() string { return awsutil.Prettify(s) } @@ -4271,15 +7928,27 @@ func (s MeetingEventsConcatenationConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MeetingEventsConcatenationConfiguration) GoString() string { +func (s SentimentConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MeetingEventsConcatenationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MeetingEventsConcatenationConfiguration"} - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +func (s *SentimentConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SentimentConfiguration"} + if s.RuleName == nil { + invalidParams.Add(request.NewErrParamRequired("RuleName")) + } + if s.RuleName != nil && len(*s.RuleName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("RuleName", 2)) + } + if s.SentimentType == nil { + invalidParams.Add(request.NewErrParamRequired("SentimentType")) + } + if s.TimePeriod == nil { + invalidParams.Add(request.NewErrParamRequired("TimePeriod")) + } + if s.TimePeriod != nil && *s.TimePeriod < 60 { + invalidParams.Add(request.NewErrParamMinValue("TimePeriod", 60)) } if invalidParams.Len() > 0 { @@ -4288,14 +7957,26 @@ func (s *MeetingEventsConcatenationConfiguration) Validate() error { return nil } -// SetState sets the State field's value. -func (s *MeetingEventsConcatenationConfiguration) SetState(v string) *MeetingEventsConcatenationConfiguration { - s.State = &v +// SetRuleName sets the RuleName field's value. +func (s *SentimentConfiguration) SetRuleName(v string) *SentimentConfiguration { + s.RuleName = &v return s } -// One or more of the resources in the request does not exist in the system. -type NotFoundException struct { +// SetSentimentType sets the SentimentType field's value. +func (s *SentimentConfiguration) SetSentimentType(v string) *SentimentConfiguration { + s.SentimentType = &v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *SentimentConfiguration) SetTimePeriod(v int64) *SentimentConfiguration { + s.TimePeriod = &v + return s +} + +// The service encountered an unexpected error. +type ServiceFailureException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -4303,7 +7984,7 @@ type NotFoundException struct { Message_ *string `locationName:"Message" type:"string"` - // The request id associated with the call responsible for the exception. + // The request ID associated with the call responsible for the exception. RequestId *string `type:"string"` } @@ -4312,7 +7993,7 @@ type NotFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s NotFoundException) String() string { +func (s ServiceFailureException) String() string { return awsutil.Prettify(s) } @@ -4321,23 +8002,23 @@ func (s NotFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s NotFoundException) GoString() string { +func (s ServiceFailureException) GoString() string { return s.String() } -func newErrorNotFoundException(v protocol.ResponseMetadata) error { - return &NotFoundException{ +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *NotFoundException) Code() string { - return "NotFoundException" +func (s *ServiceFailureException) Code() string { + return "ServiceFailureException" } // Message returns the exception's message. -func (s *NotFoundException) Message() string { +func (s *ServiceFailureException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -4345,58 +8026,26 @@ func (s *NotFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *NotFoundException) OrigErr() error { +func (s *ServiceFailureException) OrigErr() error { return nil } -func (s *NotFoundException) Error() string { +func (s *ServiceFailureException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. -func (s *NotFoundException) StatusCode() int { +func (s *ServiceFailureException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *NotFoundException) RequestID() string { +func (s *ServiceFailureException) RequestID() string { return s.RespMetadata.RequestID } -// Defines the configuration for a presenter only video tile. -type PresenterOnlyConfiguration struct { - _ struct{} `type:"structure"` - - // Defines the position of the presenter video tile. Default: TopRight. - PresenterPosition *string `type:"string" enum:"PresenterPosition"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PresenterOnlyConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PresenterOnlyConfiguration) GoString() string { - return s.String() -} - -// SetPresenterPosition sets the PresenterPosition field's value. -func (s *PresenterOnlyConfiguration) SetPresenterPosition(v string) *PresenterOnlyConfiguration { - s.PresenterPosition = &v - return s -} - -// The request exceeds the resource limit. -type ResourceLimitExceededException struct { +// The service is currently unavailable. +type ServiceUnavailableException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -4404,7 +8053,7 @@ type ResourceLimitExceededException struct { Message_ *string `locationName:"Message" type:"string"` - // The request id associated with the call responsible for the exception. + // The request ID associated with the call responsible for the exception. RequestId *string `type:"string"` } @@ -4413,7 +8062,7 @@ type ResourceLimitExceededException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceLimitExceededException) String() string { +func (s ServiceUnavailableException) String() string { return awsutil.Prettify(s) } @@ -4422,23 +8071,23 @@ func (s ResourceLimitExceededException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceLimitExceededException) GoString() string { +func (s ServiceUnavailableException) GoString() string { return s.String() } -func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { - return &ResourceLimitExceededException{ +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ResourceLimitExceededException) Code() string { - return "ResourceLimitExceededException" +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" } // Message returns the exception's message. -func (s *ResourceLimitExceededException) Message() string { +func (s *ServiceUnavailableException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -4446,36 +8095,34 @@ func (s *ResourceLimitExceededException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceLimitExceededException) OrigErr() error { +func (s *ServiceUnavailableException) OrigErr() error { return nil } -func (s *ResourceLimitExceededException) Error() string { +func (s *ServiceUnavailableException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. -func (s *ResourceLimitExceededException) StatusCode() int { +func (s *ServiceUnavailableException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ResourceLimitExceededException) RequestID() string { +func (s *ServiceUnavailableException) RequestID() string { return s.RespMetadata.RequestID } -// The configuration settings for the S3 bucket. -type S3BucketSinkConfiguration struct { +// The configuration settings for the SNS topic sink. +type SnsTopicSinkConfiguration struct { _ struct{} `type:"structure"` - // The destination URL of the S3 bucket. + // The URL of the SNS sink, https://aws.amazon.com/kinesis/data-streams/ (https://aws.amazon.com/kinesis/data-streams/). // - // Destination is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by S3BucketSinkConfiguration's + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SnsTopicSinkConfiguration's // String and GoString methods. - // - // Destination is a required field - Destination *string `min:"1" type:"string" required:"true" sensitive:"true"` + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -4483,7 +8130,7 @@ type S3BucketSinkConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s S3BucketSinkConfiguration) String() string { +func (s SnsTopicSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -4492,18 +8139,15 @@ func (s S3BucketSinkConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s S3BucketSinkConfiguration) GoString() string { +func (s SnsTopicSinkConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *S3BucketSinkConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3BucketSinkConfiguration"} - if s.Destination == nil { - invalidParams.Add(request.NewErrParamRequired("Destination")) - } - if s.Destination != nil && len(*s.Destination) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) +func (s *SnsTopicSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SnsTopicSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) } if invalidParams.Len() > 0 { @@ -4512,22 +8156,19 @@ func (s *S3BucketSinkConfiguration) Validate() error { return nil } -// SetDestination sets the Destination field's value. -func (s *S3BucketSinkConfiguration) SetDestination(v string) *S3BucketSinkConfiguration { - s.Destination = &v +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *SnsTopicSinkConfiguration) SetInsightsTarget(v string) *SnsTopicSinkConfiguration { + s.InsightsTarget = &v return s } -// The video streams for a specified media pipeline. The total number of video -// streams can't exceed 25. -type SelectedVideoStreams struct { +// Source configuration for a specified media pipeline. +type SourceConfiguration struct { _ struct{} `type:"structure"` - // The attendee IDs of the streams selected for a media pipeline. - AttendeeIds []*string `min:"1" type:"list"` - - // The external user IDs of the streams selected for a media pipeline. - ExternalUserIds []*string `min:"1" type:"list"` + // The selected video streams for a specified media pipeline. The number of + // video streams can't exceed 25. + SelectedVideoStreams *SelectedVideoStreams `type:"structure"` } // String returns the string representation. @@ -4535,7 +8176,7 @@ type SelectedVideoStreams struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SelectedVideoStreams) String() string { +func (s SourceConfiguration) String() string { return awsutil.Prettify(s) } @@ -4544,18 +8185,17 @@ func (s SelectedVideoStreams) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SelectedVideoStreams) GoString() string { +func (s SourceConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SelectedVideoStreams) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SelectedVideoStreams"} - if s.AttendeeIds != nil && len(s.AttendeeIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeIds", 1)) - } - if s.ExternalUserIds != nil && len(s.ExternalUserIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ExternalUserIds", 1)) +func (s *SourceConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} + if s.SelectedVideoStreams != nil { + if err := s.SelectedVideoStreams.Validate(); err != nil { + invalidParams.AddNested("SelectedVideoStreams", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -4564,29 +8204,22 @@ func (s *SelectedVideoStreams) Validate() error { return nil } -// SetAttendeeIds sets the AttendeeIds field's value. -func (s *SelectedVideoStreams) SetAttendeeIds(v []*string) *SelectedVideoStreams { - s.AttendeeIds = v - return s -} - -// SetExternalUserIds sets the ExternalUserIds field's value. -func (s *SelectedVideoStreams) SetExternalUserIds(v []*string) *SelectedVideoStreams { - s.ExternalUserIds = v +// SetSelectedVideoStreams sets the SelectedVideoStreams field's value. +func (s *SourceConfiguration) SetSelectedVideoStreams(v *SelectedVideoStreams) *SourceConfiguration { + s.SelectedVideoStreams = v return s } -// The service encountered an unexpected error. -type ServiceFailureException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - - Message_ *string `locationName:"Message" type:"string"` +// The URL of the SQS sink. +type SqsQueueSinkConfiguration struct { + _ struct{} `type:"structure"` - // The request id associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The URL of the SQS sink, https://aws.amazon.com/kinesis/data-streams/ (https://aws.amazon.com/kinesis/data-streams/). + // + // InsightsTarget is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SqsQueueSinkConfiguration's + // String and GoString methods. + InsightsTarget *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -4594,7 +8227,7 @@ type ServiceFailureException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceFailureException) String() string { +func (s SqsQueueSinkConfiguration) String() string { return awsutil.Prettify(s) } @@ -4603,59 +8236,40 @@ func (s ServiceFailureException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceFailureException) GoString() string { +func (s SqsQueueSinkConfiguration) GoString() string { return s.String() } -func newErrorServiceFailureException(v protocol.ResponseMetadata) error { - return &ServiceFailureException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *SqsQueueSinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SqsQueueSinkConfiguration"} + if s.InsightsTarget != nil && len(*s.InsightsTarget) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightsTarget", 1)) } -} - -// Code returns the exception type name. -func (s *ServiceFailureException) Code() string { - return "ServiceFailureException" -} -// Message returns the exception's message. -func (s *ServiceFailureException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceFailureException) OrigErr() error { return nil } -func (s *ServiceFailureException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceFailureException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServiceFailureException) RequestID() string { - return s.RespMetadata.RequestID +// SetInsightsTarget sets the InsightsTarget field's value. +func (s *SqsQueueSinkConfiguration) SetInsightsTarget(v string) *SqsQueueSinkConfiguration { + s.InsightsTarget = &v + return s } -// The service is currently unavailable. -type ServiceUnavailableException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// Defines a streaming channel. +type StreamChannelDefinition struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // The definitions of the channels in a streaming channel. + ChannelDefinitions []*ChannelDefinition `min:"1" type:"list"` - // The request id associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The number of channels in a streaming channel. + // + // NumberOfChannels is a required field + NumberOfChannels *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation. @@ -4663,7 +8277,7 @@ type ServiceUnavailableException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceUnavailableException) String() string { +func (s StreamChannelDefinition) String() string { return awsutil.Prettify(s) } @@ -4672,55 +8286,67 @@ func (s ServiceUnavailableException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceUnavailableException) GoString() string { +func (s StreamChannelDefinition) GoString() string { return s.String() } -func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { - return &ServiceUnavailableException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceUnavailableException) Code() string { - return "ServiceUnavailableException" -} - -// Message returns the exception's message. -func (s *ServiceUnavailableException) Message() string { - if s.Message_ != nil { - return *s.Message_ +// Validate inspects the fields of the type to determine if they are valid. +func (s *StreamChannelDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamChannelDefinition"} + if s.ChannelDefinitions != nil && len(s.ChannelDefinitions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelDefinitions", 1)) + } + if s.NumberOfChannels == nil { + invalidParams.Add(request.NewErrParamRequired("NumberOfChannels")) + } + if s.NumberOfChannels != nil && *s.NumberOfChannels < 1 { + invalidParams.Add(request.NewErrParamMinValue("NumberOfChannels", 1)) + } + if s.ChannelDefinitions != nil { + for i, v := range s.ChannelDefinitions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ChannelDefinitions", i), err.(request.ErrInvalidParams)) + } + } } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceUnavailableException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *ServiceUnavailableException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceUnavailableException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetChannelDefinitions sets the ChannelDefinitions field's value. +func (s *StreamChannelDefinition) SetChannelDefinitions(v []*ChannelDefinition) *StreamChannelDefinition { + s.ChannelDefinitions = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceUnavailableException) RequestID() string { - return s.RespMetadata.RequestID +// SetNumberOfChannels sets the NumberOfChannels field's value. +func (s *StreamChannelDefinition) SetNumberOfChannels(v int64) *StreamChannelDefinition { + s.NumberOfChannels = &v + return s } -// Source configuration for a specified media pipeline. -type SourceConfiguration struct { +// The configuration settings for a stream. +type StreamConfiguration struct { _ struct{} `type:"structure"` - // The selected video streams for a specified media pipeline. The number of - // video streams can't exceed 25. - SelectedVideoStreams *SelectedVideoStreams `type:"structure"` + // The unique identifier of the fragment to begin processing. + FragmentNumber *string `min:"1" type:"string"` + + // The ARN of the stream. + // + // StreamArn is a required field + StreamArn *string `min:"1" type:"string" required:"true"` + + // The streaming channel definition in the stream configuration. + // + // StreamChannelDefinition is a required field + StreamChannelDefinition *StreamChannelDefinition `type:"structure" required:"true"` } // String returns the string representation. @@ -4728,7 +8354,7 @@ type SourceConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SourceConfiguration) String() string { +func (s StreamConfiguration) String() string { return awsutil.Prettify(s) } @@ -4737,16 +8363,28 @@ func (s SourceConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SourceConfiguration) GoString() string { +func (s StreamConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SourceConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} - if s.SelectedVideoStreams != nil { - if err := s.SelectedVideoStreams.Validate(); err != nil { - invalidParams.AddNested("SelectedVideoStreams", err.(request.ErrInvalidParams)) +func (s *StreamConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamConfiguration"} + if s.FragmentNumber != nil && len(*s.FragmentNumber) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FragmentNumber", 1)) + } + if s.StreamArn == nil { + invalidParams.Add(request.NewErrParamRequired("StreamArn")) + } + if s.StreamArn != nil && len(*s.StreamArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamArn", 1)) + } + if s.StreamChannelDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("StreamChannelDefinition")) + } + if s.StreamChannelDefinition != nil { + if err := s.StreamChannelDefinition.Validate(); err != nil { + invalidParams.AddNested("StreamChannelDefinition", err.(request.ErrInvalidParams)) } } @@ -4756,9 +8394,21 @@ func (s *SourceConfiguration) Validate() error { return nil } -// SetSelectedVideoStreams sets the SelectedVideoStreams field's value. -func (s *SourceConfiguration) SetSelectedVideoStreams(v *SelectedVideoStreams) *SourceConfiguration { - s.SelectedVideoStreams = v +// SetFragmentNumber sets the FragmentNumber field's value. +func (s *StreamConfiguration) SetFragmentNumber(v string) *StreamConfiguration { + s.FragmentNumber = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *StreamConfiguration) SetStreamArn(v string) *StreamConfiguration { + s.StreamArn = &v + return s +} + +// SetStreamChannelDefinition sets the StreamChannelDefinition field's value. +func (s *StreamConfiguration) SetStreamChannelDefinition(v *StreamChannelDefinition) *StreamConfiguration { + s.StreamChannelDefinition = v return s } @@ -4934,7 +8584,7 @@ type ThrottledClientException struct { Message_ *string `locationName:"Message" type:"string"` - // The request id associated with the call responsible for the exception. + // The request ID associated with the call responsible for the exception. RequestId *string `type:"string"` } @@ -4994,6 +8644,67 @@ func (s *ThrottledClientException) RequestID() string { return s.RespMetadata.RequestID } +// The range of timestamps to return. +type TimestampRange struct { + _ struct{} `type:"structure"` + + // The ending timestamp for the specified range. + // + // EndTimestamp is a required field + EndTimestamp *time.Time `type:"timestamp" required:"true"` + + // The starting timestamp for the specified range. + // + // StartTimestamp is a required field + StartTimestamp *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimestampRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimestampRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimestampRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimestampRange"} + if s.EndTimestamp == nil { + invalidParams.Add(request.NewErrParamRequired("EndTimestamp")) + } + if s.StartTimestamp == nil { + invalidParams.Add(request.NewErrParamRequired("StartTimestamp")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTimestamp sets the EndTimestamp field's value. +func (s *TimestampRange) SetEndTimestamp(v time.Time) *TimestampRange { + s.EndTimestamp = &v + return s +} + +// SetStartTimestamp sets the StartTimestamp field's value. +func (s *TimestampRange) SetStartTimestamp(v time.Time) *TimestampRange { + s.StartTimestamp = &v + return s +} + // The configuration object for concatenating transcription messages. type TranscriptionMessagesConcatenationConfiguration struct { _ struct{} `type:"structure"` @@ -5048,10 +8759,182 @@ type UnauthorizedClientException struct { Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - Message_ *string `locationName:"Message" type:"string"` + Message_ *string `locationName:"Message" type:"string"` + + // The request ID associated with the call responsible for the exception. + RequestId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnauthorizedClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnauthorizedClientException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { + return &UnauthorizedClientException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnauthorizedClientException) Code() string { + return "UnauthorizedClientException" +} + +// Message returns the exception's message. +func (s *UnauthorizedClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnauthorizedClientException) OrigErr() error { + return nil +} + +func (s *UnauthorizedClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnauthorizedClientException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnauthorizedClientException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the pipeline that you want to untag. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The key/value pairs in the tag that you want to remove. + // + // TagKeys is a required field + TagKeys []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { + s.ResourceARN = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +type UpdateMediaInsightsPipelineConfigurationInput struct { + _ struct{} `type:"structure"` + + // The elements in the request, such as a processor for Amazon Transcribe or + // a sink for a Kinesis Data Stream.. + // + // Elements is a required field + Elements []*MediaInsightsPipelineConfigurationElement `type:"list" required:"true"` + + // The unique identifier for the resource to be updated. Valid values include + // the name and ARN of the media insights pipeline configuration. + // + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` + + // The configuration settings for real-time alerts for the media insights pipeline. + RealTimeAlertConfiguration *RealTimeAlertConfiguration `type:"structure"` - // The request id associated with the call responsible for the exception. - RequestId *string `type:"string"` + // The ARN of the role used by the service to access Amazon Web Services resources. + // + // ResourceAccessRoleArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateMediaInsightsPipelineConfigurationInput's + // String and GoString methods. + // + // ResourceAccessRoleArn is a required field + ResourceAccessRoleArn *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -5059,7 +8942,7 @@ type UnauthorizedClientException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnauthorizedClientException) String() string { +func (s UpdateMediaInsightsPipelineConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -5068,60 +8951,118 @@ func (s UnauthorizedClientException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnauthorizedClientException) GoString() string { +func (s UpdateMediaInsightsPipelineConfigurationInput) GoString() string { return s.String() } -func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { - return &UnauthorizedClientException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateMediaInsightsPipelineConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateMediaInsightsPipelineConfigurationInput"} + if s.Elements == nil { + invalidParams.Add(request.NewErrParamRequired("Elements")) + } + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.ResourceAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceAccessRoleArn")) } + if s.ResourceAccessRoleArn != nil && len(*s.ResourceAccessRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceAccessRoleArn", 1)) + } + if s.Elements != nil { + for i, v := range s.Elements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Elements", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RealTimeAlertConfiguration != nil { + if err := s.RealTimeAlertConfiguration.Validate(); err != nil { + invalidParams.AddNested("RealTimeAlertConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Code returns the exception type name. -func (s *UnauthorizedClientException) Code() string { - return "UnauthorizedClientException" +// SetElements sets the Elements field's value. +func (s *UpdateMediaInsightsPipelineConfigurationInput) SetElements(v []*MediaInsightsPipelineConfigurationElement) *UpdateMediaInsightsPipelineConfigurationInput { + s.Elements = v + return s } -// Message returns the exception's message. -func (s *UnauthorizedClientException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetIdentifier sets the Identifier field's value. +func (s *UpdateMediaInsightsPipelineConfigurationInput) SetIdentifier(v string) *UpdateMediaInsightsPipelineConfigurationInput { + s.Identifier = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UnauthorizedClientException) OrigErr() error { - return nil +// SetRealTimeAlertConfiguration sets the RealTimeAlertConfiguration field's value. +func (s *UpdateMediaInsightsPipelineConfigurationInput) SetRealTimeAlertConfiguration(v *RealTimeAlertConfiguration) *UpdateMediaInsightsPipelineConfigurationInput { + s.RealTimeAlertConfiguration = v + return s } -func (s *UnauthorizedClientException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetResourceAccessRoleArn sets the ResourceAccessRoleArn field's value. +func (s *UpdateMediaInsightsPipelineConfigurationInput) SetResourceAccessRoleArn(v string) *UpdateMediaInsightsPipelineConfigurationInput { + s.ResourceAccessRoleArn = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *UnauthorizedClientException) StatusCode() int { - return s.RespMetadata.StatusCode +type UpdateMediaInsightsPipelineConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The updated configuration settings. + MediaInsightsPipelineConfiguration *MediaInsightsPipelineConfiguration `type:"structure"` } -// RequestID returns the service's response RequestID for request. -func (s *UnauthorizedClientException) RequestID() string { - return s.RespMetadata.RequestID +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateMediaInsightsPipelineConfigurationOutput) String() string { + return awsutil.Prettify(s) } -type UntagResourceInput struct { +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateMediaInsightsPipelineConfigurationOutput) GoString() string { + return s.String() +} + +// SetMediaInsightsPipelineConfiguration sets the MediaInsightsPipelineConfiguration field's value. +func (s *UpdateMediaInsightsPipelineConfigurationOutput) SetMediaInsightsPipelineConfiguration(v *MediaInsightsPipelineConfiguration) *UpdateMediaInsightsPipelineConfigurationOutput { + s.MediaInsightsPipelineConfiguration = v + return s +} + +type UpdateMediaInsightsPipelineStatusInput struct { _ struct{} `type:"structure"` - // The ARN of the pipeline that you want to untag. + // The unique identifier of the resource to be updated. Valid values include + // the ID and ARN of the media insights pipeline. // - // ResourceARN is a required field - ResourceARN *string `min:"1" type:"string" required:"true"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"identifier" type:"string" required:"true"` - // The key/value pairs in the tag that you want to remove. + // The requested status of the media insights pipeline. // - // TagKeys is a required field - TagKeys []*string `min:"1" type:"list" required:"true"` + // UpdateStatus is a required field + UpdateStatus *string `type:"string" required:"true" enum:"MediaPipelineStatusUpdate"` } // String returns the string representation. @@ -5129,7 +9070,7 @@ type UntagResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UntagResourceInput) String() string { +func (s UpdateMediaInsightsPipelineStatusInput) String() string { return awsutil.Prettify(s) } @@ -5138,24 +9079,21 @@ func (s UntagResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UntagResourceInput) GoString() string { +func (s UpdateMediaInsightsPipelineStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UntagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) +func (s *UpdateMediaInsightsPipelineStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateMediaInsightsPipelineStatusInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + if s.UpdateStatus == nil { + invalidParams.Add(request.NewErrParamRequired("UpdateStatus")) } if invalidParams.Len() > 0 { @@ -5164,19 +9102,19 @@ func (s *UntagResourceInput) Validate() error { return nil } -// SetResourceARN sets the ResourceARN field's value. -func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { - s.ResourceARN = &v +// SetIdentifier sets the Identifier field's value. +func (s *UpdateMediaInsightsPipelineStatusInput) SetIdentifier(v string) *UpdateMediaInsightsPipelineStatusInput { + s.Identifier = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v +// SetUpdateStatus sets the UpdateStatus field's value. +func (s *UpdateMediaInsightsPipelineStatusInput) SetUpdateStatus(v string) *UpdateMediaInsightsPipelineStatusInput { + s.UpdateStatus = &v return s } -type UntagResourceOutput struct { +type UpdateMediaInsightsPipelineStatusOutput struct { _ struct{} `type:"structure"` } @@ -5185,7 +9123,7 @@ type UntagResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UntagResourceOutput) String() string { +func (s UpdateMediaInsightsPipelineStatusOutput) String() string { return awsutil.Prettify(s) } @@ -5194,7 +9132,7 @@ func (s UntagResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UntagResourceOutput) GoString() string { +func (s UpdateMediaInsightsPipelineStatusOutput) GoString() string { return s.String() } @@ -5254,7 +9192,7 @@ func (s *VideoArtifactsConfiguration) SetState(v string) *VideoArtifactsConfigur return s } -// The configuration object of a video contacatentation pipeline. +// The configuration object of a video concatenation pipeline. type VideoConcatenationConfiguration struct { _ struct{} `type:"structure"` @@ -5301,6 +9239,47 @@ func (s *VideoConcatenationConfiguration) SetState(v string) *VideoConcatenation return s } +// The configuration settings for a voice analytics processor. +type VoiceAnalyticsProcessorConfiguration struct { + _ struct{} `type:"structure"` + + // The status of the speaker search task. + SpeakerSearchStatus *string `type:"string" enum:"VoiceAnalyticsConfigurationStatus"` + + // The status of the voice tone analysis task. + VoiceToneAnalysisStatus *string `type:"string" enum:"VoiceAnalyticsConfigurationStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceAnalyticsProcessorConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceAnalyticsProcessorConfiguration) GoString() string { + return s.String() +} + +// SetSpeakerSearchStatus sets the SpeakerSearchStatus field's value. +func (s *VoiceAnalyticsProcessorConfiguration) SetSpeakerSearchStatus(v string) *VoiceAnalyticsProcessorConfiguration { + s.SpeakerSearchStatus = &v + return s +} + +// SetVoiceToneAnalysisStatus sets the VoiceToneAnalysisStatus field's value. +func (s *VoiceAnalyticsProcessorConfiguration) SetVoiceToneAnalysisStatus(v string) *VoiceAnalyticsProcessorConfiguration { + s.VoiceToneAnalysisStatus = &v + return s +} + const ( // ArtifactsConcatenationStateEnabled is a ArtifactsConcatenationState enum value ArtifactsConcatenationStateEnabled = "Enabled" @@ -5381,6 +9360,50 @@ func AudioMuxType_Values() []string { } } +const ( + // CallAnalyticsLanguageCodeEnUs is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeEnUs = "en-US" + + // CallAnalyticsLanguageCodeEnGb is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeEnGb = "en-GB" + + // CallAnalyticsLanguageCodeEsUs is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeEsUs = "es-US" + + // CallAnalyticsLanguageCodeFrCa is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeFrCa = "fr-CA" + + // CallAnalyticsLanguageCodeFrFr is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeFrFr = "fr-FR" + + // CallAnalyticsLanguageCodeEnAu is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeEnAu = "en-AU" + + // CallAnalyticsLanguageCodeItIt is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeItIt = "it-IT" + + // CallAnalyticsLanguageCodeDeDe is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodeDeDe = "de-DE" + + // CallAnalyticsLanguageCodePtBr is a CallAnalyticsLanguageCode enum value + CallAnalyticsLanguageCodePtBr = "pt-BR" +) + +// CallAnalyticsLanguageCode_Values returns all elements of the CallAnalyticsLanguageCode enum +func CallAnalyticsLanguageCode_Values() []string { + return []string{ + CallAnalyticsLanguageCodeEnUs, + CallAnalyticsLanguageCodeEnGb, + CallAnalyticsLanguageCodeEsUs, + CallAnalyticsLanguageCodeFrCa, + CallAnalyticsLanguageCodeFrFr, + CallAnalyticsLanguageCodeEnAu, + CallAnalyticsLanguageCodeItIt, + CallAnalyticsLanguageCodeDeDe, + CallAnalyticsLanguageCodePtBr, + } +} + const ( // ConcatenationSinkTypeS3bucket is a ConcatenationSinkType enum value ConcatenationSinkTypeS3bucket = "S3Bucket" @@ -5417,6 +9440,22 @@ func ContentMuxType_Values() []string { } } +const ( + // ContentRedactionOutputRedacted is a ContentRedactionOutput_ enum value + ContentRedactionOutputRedacted = "redacted" + + // ContentRedactionOutputRedactedAndUnredacted is a ContentRedactionOutput_ enum value + ContentRedactionOutputRedactedAndUnredacted = "redacted_and_unredacted" +) + +// ContentRedactionOutput__Values returns all elements of the ContentRedactionOutput_ enum +func ContentRedactionOutput__Values() []string { + return []string{ + ContentRedactionOutputRedacted, + ContentRedactionOutputRedactedAndUnredacted, + } +} + const ( // ContentShareLayoutOptionPresenterOnly is a ContentShareLayoutOption enum value ContentShareLayoutOptionPresenterOnly = "PresenterOnly" @@ -5437,6 +9476,18 @@ func ContentShareLayoutOption_Values() []string { } } +const ( + // ContentTypePii is a ContentType enum value + ContentTypePii = "PII" +) + +// ContentType_Values returns all elements of the ContentType enum +func ContentType_Values() []string { + return []string{ + ContentTypePii, + } +} + const ( // ErrorCodeBadRequest is a ErrorCode enum value ErrorCodeBadRequest = "BadRequest" @@ -5473,6 +9524,22 @@ func ErrorCode_Values() []string { } } +const ( + // FragmentSelectorTypeProducerTimestamp is a FragmentSelectorType enum value + FragmentSelectorTypeProducerTimestamp = "ProducerTimestamp" + + // FragmentSelectorTypeServerTimestamp is a FragmentSelectorType enum value + FragmentSelectorTypeServerTimestamp = "ServerTimestamp" +) + +// FragmentSelectorType_Values returns all elements of the FragmentSelectorType enum +func FragmentSelectorType_Values() []string { + return []string{ + FragmentSelectorTypeProducerTimestamp, + FragmentSelectorTypeServerTimestamp, + } +} + const ( // LayoutOptionGridView is a LayoutOption enum value LayoutOptionGridView = "GridView" @@ -5525,6 +9592,58 @@ func LiveConnectorSourceType_Values() []string { } } +const ( + // MediaEncodingPcm is a MediaEncoding enum value + MediaEncodingPcm = "pcm" +) + +// MediaEncoding_Values returns all elements of the MediaEncoding enum +func MediaEncoding_Values() []string { + return []string{ + MediaEncodingPcm, + } +} + +const ( + // MediaInsightsPipelineConfigurationElementTypeAmazonTranscribeCallAnalyticsProcessor is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeAmazonTranscribeCallAnalyticsProcessor = "AmazonTranscribeCallAnalyticsProcessor" + + // MediaInsightsPipelineConfigurationElementTypeVoiceAnalyticsProcessor is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeVoiceAnalyticsProcessor = "VoiceAnalyticsProcessor" + + // MediaInsightsPipelineConfigurationElementTypeAmazonTranscribeProcessor is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeAmazonTranscribeProcessor = "AmazonTranscribeProcessor" + + // MediaInsightsPipelineConfigurationElementTypeKinesisDataStreamSink is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeKinesisDataStreamSink = "KinesisDataStreamSink" + + // MediaInsightsPipelineConfigurationElementTypeLambdaFunctionSink is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeLambdaFunctionSink = "LambdaFunctionSink" + + // MediaInsightsPipelineConfigurationElementTypeSqsQueueSink is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeSqsQueueSink = "SqsQueueSink" + + // MediaInsightsPipelineConfigurationElementTypeSnsTopicSink is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeSnsTopicSink = "SnsTopicSink" + + // MediaInsightsPipelineConfigurationElementTypeS3recordingSink is a MediaInsightsPipelineConfigurationElementType enum value + MediaInsightsPipelineConfigurationElementTypeS3recordingSink = "S3RecordingSink" +) + +// MediaInsightsPipelineConfigurationElementType_Values returns all elements of the MediaInsightsPipelineConfigurationElementType enum +func MediaInsightsPipelineConfigurationElementType_Values() []string { + return []string{ + MediaInsightsPipelineConfigurationElementTypeAmazonTranscribeCallAnalyticsProcessor, + MediaInsightsPipelineConfigurationElementTypeVoiceAnalyticsProcessor, + MediaInsightsPipelineConfigurationElementTypeAmazonTranscribeProcessor, + MediaInsightsPipelineConfigurationElementTypeKinesisDataStreamSink, + MediaInsightsPipelineConfigurationElementTypeLambdaFunctionSink, + MediaInsightsPipelineConfigurationElementTypeSqsQueueSink, + MediaInsightsPipelineConfigurationElementTypeSnsTopicSink, + MediaInsightsPipelineConfigurationElementTypeS3recordingSink, + } +} + const ( // MediaPipelineSinkTypeS3bucket is a MediaPipelineSinkType enum value MediaPipelineSinkTypeS3bucket = "S3Bucket" @@ -5564,6 +9683,9 @@ const ( // MediaPipelineStatusStopped is a MediaPipelineStatus enum value MediaPipelineStatusStopped = "Stopped" + + // MediaPipelineStatusPaused is a MediaPipelineStatus enum value + MediaPipelineStatusPaused = "Paused" ) // MediaPipelineStatus_Values returns all elements of the MediaPipelineStatus enum @@ -5574,6 +9696,59 @@ func MediaPipelineStatus_Values() []string { MediaPipelineStatusFailed, MediaPipelineStatusStopping, MediaPipelineStatusStopped, + MediaPipelineStatusPaused, + } +} + +const ( + // MediaPipelineStatusUpdatePause is a MediaPipelineStatusUpdate enum value + MediaPipelineStatusUpdatePause = "Pause" + + // MediaPipelineStatusUpdateResume is a MediaPipelineStatusUpdate enum value + MediaPipelineStatusUpdateResume = "Resume" +) + +// MediaPipelineStatusUpdate_Values returns all elements of the MediaPipelineStatusUpdate enum +func MediaPipelineStatusUpdate_Values() []string { + return []string{ + MediaPipelineStatusUpdatePause, + MediaPipelineStatusUpdateResume, + } +} + +const ( + // PartialResultsStabilityHigh is a PartialResultsStability enum value + PartialResultsStabilityHigh = "high" + + // PartialResultsStabilityMedium is a PartialResultsStability enum value + PartialResultsStabilityMedium = "medium" + + // PartialResultsStabilityLow is a PartialResultsStability enum value + PartialResultsStabilityLow = "low" +) + +// PartialResultsStability_Values returns all elements of the PartialResultsStability enum +func PartialResultsStability_Values() []string { + return []string{ + PartialResultsStabilityHigh, + PartialResultsStabilityMedium, + PartialResultsStabilityLow, + } +} + +const ( + // ParticipantRoleAgent is a ParticipantRole enum value + ParticipantRoleAgent = "AGENT" + + // ParticipantRoleCustomer is a ParticipantRole enum value + ParticipantRoleCustomer = "CUSTOMER" +) + +// ParticipantRole_Values returns all elements of the ParticipantRole enum +func ParticipantRole_Values() []string { + return []string{ + ParticipantRoleAgent, + ParticipantRoleCustomer, } } @@ -5601,6 +9776,42 @@ func PresenterPosition_Values() []string { } } +const ( + // RealTimeAlertRuleTypeKeywordMatch is a RealTimeAlertRuleType enum value + RealTimeAlertRuleTypeKeywordMatch = "KeywordMatch" + + // RealTimeAlertRuleTypeSentiment is a RealTimeAlertRuleType enum value + RealTimeAlertRuleTypeSentiment = "Sentiment" + + // RealTimeAlertRuleTypeIssueDetection is a RealTimeAlertRuleType enum value + RealTimeAlertRuleTypeIssueDetection = "IssueDetection" +) + +// RealTimeAlertRuleType_Values returns all elements of the RealTimeAlertRuleType enum +func RealTimeAlertRuleType_Values() []string { + return []string{ + RealTimeAlertRuleTypeKeywordMatch, + RealTimeAlertRuleTypeSentiment, + RealTimeAlertRuleTypeIssueDetection, + } +} + +const ( + // RecordingFileFormatWav is a RecordingFileFormat enum value + RecordingFileFormatWav = "Wav" + + // RecordingFileFormatOpus is a RecordingFileFormat enum value + RecordingFileFormatOpus = "Opus" +) + +// RecordingFileFormat_Values returns all elements of the RecordingFileFormat enum +func RecordingFileFormat_Values() []string { + return []string{ + RecordingFileFormatWav, + RecordingFileFormatOpus, + } +} + const ( // ResolutionOptionHd is a ResolutionOption enum value ResolutionOptionHd = "HD" @@ -5617,6 +9828,18 @@ func ResolutionOption_Values() []string { } } +const ( + // SentimentTypeNegative is a SentimentType enum value + SentimentTypeNegative = "NEGATIVE" +) + +// SentimentType_Values returns all elements of the SentimentType enum +func SentimentType_Values() []string { + return []string{ + SentimentTypeNegative, + } +} + const ( // VideoMuxTypeVideoOnly is a VideoMuxType enum value VideoMuxTypeVideoOnly = "VideoOnly" @@ -5628,3 +9851,39 @@ func VideoMuxType_Values() []string { VideoMuxTypeVideoOnly, } } + +const ( + // VocabularyFilterMethodRemove is a VocabularyFilterMethod enum value + VocabularyFilterMethodRemove = "remove" + + // VocabularyFilterMethodMask is a VocabularyFilterMethod enum value + VocabularyFilterMethodMask = "mask" + + // VocabularyFilterMethodTag is a VocabularyFilterMethod enum value + VocabularyFilterMethodTag = "tag" +) + +// VocabularyFilterMethod_Values returns all elements of the VocabularyFilterMethod enum +func VocabularyFilterMethod_Values() []string { + return []string{ + VocabularyFilterMethodRemove, + VocabularyFilterMethodMask, + VocabularyFilterMethodTag, + } +} + +const ( + // VoiceAnalyticsConfigurationStatusEnabled is a VoiceAnalyticsConfigurationStatus enum value + VoiceAnalyticsConfigurationStatusEnabled = "Enabled" + + // VoiceAnalyticsConfigurationStatusDisabled is a VoiceAnalyticsConfigurationStatus enum value + VoiceAnalyticsConfigurationStatusDisabled = "Disabled" +) + +// VoiceAnalyticsConfigurationStatus_Values returns all elements of the VoiceAnalyticsConfigurationStatus enum +func VoiceAnalyticsConfigurationStatus_Values() []string { + return []string{ + VoiceAnalyticsConfigurationStatusEnabled, + VoiceAnalyticsConfigurationStatusDisabled, + } +} diff --git a/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go b/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go index 9c05be209f2..ce4a46dc690 100644 --- a/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go +++ b/service/chimesdkmediapipelines/chimesdkmediapipelinesiface/interface.go @@ -68,6 +68,14 @@ type ChimeSDKMediaPipelinesAPI interface { CreateMediaConcatenationPipelineWithContext(aws.Context, *chimesdkmediapipelines.CreateMediaConcatenationPipelineInput, ...request.Option) (*chimesdkmediapipelines.CreateMediaConcatenationPipelineOutput, error) CreateMediaConcatenationPipelineRequest(*chimesdkmediapipelines.CreateMediaConcatenationPipelineInput) (*request.Request, *chimesdkmediapipelines.CreateMediaConcatenationPipelineOutput) + CreateMediaInsightsPipeline(*chimesdkmediapipelines.CreateMediaInsightsPipelineInput) (*chimesdkmediapipelines.CreateMediaInsightsPipelineOutput, error) + CreateMediaInsightsPipelineWithContext(aws.Context, *chimesdkmediapipelines.CreateMediaInsightsPipelineInput, ...request.Option) (*chimesdkmediapipelines.CreateMediaInsightsPipelineOutput, error) + CreateMediaInsightsPipelineRequest(*chimesdkmediapipelines.CreateMediaInsightsPipelineInput) (*request.Request, *chimesdkmediapipelines.CreateMediaInsightsPipelineOutput) + + CreateMediaInsightsPipelineConfiguration(*chimesdkmediapipelines.CreateMediaInsightsPipelineConfigurationInput) (*chimesdkmediapipelines.CreateMediaInsightsPipelineConfigurationOutput, error) + CreateMediaInsightsPipelineConfigurationWithContext(aws.Context, *chimesdkmediapipelines.CreateMediaInsightsPipelineConfigurationInput, ...request.Option) (*chimesdkmediapipelines.CreateMediaInsightsPipelineConfigurationOutput, error) + CreateMediaInsightsPipelineConfigurationRequest(*chimesdkmediapipelines.CreateMediaInsightsPipelineConfigurationInput) (*request.Request, *chimesdkmediapipelines.CreateMediaInsightsPipelineConfigurationOutput) + CreateMediaLiveConnectorPipeline(*chimesdkmediapipelines.CreateMediaLiveConnectorPipelineInput) (*chimesdkmediapipelines.CreateMediaLiveConnectorPipelineOutput, error) CreateMediaLiveConnectorPipelineWithContext(aws.Context, *chimesdkmediapipelines.CreateMediaLiveConnectorPipelineInput, ...request.Option) (*chimesdkmediapipelines.CreateMediaLiveConnectorPipelineOutput, error) CreateMediaLiveConnectorPipelineRequest(*chimesdkmediapipelines.CreateMediaLiveConnectorPipelineInput) (*request.Request, *chimesdkmediapipelines.CreateMediaLiveConnectorPipelineOutput) @@ -76,6 +84,10 @@ type ChimeSDKMediaPipelinesAPI interface { DeleteMediaCapturePipelineWithContext(aws.Context, *chimesdkmediapipelines.DeleteMediaCapturePipelineInput, ...request.Option) (*chimesdkmediapipelines.DeleteMediaCapturePipelineOutput, error) DeleteMediaCapturePipelineRequest(*chimesdkmediapipelines.DeleteMediaCapturePipelineInput) (*request.Request, *chimesdkmediapipelines.DeleteMediaCapturePipelineOutput) + DeleteMediaInsightsPipelineConfiguration(*chimesdkmediapipelines.DeleteMediaInsightsPipelineConfigurationInput) (*chimesdkmediapipelines.DeleteMediaInsightsPipelineConfigurationOutput, error) + DeleteMediaInsightsPipelineConfigurationWithContext(aws.Context, *chimesdkmediapipelines.DeleteMediaInsightsPipelineConfigurationInput, ...request.Option) (*chimesdkmediapipelines.DeleteMediaInsightsPipelineConfigurationOutput, error) + DeleteMediaInsightsPipelineConfigurationRequest(*chimesdkmediapipelines.DeleteMediaInsightsPipelineConfigurationInput) (*request.Request, *chimesdkmediapipelines.DeleteMediaInsightsPipelineConfigurationOutput) + DeleteMediaPipeline(*chimesdkmediapipelines.DeleteMediaPipelineInput) (*chimesdkmediapipelines.DeleteMediaPipelineOutput, error) DeleteMediaPipelineWithContext(aws.Context, *chimesdkmediapipelines.DeleteMediaPipelineInput, ...request.Option) (*chimesdkmediapipelines.DeleteMediaPipelineOutput, error) DeleteMediaPipelineRequest(*chimesdkmediapipelines.DeleteMediaPipelineInput) (*request.Request, *chimesdkmediapipelines.DeleteMediaPipelineOutput) @@ -84,6 +96,10 @@ type ChimeSDKMediaPipelinesAPI interface { GetMediaCapturePipelineWithContext(aws.Context, *chimesdkmediapipelines.GetMediaCapturePipelineInput, ...request.Option) (*chimesdkmediapipelines.GetMediaCapturePipelineOutput, error) GetMediaCapturePipelineRequest(*chimesdkmediapipelines.GetMediaCapturePipelineInput) (*request.Request, *chimesdkmediapipelines.GetMediaCapturePipelineOutput) + GetMediaInsightsPipelineConfiguration(*chimesdkmediapipelines.GetMediaInsightsPipelineConfigurationInput) (*chimesdkmediapipelines.GetMediaInsightsPipelineConfigurationOutput, error) + GetMediaInsightsPipelineConfigurationWithContext(aws.Context, *chimesdkmediapipelines.GetMediaInsightsPipelineConfigurationInput, ...request.Option) (*chimesdkmediapipelines.GetMediaInsightsPipelineConfigurationOutput, error) + GetMediaInsightsPipelineConfigurationRequest(*chimesdkmediapipelines.GetMediaInsightsPipelineConfigurationInput) (*request.Request, *chimesdkmediapipelines.GetMediaInsightsPipelineConfigurationOutput) + GetMediaPipeline(*chimesdkmediapipelines.GetMediaPipelineInput) (*chimesdkmediapipelines.GetMediaPipelineOutput, error) GetMediaPipelineWithContext(aws.Context, *chimesdkmediapipelines.GetMediaPipelineInput, ...request.Option) (*chimesdkmediapipelines.GetMediaPipelineOutput, error) GetMediaPipelineRequest(*chimesdkmediapipelines.GetMediaPipelineInput) (*request.Request, *chimesdkmediapipelines.GetMediaPipelineOutput) @@ -95,6 +111,13 @@ type ChimeSDKMediaPipelinesAPI interface { ListMediaCapturePipelinesPages(*chimesdkmediapipelines.ListMediaCapturePipelinesInput, func(*chimesdkmediapipelines.ListMediaCapturePipelinesOutput, bool) bool) error ListMediaCapturePipelinesPagesWithContext(aws.Context, *chimesdkmediapipelines.ListMediaCapturePipelinesInput, func(*chimesdkmediapipelines.ListMediaCapturePipelinesOutput, bool) bool, ...request.Option) error + ListMediaInsightsPipelineConfigurations(*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsInput) (*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsOutput, error) + ListMediaInsightsPipelineConfigurationsWithContext(aws.Context, *chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsInput, ...request.Option) (*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsOutput, error) + ListMediaInsightsPipelineConfigurationsRequest(*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsInput) (*request.Request, *chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsOutput) + + ListMediaInsightsPipelineConfigurationsPages(*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsInput, func(*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsOutput, bool) bool) error + ListMediaInsightsPipelineConfigurationsPagesWithContext(aws.Context, *chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsInput, func(*chimesdkmediapipelines.ListMediaInsightsPipelineConfigurationsOutput, bool) bool, ...request.Option) error + ListMediaPipelines(*chimesdkmediapipelines.ListMediaPipelinesInput) (*chimesdkmediapipelines.ListMediaPipelinesOutput, error) ListMediaPipelinesWithContext(aws.Context, *chimesdkmediapipelines.ListMediaPipelinesInput, ...request.Option) (*chimesdkmediapipelines.ListMediaPipelinesOutput, error) ListMediaPipelinesRequest(*chimesdkmediapipelines.ListMediaPipelinesInput) (*request.Request, *chimesdkmediapipelines.ListMediaPipelinesOutput) @@ -113,6 +136,14 @@ type ChimeSDKMediaPipelinesAPI interface { UntagResource(*chimesdkmediapipelines.UntagResourceInput) (*chimesdkmediapipelines.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *chimesdkmediapipelines.UntagResourceInput, ...request.Option) (*chimesdkmediapipelines.UntagResourceOutput, error) UntagResourceRequest(*chimesdkmediapipelines.UntagResourceInput) (*request.Request, *chimesdkmediapipelines.UntagResourceOutput) + + UpdateMediaInsightsPipelineConfiguration(*chimesdkmediapipelines.UpdateMediaInsightsPipelineConfigurationInput) (*chimesdkmediapipelines.UpdateMediaInsightsPipelineConfigurationOutput, error) + UpdateMediaInsightsPipelineConfigurationWithContext(aws.Context, *chimesdkmediapipelines.UpdateMediaInsightsPipelineConfigurationInput, ...request.Option) (*chimesdkmediapipelines.UpdateMediaInsightsPipelineConfigurationOutput, error) + UpdateMediaInsightsPipelineConfigurationRequest(*chimesdkmediapipelines.UpdateMediaInsightsPipelineConfigurationInput) (*request.Request, *chimesdkmediapipelines.UpdateMediaInsightsPipelineConfigurationOutput) + + UpdateMediaInsightsPipelineStatus(*chimesdkmediapipelines.UpdateMediaInsightsPipelineStatusInput) (*chimesdkmediapipelines.UpdateMediaInsightsPipelineStatusOutput, error) + UpdateMediaInsightsPipelineStatusWithContext(aws.Context, *chimesdkmediapipelines.UpdateMediaInsightsPipelineStatusInput, ...request.Option) (*chimesdkmediapipelines.UpdateMediaInsightsPipelineStatusOutput, error) + UpdateMediaInsightsPipelineStatusRequest(*chimesdkmediapipelines.UpdateMediaInsightsPipelineStatusInput) (*request.Request, *chimesdkmediapipelines.UpdateMediaInsightsPipelineStatusOutput) } var _ ChimeSDKMediaPipelinesAPI = (*chimesdkmediapipelines.ChimeSDKMediaPipelines)(nil) diff --git a/service/chimesdkmediapipelines/doc.go b/service/chimesdkmediapipelines/doc.go index dbd1610b8a8..031b152cb8a 100644 --- a/service/chimesdkmediapipelines/doc.go +++ b/service/chimesdkmediapipelines/doc.go @@ -5,8 +5,8 @@ // // The Amazon Chime SDK media pipeline APIs in this section allow software developers // to create Amazon Chime SDK media pipelines that capture, concatenate, or -// stream your Amazon Chime SDK meetings. For more information about media pipleines, -// see Amazon Chime SDK media pipelines (http://amazonaws.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Media_Pipelines.html). +// stream your Amazon Chime SDK meetings. For more information about media pipelines, +// see Amazon Chime SDK media pipelines (https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_Operations_Amazon_Chime_SDK_Media_Pipelines.html). // // See https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15 for more information on this service. // diff --git a/service/chimesdkmediapipelines/errors.go b/service/chimesdkmediapipelines/errors.go index 5ec724ee3a3..5d365cde28c 100644 --- a/service/chimesdkmediapipelines/errors.go +++ b/service/chimesdkmediapipelines/errors.go @@ -14,6 +14,13 @@ const ( // The input parameters don't match the service's restrictions. ErrCodeBadRequestException = "BadRequestException" + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The request could not be processed because of conflict in the current state + // of the resource. + ErrCodeConflictException = "ConflictException" + // ErrCodeForbiddenException for service response error code // "ForbiddenException". // @@ -59,6 +66,7 @@ const ( var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, "ForbiddenException": newErrorForbiddenException, "NotFoundException": newErrorNotFoundException, "ResourceLimitExceededException": newErrorResourceLimitExceededException, diff --git a/service/chimesdkmessaging/api.go b/service/chimesdkmessaging/api.go index 56e0bf08781..b5eb010e15c 100644 --- a/service/chimesdkmessaging/api.go +++ b/service/chimesdkmessaging/api.go @@ -62,8 +62,8 @@ func (c *ChimeSDKMessaging) AssociateChannelFlowRequest(input *AssociateChannelF // the DisassociateChannelFlow API. // // Only administrators or channel moderators can associate a channel flow. The -// x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -164,7 +164,7 @@ func (c *ChimeSDKMessaging) BatchCreateChannelMembershipRequest(input *BatchCrea // BatchCreateChannelMembership API operation for Amazon Chime SDK Messaging. // -// Adds a specified number of users to a channel. +// Adds a specified number of users and bots to a channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -375,8 +375,8 @@ func (c *ChimeSDKMessaging) CreateChannelRequest(input *CreateChannelInput) (req // // Restriction: You can't change a channel's privacy. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -484,8 +484,8 @@ func (c *ChimeSDKMessaging) CreateChannelBanRequest(input *CreateChannelBanInput // If you ban a user who is already part of a channel, that user is automatically // kicked from the channel. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -704,7 +704,7 @@ func (c *ChimeSDKMessaging) CreateChannelMembershipRequest(input *CreateChannelM // CreateChannelMembership API operation for Amazon Chime SDK Messaging. // -// Adds a user to a channel. The InvitedBy field in ChannelMembership is derived +// Adds a member to a channel. The InvitedBy field in ChannelMembership is derived // from the request header. A channel member can: // // - List messages @@ -724,8 +724,8 @@ func (c *ChimeSDKMessaging) CreateChannelMembershipRequest(input *CreateChannelM // // - Private Channels: You must be a member to list or send messages. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUserArn +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -841,8 +841,9 @@ func (c *ChimeSDKMessaging) CreateChannelModeratorRequest(input *CreateChannelMo // // - List messages in the channel. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBotof the user that makes the API call as the value in the +// header. // // 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 @@ -947,8 +948,8 @@ func (c *ChimeSDKMessaging) DeleteChannelRequest(input *DeleteChannelInput) (req // Immediately makes a channel and its memberships inaccessible and marks them // for deletion. This is an irreversible process. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUserArn +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -1043,10 +1044,10 @@ func (c *ChimeSDKMessaging) DeleteChannelBanRequest(input *DeleteChannelBanInput // DeleteChannelBan API operation for Amazon Chime SDK Messaging. // -// Removes a user from a channel's ban list. +// Removes a member from a channel's ban list. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -1351,8 +1352,8 @@ func (c *ChimeSDKMessaging) DeleteChannelMessageRequest(input *DeleteChannelMess // makes messages inaccessible immediately. A background process deletes any // revisions created by UpdateChannelMessage. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -1449,8 +1450,8 @@ func (c *ChimeSDKMessaging) DeleteChannelModeratorRequest(input *DeleteChannelMo // // Deletes a channel moderator. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -1640,8 +1641,8 @@ func (c *ChimeSDKMessaging) DescribeChannelRequest(input *DescribeChannelInput) // // Returns the full details of a channel in an Amazon Chime AppInstance. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -1737,8 +1738,8 @@ func (c *ChimeSDKMessaging) DescribeChannelBanRequest(input *DescribeChannelBanI // // Returns the full details of a channel ban. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -1932,8 +1933,8 @@ func (c *ChimeSDKMessaging) DescribeChannelMembershipRequest(input *DescribeChan // // Returns the full details of a user's channel membership. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -2031,10 +2032,10 @@ func (c *ChimeSDKMessaging) DescribeChannelMembershipForAppInstanceUserRequest(i // DescribeChannelMembershipForAppInstanceUser API operation for Amazon Chime SDK Messaging. // // Returns the details of a channel based on the membership of the specified -// AppInstanceUser. +// AppInstanceUser or AppInstanceBot. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -2128,10 +2129,11 @@ func (c *ChimeSDKMessaging) DescribeChannelModeratedByAppInstanceUserRequest(inp // DescribeChannelModeratedByAppInstanceUser API operation for Amazon Chime SDK Messaging. // -// Returns the full details of a channel moderated by the specified AppInstanceUser. +// Returns the full details of a channel moderated by the specified AppInstanceUser +// or AppInstanceBot. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -2330,8 +2332,9 @@ func (c *ChimeSDKMessaging) DisassociateChannelFlowRequest(input *DisassociateCh // messages to that channel stop going through the channel flow processor. // // Only administrators or channel moderators can disassociate a channel flow. -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -2432,12 +2435,15 @@ func (c *ChimeSDKMessaging) GetChannelMembershipPreferencesRequest(input *GetCha // GetChannelMembershipPreferences API operation for Amazon Chime SDK Messaging. // -// Gets the membership preferences of an AppInstanceUser for the specified channel. -// The AppInstanceUser must be a member of the channel. Only the AppInstanceUser -// who owns the membership can retrieve preferences. Users in the AppInstanceAdmin -// and channel moderator roles can't retrieve preferences for other users. Banned -// users can't retrieve membership preferences for the channel from which they -// are banned. +// Gets the membership preferences of an AppInstanceUser or AppInstanceBot for +// the specified channel. A user or a bot must be a member of the channel and +// own the membership to be able to retrieve membership preferences. Users or +// bots in the AppInstanceAdmin and channel moderator roles can't retrieve preferences +// for other users or bots. Banned users or bots can't retrieve membership preferences +// for the channel from which they are banned. +// +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -2533,8 +2539,8 @@ func (c *ChimeSDKMessaging) GetChannelMessageRequest(input *GetChannelMessageInp // // Gets the full details of a channel message. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -2659,8 +2665,9 @@ func (c *ChimeSDKMessaging) GetChannelMessageStatusRequest(input *GetChannelMess // // - Only the message sender can invoke this API. // -// - The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header +// - The x-amz-chime-bearer request header is mandatory. Use the ARN of the +// AppInstanceUser or AppInstanceBot that makes the API call as the value +// in the header. // // 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 @@ -2950,10 +2957,10 @@ func (c *ChimeSDKMessaging) ListChannelBansRequest(input *ListChannelBansInput) // ListChannelBans API operation for Amazon Chime SDK Messaging. // -// Lists all the users banned from a particular channel. +// Lists all the users and bots banned from a particular channel. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -3258,8 +3265,8 @@ func (c *ChimeSDKMessaging) ListChannelMembershipsRequest(input *ListChannelMemb // // Lists all channel memberships in a channel. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // If you want to list the channels to which a specific app instance user belongs, // see the ListChannelMembershipsForAppInstanceUser (https://docs.aws.amazon.com/chime/latest/APIReference/API_messaging-chime_ListChannelMembershipsForAppInstanceUser.html) @@ -3414,11 +3421,12 @@ func (c *ChimeSDKMessaging) ListChannelMembershipsForAppInstanceUserRequest(inpu // ListChannelMembershipsForAppInstanceUser API operation for Amazon Chime SDK Messaging. // -// Lists all channels that a particular AppInstanceUser is a part of. Only an -// AppInstanceAdmin can call the API with a user ARN that is not their own. +// Lists all channels that anr AppInstanceUser or AppInstanceBot is a part of. +// Only an AppInstanceAdmin can call the API with a user ARN that is not their +// own. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -3576,8 +3584,9 @@ func (c *ChimeSDKMessaging) ListChannelMessagesRequest(input *ListChannelMessage // not deleted. Deleted messages do not appear in the results. This action always // returns the latest version of an edited message. // -// Also, the x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// Also, the x-amz-chime-bearer request header is mandatory. Use the ARN of +// the AppInstanceUser or AppInstanceBot that makes the API call as the value +// in the header. // // 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 @@ -3730,8 +3739,8 @@ func (c *ChimeSDKMessaging) ListChannelModeratorsRequest(input *ListChannelModer // // Lists all the moderators for a channel. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -3892,8 +3901,8 @@ func (c *ChimeSDKMessaging) ListChannelsRequest(input *ListChannelsInput) (req * // - Only an AppInstanceAdmin can set privacy = PRIVATE to list the private // channels in an account. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -4199,8 +4208,8 @@ func (c *ChimeSDKMessaging) ListChannelsModeratedByAppInstanceUserRequest(input // // A list of the channels moderated by an AppInstanceUser. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -4549,6 +4558,114 @@ func (c *ChimeSDKMessaging) ListTagsForResourceWithContext(ctx aws.Context, inpu return out, req.Send() } +const opPutChannelExpirationSettings = "PutChannelExpirationSettings" + +// PutChannelExpirationSettingsRequest generates a "aws/request.Request" representing the +// client's request for the PutChannelExpirationSettings 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 PutChannelExpirationSettings for more information on using the PutChannelExpirationSettings +// 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 PutChannelExpirationSettingsRequest method. +// req, resp := client.PutChannelExpirationSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/PutChannelExpirationSettings +func (c *ChimeSDKMessaging) PutChannelExpirationSettingsRequest(input *PutChannelExpirationSettingsInput) (req *request.Request, output *PutChannelExpirationSettingsOutput) { + op := &request.Operation{ + Name: opPutChannelExpirationSettings, + HTTPMethod: "PUT", + HTTPPath: "/channels/{channelArn}/expiration-settings", + } + + if input == nil { + input = &PutChannelExpirationSettingsInput{} + } + + output = &PutChannelExpirationSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutChannelExpirationSettings API operation for Amazon Chime SDK Messaging. +// +// Sets the number of days before the channel is automatically deleted. +// +// - A background process deletes expired channels within 6 hours of expiration. +// Actual deletion times may vary. +// +// - Expired channels that have not yet been deleted appear as active, and +// you can update their expiration settings. The system honors the new settings. +// +// - The x-amz-chime-bearer request header is mandatory. Use the ARN of the +// AppInstanceUser or AppInstanceBot that makes the API call as the value +// in the header. +// +// 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 SDK Messaging's +// API operation PutChannelExpirationSettings for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// The input parameters don't match the service's restrictions. +// +// - ForbiddenException +// The client is permanently forbidden from making the request. +// +// - ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// - UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// - ThrottledClientException +// The client exceeded its request rate limit. +// +// - ServiceUnavailableException +// The service is currently unavailable. +// +// - ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/PutChannelExpirationSettings +func (c *ChimeSDKMessaging) PutChannelExpirationSettings(input *PutChannelExpirationSettingsInput) (*PutChannelExpirationSettingsOutput, error) { + req, out := c.PutChannelExpirationSettingsRequest(input) + return out, req.Send() +} + +// PutChannelExpirationSettingsWithContext is the same as PutChannelExpirationSettings with the addition of +// the ability to pass a context and additional request options. +// +// See PutChannelExpirationSettings 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 *ChimeSDKMessaging) PutChannelExpirationSettingsWithContext(ctx aws.Context, input *PutChannelExpirationSettingsInput, opts ...request.Option) (*PutChannelExpirationSettingsOutput, error) { + req, out := c.PutChannelExpirationSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPutChannelMembershipPreferences = "PutChannelMembershipPreferences" // PutChannelMembershipPreferencesRequest generates a "aws/request.Request" representing the @@ -4592,12 +4709,15 @@ func (c *ChimeSDKMessaging) PutChannelMembershipPreferencesRequest(input *PutCha // PutChannelMembershipPreferences API operation for Amazon Chime SDK Messaging. // -// Sets the membership preferences of an AppInstanceUser for the specified channel. -// The AppInstanceUser must be a member of the channel. Only the AppInstanceUser -// who owns the membership can set preferences. Users in the AppInstanceAdmin -// and channel moderator roles can't set preferences for other users. Banned -// users can't set membership preferences for the channel from which they are -// banned. +// Sets the membership preferences of an AppInstanceUser or AppIntanceBot for +// the specified channel. The user or bot must be a member of the channel. Only +// the user or bot who owns the membership can set preferences. Users or bots +// in the AppInstanceAdmin and channel moderator roles can't set preferences +// for other users or users. Banned users or bots can't set membership preferences +// for the channel from which they are banned. +// +// The x-amz-chime-bearer request header is mandatory. Use the ARN of an AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -4801,8 +4921,8 @@ func (c *ChimeSDKMessaging) RedactChannelMessageRequest(input *RedactChannelMess // Redacts message content, but not metadata. The message exists in the back // end, but the action returns null content, and the state shows as redacted. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -4906,9 +5026,12 @@ func (c *ChimeSDKMessaging) SearchChannelsRequest(input *SearchChannelsInput) (r // SearchChannels API operation for Amazon Chime SDK Messaging. // -// Allows ChimeBearer to search channels by channel members. AppInstanceUsers -// can search across the channels that they belong to. AppInstanceAdmins can -// search across all channels. +// Allows the ChimeBearer to search channels by channel members. Users or bots +// can search across the channels that they belong to. Users in the AppInstanceAdmin +// role can search across all channels. +// +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -5055,8 +5178,8 @@ func (c *ChimeSDKMessaging) SendChannelMessageRequest(input *SendChannelMessageI // // Sends a message to a particular channel that the member is a part of. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // Also, STANDARD messages can contain 4KB of data and the 1KB of metadata. // CONTROL messages can contain 30 bytes of data and no metadata. @@ -5355,8 +5478,8 @@ func (c *ChimeSDKMessaging) UpdateChannelRequest(input *UpdateChannelInput) (req // // Restriction: You can't change a channel's privacy. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -5554,8 +5677,8 @@ func (c *ChimeSDKMessaging) UpdateChannelMessageRequest(input *UpdateChannelMess // // Updates the content of a message. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -5655,8 +5778,8 @@ func (c *ChimeSDKMessaging) UpdateChannelReadMarkerRequest(input *UpdateChannelR // // The details of the time when a user last read messages in a channel. // -// The x-amz-chime-bearer request header is mandatory. Use the AppInstanceUserArn -// of the user that makes the API call as the value in the header. +// The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser +// or AppInstanceBot that makes the API call as the value in the header. // // 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 @@ -5937,7 +6060,7 @@ func (s *BadRequestException) RequestID() string { type BatchChannelMemberships struct { _ struct{} `type:"structure"` - // The ARN of the channel to which you're adding users. + // The ARN of the channel to which you're adding members. ChannelArn *string `min:"5" type:"string"` // The identifier of the member who invited another member. @@ -5949,7 +6072,7 @@ type BatchChannelMemberships struct { // The ID of the SubChannel. SubChannelId *string `min:"1" type:"string"` - // The membership types set for the channel users. + // The membership types set for the channel members. Type *string `type:"string" enum:"ChannelMembershipType"` } @@ -6054,17 +6177,18 @@ func (s *BatchCreateChannelMembershipError) SetMemberArn(v string) *BatchCreateC type BatchCreateChannelMembershipInput struct { _ struct{} `type:"structure"` - // The ARN of the channel to which you're adding users. + // The ARN of the channel to which you're adding users or bots. // // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` - // The AppInstanceUserArns of the members you want to add to the channel. + // The ARNs of the members you want to add to the channel. Only AppInstanceUsers + // and AppInstanceBots can be added as a channel member. // // MemberArns is a required field MemberArns []*string `min:"1" type:"list" required:"true"` @@ -6222,6 +6346,9 @@ type Channel struct { // channel can support a maximum of 1-million members. ElasticChannelConfiguration *ElasticChannelConfiguration `type:"structure"` + // Settings that control when a channel expires. + ExpirationSettings *ExpirationSettings `type:"structure"` + // The time at which a member sent the last message in the channel. LastMessageTimestamp *time.Time `type:"timestamp"` @@ -6297,6 +6424,12 @@ func (s *Channel) SetElasticChannelConfiguration(v *ElasticChannelConfiguration) return s } +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *Channel) SetExpirationSettings(v *ExpirationSettings) *Channel { + s.ExpirationSettings = v + return s +} + // SetLastMessageTimestamp sets the LastMessageTimestamp field's value. func (s *Channel) SetLastMessageTimestamp(v time.Time) *Channel { s.LastMessageTimestamp = &v @@ -6977,6 +7110,13 @@ type ChannelMessage struct { // String and GoString methods. Content *string `type:"string" sensitive:"true"` + // The content type of the channel message. + // + // ContentType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ChannelMessage's + // String and GoString methods. + ContentType *string `type:"string" sensitive:"true"` + // The time at which the message was created. CreatedTimestamp *time.Time `type:"timestamp"` @@ -7049,6 +7189,12 @@ func (s *ChannelMessage) SetContent(v string) *ChannelMessage { return s } +// SetContentType sets the ContentType field's value. +func (s *ChannelMessage) SetContentType(v string) *ChannelMessage { + s.ContentType = &v + return s +} + // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *ChannelMessage) SetCreatedTimestamp(v time.Time) *ChannelMessage { s.CreatedTimestamp = &v @@ -7132,6 +7278,13 @@ type ChannelMessageCallback struct { // String and GoString methods. Content *string `min:"1" type:"string" sensitive:"true"` + // The content type of the call-back message. + // + // ContentType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ChannelMessageCallback's + // String and GoString methods. + ContentType *string `type:"string" sensitive:"true"` + // The attributes for the message, used for message filtering along with a FilterRule // defined in the PushNotificationPreferences. MessageAttributes map[string]*MessageAttributeValue `type:"map"` @@ -7188,6 +7341,11 @@ func (s *ChannelMessageCallback) Validate() error { if s.SubChannelId != nil && len(*s.SubChannelId) < 1 { invalidParams.Add(request.NewErrParamMinLen("SubChannelId", 1)) } + if s.PushNotification != nil { + if err := s.PushNotification.Validate(); err != nil { + invalidParams.AddNested("PushNotification", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -7201,6 +7359,12 @@ func (s *ChannelMessageCallback) SetContent(v string) *ChannelMessageCallback { return s } +// SetContentType sets the ContentType field's value. +func (s *ChannelMessageCallback) SetContentType(v string) *ChannelMessageCallback { + s.ContentType = &v + return s +} + // SetMessageAttributes sets the MessageAttributes field's value. func (s *ChannelMessageCallback) SetMessageAttributes(v map[string]*MessageAttributeValue) *ChannelMessageCallback { s.MessageAttributes = v @@ -7283,6 +7447,13 @@ type ChannelMessageSummary struct { // String and GoString methods. Content *string `type:"string" sensitive:"true"` + // The content type of the channel messsage listed in the summary. + // + // ContentType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ChannelMessageSummary's + // String and GoString methods. + ContentType *string `type:"string" sensitive:"true"` + // The time at which the message summary was created. CreatedTimestamp *time.Time `type:"timestamp"` @@ -7344,6 +7515,12 @@ func (s *ChannelMessageSummary) SetContent(v string) *ChannelMessageSummary { return s } +// SetContentType sets the ContentType field's value. +func (s *ChannelMessageSummary) SetContentType(v string) *ChannelMessageSummary { + s.ContentType = &v + return s +} + // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *ChannelMessageSummary) SetCreatedTimestamp(v time.Time) *ChannelMessageSummary { s.CreatedTimestamp = &v @@ -7687,7 +7864,7 @@ type CreateChannelBanInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -7988,7 +8165,7 @@ type CreateChannelInput struct { // String and GoString methods. ChannelId *string `min:"1" type:"string" sensitive:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -8004,6 +8181,10 @@ type CreateChannelInput struct { // channel can support a maximum of 1-million users, excluding moderators. ElasticChannelConfiguration *ElasticChannelConfiguration `type:"structure"` + // Settings that control the interval after which the channel is automatically + // deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` + // The ARNs of the channel members in the request. MemberArns []*string `min:"1" type:"list"` @@ -8100,6 +8281,11 @@ func (s *CreateChannelInput) Validate() error { invalidParams.AddNested("ElasticChannelConfiguration", err.(request.ErrInvalidParams)) } } + if s.ExpirationSettings != nil { + if err := s.ExpirationSettings.Validate(); err != nil { + invalidParams.AddNested("ExpirationSettings", err.(request.ErrInvalidParams)) + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -8147,6 +8333,12 @@ func (s *CreateChannelInput) SetElasticChannelConfiguration(v *ElasticChannelCon return s } +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *CreateChannelInput) SetExpirationSettings(v *ExpirationSettings) *CreateChannelInput { + s.ExpirationSettings = v + return s +} + // SetMemberArns sets the MemberArns field's value. func (s *CreateChannelInput) SetMemberArns(v []*string) *CreateChannelInput { s.MemberArns = v @@ -8197,7 +8389,7 @@ type CreateChannelMembershipInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -8366,7 +8558,7 @@ type CreateChannelModeratorInput struct { // ChannelModeratorArn is a required field ChannelModeratorArn *string `min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -8515,7 +8707,7 @@ type DeleteChannelBanInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -8691,7 +8883,7 @@ type DeleteChannelInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -8769,7 +8961,7 @@ type DeleteChannelMembershipInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -8888,7 +9080,7 @@ type DeleteChannelMessageInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9013,7 +9205,7 @@ type DeleteChannelModeratorInput struct { // ChannelModeratorArn is a required field ChannelModeratorArn *string `location:"uri" locationName:"channelModeratorArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9206,7 +9398,7 @@ type DescribeChannelBanInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9400,7 +9592,7 @@ type DescribeChannelInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9461,7 +9653,7 @@ func (s *DescribeChannelInput) SetChimeBearer(v string) *DescribeChannelInput { type DescribeChannelMembershipForAppInstanceUserInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the user in a channel. + // The ARN of the user or bot in a channel. // // AppInstanceUserArn is a required field AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string" required:"true"` @@ -9471,7 +9663,7 @@ type DescribeChannelMembershipForAppInstanceUserInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9580,7 +9772,7 @@ type DescribeChannelMembershipInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9704,7 +9896,7 @@ func (s *DescribeChannelMembershipOutput) SetChannelMembership(v *ChannelMembers type DescribeChannelModeratedByAppInstanceUserInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the AppInstanceUser in the moderated channel. + // The ARN of the user or bot in the moderated channel. // // AppInstanceUserArn is a required field AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string" required:"true"` @@ -9714,7 +9906,7 @@ type DescribeChannelModeratedByAppInstanceUserInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -9828,7 +10020,7 @@ type DescribeChannelModeratorInput struct { // ChannelModeratorArn is a required field ChannelModeratorArn *string `location:"uri" locationName:"channelModeratorArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -10152,6 +10344,70 @@ func (s *ElasticChannelConfiguration) SetTargetMembershipsPerSubChannel(v int64) return s } +// Settings that control the interval after which a channel is deleted. +type ExpirationSettings struct { + _ struct{} `type:"structure"` + + // The conditions that must be met for a channel to expire. + // + // ExpirationCriterion is a required field + ExpirationCriterion *string `type:"string" required:"true" enum:"ExpirationCriterion"` + + // The period in days after which the system automatically deletes a channel. + // + // ExpirationDays is a required field + ExpirationDays *int64 `min:"1" type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExpirationSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExpirationSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExpirationSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExpirationSettings"} + if s.ExpirationCriterion == nil { + invalidParams.Add(request.NewErrParamRequired("ExpirationCriterion")) + } + if s.ExpirationDays == nil { + invalidParams.Add(request.NewErrParamRequired("ExpirationDays")) + } + if s.ExpirationDays != nil && *s.ExpirationDays < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpirationDays", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExpirationCriterion sets the ExpirationCriterion field's value. +func (s *ExpirationSettings) SetExpirationCriterion(v string) *ExpirationSettings { + s.ExpirationCriterion = &v + return s +} + +// SetExpirationDays sets the ExpirationDays field's value. +func (s *ExpirationSettings) SetExpirationDays(v int64) *ExpirationSettings { + s.ExpirationDays = &v + return s +} + // The client is permanently forbidden from making the request. type ForbiddenException struct { _ struct{} `type:"structure"` @@ -10226,7 +10482,7 @@ type GetChannelMembershipPreferencesInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserARN of the user making the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -10358,7 +10614,7 @@ type GetChannelMessageInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -10741,7 +10997,7 @@ func (s *GetMessagingStreamingConfigurationsOutput) SetStreamingConfigurations(v return s } -// The details of a user. +// The details of a user or bot. type Identity struct { _ struct{} `type:"structure"` @@ -10858,7 +11114,7 @@ type ListChannelBansInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -11116,10 +11372,10 @@ func (s *ListChannelFlowsOutput) SetNextToken(v string) *ListChannelFlowsOutput type ListChannelMembershipsForAppInstanceUserInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the AppInstanceUsers + // The ARN of the user or bot. AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -11252,7 +11508,7 @@ type ListChannelMembershipsInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -11424,7 +11680,7 @@ type ListChannelMessagesInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -11620,7 +11876,7 @@ type ListChannelModeratorsInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -11884,7 +12140,7 @@ type ListChannelsInput struct { // AppInstanceArn is a required field AppInstanceArn *string `location:"querystring" locationName:"app-instance-arn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -11980,10 +12236,10 @@ func (s *ListChannelsInput) SetPrivacy(v string) *ListChannelsInput { type ListChannelsModeratedByAppInstanceUserInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the user in the moderated channel. + // The ARN of the user or bot in the moderated channel. AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -12684,14 +12940,14 @@ type PushNotificationConfiguration struct { // Body is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PushNotificationConfiguration's // String and GoString methods. - Body *string `type:"string" sensitive:"true"` + Body *string `min:"1" type:"string" sensitive:"true"` // The title of the push notification. // // Title is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PushNotificationConfiguration's // String and GoString methods. - Title *string `type:"string" sensitive:"true"` + Title *string `min:"1" type:"string" sensitive:"true"` // Enum value that indicates the type of the push notification for a message. // DEFAULT: Normal mobile push notification. VOIP: VOIP mobile push notification. @@ -12716,6 +12972,22 @@ func (s PushNotificationConfiguration) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *PushNotificationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PushNotificationConfiguration"} + if s.Body != nil && len(*s.Body) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Body", 1)) + } + if s.Title != nil && len(*s.Title) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Title", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetBody sets the Body field's value. func (s *PushNotificationConfiguration) SetBody(v string) *PushNotificationConfiguration { s.Body = &v @@ -12800,6 +13072,121 @@ func (s *PushNotificationPreferences) SetFilterRule(v string) *PushNotificationP return s } +type PutChannelExpirationSettingsInput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. + ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string"` + + // Settings that control the interval after which a channel is deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutChannelExpirationSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutChannelExpirationSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutChannelExpirationSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutChannelExpirationSettingsInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.ChimeBearer != nil && len(*s.ChimeBearer) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChimeBearer", 5)) + } + if s.ExpirationSettings != nil { + if err := s.ExpirationSettings.Validate(); err != nil { + invalidParams.AddNested("ExpirationSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *PutChannelExpirationSettingsInput) SetChannelArn(v string) *PutChannelExpirationSettingsInput { + s.ChannelArn = &v + return s +} + +// SetChimeBearer sets the ChimeBearer field's value. +func (s *PutChannelExpirationSettingsInput) SetChimeBearer(v string) *PutChannelExpirationSettingsInput { + s.ChimeBearer = &v + return s +} + +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *PutChannelExpirationSettingsInput) SetExpirationSettings(v *ExpirationSettings) *PutChannelExpirationSettingsInput { + s.ExpirationSettings = v + return s +} + +type PutChannelExpirationSettingsOutput struct { + _ struct{} `type:"structure"` + + // The channel ARN. + ChannelArn *string `min:"5" type:"string"` + + // Settings that control the interval after which a channel is deleted. + ExpirationSettings *ExpirationSettings `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutChannelExpirationSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutChannelExpirationSettingsOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *PutChannelExpirationSettingsOutput) SetChannelArn(v string) *PutChannelExpirationSettingsOutput { + s.ChannelArn = &v + return s +} + +// SetExpirationSettings sets the ExpirationSettings field's value. +func (s *PutChannelExpirationSettingsOutput) SetExpirationSettings(v *ExpirationSettings) *PutChannelExpirationSettingsOutput { + s.ExpirationSettings = v + return s +} + type PutChannelMembershipPreferencesInput struct { _ struct{} `type:"structure"` @@ -12808,12 +13195,12 @@ type PutChannelMembershipPreferencesInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserARN of the user making the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the member setting the preferences. + // The ARN of the member setting the preferences. // // MemberArn is a required field MemberArn *string `location:"uri" locationName:"memberArn" min:"5" type:"string" required:"true"` @@ -13066,7 +13453,7 @@ type RedactChannelMessageInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -13510,7 +13897,7 @@ type SendChannelMessageInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -13531,6 +13918,13 @@ type SendChannelMessageInput struct { // Content is a required field Content *string `min:"1" type:"string" required:"true" sensitive:"true"` + // The content type of the channel message. + // + // ContentType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SendChannelMessageInput's + // String and GoString methods. + ContentType *string `type:"string" sensitive:"true"` + // The attributes for the message, used for message filtering along with a FilterRule // defined in the PushNotificationPreferences. MessageAttributes map[string]*MessageAttributeValue `type:"map"` @@ -13610,6 +14004,11 @@ func (s *SendChannelMessageInput) Validate() error { if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } + if s.PushNotification != nil { + if err := s.PushNotification.Validate(); err != nil { + invalidParams.AddNested("PushNotification", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -13641,6 +14040,12 @@ func (s *SendChannelMessageInput) SetContent(v string) *SendChannelMessageInput return s } +// SetContentType sets the ContentType field's value. +func (s *SendChannelMessageInput) SetContentType(v string) *SendChannelMessageInput { + s.ContentType = &v + return s +} + // SetMessageAttributes sets the MessageAttributes field's value. func (s *SendChannelMessageInput) SetMessageAttributes(v map[string]*MessageAttributeValue) *SendChannelMessageInput { s.MessageAttributes = v @@ -14501,7 +14906,7 @@ type UpdateChannelInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -14605,7 +15010,7 @@ type UpdateChannelMessageInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -14615,7 +15020,16 @@ type UpdateChannelMessageInput struct { // Content is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by UpdateChannelMessageInput's // String and GoString methods. - Content *string `type:"string" sensitive:"true"` + // + // Content is a required field + Content *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The content type of the channel message. + // + // ContentType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateChannelMessageInput's + // String and GoString methods. + ContentType *string `type:"string" sensitive:"true"` // The ID string of the message being updated. // @@ -14669,6 +15083,12 @@ func (s *UpdateChannelMessageInput) Validate() error { if s.ChimeBearer != nil && len(*s.ChimeBearer) < 5 { invalidParams.Add(request.NewErrParamMinLen("ChimeBearer", 5)) } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } if s.MessageId == nil { invalidParams.Add(request.NewErrParamRequired("MessageId")) } @@ -14703,6 +15123,12 @@ func (s *UpdateChannelMessageInput) SetContent(v string) *UpdateChannelMessageIn return s } +// SetContentType sets the ContentType field's value. +func (s *UpdateChannelMessageInput) SetContentType(v string) *UpdateChannelMessageInput { + s.ContentType = &v + return s +} + // SetMessageId sets the MessageId field's value. func (s *UpdateChannelMessageInput) SetMessageId(v string) *UpdateChannelMessageInput { s.MessageId = &v @@ -14818,7 +15244,7 @@ type UpdateChannelReadMarkerInput struct { // ChannelArn is a required field ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The AppInstanceUserArn of the user that makes the API call. + // The ARN of the AppInstanceUser or AppInstanceBot that makes the API call. // // ChimeBearer is a required field ChimeBearer *string `location:"header" locationName:"x-amz-chime-bearer" min:"5" type:"string" required:"true"` @@ -15120,6 +15546,22 @@ func ErrorCode_Values() []string { } } +const ( + // ExpirationCriterionCreatedTimestamp is a ExpirationCriterion enum value + ExpirationCriterionCreatedTimestamp = "CREATED_TIMESTAMP" + + // ExpirationCriterionLastMessageTimestamp is a ExpirationCriterion enum value + ExpirationCriterionLastMessageTimestamp = "LAST_MESSAGE_TIMESTAMP" +) + +// ExpirationCriterion_Values returns all elements of the ExpirationCriterion enum +func ExpirationCriterion_Values() []string { + return []string{ + ExpirationCriterionCreatedTimestamp, + ExpirationCriterionLastMessageTimestamp, + } +} + const ( // FallbackActionContinue is a FallbackAction enum value FallbackActionContinue = "CONTINUE" diff --git a/service/chimesdkmessaging/chimesdkmessagingiface/interface.go b/service/chimesdkmessaging/chimesdkmessagingiface/interface.go index 10894b0e800..0880db1a333 100644 --- a/service/chimesdkmessaging/chimesdkmessagingiface/interface.go +++ b/service/chimesdkmessaging/chimesdkmessagingiface/interface.go @@ -246,6 +246,10 @@ type ChimeSDKMessagingAPI interface { ListTagsForResourceWithContext(aws.Context, *chimesdkmessaging.ListTagsForResourceInput, ...request.Option) (*chimesdkmessaging.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*chimesdkmessaging.ListTagsForResourceInput) (*request.Request, *chimesdkmessaging.ListTagsForResourceOutput) + PutChannelExpirationSettings(*chimesdkmessaging.PutChannelExpirationSettingsInput) (*chimesdkmessaging.PutChannelExpirationSettingsOutput, error) + PutChannelExpirationSettingsWithContext(aws.Context, *chimesdkmessaging.PutChannelExpirationSettingsInput, ...request.Option) (*chimesdkmessaging.PutChannelExpirationSettingsOutput, error) + PutChannelExpirationSettingsRequest(*chimesdkmessaging.PutChannelExpirationSettingsInput) (*request.Request, *chimesdkmessaging.PutChannelExpirationSettingsOutput) + PutChannelMembershipPreferences(*chimesdkmessaging.PutChannelMembershipPreferencesInput) (*chimesdkmessaging.PutChannelMembershipPreferencesOutput, error) PutChannelMembershipPreferencesWithContext(aws.Context, *chimesdkmessaging.PutChannelMembershipPreferencesInput, ...request.Option) (*chimesdkmessaging.PutChannelMembershipPreferencesOutput, error) PutChannelMembershipPreferencesRequest(*chimesdkmessaging.PutChannelMembershipPreferencesInput) (*request.Request, *chimesdkmessaging.PutChannelMembershipPreferencesOutput) diff --git a/service/chimesdkvoice/api.go b/service/chimesdkvoice/api.go index 80a04580993..6b61efa43a4 100644 --- a/service/chimesdkvoice/api.go +++ b/service/chimesdkvoice/api.go @@ -1001,6 +1001,194 @@ func (c *ChimeSDKVoice) CreateVoiceConnectorGroupWithContext(ctx aws.Context, in return out, req.Send() } +const opCreateVoiceProfile = "CreateVoiceProfile" + +// CreateVoiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceProfile 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 CreateVoiceProfile for more information on using the CreateVoiceProfile +// 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 CreateVoiceProfileRequest method. +// req, resp := client.CreateVoiceProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceProfile +func (c *ChimeSDKVoice) CreateVoiceProfileRequest(input *CreateVoiceProfileInput) (req *request.Request, output *CreateVoiceProfileOutput) { + op := &request.Operation{ + Name: opCreateVoiceProfile, + HTTPMethod: "POST", + HTTPPath: "/voice-profiles", + } + + if input == nil { + input = &CreateVoiceProfileInput{} + } + + output = &CreateVoiceProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVoiceProfile API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation CreateVoiceProfile for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ResourceLimitExceededException +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - NotFoundException +// +// - ConflictException +// +// - GoneException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceProfile +func (c *ChimeSDKVoice) CreateVoiceProfile(input *CreateVoiceProfileInput) (*CreateVoiceProfileOutput, error) { + req, out := c.CreateVoiceProfileRequest(input) + return out, req.Send() +} + +// CreateVoiceProfileWithContext is the same as CreateVoiceProfile with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVoiceProfile 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 *ChimeSDKVoice) CreateVoiceProfileWithContext(ctx aws.Context, input *CreateVoiceProfileInput, opts ...request.Option) (*CreateVoiceProfileOutput, error) { + req, out := c.CreateVoiceProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateVoiceProfileDomain = "CreateVoiceProfileDomain" + +// CreateVoiceProfileDomainRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceProfileDomain 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 CreateVoiceProfileDomain for more information on using the CreateVoiceProfileDomain +// 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 CreateVoiceProfileDomainRequest method. +// req, resp := client.CreateVoiceProfileDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceProfileDomain +func (c *ChimeSDKVoice) CreateVoiceProfileDomainRequest(input *CreateVoiceProfileDomainInput) (req *request.Request, output *CreateVoiceProfileDomainOutput) { + op := &request.Operation{ + Name: opCreateVoiceProfileDomain, + HTTPMethod: "POST", + HTTPPath: "/voice-profile-domains", + } + + if input == nil { + input = &CreateVoiceProfileDomainInput{} + } + + output = &CreateVoiceProfileDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVoiceProfileDomain API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation CreateVoiceProfileDomain for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - ConflictException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceProfileDomain +func (c *ChimeSDKVoice) CreateVoiceProfileDomain(input *CreateVoiceProfileDomainInput) (*CreateVoiceProfileDomainOutput, error) { + req, out := c.CreateVoiceProfileDomainRequest(input) + return out, req.Send() +} + +// CreateVoiceProfileDomainWithContext is the same as CreateVoiceProfileDomain with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVoiceProfileDomain 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 *ChimeSDKVoice) CreateVoiceProfileDomainWithContext(ctx aws.Context, input *CreateVoiceProfileDomainInput, opts ...request.Option) (*CreateVoiceProfileDomainOutput, error) { + req, out := c.CreateVoiceProfileDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeletePhoneNumber = "DeletePhoneNumber" // DeletePhoneNumberRequest generates a "aws/request.Request" representing the @@ -2077,65 +2265,70 @@ func (c *ChimeSDKVoice) DeleteVoiceConnectorTerminationCredentialsWithContext(ct return out, req.Send() } -const opDisassociatePhoneNumbersFromVoiceConnector = "DisassociatePhoneNumbersFromVoiceConnector" +const opDeleteVoiceProfile = "DeleteVoiceProfile" -// DisassociatePhoneNumbersFromVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the DisassociatePhoneNumbersFromVoiceConnector operation. The "output" return +// DeleteVoiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceProfile 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 DisassociatePhoneNumbersFromVoiceConnector for more information on using the DisassociatePhoneNumbersFromVoiceConnector +// See DeleteVoiceProfile for more information on using the DeleteVoiceProfile // 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 DisassociatePhoneNumbersFromVoiceConnectorRequest method. -// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorRequest(params) +// // Example sending a request using the DeleteVoiceProfileRequest method. +// req, resp := client.DeleteVoiceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnector -func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceProfile +func (c *ChimeSDKVoice) DeleteVoiceProfileRequest(input *DeleteVoiceProfileInput) (req *request.Request, output *DeleteVoiceProfileOutput) { op := &request.Operation{ - Name: opDisassociatePhoneNumbersFromVoiceConnector, - HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", + Name: opDeleteVoiceProfile, + HTTPMethod: "DELETE", + HTTPPath: "/voice-profiles/{VoiceProfileId}", } if input == nil { - input = &DisassociatePhoneNumbersFromVoiceConnectorInput{} + input = &DeleteVoiceProfileInput{} } - output = &DisassociatePhoneNumbersFromVoiceConnectorOutput{} + output = &DeleteVoiceProfileOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime SDK Voice. +// DeleteVoiceProfile API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information. +// API operation DeleteVoiceProfile for usage and error information. // // Returned Error Types: // -// - UnauthorizedClientException +// - BadRequestException // -// - NotFoundException +// - UnauthorizedClientException // // - ForbiddenException // -// - BadRequestException +// - AccessDeniedException +// +// - NotFoundException +// +// - ConflictException // // - ThrottledClientException // @@ -2143,77 +2336,78 @@ func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorRequest(input // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnector -func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnector(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceProfile +func (c *ChimeSDKVoice) DeleteVoiceProfile(input *DeleteVoiceProfileInput) (*DeleteVoiceProfileOutput, error) { + req, out := c.DeleteVoiceProfileRequest(input) return out, req.Send() } -// DisassociatePhoneNumbersFromVoiceConnectorWithContext is the same as DisassociatePhoneNumbersFromVoiceConnector with the addition of +// DeleteVoiceProfileWithContext is the same as DeleteVoiceProfile with the addition of // the ability to pass a context and additional request options. // -// See DisassociatePhoneNumbersFromVoiceConnector for details on how to use this API operation. +// See DeleteVoiceProfile 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 *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) +func (c *ChimeSDKVoice) DeleteVoiceProfileWithContext(ctx aws.Context, input *DeleteVoiceProfileInput, opts ...request.Option) (*DeleteVoiceProfileOutput, error) { + req, out := c.DeleteVoiceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociatePhoneNumbersFromVoiceConnectorGroup = "DisassociatePhoneNumbersFromVoiceConnectorGroup" +const opDeleteVoiceProfileDomain = "DeleteVoiceProfileDomain" -// DisassociatePhoneNumbersFromVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the DisassociatePhoneNumbersFromVoiceConnectorGroup operation. The "output" return +// DeleteVoiceProfileDomainRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceProfileDomain 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 +// See DeleteVoiceProfileDomain for more information on using the DeleteVoiceProfileDomain // 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) +// // Example sending a request using the DeleteVoiceProfileDomainRequest method. +// req, resp := client.DeleteVoiceProfileDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnectorGroup -func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceProfileDomain +func (c *ChimeSDKVoice) DeleteVoiceProfileDomainRequest(input *DeleteVoiceProfileDomainInput) (req *request.Request, output *DeleteVoiceProfileDomainOutput) { op := &request.Operation{ - Name: opDisassociatePhoneNumbersFromVoiceConnectorGroup, - HTTPMethod: "POST", - HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", + Name: opDeleteVoiceProfileDomain, + HTTPMethod: "DELETE", + HTTPPath: "/voice-profile-domains/{VoiceProfileDomainId}", } if input == nil { - input = &DisassociatePhoneNumbersFromVoiceConnectorGroupInput{} + input = &DeleteVoiceProfileDomainInput{} } - output = &DisassociatePhoneNumbersFromVoiceConnectorGroupOutput{} + output = &DeleteVoiceProfileDomainOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociatePhoneNumbersFromVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// DeleteVoiceProfileDomain API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. +// API operation DeleteVoiceProfileDomain for usage and error information. // // Returned Error Types: // @@ -2223,90 +2417,96 @@ func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(i // // - ForbiddenException // +// - AccessDeniedException +// // - BadRequestException // +// - ConflictException +// // - ThrottledClientException // // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnectorGroup -func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroup(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceProfileDomain +func (c *ChimeSDKVoice) DeleteVoiceProfileDomain(input *DeleteVoiceProfileDomainInput) (*DeleteVoiceProfileDomainOutput, error) { + req, out := c.DeleteVoiceProfileDomainRequest(input) return out, req.Send() } -// DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext is the same as DisassociatePhoneNumbersFromVoiceConnectorGroup with the addition of +// DeleteVoiceProfileDomainWithContext is the same as DeleteVoiceProfileDomain 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. +// See DeleteVoiceProfileDomain 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 *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) +func (c *ChimeSDKVoice) DeleteVoiceProfileDomainWithContext(ctx aws.Context, input *DeleteVoiceProfileDomainInput, opts ...request.Option) (*DeleteVoiceProfileDomainOutput, error) { + req, out := c.DeleteVoiceProfileDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetGlobalSettings = "GetGlobalSettings" +const opDisassociatePhoneNumbersFromVoiceConnector = "DisassociatePhoneNumbersFromVoiceConnector" -// GetGlobalSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetGlobalSettings operation. The "output" return +// DisassociatePhoneNumbersFromVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumbersFromVoiceConnector 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 GetGlobalSettings for more information on using the GetGlobalSettings +// See DisassociatePhoneNumbersFromVoiceConnector for more information on using the DisassociatePhoneNumbersFromVoiceConnector // 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 GetGlobalSettingsRequest method. -// req, resp := client.GetGlobalSettingsRequest(params) +// // Example sending a request using the DisassociatePhoneNumbersFromVoiceConnectorRequest method. +// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetGlobalSettings -func (c *ChimeSDKVoice) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnector +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorOutput) { op := &request.Operation{ - Name: opGetGlobalSettings, - HTTPMethod: "GET", - HTTPPath: "/settings", + Name: opDisassociatePhoneNumbersFromVoiceConnector, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", } if input == nil { - input = &GetGlobalSettingsInput{} + input = &DisassociatePhoneNumbersFromVoiceConnectorInput{} } - output = &GetGlobalSettingsOutput{} + output = &DisassociatePhoneNumbersFromVoiceConnectorOutput{} req = c.newRequest(op, input, output) return } -// GetGlobalSettings API operation for Amazon Chime SDK Voice. +// DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation GetGlobalSettings for usage and error information. +// API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information. // // Returned Error Types: // // - UnauthorizedClientException // +// - NotFoundException +// // - ForbiddenException // // - BadRequestException @@ -2317,31 +2517,205 @@ func (c *ChimeSDKVoice) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetGlobalSettings -func (c *ChimeSDKVoice) GetGlobalSettings(input *GetGlobalSettingsInput) (*GetGlobalSettingsOutput, error) { - req, out := c.GetGlobalSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnector +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnector(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) return out, req.Send() } -// GetGlobalSettingsWithContext is the same as GetGlobalSettings with the addition of +// DisassociatePhoneNumbersFromVoiceConnectorWithContext is the same as DisassociatePhoneNumbersFromVoiceConnector with the addition of // the ability to pass a context and additional request options. // -// See GetGlobalSettings for details on how to use this API operation. +// See DisassociatePhoneNumbersFromVoiceConnector 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 *ChimeSDKVoice) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) { - req, out := c.GetGlobalSettingsRequest(input) +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetPhoneNumber = "GetPhoneNumber" +const opDisassociatePhoneNumbersFromVoiceConnectorGroup = "DisassociatePhoneNumbersFromVoiceConnectorGroup" -// GetPhoneNumberRequest generates a "aws/request.Request" representing the +// 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-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *ChimeSDKVoice) 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 SDK Voice. +// +// 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 SDK Voice's +// API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *ChimeSDKVoice) 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 *ChimeSDKVoice) 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 opGetGlobalSettings = "GetGlobalSettings" + +// GetGlobalSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetGlobalSettings 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 GetGlobalSettings for more information on using the GetGlobalSettings +// 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 GetGlobalSettingsRequest method. +// req, resp := client.GetGlobalSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetGlobalSettings +func (c *ChimeSDKVoice) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) { + op := &request.Operation{ + Name: opGetGlobalSettings, + HTTPMethod: "GET", + HTTPPath: "/settings", + } + + if input == nil { + input = &GetGlobalSettingsInput{} + } + + output = &GetGlobalSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGlobalSettings API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation GetGlobalSettings for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetGlobalSettings +func (c *ChimeSDKVoice) GetGlobalSettings(input *GetGlobalSettingsInput) (*GetGlobalSettingsOutput, error) { + req, out := c.GetGlobalSettingsRequest(input) + return out, req.Send() +} + +// GetGlobalSettingsWithContext is the same as GetGlobalSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetGlobalSettings 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 *ChimeSDKVoice) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) { + req, out := c.GetGlobalSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPhoneNumber = "GetPhoneNumber" + +// GetPhoneNumberRequest generates a "aws/request.Request" representing the // client's request for the GetPhoneNumber operation. The "output" return // value will be populated with the request's response once the request completes // successfully. @@ -3041,6 +3415,98 @@ func (c *ChimeSDKVoice) GetSipRuleWithContext(ctx aws.Context, input *GetSipRule return out, req.Send() } +const opGetSpeakerSearchTask = "GetSpeakerSearchTask" + +// GetSpeakerSearchTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetSpeakerSearchTask 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 GetSpeakerSearchTask for more information on using the GetSpeakerSearchTask +// 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 GetSpeakerSearchTaskRequest method. +// req, resp := client.GetSpeakerSearchTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSpeakerSearchTask +func (c *ChimeSDKVoice) GetSpeakerSearchTaskRequest(input *GetSpeakerSearchTaskInput) (req *request.Request, output *GetSpeakerSearchTaskOutput) { + op := &request.Operation{ + Name: opGetSpeakerSearchTask, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}", + } + + if input == nil { + input = &GetSpeakerSearchTaskInput{} + } + + output = &GetSpeakerSearchTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSpeakerSearchTask API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation GetSpeakerSearchTask for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - NotFoundException +// +// - ConflictException +// +// - ThrottledClientException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ServiceFailureException +// +// - ServiceUnavailableException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSpeakerSearchTask +func (c *ChimeSDKVoice) GetSpeakerSearchTask(input *GetSpeakerSearchTaskInput) (*GetSpeakerSearchTaskOutput, error) { + req, out := c.GetSpeakerSearchTaskRequest(input) + return out, req.Send() +} + +// GetSpeakerSearchTaskWithContext is the same as GetSpeakerSearchTask with the addition of +// the ability to pass a context and additional request options. +// +// See GetSpeakerSearchTask 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 *ChimeSDKVoice) GetSpeakerSearchTaskWithContext(ctx aws.Context, input *GetSpeakerSearchTaskInput, opts ...request.Option) (*GetSpeakerSearchTaskOutput, error) { + req, out := c.GetSpeakerSearchTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetVoiceConnector = "GetVoiceConnector" // GetVoiceConnectorRequest generates a "aws/request.Request" representing the @@ -3833,36 +4299,308 @@ func (c *ChimeSDKVoice) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Co return out, req.Send() } -const opListAvailableVoiceConnectorRegions = "ListAvailableVoiceConnectorRegions" +const opGetVoiceProfile = "GetVoiceProfile" -// ListAvailableVoiceConnectorRegionsRequest generates a "aws/request.Request" representing the -// client's request for the ListAvailableVoiceConnectorRegions operation. The "output" return +// GetVoiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceProfile 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 ListAvailableVoiceConnectorRegions for more information on using the ListAvailableVoiceConnectorRegions +// See GetVoiceProfile for more information on using the GetVoiceProfile // 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 ListAvailableVoiceConnectorRegionsRequest method. -// req, resp := client.ListAvailableVoiceConnectorRegionsRequest(params) +// // Example sending a request using the GetVoiceProfileRequest method. +// req, resp := client.GetVoiceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListAvailableVoiceConnectorRegions -func (c *ChimeSDKVoice) ListAvailableVoiceConnectorRegionsRequest(input *ListAvailableVoiceConnectorRegionsInput) (req *request.Request, output *ListAvailableVoiceConnectorRegionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceProfile +func (c *ChimeSDKVoice) GetVoiceProfileRequest(input *GetVoiceProfileInput) (req *request.Request, output *GetVoiceProfileOutput) { op := &request.Operation{ - Name: opListAvailableVoiceConnectorRegions, + Name: opGetVoiceProfile, HTTPMethod: "GET", - HTTPPath: "/voice-connector-regions", + HTTPPath: "/voice-profiles/{VoiceProfileId}", + } + + if input == nil { + input = &GetVoiceProfileInput{} + } + + output = &GetVoiceProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceProfile API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation GetVoiceProfile for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - NotFoundException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceProfile +func (c *ChimeSDKVoice) GetVoiceProfile(input *GetVoiceProfileInput) (*GetVoiceProfileOutput, error) { + req, out := c.GetVoiceProfileRequest(input) + return out, req.Send() +} + +// GetVoiceProfileWithContext is the same as GetVoiceProfile with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceProfile 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 *ChimeSDKVoice) GetVoiceProfileWithContext(ctx aws.Context, input *GetVoiceProfileInput, opts ...request.Option) (*GetVoiceProfileOutput, error) { + req, out := c.GetVoiceProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceProfileDomain = "GetVoiceProfileDomain" + +// GetVoiceProfileDomainRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceProfileDomain 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 GetVoiceProfileDomain for more information on using the GetVoiceProfileDomain +// 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 GetVoiceProfileDomainRequest method. +// req, resp := client.GetVoiceProfileDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceProfileDomain +func (c *ChimeSDKVoice) GetVoiceProfileDomainRequest(input *GetVoiceProfileDomainInput) (req *request.Request, output *GetVoiceProfileDomainOutput) { + op := &request.Operation{ + Name: opGetVoiceProfileDomain, + HTTPMethod: "GET", + HTTPPath: "/voice-profile-domains/{VoiceProfileDomainId}", + } + + if input == nil { + input = &GetVoiceProfileDomainInput{} + } + + output = &GetVoiceProfileDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceProfileDomain API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation GetVoiceProfileDomain for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceProfileDomain +func (c *ChimeSDKVoice) GetVoiceProfileDomain(input *GetVoiceProfileDomainInput) (*GetVoiceProfileDomainOutput, error) { + req, out := c.GetVoiceProfileDomainRequest(input) + return out, req.Send() +} + +// GetVoiceProfileDomainWithContext is the same as GetVoiceProfileDomain with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceProfileDomain 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 *ChimeSDKVoice) GetVoiceProfileDomainWithContext(ctx aws.Context, input *GetVoiceProfileDomainInput, opts ...request.Option) (*GetVoiceProfileDomainOutput, error) { + req, out := c.GetVoiceProfileDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceToneAnalysisTask = "GetVoiceToneAnalysisTask" + +// GetVoiceToneAnalysisTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceToneAnalysisTask 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 GetVoiceToneAnalysisTask for more information on using the GetVoiceToneAnalysisTask +// 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 GetVoiceToneAnalysisTaskRequest method. +// req, resp := client.GetVoiceToneAnalysisTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceToneAnalysisTask +func (c *ChimeSDKVoice) GetVoiceToneAnalysisTaskRequest(input *GetVoiceToneAnalysisTaskInput) (req *request.Request, output *GetVoiceToneAnalysisTaskOutput) { + op := &request.Operation{ + Name: opGetVoiceToneAnalysisTask, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}", + } + + if input == nil { + input = &GetVoiceToneAnalysisTaskInput{} + } + + output = &GetVoiceToneAnalysisTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceToneAnalysisTask API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation GetVoiceToneAnalysisTask for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - NotFoundException +// +// - ConflictException +// +// - ThrottledClientException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ServiceFailureException +// +// - ServiceUnavailableException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceToneAnalysisTask +func (c *ChimeSDKVoice) GetVoiceToneAnalysisTask(input *GetVoiceToneAnalysisTaskInput) (*GetVoiceToneAnalysisTaskOutput, error) { + req, out := c.GetVoiceToneAnalysisTaskRequest(input) + return out, req.Send() +} + +// GetVoiceToneAnalysisTaskWithContext is the same as GetVoiceToneAnalysisTask with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceToneAnalysisTask 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 *ChimeSDKVoice) GetVoiceToneAnalysisTaskWithContext(ctx aws.Context, input *GetVoiceToneAnalysisTaskInput, opts ...request.Option) (*GetVoiceToneAnalysisTaskOutput, error) { + req, out := c.GetVoiceToneAnalysisTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAvailableVoiceConnectorRegions = "ListAvailableVoiceConnectorRegions" + +// ListAvailableVoiceConnectorRegionsRequest generates a "aws/request.Request" representing the +// client's request for the ListAvailableVoiceConnectorRegions 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 ListAvailableVoiceConnectorRegions for more information on using the ListAvailableVoiceConnectorRegions +// 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 ListAvailableVoiceConnectorRegionsRequest method. +// req, resp := client.ListAvailableVoiceConnectorRegionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListAvailableVoiceConnectorRegions +func (c *ChimeSDKVoice) ListAvailableVoiceConnectorRegionsRequest(input *ListAvailableVoiceConnectorRegionsInput) (req *request.Request, output *ListAvailableVoiceConnectorRegionsOutput) { + op := &request.Operation{ + Name: opListAvailableVoiceConnectorRegions, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-regions", } if input == nil { @@ -4726,102 +5464,188 @@ func (c *ChimeSDKVoice) ListSupportedPhoneNumberCountriesWithContext(ctx aws.Con return out, req.Send() } -const opListVoiceConnectorGroups = "ListVoiceConnectorGroups" +const opListTagsForResource = "ListTagsForResource" -// ListVoiceConnectorGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListVoiceConnectorGroups operation. The "output" return +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListVoiceConnectorGroups for more information on using the ListVoiceConnectorGroups +// See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListVoiceConnectorGroupsRequest method. -// req, resp := client.ListVoiceConnectorGroupsRequest(params) +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorGroups -func (c *ChimeSDKVoice) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsInput) (req *request.Request, output *ListVoiceConnectorGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListTagsForResource +func (c *ChimeSDKVoice) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opListVoiceConnectorGroups, + Name: opListTagsForResource, HTTPMethod: "GET", - HTTPPath: "/voice-connector-groups", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/tags", } if input == nil { - input = &ListVoiceConnectorGroupsInput{} + input = &ListTagsForResourceInput{} } - output = &ListVoiceConnectorGroupsOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// ListVoiceConnectorGroups API operation for Amazon Chime SDK Voice. +// ListTagsForResource API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation ListVoiceConnectorGroups for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // -// - UnauthorizedClientException +// - BadRequestException // // - ForbiddenException // -// - BadRequestException +// - NotFoundException // -// - ThrottledClientException +// - UnauthorizedClientException // // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorGroups -func (c *ChimeSDKVoice) ListVoiceConnectorGroups(input *ListVoiceConnectorGroupsInput) (*ListVoiceConnectorGroupsOutput, error) { - req, out := c.ListVoiceConnectorGroupsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListTagsForResource +func (c *ChimeSDKVoice) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// ListVoiceConnectorGroupsWithContext is the same as ListVoiceConnectorGroups with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See ListVoiceConnectorGroups for details on how to use this API operation. +// See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ChimeSDKVoice) ListVoiceConnectorGroupsWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, opts ...request.Option) (*ListVoiceConnectorGroupsOutput, error) { - req, out := c.ListVoiceConnectorGroupsRequest(input) +func (c *ChimeSDKVoice) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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. -// +const opListVoiceConnectorGroups = "ListVoiceConnectorGroups" + +// 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 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 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-sdk-voice-2022-08-03/ListVoiceConnectorGroups +func (c *ChimeSDKVoice) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsInput) (req *request.Request, output *ListVoiceConnectorGroupsOutput) { + op := &request.Operation{ + Name: opListVoiceConnectorGroups, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-groups", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListVoiceConnectorGroupsInput{} + } + + output = &ListVoiceConnectorGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVoiceConnectorGroups API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation ListVoiceConnectorGroups for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorGroups +func (c *ChimeSDKVoice) ListVoiceConnectorGroups(input *ListVoiceConnectorGroupsInput) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) + return out, req.Send() +} + +// ListVoiceConnectorGroupsWithContext is the same as ListVoiceConnectorGroups with the addition of +// the ability to pass a context and additional request options. +// +// 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 *ChimeSDKVoice) 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() +} + +// 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 ListVoiceConnectorGroups method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. @@ -5100,62 +5924,68 @@ func (c *ChimeSDKVoice) ListVoiceConnectorsPagesWithContext(ctx aws.Context, inp return p.Err() } -const opPutSipMediaApplicationAlexaSkillConfiguration = "PutSipMediaApplicationAlexaSkillConfiguration" +const opListVoiceProfileDomains = "ListVoiceProfileDomains" -// PutSipMediaApplicationAlexaSkillConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutSipMediaApplicationAlexaSkillConfiguration operation. The "output" return +// ListVoiceProfileDomainsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceProfileDomains 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 PutSipMediaApplicationAlexaSkillConfiguration for more information on using the PutSipMediaApplicationAlexaSkillConfiguration +// See ListVoiceProfileDomains for more information on using the ListVoiceProfileDomains // 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 PutSipMediaApplicationAlexaSkillConfigurationRequest method. -// req, resp := client.PutSipMediaApplicationAlexaSkillConfigurationRequest(params) +// // Example sending a request using the ListVoiceProfileDomainsRequest method. +// req, resp := client.ListVoiceProfileDomainsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationAlexaSkillConfiguration -func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationRequest(input *PutSipMediaApplicationAlexaSkillConfigurationInput) (req *request.Request, output *PutSipMediaApplicationAlexaSkillConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceProfileDomains +func (c *ChimeSDKVoice) ListVoiceProfileDomainsRequest(input *ListVoiceProfileDomainsInput) (req *request.Request, output *ListVoiceProfileDomainsOutput) { op := &request.Operation{ - Name: opPutSipMediaApplicationAlexaSkillConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/alexa-skill-configuration", + Name: opListVoiceProfileDomains, + HTTPMethod: "GET", + HTTPPath: "/voice-profile-domains", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutSipMediaApplicationAlexaSkillConfigurationInput{} + input = &ListVoiceProfileDomainsInput{} } - output = &PutSipMediaApplicationAlexaSkillConfigurationOutput{} + output = &ListVoiceProfileDomainsOutput{} req = c.newRequest(op, input, output) return } -// PutSipMediaApplicationAlexaSkillConfiguration API operation for Amazon Chime SDK Voice. +// ListVoiceProfileDomains API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation PutSipMediaApplicationAlexaSkillConfiguration for usage and error information. +// API operation ListVoiceProfileDomains for usage and error information. // // Returned Error Types: // -// - UnauthorizedClientException -// // - NotFoundException // +// - UnauthorizedClientException +// // - ForbiddenException // // - BadRequestException @@ -5166,84 +5996,141 @@ func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationRequest(inp // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationAlexaSkillConfiguration -func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfiguration(input *PutSipMediaApplicationAlexaSkillConfigurationInput) (*PutSipMediaApplicationAlexaSkillConfigurationOutput, error) { - req, out := c.PutSipMediaApplicationAlexaSkillConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceProfileDomains +func (c *ChimeSDKVoice) ListVoiceProfileDomains(input *ListVoiceProfileDomainsInput) (*ListVoiceProfileDomainsOutput, error) { + req, out := c.ListVoiceProfileDomainsRequest(input) return out, req.Send() } -// PutSipMediaApplicationAlexaSkillConfigurationWithContext is the same as PutSipMediaApplicationAlexaSkillConfiguration with the addition of +// ListVoiceProfileDomainsWithContext is the same as ListVoiceProfileDomains with the addition of // the ability to pass a context and additional request options. // -// See PutSipMediaApplicationAlexaSkillConfiguration for details on how to use this API operation. +// See ListVoiceProfileDomains 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 *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationAlexaSkillConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationAlexaSkillConfigurationOutput, error) { - req, out := c.PutSipMediaApplicationAlexaSkillConfigurationRequest(input) +func (c *ChimeSDKVoice) ListVoiceProfileDomainsWithContext(ctx aws.Context, input *ListVoiceProfileDomainsInput, opts ...request.Option) (*ListVoiceProfileDomainsOutput, error) { + req, out := c.ListVoiceProfileDomainsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutSipMediaApplicationLoggingConfiguration = "PutSipMediaApplicationLoggingConfiguration" +// ListVoiceProfileDomainsPages iterates over the pages of a ListVoiceProfileDomains operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVoiceProfileDomains 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 ListVoiceProfileDomains operation. +// pageNum := 0 +// err := client.ListVoiceProfileDomainsPages(params, +// func(page *chimesdkvoice.ListVoiceProfileDomainsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListVoiceProfileDomainsPages(input *ListVoiceProfileDomainsInput, fn func(*ListVoiceProfileDomainsOutput, bool) bool) error { + return c.ListVoiceProfileDomainsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// PutSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutSipMediaApplicationLoggingConfiguration operation. The "output" return +// ListVoiceProfileDomainsPagesWithContext same as ListVoiceProfileDomainsPages 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 *ChimeSDKVoice) ListVoiceProfileDomainsPagesWithContext(ctx aws.Context, input *ListVoiceProfileDomainsInput, fn func(*ListVoiceProfileDomainsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVoiceProfileDomainsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVoiceProfileDomainsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListVoiceProfileDomainsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListVoiceProfiles = "ListVoiceProfiles" + +// ListVoiceProfilesRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceProfiles 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 PutSipMediaApplicationLoggingConfiguration for more information on using the PutSipMediaApplicationLoggingConfiguration +// See ListVoiceProfiles for more information on using the ListVoiceProfiles // 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 PutSipMediaApplicationLoggingConfigurationRequest method. -// req, resp := client.PutSipMediaApplicationLoggingConfigurationRequest(params) +// // Example sending a request using the ListVoiceProfilesRequest method. +// req, resp := client.ListVoiceProfilesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationLoggingConfiguration -func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *PutSipMediaApplicationLoggingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceProfiles +func (c *ChimeSDKVoice) ListVoiceProfilesRequest(input *ListVoiceProfilesInput) (req *request.Request, output *ListVoiceProfilesOutput) { op := &request.Operation{ - Name: opPutSipMediaApplicationLoggingConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + Name: opListVoiceProfiles, + HTTPMethod: "GET", + HTTPPath: "/voice-profiles", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutSipMediaApplicationLoggingConfigurationInput{} + input = &ListVoiceProfilesInput{} } - output = &PutSipMediaApplicationLoggingConfigurationOutput{} + output = &ListVoiceProfilesOutput{} req = c.newRequest(op, input, output) return } -// PutSipMediaApplicationLoggingConfiguration API operation for Amazon Chime SDK Voice. +// ListVoiceProfiles API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation PutSipMediaApplicationLoggingConfiguration for usage and error information. +// API operation ListVoiceProfiles for usage and error information. // // Returned Error Types: // -// - UnauthorizedClientException -// // - NotFoundException // +// - UnauthorizedClientException +// // - ForbiddenException // // - BadRequestException @@ -5254,54 +6141,281 @@ func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationRequest(input // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationLoggingConfiguration -func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfiguration(input *PutSipMediaApplicationLoggingConfigurationInput) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { - req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceProfiles +func (c *ChimeSDKVoice) ListVoiceProfiles(input *ListVoiceProfilesInput) (*ListVoiceProfilesOutput, error) { + req, out := c.ListVoiceProfilesRequest(input) return out, req.Send() } -// PutSipMediaApplicationLoggingConfigurationWithContext is the same as PutSipMediaApplicationLoggingConfiguration with the addition of +// ListVoiceProfilesWithContext is the same as ListVoiceProfiles with the addition of // the ability to pass a context and additional request options. // -// See PutSipMediaApplicationLoggingConfiguration for details on how to use this API operation. +// See ListVoiceProfiles 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 *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { - req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) +func (c *ChimeSDKVoice) ListVoiceProfilesWithContext(ctx aws.Context, input *ListVoiceProfilesInput, opts ...request.Option) (*ListVoiceProfilesOutput, error) { + req, out := c.ListVoiceProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorEmergencyCallingConfiguration = "PutVoiceConnectorEmergencyCallingConfiguration" +// ListVoiceProfilesPages iterates over the pages of a ListVoiceProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVoiceProfiles 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 ListVoiceProfiles operation. +// pageNum := 0 +// err := client.ListVoiceProfilesPages(params, +// func(page *chimesdkvoice.ListVoiceProfilesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListVoiceProfilesPages(input *ListVoiceProfilesInput, fn func(*ListVoiceProfilesOutput, bool) bool) error { + return c.ListVoiceProfilesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// PutVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// ListVoiceProfilesPagesWithContext same as ListVoiceProfilesPages 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 *ChimeSDKVoice) ListVoiceProfilesPagesWithContext(ctx aws.Context, input *ListVoiceProfilesInput, fn func(*ListVoiceProfilesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVoiceProfilesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVoiceProfilesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListVoiceProfilesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutSipMediaApplicationAlexaSkillConfiguration = "PutSipMediaApplicationAlexaSkillConfiguration" + +// PutSipMediaApplicationAlexaSkillConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutSipMediaApplicationAlexaSkillConfiguration 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 PutVoiceConnectorEmergencyCallingConfiguration for more information on using the PutVoiceConnectorEmergencyCallingConfiguration +// See PutSipMediaApplicationAlexaSkillConfiguration for more information on using the PutSipMediaApplicationAlexaSkillConfiguration // 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 PutVoiceConnectorEmergencyCallingConfigurationRequest method. -// req, resp := client.PutVoiceConnectorEmergencyCallingConfigurationRequest(params) +// // Example sending a request using the PutSipMediaApplicationAlexaSkillConfigurationRequest method. +// req, resp := client.PutSipMediaApplicationAlexaSkillConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorEmergencyCallingConfiguration -func (c *ChimeSDKVoice) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *PutVoiceConnectorEmergencyCallingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationAlexaSkillConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationRequest(input *PutSipMediaApplicationAlexaSkillConfigurationInput) (req *request.Request, output *PutSipMediaApplicationAlexaSkillConfigurationOutput) { + op := &request.Operation{ + Name: opPutSipMediaApplicationAlexaSkillConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/alexa-skill-configuration", + } + + if input == nil { + input = &PutSipMediaApplicationAlexaSkillConfigurationInput{} + } + + output = &PutSipMediaApplicationAlexaSkillConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutSipMediaApplicationAlexaSkillConfiguration API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation PutSipMediaApplicationAlexaSkillConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationAlexaSkillConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfiguration(input *PutSipMediaApplicationAlexaSkillConfigurationInput) (*PutSipMediaApplicationAlexaSkillConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationAlexaSkillConfigurationRequest(input) + return out, req.Send() +} + +// PutSipMediaApplicationAlexaSkillConfigurationWithContext is the same as PutSipMediaApplicationAlexaSkillConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutSipMediaApplicationAlexaSkillConfiguration 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 *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationAlexaSkillConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationAlexaSkillConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationAlexaSkillConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutSipMediaApplicationLoggingConfiguration = "PutSipMediaApplicationLoggingConfiguration" + +// PutSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutSipMediaApplicationLoggingConfiguration 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 PutSipMediaApplicationLoggingConfiguration for more information on using the PutSipMediaApplicationLoggingConfiguration +// 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 PutSipMediaApplicationLoggingConfigurationRequest method. +// req, resp := client.PutSipMediaApplicationLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationLoggingConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *PutSipMediaApplicationLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opPutSipMediaApplicationLoggingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + } + + if input == nil { + input = &PutSipMediaApplicationLoggingConfigurationInput{} + } + + output = &PutSipMediaApplicationLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutSipMediaApplicationLoggingConfiguration API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation PutSipMediaApplicationLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationLoggingConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfiguration(input *PutSipMediaApplicationLoggingConfigurationInput) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) + return out, req.Send() +} + +// PutSipMediaApplicationLoggingConfigurationWithContext is the same as PutSipMediaApplicationLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutSipMediaApplicationLoggingConfiguration 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 *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorEmergencyCallingConfiguration = "PutVoiceConnectorEmergencyCallingConfiguration" + +// PutVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorEmergencyCallingConfiguration 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 PutVoiceConnectorEmergencyCallingConfiguration for more information on using the PutVoiceConnectorEmergencyCallingConfiguration +// 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 PutVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorEmergencyCallingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *PutVoiceConnectorEmergencyCallingConfigurationOutput) { op := &request.Operation{ Name: opPutVoiceConnectorEmergencyCallingConfiguration, HTTPMethod: "PUT", @@ -6132,64 +7246,75 @@ func (c *ChimeSDKVoice) SearchAvailablePhoneNumbersPagesWithContext(ctx aws.Cont return p.Err() } -const opUpdateGlobalSettings = "UpdateGlobalSettings" +const opStartSpeakerSearchTask = "StartSpeakerSearchTask" -// UpdateGlobalSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGlobalSettings operation. The "output" return +// StartSpeakerSearchTaskRequest generates a "aws/request.Request" representing the +// client's request for the StartSpeakerSearchTask 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 UpdateGlobalSettings for more information on using the UpdateGlobalSettings +// See StartSpeakerSearchTask for more information on using the StartSpeakerSearchTask // 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 UpdateGlobalSettingsRequest method. -// req, resp := client.UpdateGlobalSettingsRequest(params) +// // Example sending a request using the StartSpeakerSearchTaskRequest method. +// req, resp := client.StartSpeakerSearchTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateGlobalSettings -func (c *ChimeSDKVoice) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (req *request.Request, output *UpdateGlobalSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StartSpeakerSearchTask +func (c *ChimeSDKVoice) StartSpeakerSearchTaskRequest(input *StartSpeakerSearchTaskInput) (req *request.Request, output *StartSpeakerSearchTaskOutput) { op := &request.Operation{ - Name: opUpdateGlobalSettings, - HTTPMethod: "PUT", - HTTPPath: "/settings", + Name: opStartSpeakerSearchTask, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks", } if input == nil { - input = &UpdateGlobalSettingsInput{} + input = &StartSpeakerSearchTaskInput{} } - output = &UpdateGlobalSettingsOutput{} + output = &StartSpeakerSearchTaskOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateGlobalSettings API operation for Amazon Chime SDK Voice. +// StartSpeakerSearchTask API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateGlobalSettings for usage and error information. +// API operation StartSpeakerSearchTask for usage and error information. // // Returned Error Types: // +// - BadRequestException +// +// - ResourceLimitExceededException +// // - UnauthorizedClientException // // - ForbiddenException // -// - BadRequestException +// - AccessDeniedException +// +// - NotFoundException +// +// - ConflictException +// +// - GoneException +// +// - UnprocessableEntityException // // - ThrottledClientException // @@ -6197,176 +7322,192 @@ func (c *ChimeSDKVoice) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsI // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateGlobalSettings -func (c *ChimeSDKVoice) UpdateGlobalSettings(input *UpdateGlobalSettingsInput) (*UpdateGlobalSettingsOutput, error) { - req, out := c.UpdateGlobalSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StartSpeakerSearchTask +func (c *ChimeSDKVoice) StartSpeakerSearchTask(input *StartSpeakerSearchTaskInput) (*StartSpeakerSearchTaskOutput, error) { + req, out := c.StartSpeakerSearchTaskRequest(input) return out, req.Send() } -// UpdateGlobalSettingsWithContext is the same as UpdateGlobalSettings with the addition of +// StartSpeakerSearchTaskWithContext is the same as StartSpeakerSearchTask with the addition of // the ability to pass a context and additional request options. // -// See UpdateGlobalSettings for details on how to use this API operation. +// See StartSpeakerSearchTask 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 *ChimeSDKVoice) UpdateGlobalSettingsWithContext(ctx aws.Context, input *UpdateGlobalSettingsInput, opts ...request.Option) (*UpdateGlobalSettingsOutput, error) { - req, out := c.UpdateGlobalSettingsRequest(input) +func (c *ChimeSDKVoice) StartSpeakerSearchTaskWithContext(ctx aws.Context, input *StartSpeakerSearchTaskInput, opts ...request.Option) (*StartSpeakerSearchTaskOutput, error) { + req, out := c.StartSpeakerSearchTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdatePhoneNumber = "UpdatePhoneNumber" +const opStartVoiceToneAnalysisTask = "StartVoiceToneAnalysisTask" -// UpdatePhoneNumberRequest generates a "aws/request.Request" representing the -// client's request for the UpdatePhoneNumber operation. The "output" return +// StartVoiceToneAnalysisTaskRequest generates a "aws/request.Request" representing the +// client's request for the StartVoiceToneAnalysisTask 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 UpdatePhoneNumber for more information on using the UpdatePhoneNumber +// See StartVoiceToneAnalysisTask for more information on using the StartVoiceToneAnalysisTask // 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 UpdatePhoneNumberRequest method. -// req, resp := client.UpdatePhoneNumberRequest(params) +// // Example sending a request using the StartVoiceToneAnalysisTaskRequest method. +// req, resp := client.StartVoiceToneAnalysisTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumber -func (c *ChimeSDKVoice) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StartVoiceToneAnalysisTask +func (c *ChimeSDKVoice) StartVoiceToneAnalysisTaskRequest(input *StartVoiceToneAnalysisTaskInput) (req *request.Request, output *StartVoiceToneAnalysisTaskOutput) { op := &request.Operation{ - Name: opUpdatePhoneNumber, + Name: opStartVoiceToneAnalysisTask, HTTPMethod: "POST", - HTTPPath: "/phone-numbers/{phoneNumberId}", + HTTPPath: "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks", } if input == nil { - input = &UpdatePhoneNumberInput{} + input = &StartVoiceToneAnalysisTaskInput{} } - output = &UpdatePhoneNumberOutput{} + output = &StartVoiceToneAnalysisTaskOutput{} req = c.newRequest(op, input, output) return } -// UpdatePhoneNumber API operation for Amazon Chime SDK Voice. +// StartVoiceToneAnalysisTask API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdatePhoneNumber for usage and error information. +// API operation StartVoiceToneAnalysisTask for usage and error information. // // Returned Error Types: // -// - UnauthorizedClientException +// - BadRequestException // -// - NotFoundException +// - ResourceLimitExceededException +// +// - UnauthorizedClientException // // - ForbiddenException // -// - BadRequestException +// - AccessDeniedException // -// - ThrottledClientException +// - NotFoundException // // - ConflictException // +// - GoneException +// +// - UnprocessableEntityException +// +// - ThrottledClientException +// // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumber -func (c *ChimeSDKVoice) UpdatePhoneNumber(input *UpdatePhoneNumberInput) (*UpdatePhoneNumberOutput, error) { - req, out := c.UpdatePhoneNumberRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StartVoiceToneAnalysisTask +func (c *ChimeSDKVoice) StartVoiceToneAnalysisTask(input *StartVoiceToneAnalysisTaskInput) (*StartVoiceToneAnalysisTaskOutput, error) { + req, out := c.StartVoiceToneAnalysisTaskRequest(input) return out, req.Send() } -// UpdatePhoneNumberWithContext is the same as UpdatePhoneNumber with the addition of +// StartVoiceToneAnalysisTaskWithContext is the same as StartVoiceToneAnalysisTask with the addition of // the ability to pass a context and additional request options. // -// See UpdatePhoneNumber for details on how to use this API operation. +// See StartVoiceToneAnalysisTask 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 *ChimeSDKVoice) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhoneNumberInput, opts ...request.Option) (*UpdatePhoneNumberOutput, error) { - req, out := c.UpdatePhoneNumberRequest(input) +func (c *ChimeSDKVoice) StartVoiceToneAnalysisTaskWithContext(ctx aws.Context, input *StartVoiceToneAnalysisTaskInput, opts ...request.Option) (*StartVoiceToneAnalysisTaskOutput, error) { + req, out := c.StartVoiceToneAnalysisTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdatePhoneNumberSettings = "UpdatePhoneNumberSettings" +const opStopSpeakerSearchTask = "StopSpeakerSearchTask" -// UpdatePhoneNumberSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdatePhoneNumberSettings operation. The "output" return +// StopSpeakerSearchTaskRequest generates a "aws/request.Request" representing the +// client's request for the StopSpeakerSearchTask 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 +// See StopSpeakerSearchTask for more information on using the StopSpeakerSearchTask // 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) +// // Example sending a request using the StopSpeakerSearchTaskRequest method. +// req, resp := client.StopSpeakerSearchTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumberSettings -func (c *ChimeSDKVoice) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSettingsInput) (req *request.Request, output *UpdatePhoneNumberSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StopSpeakerSearchTask +func (c *ChimeSDKVoice) StopSpeakerSearchTaskRequest(input *StopSpeakerSearchTaskInput) (req *request.Request, output *StopSpeakerSearchTaskOutput) { op := &request.Operation{ - Name: opUpdatePhoneNumberSettings, - HTTPMethod: "PUT", - HTTPPath: "/settings/phone-number", + Name: opStopSpeakerSearchTask, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{VoiceConnectorId}/speaker-search-tasks/{SpeakerSearchTaskId}?operation=stop", } if input == nil { - input = &UpdatePhoneNumberSettingsInput{} + input = &StopSpeakerSearchTaskInput{} } - output = &UpdatePhoneNumberSettingsOutput{} + output = &StopSpeakerSearchTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdatePhoneNumberSettings API operation for Amazon Chime SDK Voice. +// StopSpeakerSearchTask API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdatePhoneNumberSettings for usage and error information. +// API operation StopSpeakerSearchTask for usage and error information. // // Returned Error Types: // +// - BadRequestException +// // - UnauthorizedClientException // // - ForbiddenException // -// - BadRequestException +// - AccessDeniedException +// +// - NotFoundException +// +// - ConflictException +// +// - UnprocessableEntityException // // - ThrottledClientException // @@ -6374,87 +7515,94 @@ func (c *ChimeSDKVoice) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumbe // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumberSettings -func (c *ChimeSDKVoice) UpdatePhoneNumberSettings(input *UpdatePhoneNumberSettingsInput) (*UpdatePhoneNumberSettingsOutput, error) { - req, out := c.UpdatePhoneNumberSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StopSpeakerSearchTask +func (c *ChimeSDKVoice) StopSpeakerSearchTask(input *StopSpeakerSearchTaskInput) (*StopSpeakerSearchTaskOutput, error) { + req, out := c.StopSpeakerSearchTaskRequest(input) return out, req.Send() } -// UpdatePhoneNumberSettingsWithContext is the same as UpdatePhoneNumberSettings with the addition of +// StopSpeakerSearchTaskWithContext is the same as StopSpeakerSearchTask 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. +// See StopSpeakerSearchTask 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 *ChimeSDKVoice) UpdatePhoneNumberSettingsWithContext(ctx aws.Context, input *UpdatePhoneNumberSettingsInput, opts ...request.Option) (*UpdatePhoneNumberSettingsOutput, error) { - req, out := c.UpdatePhoneNumberSettingsRequest(input) +func (c *ChimeSDKVoice) StopSpeakerSearchTaskWithContext(ctx aws.Context, input *StopSpeakerSearchTaskInput, opts ...request.Option) (*StopSpeakerSearchTaskOutput, error) { + req, out := c.StopSpeakerSearchTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateProxySession = "UpdateProxySession" +const opStopVoiceToneAnalysisTask = "StopVoiceToneAnalysisTask" -// UpdateProxySessionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateProxySession operation. The "output" return +// StopVoiceToneAnalysisTaskRequest generates a "aws/request.Request" representing the +// client's request for the StopVoiceToneAnalysisTask 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 UpdateProxySession for more information on using the UpdateProxySession +// See StopVoiceToneAnalysisTask for more information on using the StopVoiceToneAnalysisTask // 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 UpdateProxySessionRequest method. -// req, resp := client.UpdateProxySessionRequest(params) +// // Example sending a request using the StopVoiceToneAnalysisTaskRequest method. +// req, resp := client.StopVoiceToneAnalysisTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateProxySession -func (c *ChimeSDKVoice) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req *request.Request, output *UpdateProxySessionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StopVoiceToneAnalysisTask +func (c *ChimeSDKVoice) StopVoiceToneAnalysisTaskRequest(input *StopVoiceToneAnalysisTaskInput) (req *request.Request, output *StopVoiceToneAnalysisTaskOutput) { op := &request.Operation{ - Name: opUpdateProxySession, + Name: opStopVoiceToneAnalysisTask, HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + HTTPPath: "/voice-connectors/{VoiceConnectorId}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}?operation=stop", } if input == nil { - input = &UpdateProxySessionInput{} + input = &StopVoiceToneAnalysisTaskInput{} } - output = &UpdateProxySessionOutput{} + output = &StopVoiceToneAnalysisTaskOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateProxySession API operation for Amazon Chime SDK Voice. +// StopVoiceToneAnalysisTask API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateProxySession for usage and error information. +// API operation StopVoiceToneAnalysisTask for usage and error information. // // Returned Error Types: // +// - BadRequestException +// // - UnauthorizedClientException // +// - ForbiddenException +// +// - AccessDeniedException +// // - NotFoundException // -// - ForbiddenException +// - ConflictException // -// - BadRequestException +// - UnprocessableEntityException // // - ThrottledClientException // @@ -6462,179 +7610,175 @@ func (c *ChimeSDKVoice) UpdateProxySessionRequest(input *UpdateProxySessionInput // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateProxySession -func (c *ChimeSDKVoice) UpdateProxySession(input *UpdateProxySessionInput) (*UpdateProxySessionOutput, error) { - req, out := c.UpdateProxySessionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/StopVoiceToneAnalysisTask +func (c *ChimeSDKVoice) StopVoiceToneAnalysisTask(input *StopVoiceToneAnalysisTaskInput) (*StopVoiceToneAnalysisTaskOutput, error) { + req, out := c.StopVoiceToneAnalysisTaskRequest(input) return out, req.Send() } -// UpdateProxySessionWithContext is the same as UpdateProxySession with the addition of +// StopVoiceToneAnalysisTaskWithContext is the same as StopVoiceToneAnalysisTask with the addition of // the ability to pass a context and additional request options. // -// See UpdateProxySession for details on how to use this API operation. +// See StopVoiceToneAnalysisTask 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 *ChimeSDKVoice) UpdateProxySessionWithContext(ctx aws.Context, input *UpdateProxySessionInput, opts ...request.Option) (*UpdateProxySessionOutput, error) { - req, out := c.UpdateProxySessionRequest(input) +func (c *ChimeSDKVoice) StopVoiceToneAnalysisTaskWithContext(ctx aws.Context, input *StopVoiceToneAnalysisTaskInput, opts ...request.Option) (*StopVoiceToneAnalysisTaskOutput, error) { + req, out := c.StopVoiceToneAnalysisTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSipMediaApplication = "UpdateSipMediaApplication" +const opTagResource = "TagResource" -// UpdateSipMediaApplicationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSipMediaApplication operation. The "output" return +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSipMediaApplication for more information on using the UpdateSipMediaApplication +// See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateSipMediaApplicationRequest method. -// req, resp := client.UpdateSipMediaApplicationRequest(params) +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplication -func (c *ChimeSDKVoice) UpdateSipMediaApplicationRequest(input *UpdateSipMediaApplicationInput) (req *request.Request, output *UpdateSipMediaApplicationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/TagResource +func (c *ChimeSDKVoice) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opUpdateSipMediaApplication, - HTTPMethod: "PUT", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags?operation=tag-resource", } if input == nil { - input = &UpdateSipMediaApplicationInput{} + input = &TagResourceInput{} } - output = &UpdateSipMediaApplicationOutput{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateSipMediaApplication API operation for Amazon Chime SDK Voice. +// TagResource API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateSipMediaApplication for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Types: // -// - UnauthorizedClientException -// -// - NotFoundException +// - BadRequestException // // - ForbiddenException // -// - BadRequestException +// - NotFoundException // -// - ConflictException +// - ResourceLimitExceededException // -// - ThrottledClientException +// - UnauthorizedClientException // // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplication -func (c *ChimeSDKVoice) UpdateSipMediaApplication(input *UpdateSipMediaApplicationInput) (*UpdateSipMediaApplicationOutput, error) { - req, out := c.UpdateSipMediaApplicationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/TagResource +func (c *ChimeSDKVoice) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// UpdateSipMediaApplicationWithContext is the same as UpdateSipMediaApplication with the addition of +// TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateSipMediaApplication for details on how to use this API operation. +// See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ChimeSDKVoice) UpdateSipMediaApplicationWithContext(ctx aws.Context, input *UpdateSipMediaApplicationInput, opts ...request.Option) (*UpdateSipMediaApplicationOutput, error) { - req, out := c.UpdateSipMediaApplicationRequest(input) +func (c *ChimeSDKVoice) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSipMediaApplicationCall = "UpdateSipMediaApplicationCall" +const opUntagResource = "UntagResource" -// UpdateSipMediaApplicationCallRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSipMediaApplicationCall operation. The "output" return +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSipMediaApplicationCall for more information on using the UpdateSipMediaApplicationCall +// See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the UpdateSipMediaApplicationCallRequest method. -// req, resp := client.UpdateSipMediaApplicationCallRequest(params) +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplicationCall -func (c *ChimeSDKVoice) UpdateSipMediaApplicationCallRequest(input *UpdateSipMediaApplicationCallInput) (req *request.Request, output *UpdateSipMediaApplicationCallOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UntagResource +func (c *ChimeSDKVoice) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opUpdateSipMediaApplicationCall, + Name: opUntagResource, HTTPMethod: "POST", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/calls/{transactionId}", + HTTPPath: "/tags?operation=untag-resource", } if input == nil { - input = &UpdateSipMediaApplicationCallInput{} + input = &UntagResourceInput{} } - output = &UpdateSipMediaApplicationCallOutput{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateSipMediaApplicationCall API operation for Amazon Chime SDK Voice. +// UntagResource API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateSipMediaApplicationCall for usage and error information. +// API operation UntagResource for usage and error information. // // Returned Error Types: // // - BadRequestException // -// - NotFoundException -// // - ForbiddenException // -// - ResourceLimitExceededException -// -// - ThrottledClientException +// - NotFoundException // // - UnauthorizedClientException // @@ -6642,169 +7786,164 @@ func (c *ChimeSDKVoice) UpdateSipMediaApplicationCallRequest(input *UpdateSipMed // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplicationCall -func (c *ChimeSDKVoice) UpdateSipMediaApplicationCall(input *UpdateSipMediaApplicationCallInput) (*UpdateSipMediaApplicationCallOutput, error) { - req, out := c.UpdateSipMediaApplicationCallRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UntagResource +func (c *ChimeSDKVoice) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) return out, req.Send() } -// UpdateSipMediaApplicationCallWithContext is the same as UpdateSipMediaApplicationCall with the addition of +// UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateSipMediaApplicationCall for details on how to use this API operation. +// See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ChimeSDKVoice) UpdateSipMediaApplicationCallWithContext(ctx aws.Context, input *UpdateSipMediaApplicationCallInput, opts ...request.Option) (*UpdateSipMediaApplicationCallOutput, error) { - req, out := c.UpdateSipMediaApplicationCallRequest(input) +func (c *ChimeSDKVoice) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSipRule = "UpdateSipRule" +const opUpdateGlobalSettings = "UpdateGlobalSettings" -// UpdateSipRuleRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSipRule operation. The "output" return +// UpdateGlobalSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGlobalSettings 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 UpdateSipRule for more information on using the UpdateSipRule +// See UpdateGlobalSettings for more information on using the UpdateGlobalSettings // 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 UpdateSipRuleRequest method. -// req, resp := client.UpdateSipRuleRequest(params) +// // Example sending a request using the UpdateGlobalSettingsRequest method. +// req, resp := client.UpdateGlobalSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipRule -func (c *ChimeSDKVoice) UpdateSipRuleRequest(input *UpdateSipRuleInput) (req *request.Request, output *UpdateSipRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateGlobalSettings +func (c *ChimeSDKVoice) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (req *request.Request, output *UpdateGlobalSettingsOutput) { op := &request.Operation{ - Name: opUpdateSipRule, + Name: opUpdateGlobalSettings, HTTPMethod: "PUT", - HTTPPath: "/sip-rules/{sipRuleId}", + HTTPPath: "/settings", } if input == nil { - input = &UpdateSipRuleInput{} + input = &UpdateGlobalSettingsInput{} } - output = &UpdateSipRuleOutput{} + output = &UpdateGlobalSettingsOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateSipRule API operation for Amazon Chime SDK Voice. +// UpdateGlobalSettings API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateSipRule for usage and error information. +// API operation UpdateGlobalSettings for usage and error information. // // Returned Error Types: // // - UnauthorizedClientException // -// - NotFoundException -// // - ForbiddenException // // - BadRequestException // -// - ConflictException -// // - ThrottledClientException // -// - ResourceLimitExceededException -// // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipRule -func (c *ChimeSDKVoice) UpdateSipRule(input *UpdateSipRuleInput) (*UpdateSipRuleOutput, error) { - req, out := c.UpdateSipRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateGlobalSettings +func (c *ChimeSDKVoice) UpdateGlobalSettings(input *UpdateGlobalSettingsInput) (*UpdateGlobalSettingsOutput, error) { + req, out := c.UpdateGlobalSettingsRequest(input) return out, req.Send() } -// UpdateSipRuleWithContext is the same as UpdateSipRule with the addition of +// UpdateGlobalSettingsWithContext is the same as UpdateGlobalSettings with the addition of // the ability to pass a context and additional request options. // -// See UpdateSipRule for details on how to use this API operation. +// See UpdateGlobalSettings 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 *ChimeSDKVoice) UpdateSipRuleWithContext(ctx aws.Context, input *UpdateSipRuleInput, opts ...request.Option) (*UpdateSipRuleOutput, error) { - req, out := c.UpdateSipRuleRequest(input) +func (c *ChimeSDKVoice) UpdateGlobalSettingsWithContext(ctx aws.Context, input *UpdateGlobalSettingsInput, opts ...request.Option) (*UpdateGlobalSettingsOutput, error) { + req, out := c.UpdateGlobalSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateVoiceConnector = "UpdateVoiceConnector" +const opUpdatePhoneNumber = "UpdatePhoneNumber" -// UpdateVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the UpdateVoiceConnector operation. The "output" return +// UpdatePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePhoneNumber 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 UpdateVoiceConnector for more information on using the UpdateVoiceConnector +// See UpdatePhoneNumber for more information on using the UpdatePhoneNumber // 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 UpdateVoiceConnectorRequest method. -// req, resp := client.UpdateVoiceConnectorRequest(params) +// // Example sending a request using the UpdatePhoneNumberRequest method. +// req, resp := client.UpdatePhoneNumberRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnector -func (c *ChimeSDKVoice) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (req *request.Request, output *UpdateVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumber +func (c *ChimeSDKVoice) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) { op := &request.Operation{ - Name: opUpdateVoiceConnector, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}", + Name: opUpdatePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers/{phoneNumberId}", } if input == nil { - input = &UpdateVoiceConnectorInput{} + input = &UpdatePhoneNumberInput{} } - output = &UpdateVoiceConnectorOutput{} + output = &UpdatePhoneNumberOutput{} req = c.newRequest(op, input, output) return } -// UpdateVoiceConnector API operation for Amazon Chime SDK Voice. +// UpdatePhoneNumber API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateVoiceConnector for usage and error information. +// API operation UpdatePhoneNumber for usage and error information. // // Returned Error Types: // @@ -6818,171 +7957,170 @@ func (c *ChimeSDKVoice) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorI // // - ThrottledClientException // +// - ConflictException +// // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnector -func (c *ChimeSDKVoice) UpdateVoiceConnector(input *UpdateVoiceConnectorInput) (*UpdateVoiceConnectorOutput, error) { - req, out := c.UpdateVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumber +func (c *ChimeSDKVoice) UpdatePhoneNumber(input *UpdatePhoneNumberInput) (*UpdatePhoneNumberOutput, error) { + req, out := c.UpdatePhoneNumberRequest(input) return out, req.Send() } -// UpdateVoiceConnectorWithContext is the same as UpdateVoiceConnector with the addition of +// UpdatePhoneNumberWithContext is the same as UpdatePhoneNumber with the addition of // the ability to pass a context and additional request options. // -// See UpdateVoiceConnector for details on how to use this API operation. +// See UpdatePhoneNumber 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 *ChimeSDKVoice) UpdateVoiceConnectorWithContext(ctx aws.Context, input *UpdateVoiceConnectorInput, opts ...request.Option) (*UpdateVoiceConnectorOutput, error) { - req, out := c.UpdateVoiceConnectorRequest(input) +func (c *ChimeSDKVoice) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhoneNumberInput, opts ...request.Option) (*UpdatePhoneNumberOutput, error) { + req, out := c.UpdatePhoneNumberRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateVoiceConnectorGroup = "UpdateVoiceConnectorGroup" +const opUpdatePhoneNumberSettings = "UpdatePhoneNumberSettings" -// UpdateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateVoiceConnectorGroup operation. The "output" return +// 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 UpdateVoiceConnectorGroup for more information on using the UpdateVoiceConnectorGroup +// 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 UpdateVoiceConnectorGroupRequest method. -// req, resp := client.UpdateVoiceConnectorGroupRequest(params) +// // 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-sdk-voice-2022-08-03/UpdateVoiceConnectorGroup -func (c *ChimeSDKVoice) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGroupInput) (req *request.Request, output *UpdateVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumberSettings +func (c *ChimeSDKVoice) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSettingsInput) (req *request.Request, output *UpdatePhoneNumberSettingsOutput) { op := &request.Operation{ - Name: opUpdateVoiceConnectorGroup, + Name: opUpdatePhoneNumberSettings, HTTPMethod: "PUT", - HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + HTTPPath: "/settings/phone-number", } if input == nil { - input = &UpdateVoiceConnectorGroupInput{} + input = &UpdatePhoneNumberSettingsInput{} } - output = &UpdateVoiceConnectorGroupOutput{} + output = &UpdatePhoneNumberSettingsOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// UpdatePhoneNumberSettings API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation UpdateVoiceConnectorGroup for usage and error information. +// API operation UpdatePhoneNumberSettings for usage and error information. // // Returned Error Types: // // - UnauthorizedClientException // -// - NotFoundException -// // - ForbiddenException // // - BadRequestException // -// - ConflictException -// // - ThrottledClientException // // - ServiceUnavailableException // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnectorGroup -func (c *ChimeSDKVoice) UpdateVoiceConnectorGroup(input *UpdateVoiceConnectorGroupInput) (*UpdateVoiceConnectorGroupOutput, error) { - req, out := c.UpdateVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumberSettings +func (c *ChimeSDKVoice) UpdatePhoneNumberSettings(input *UpdatePhoneNumberSettingsInput) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) return out, req.Send() } -// UpdateVoiceConnectorGroupWithContext is the same as UpdateVoiceConnectorGroup with the addition of +// UpdatePhoneNumberSettingsWithContext is the same as UpdatePhoneNumberSettings 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. +// 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 *ChimeSDKVoice) UpdateVoiceConnectorGroupWithContext(ctx aws.Context, input *UpdateVoiceConnectorGroupInput, opts ...request.Option) (*UpdateVoiceConnectorGroupOutput, error) { - req, out := c.UpdateVoiceConnectorGroupRequest(input) +func (c *ChimeSDKVoice) 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 opValidateE911Address = "ValidateE911Address" +const opUpdateProxySession = "UpdateProxySession" -// ValidateE911AddressRequest generates a "aws/request.Request" representing the -// client's request for the ValidateE911Address operation. The "output" return +// UpdateProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProxySession 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 ValidateE911Address for more information on using the ValidateE911Address +// See UpdateProxySession for more information on using the UpdateProxySession // 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 ValidateE911AddressRequest method. -// req, resp := client.ValidateE911AddressRequest(params) +// // Example sending a request using the UpdateProxySessionRequest method. +// req, resp := client.UpdateProxySessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ValidateE911Address -func (c *ChimeSDKVoice) ValidateE911AddressRequest(input *ValidateE911AddressInput) (req *request.Request, output *ValidateE911AddressOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateProxySession +func (c *ChimeSDKVoice) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req *request.Request, output *UpdateProxySessionOutput) { op := &request.Operation{ - Name: opValidateE911Address, + Name: opUpdateProxySession, HTTPMethod: "POST", - HTTPPath: "/emergency-calling/address", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", } if input == nil { - input = &ValidateE911AddressInput{} + input = &UpdateProxySessionInput{} } - output = &ValidateE911AddressOutput{} + output = &UpdateProxySessionOutput{} req = c.newRequest(op, input, output) return } -// ValidateE911Address API operation for Amazon Chime SDK Voice. +// UpdateProxySession API operation for Amazon Chime SDK Voice. // // 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 SDK Voice's -// API operation ValidateE911Address for usage and error information. +// API operation UpdateProxySession for usage and error information. // // Returned Error Types: // @@ -7000,143 +8138,2982 @@ func (c *ChimeSDKVoice) ValidateE911AddressRequest(input *ValidateE911AddressInp // // - ServiceFailureException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ValidateE911Address -func (c *ChimeSDKVoice) ValidateE911Address(input *ValidateE911AddressInput) (*ValidateE911AddressOutput, error) { - req, out := c.ValidateE911AddressRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateProxySession +func (c *ChimeSDKVoice) UpdateProxySession(input *UpdateProxySessionInput) (*UpdateProxySessionOutput, error) { + req, out := c.UpdateProxySessionRequest(input) return out, req.Send() } -// ValidateE911AddressWithContext is the same as ValidateE911Address with the addition of +// UpdateProxySessionWithContext is the same as UpdateProxySession with the addition of // the ability to pass a context and additional request options. // -// See ValidateE911Address for details on how to use this API operation. +// See UpdateProxySession 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 *ChimeSDKVoice) ValidateE911AddressWithContext(ctx aws.Context, input *ValidateE911AddressInput, opts ...request.Option) (*ValidateE911AddressOutput, error) { - req, out := c.ValidateE911AddressRequest(input) +func (c *ChimeSDKVoice) UpdateProxySessionWithContext(ctx aws.Context, input *UpdateProxySessionInput, opts ...request.Option) (*UpdateProxySessionOutput, error) { + req, out := c.UpdateProxySessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} +const opUpdateSipMediaApplication = "UpdateSipMediaApplication" -// String returns the string representation. +// UpdateSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipMediaApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) +// 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 UpdateSipMediaApplication for more information on using the UpdateSipMediaApplication +// 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 UpdateSipMediaApplicationRequest method. +// req, resp := client.UpdateSipMediaApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplication +func (c *ChimeSDKVoice) UpdateSipMediaApplicationRequest(input *UpdateSipMediaApplicationInput) (req *request.Request, output *UpdateSipMediaApplicationOutput) { + op := &request.Operation{ + Name: opUpdateSipMediaApplication, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + } + + if input == nil { + input = &UpdateSipMediaApplicationInput{} + } + + output = &UpdateSipMediaApplicationOutput{} + req = c.newRequest(op, input, output) + return } -// GoString returns the string representation. +// UpdateSipMediaApplication API operation for Amazon Chime SDK Voice. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() +// 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 SDK Voice's +// API operation UpdateSipMediaApplication for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplication +func (c *ChimeSDKVoice) UpdateSipMediaApplication(input *UpdateSipMediaApplicationInput) (*UpdateSipMediaApplicationOutput, error) { + req, out := c.UpdateSipMediaApplicationRequest(input) + return out, req.Send() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } +// UpdateSipMediaApplicationWithContext is the same as UpdateSipMediaApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipMediaApplication 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 *ChimeSDKVoice) UpdateSipMediaApplicationWithContext(ctx aws.Context, input *UpdateSipMediaApplicationInput, opts ...request.Option) (*UpdateSipMediaApplicationOutput, error) { + req, out := c.UpdateSipMediaApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} +const opUpdateSipMediaApplicationCall = "UpdateSipMediaApplicationCall" -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ +// UpdateSipMediaApplicationCallRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipMediaApplicationCall 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 UpdateSipMediaApplicationCall for more information on using the UpdateSipMediaApplicationCall +// 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 UpdateSipMediaApplicationCallRequest method. +// req, resp := client.UpdateSipMediaApplicationCallRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplicationCall +func (c *ChimeSDKVoice) UpdateSipMediaApplicationCallRequest(input *UpdateSipMediaApplicationCallInput) (req *request.Request, output *UpdateSipMediaApplicationCallOutput) { + op := &request.Operation{ + Name: opUpdateSipMediaApplicationCall, + HTTPMethod: "POST", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/calls/{transactionId}", } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} + if input == nil { + input = &UpdateSipMediaApplicationCallInput{} + } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + output = &UpdateSipMediaApplicationCallOutput{} + req = c.newRequest(op, input, output) + return } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// UpdateSipMediaApplicationCall API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation UpdateSipMediaApplicationCall for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - NotFoundException +// +// - ForbiddenException +// +// - ResourceLimitExceededException +// +// - ThrottledClientException +// +// - UnauthorizedClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplicationCall +func (c *ChimeSDKVoice) UpdateSipMediaApplicationCall(input *UpdateSipMediaApplicationCallInput) (*UpdateSipMediaApplicationCallOutput, error) { + req, out := c.UpdateSipMediaApplicationCallRequest(input) + return out, req.Send() } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// UpdateSipMediaApplicationCallWithContext is the same as UpdateSipMediaApplicationCall with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipMediaApplicationCall 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 *ChimeSDKVoice) UpdateSipMediaApplicationCallWithContext(ctx aws.Context, input *UpdateSipMediaApplicationCallInput, opts ...request.Option) (*UpdateSipMediaApplicationCallOutput, error) { + req, out := c.UpdateSipMediaApplicationCallRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -type Address struct { - _ struct{} `type:"structure"` +const opUpdateSipRule = "UpdateSipRule" - // City is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - City *string `locationName:"city" type:"string" sensitive:"true"` +// UpdateSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipRule 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 UpdateSipRule for more information on using the UpdateSipRule +// 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 UpdateSipRuleRequest method. +// req, resp := client.UpdateSipRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipRule +func (c *ChimeSDKVoice) UpdateSipRuleRequest(input *UpdateSipRuleInput) (req *request.Request, output *UpdateSipRuleOutput) { + op := &request.Operation{ + Name: opUpdateSipRule, + HTTPMethod: "PUT", + HTTPPath: "/sip-rules/{sipRuleId}", + } + + if input == nil { + input = &UpdateSipRuleInput{} + } + + output = &UpdateSipRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSipRule API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation UpdateSipRule for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipRule +func (c *ChimeSDKVoice) UpdateSipRule(input *UpdateSipRuleInput) (*UpdateSipRuleOutput, error) { + req, out := c.UpdateSipRuleRequest(input) + return out, req.Send() +} + +// UpdateSipRuleWithContext is the same as UpdateSipRule with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipRule 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 *ChimeSDKVoice) UpdateSipRuleWithContext(ctx aws.Context, input *UpdateSipRuleInput, opts ...request.Option) (*UpdateSipRuleOutput, error) { + req, out := c.UpdateSipRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVoiceConnector = "UpdateVoiceConnector" + +// UpdateVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceConnector 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 UpdateVoiceConnector for more information on using the UpdateVoiceConnector +// 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 UpdateVoiceConnectorRequest method. +// req, resp := client.UpdateVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnector +func (c *ChimeSDKVoice) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (req *request.Request, output *UpdateVoiceConnectorOutput) { + op := &request.Operation{ + Name: opUpdateVoiceConnector, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}", + } + + if input == nil { + input = &UpdateVoiceConnectorInput{} + } + + output = &UpdateVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceConnector API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation UpdateVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnector +func (c *ChimeSDKVoice) UpdateVoiceConnector(input *UpdateVoiceConnectorInput) (*UpdateVoiceConnectorOutput, error) { + req, out := c.UpdateVoiceConnectorRequest(input) + return out, req.Send() +} + +// UpdateVoiceConnectorWithContext is the same as UpdateVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceConnector 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 *ChimeSDKVoice) UpdateVoiceConnectorWithContext(ctx aws.Context, input *UpdateVoiceConnectorInput, opts ...request.Option) (*UpdateVoiceConnectorOutput, error) { + req, out := c.UpdateVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + 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-sdk-voice-2022-08-03/UpdateVoiceConnectorGroup +func (c *ChimeSDKVoice) 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 SDK Voice. +// +// 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 SDK Voice's +// API operation UpdateVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnectorGroup +func (c *ChimeSDKVoice) 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 *ChimeSDKVoice) 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() +} + +const opUpdateVoiceProfile = "UpdateVoiceProfile" + +// UpdateVoiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceProfile 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 UpdateVoiceProfile for more information on using the UpdateVoiceProfile +// 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 UpdateVoiceProfileRequest method. +// req, resp := client.UpdateVoiceProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceProfile +func (c *ChimeSDKVoice) UpdateVoiceProfileRequest(input *UpdateVoiceProfileInput) (req *request.Request, output *UpdateVoiceProfileOutput) { + op := &request.Operation{ + Name: opUpdateVoiceProfile, + HTTPMethod: "PUT", + HTTPPath: "/voice-profiles/{VoiceProfileId}", + } + + if input == nil { + input = &UpdateVoiceProfileInput{} + } + + output = &UpdateVoiceProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceProfile API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation UpdateVoiceProfile for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - NotFoundException +// +// - ConflictException +// +// - GoneException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceProfile +func (c *ChimeSDKVoice) UpdateVoiceProfile(input *UpdateVoiceProfileInput) (*UpdateVoiceProfileOutput, error) { + req, out := c.UpdateVoiceProfileRequest(input) + return out, req.Send() +} + +// UpdateVoiceProfileWithContext is the same as UpdateVoiceProfile with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceProfile 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 *ChimeSDKVoice) UpdateVoiceProfileWithContext(ctx aws.Context, input *UpdateVoiceProfileInput, opts ...request.Option) (*UpdateVoiceProfileOutput, error) { + req, out := c.UpdateVoiceProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVoiceProfileDomain = "UpdateVoiceProfileDomain" + +// UpdateVoiceProfileDomainRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceProfileDomain 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 UpdateVoiceProfileDomain for more information on using the UpdateVoiceProfileDomain +// 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 UpdateVoiceProfileDomainRequest method. +// req, resp := client.UpdateVoiceProfileDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceProfileDomain +func (c *ChimeSDKVoice) UpdateVoiceProfileDomainRequest(input *UpdateVoiceProfileDomainInput) (req *request.Request, output *UpdateVoiceProfileDomainOutput) { + op := &request.Operation{ + Name: opUpdateVoiceProfileDomain, + HTTPMethod: "PUT", + HTTPPath: "/voice-profile-domains/{VoiceProfileDomainId}", + } + + if input == nil { + input = &UpdateVoiceProfileDomainInput{} + } + + output = &UpdateVoiceProfileDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceProfileDomain API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation UpdateVoiceProfileDomain for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceProfileDomain +func (c *ChimeSDKVoice) UpdateVoiceProfileDomain(input *UpdateVoiceProfileDomainInput) (*UpdateVoiceProfileDomainOutput, error) { + req, out := c.UpdateVoiceProfileDomainRequest(input) + return out, req.Send() +} + +// UpdateVoiceProfileDomainWithContext is the same as UpdateVoiceProfileDomain with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceProfileDomain 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 *ChimeSDKVoice) UpdateVoiceProfileDomainWithContext(ctx aws.Context, input *UpdateVoiceProfileDomainInput, opts ...request.Option) (*UpdateVoiceProfileDomainOutput, error) { + req, out := c.UpdateVoiceProfileDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opValidateE911Address = "ValidateE911Address" + +// ValidateE911AddressRequest generates a "aws/request.Request" representing the +// client's request for the ValidateE911Address 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 ValidateE911Address for more information on using the ValidateE911Address +// 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 ValidateE911AddressRequest method. +// req, resp := client.ValidateE911AddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ValidateE911Address +func (c *ChimeSDKVoice) ValidateE911AddressRequest(input *ValidateE911AddressInput) (req *request.Request, output *ValidateE911AddressOutput) { + op := &request.Operation{ + Name: opValidateE911Address, + HTTPMethod: "POST", + HTTPPath: "/emergency-calling/address", + } + + if input == nil { + input = &ValidateE911AddressInput{} + } + + output = &ValidateE911AddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// ValidateE911Address API operation for Amazon Chime SDK Voice. +// +// 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 SDK Voice's +// API operation ValidateE911Address for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ValidateE911Address +func (c *ChimeSDKVoice) ValidateE911Address(input *ValidateE911AddressInput) (*ValidateE911AddressOutput, error) { + req, out := c.ValidateE911AddressRequest(input) + return out, req.Send() +} + +// ValidateE911AddressWithContext is the same as ValidateE911Address with the addition of +// the ability to pass a context and additional request options. +// +// See ValidateE911Address 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 *ChimeSDKVoice) ValidateE911AddressWithContext(ctx aws.Context, input *ValidateE911AddressInput, opts ...request.Option) (*ValidateE911AddressOutput, error) { + req, out := c.ValidateE911AddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +type Address struct { + _ struct{} `type:"structure"` + + // City is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + City *string `locationName:"city" type:"string" sensitive:"true"` + + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Country *string `locationName:"country" type:"string" sensitive:"true"` + + // PostDirectional is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostDirectional *string `locationName:"postDirectional" type:"string" sensitive:"true"` + + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostalCode *string `locationName:"postalCode" type:"string" sensitive:"true"` + + // PostalCodePlus4 is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostalCodePlus4 *string `locationName:"postalCodePlus4" type:"string" sensitive:"true"` + + // PreDirectional is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PreDirectional *string `locationName:"preDirectional" type:"string" sensitive:"true"` + + // State is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + State *string `locationName:"state" type:"string" sensitive:"true"` + + // StreetName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetName *string `locationName:"streetName" type:"string" sensitive:"true"` + + // StreetNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetNumber *string `locationName:"streetNumber" type:"string" sensitive:"true"` + + // StreetSuffix is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetSuffix *string `locationName:"streetSuffix" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) GoString() string { + return s.String() +} + +// SetCity sets the City field's value. +func (s *Address) SetCity(v string) *Address { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *Address) SetCountry(v string) *Address { + s.Country = &v + return s +} + +// SetPostDirectional sets the PostDirectional field's value. +func (s *Address) SetPostDirectional(v string) *Address { + s.PostDirectional = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *Address) SetPostalCode(v string) *Address { + s.PostalCode = &v + return s +} + +// SetPostalCodePlus4 sets the PostalCodePlus4 field's value. +func (s *Address) SetPostalCodePlus4(v string) *Address { + s.PostalCodePlus4 = &v + return s +} + +// SetPreDirectional sets the PreDirectional field's value. +func (s *Address) SetPreDirectional(v string) *Address { + s.PreDirectional = &v + return s +} + +// SetState sets the State field's value. +func (s *Address) SetState(v string) *Address { + s.State = &v + return s +} + +// SetStreetName sets the StreetName field's value. +func (s *Address) SetStreetName(v string) *Address { + s.StreetName = &v + return s +} + +// SetStreetNumber sets the StreetNumber field's value. +func (s *Address) SetStreetNumber(v string) *Address { + s.StreetNumber = &v + return s +} + +// SetStreetSuffix sets the StreetSuffix field's value. +func (s *Address) SetStreetSuffix(v string) *Address { + s.StreetSuffix = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + ForceAssociate *bool `type:"boolean"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + 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 +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.E164PhoneNumbers = v + return s +} + +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.ForceAssociate = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + ForceAssociate *bool `type:"boolean"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + 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 +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.E164PhoneNumbers = 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 + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorOutput { + s.PhoneNumberErrors = v + return s +} + +type BadRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil +} + +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BadRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BadRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + +type BatchDeletePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // PhoneNumberIds is a required field + PhoneNumberIds []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDeletePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDeletePhoneNumberInput"} + if s.PhoneNumberIds == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberIds")) + } + if s.PhoneNumberIds != nil && len(s.PhoneNumberIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberIds sets the PhoneNumberIds field's value. +func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { + s.PhoneNumberIds = v + return s +} + +type BatchDeletePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *BatchDeletePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchDeletePhoneNumberOutput { + s.PhoneNumberErrors = v + return s +} + +type BatchUpdatePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // UpdatePhoneNumberRequestItems is a required field + UpdatePhoneNumberRequestItems []*UpdatePhoneNumberRequestItem `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdatePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdatePhoneNumberInput"} + if s.UpdatePhoneNumberRequestItems == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatePhoneNumberRequestItems")) + } + if s.UpdatePhoneNumberRequestItems != nil { + for i, v := range s.UpdatePhoneNumberRequestItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdatePhoneNumberRequestItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUpdatePhoneNumberRequestItems sets the UpdatePhoneNumberRequestItems field's value. +func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { + s.UpdatePhoneNumberRequestItems = v + return s +} + +type BatchUpdatePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *BatchUpdatePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchUpdatePhoneNumberOutput { + s.PhoneNumberErrors = v + return s +} + +type CallDetails struct { + _ struct{} `type:"structure"` + + IsCaller *bool `type:"boolean"` + + TransactionId *string `min:"1" type:"string"` + + VoiceConnectorId *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CallDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CallDetails) GoString() string { + return s.String() +} + +// SetIsCaller sets the IsCaller field's value. +func (s *CallDetails) SetIsCaller(v bool) *CallDetails { + s.IsCaller = &v + return s +} + +// SetTransactionId sets the TransactionId field's value. +func (s *CallDetails) SetTransactionId(v string) *CallDetails { + s.TransactionId = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *CallDetails) SetVoiceConnectorId(v string) *CallDetails { + s.VoiceConnectorId = &v + return s +} + +type CandidateAddress struct { + _ struct{} `type:"structure"` + + // City is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + City *string `locationName:"city" type:"string" sensitive:"true"` + + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + Country *string `locationName:"country" type:"string" sensitive:"true"` + + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + PostalCode *string `locationName:"postalCode" type:"string" sensitive:"true"` + + // PostalCodePlus4 is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + PostalCodePlus4 *string `locationName:"postalCodePlus4" type:"string" sensitive:"true"` + + // State is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + State *string `locationName:"state" type:"string" sensitive:"true"` + + // StreetInfo is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + StreetInfo *string `locationName:"streetInfo" type:"string" sensitive:"true"` + + // StreetNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + StreetNumber *string `locationName:"streetNumber" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CandidateAddress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CandidateAddress) GoString() string { + return s.String() +} + +// SetCity sets the City field's value. +func (s *CandidateAddress) SetCity(v string) *CandidateAddress { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *CandidateAddress) SetCountry(v string) *CandidateAddress { + s.Country = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *CandidateAddress) SetPostalCode(v string) *CandidateAddress { + s.PostalCode = &v + return s +} + +// SetPostalCodePlus4 sets the PostalCodePlus4 field's value. +func (s *CandidateAddress) SetPostalCodePlus4(v string) *CandidateAddress { + s.PostalCodePlus4 = &v + return s +} + +// SetState sets the State field's value. +func (s *CandidateAddress) SetState(v string) *CandidateAddress { + s.State = &v + return s +} + +// SetStreetInfo sets the StreetInfo field's value. +func (s *CandidateAddress) SetStreetInfo(v string) *CandidateAddress { + s.StreetInfo = &v + return s +} + +// SetStreetNumber sets the StreetNumber field's value. +func (s *CandidateAddress) SetStreetNumber(v string) *CandidateAddress { + s.StreetNumber = &v + return s +} + +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreatePhoneNumberOrderInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // ProductType is a required field + ProductType *string `type:"string" required:"true" enum:"PhoneNumberProductType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePhoneNumberOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePhoneNumberOrderInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.ProductType == nil { + invalidParams.Add(request.NewErrParamRequired("ProductType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *CreatePhoneNumberOrderInput) SetE164PhoneNumbers(v []*string) *CreatePhoneNumberOrderInput { + s.E164PhoneNumbers = v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *CreatePhoneNumberOrderInput) SetProductType(v string) *CreatePhoneNumberOrderInput { + s.ProductType = &v + return s +} + +type CreatePhoneNumberOrderOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberOrder *PhoneNumberOrder `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. +func (s *CreatePhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *CreatePhoneNumberOrderOutput { + s.PhoneNumberOrder = v + return s +} + +type CreateProxySessionInput struct { + _ struct{} `type:"structure"` + + // Capabilities is a required field + Capabilities []*string `type:"list" required:"true" enum:"Capability"` + + ExpiryMinutes *int64 `min:"1" type:"integer"` + + GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` + + GeoMatchParams *GeoMatchParams `type:"structure"` + + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateProxySessionInput's + // String and GoString methods. + Name *string `type:"string" sensitive:"true"` + + NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` + + // ParticipantPhoneNumbers is a required field + ParticipantPhoneNumbers []*string `min:"2" type:"list" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProxySessionInput"} + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) + } + if s.ParticipantPhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("ParticipantPhoneNumbers")) + } + if s.ParticipantPhoneNumbers != nil && len(s.ParticipantPhoneNumbers) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ParticipantPhoneNumbers", 2)) + } + 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.GeoMatchParams != nil { + if err := s.GeoMatchParams.Validate(); err != nil { + invalidParams.AddNested("GeoMatchParams", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapabilities sets the Capabilities field's value. +func (s *CreateProxySessionInput) SetCapabilities(v []*string) *CreateProxySessionInput { + s.Capabilities = v + return s +} + +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *CreateProxySessionInput) SetExpiryMinutes(v int64) *CreateProxySessionInput { + s.ExpiryMinutes = &v + return s +} + +// SetGeoMatchLevel sets the GeoMatchLevel field's value. +func (s *CreateProxySessionInput) SetGeoMatchLevel(v string) *CreateProxySessionInput { + s.GeoMatchLevel = &v + return s +} + +// SetGeoMatchParams sets the GeoMatchParams field's value. +func (s *CreateProxySessionInput) SetGeoMatchParams(v *GeoMatchParams) *CreateProxySessionInput { + s.GeoMatchParams = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateProxySessionInput) SetName(v string) *CreateProxySessionInput { + s.Name = &v + return s +} + +// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. +func (s *CreateProxySessionInput) SetNumberSelectionBehavior(v string) *CreateProxySessionInput { + s.NumberSelectionBehavior = &v + return s +} + +// SetParticipantPhoneNumbers sets the ParticipantPhoneNumbers field's value. +func (s *CreateProxySessionInput) SetParticipantPhoneNumbers(v []*string) *CreateProxySessionInput { + s.ParticipantPhoneNumbers = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *CreateProxySessionInput) SetVoiceConnectorId(v string) *CreateProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type CreateProxySessionOutput struct { + _ struct{} `type:"structure"` + + ProxySession *ProxySession `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionOutput) GoString() string { + return s.String() +} + +// SetProxySession sets the ProxySession field's value. +func (s *CreateProxySessionOutput) SetProxySession(v *ProxySession) *CreateProxySessionOutput { + s.ProxySession = v + return s +} + +type CreateSipMediaApplicationCallInput struct { + _ struct{} `type:"structure"` + + ArgumentsMap map[string]*string `type:"map"` + + // FromPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateSipMediaApplicationCallInput's + // String and GoString methods. + // FromPhoneNumber is a required field + FromPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + SipHeaders map[string]*string `type:"map"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + + // ToPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateSipMediaApplicationCallInput's + // String and GoString methods. + // ToPhoneNumber is a required field + ToPhoneNumber *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipMediaApplicationCallInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationCallInput"} + if s.FromPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("FromPhoneNumber")) + } + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + if s.ToPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("ToPhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArgumentsMap sets the ArgumentsMap field's value. +func (s *CreateSipMediaApplicationCallInput) SetArgumentsMap(v map[string]*string) *CreateSipMediaApplicationCallInput { + s.ArgumentsMap = v + return s +} + +// SetFromPhoneNumber sets the FromPhoneNumber field's value. +func (s *CreateSipMediaApplicationCallInput) SetFromPhoneNumber(v string) *CreateSipMediaApplicationCallInput { + s.FromPhoneNumber = &v + return s +} + +// SetSipHeaders sets the SipHeaders field's value. +func (s *CreateSipMediaApplicationCallInput) SetSipHeaders(v map[string]*string) *CreateSipMediaApplicationCallInput { + s.SipHeaders = v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *CreateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *CreateSipMediaApplicationCallInput { + s.SipMediaApplicationId = &v + return s +} + +// SetToPhoneNumber sets the ToPhoneNumber field's value. +func (s *CreateSipMediaApplicationCallInput) SetToPhoneNumber(v string) *CreateSipMediaApplicationCallInput { + s.ToPhoneNumber = &v + return s +} + +type CreateSipMediaApplicationCallOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. +func (s *CreateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *CreateSipMediaApplicationCallOutput { + s.SipMediaApplicationCall = v + return s +} + +type CreateSipMediaApplicationInput struct { + _ struct{} `type:"structure"` + + // AwsRegion is a required field + AwsRegion *string `type:"string" required:"true"` + + // Endpoints is a required field + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list" required:"true"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationInput"} + if s.AwsRegion == nil { + invalidParams.Add(request.NewErrParamRequired("AwsRegion")) + } + if s.Endpoints == nil { + invalidParams.Add(request.NewErrParamRequired("Endpoints")) + } + if s.Endpoints != nil && len(s.Endpoints) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *CreateSipMediaApplicationInput) SetAwsRegion(v string) *CreateSipMediaApplicationInput { + s.AwsRegion = &v + return s +} + +// SetEndpoints sets the Endpoints field's value. +func (s *CreateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *CreateSipMediaApplicationInput { + s.Endpoints = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSipMediaApplicationInput) SetName(v string) *CreateSipMediaApplicationInput { + s.Name = &v + return s +} + +type CreateSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplication *SipMediaApplication `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *CreateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *CreateSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type CreateSipRuleInput struct { + _ struct{} `type:"structure"` + + Disabled *bool `type:"boolean"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` + + // TriggerType is a required field + TriggerType *string `type:"string" required:"true" enum:"SipRuleTriggerType"` + + // TriggerValue is a required field + TriggerValue *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipRuleInput"} + 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.TargetApplications != nil && len(s.TargetApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) + } + if s.TriggerType == nil { + invalidParams.Add(request.NewErrParamRequired("TriggerType")) + } + if s.TriggerValue == nil { + invalidParams.Add(request.NewErrParamRequired("TriggerValue")) + } + if s.TargetApplications != nil { + for i, v := range s.TargetApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisabled sets the Disabled field's value. +func (s *CreateSipRuleInput) SetDisabled(v bool) *CreateSipRuleInput { + s.Disabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSipRuleInput) SetName(v string) *CreateSipRuleInput { + s.Name = &v + return s +} + +// SetTargetApplications sets the TargetApplications field's value. +func (s *CreateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *CreateSipRuleInput { + s.TargetApplications = v + return s +} + +// SetTriggerType sets the TriggerType field's value. +func (s *CreateSipRuleInput) SetTriggerType(v string) *CreateSipRuleInput { + s.TriggerType = &v + return s +} + +// SetTriggerValue sets the TriggerValue field's value. +func (s *CreateSipRuleInput) SetTriggerValue(v string) *CreateSipRuleInput { + s.TriggerValue = &v + return s +} + +type CreateSipRuleOutput struct { + _ struct{} `type:"structure"` + + SipRule *SipRule `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleOutput) GoString() string { + return s.String() +} + +// SetSipRule sets the SipRule field's value. +func (s *CreateSipRuleOutput) SetSipRule(v *SipRule) *CreateSipRuleOutput { + s.SipRule = v + return s +} + +type CreateVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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"` + + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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"` + + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // RequireEncryption is a required field + RequireEncryption *bool `type:"boolean" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorInput"} + 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.RequireEncryption == nil { + invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 + return s +} + +// SetRequireEncryption sets the RequireEncryption field's value. +func (s *CreateVoiceConnectorInput) SetRequireEncryption(v bool) *CreateVoiceConnectorInput { + s.RequireEncryption = &v + return s +} + +type CreateVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnector `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *CreateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *CreateVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +type CreateVoiceProfileDomainInput struct { + _ struct{} `type:"structure"` + + ClientRequestToken *string `type:"string"` + + Description *string `type:"string"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // ServerSideEncryptionConfiguration is a required field + ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure" required:"true"` + + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceProfileDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceProfileDomainInput"} + 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.ServerSideEncryptionConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ServerSideEncryptionConfiguration")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.ServerSideEncryptionConfiguration != nil { + if err := s.ServerSideEncryptionConfiguration.Validate(); err != nil { + invalidParams.AddNested("ServerSideEncryptionConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateVoiceProfileDomainInput) SetClientRequestToken(v string) *CreateVoiceProfileDomainInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateVoiceProfileDomainInput) SetDescription(v string) *CreateVoiceProfileDomainInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateVoiceProfileDomainInput) SetName(v string) *CreateVoiceProfileDomainInput { + s.Name = &v + return s +} + +// SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value. +func (s *CreateVoiceProfileDomainInput) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *CreateVoiceProfileDomainInput { + s.ServerSideEncryptionConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateVoiceProfileDomainInput) SetTags(v []*Tag) *CreateVoiceProfileDomainInput { + s.Tags = v + return s +} + +type CreateVoiceProfileDomainOutput struct { + _ struct{} `type:"structure"` + + VoiceProfileDomain *VoiceProfileDomain `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileDomainOutput) GoString() string { + return s.String() +} + +// SetVoiceProfileDomain sets the VoiceProfileDomain field's value. +func (s *CreateVoiceProfileDomainOutput) SetVoiceProfileDomain(v *VoiceProfileDomain) *CreateVoiceProfileDomainOutput { + s.VoiceProfileDomain = v + return s +} + +type CreateVoiceProfileInput struct { + _ struct{} `type:"structure"` + + // SpeakerSearchTaskId is a required field + SpeakerSearchTaskId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceProfileInput"} + if s.SpeakerSearchTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("SpeakerSearchTaskId")) + } + if s.SpeakerSearchTaskId != nil && len(*s.SpeakerSearchTaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SpeakerSearchTaskId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *CreateVoiceProfileInput) SetSpeakerSearchTaskId(v string) *CreateVoiceProfileInput { + s.SpeakerSearchTaskId = &v + return s +} + +type CreateVoiceProfileOutput struct { + _ struct{} `type:"structure"` + + VoiceProfile *VoiceProfile `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceProfileOutput) GoString() string { + return s.String() +} + +// SetVoiceProfile sets the VoiceProfile field's value. +func (s *CreateVoiceProfileOutput) SetVoiceProfile(v *VoiceProfile) *CreateVoiceProfileOutput { + s.VoiceProfile = v + return s +} + +type Credential struct { + _ struct{} `type:"structure"` + + // Password is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Credential's + // String and GoString methods. + Password *string `type:"string" sensitive:"true"` + + // Username is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Credential's + // String and GoString methods. + Username *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Credential) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Credential) GoString() string { + return s.String() +} + +// SetPassword sets the Password field's value. +func (s *Credential) SetPassword(v string) *Credential { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Credential) SetUsername(v string) *Credential { + s.Username = &v + return s +} + +type DNISEmergencyCallingConfiguration struct { + _ struct{} `type:"structure"` + + // CallingCountry is a required field + CallingCountry *string `type:"string" required:"true"` + + // EmergencyPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DNISEmergencyCallingConfiguration's + // String and GoString methods. + // EmergencyPhoneNumber is a required field + EmergencyPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + // TestPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DNISEmergencyCallingConfiguration's + // String and GoString methods. + TestPhoneNumber *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DNISEmergencyCallingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DNISEmergencyCallingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DNISEmergencyCallingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DNISEmergencyCallingConfiguration"} + if s.CallingCountry == nil { + invalidParams.Add(request.NewErrParamRequired("CallingCountry")) + } + if s.EmergencyPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("EmergencyPhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingCountry sets the CallingCountry field's value. +func (s *DNISEmergencyCallingConfiguration) SetCallingCountry(v string) *DNISEmergencyCallingConfiguration { + s.CallingCountry = &v + return s +} + +// SetEmergencyPhoneNumber sets the EmergencyPhoneNumber field's value. +func (s *DNISEmergencyCallingConfiguration) SetEmergencyPhoneNumber(v string) *DNISEmergencyCallingConfiguration { + s.EmergencyPhoneNumber = &v + return s +} + +// SetTestPhoneNumber sets the TestPhoneNumber field's value. +func (s *DNISEmergencyCallingConfiguration) SetTestPhoneNumber(v string) *DNISEmergencyCallingConfiguration { + s.TestPhoneNumber = &v + return s +} + +type DeletePhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DeletePhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *DeletePhoneNumberInput) SetPhoneNumberId(v string) *DeletePhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +type DeletePhoneNumberOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} - // Country is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - Country *string `locationName:"country" type:"string" sensitive:"true"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberOutput) GoString() string { + return s.String() +} - // PostDirectional is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - PostDirectional *string `locationName:"postDirectional" type:"string" sensitive:"true"` +type DeleteProxySessionInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // PostalCode is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - PostalCode *string `locationName:"postalCode" type:"string" sensitive:"true"` + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` - // PostalCodePlus4 is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - PostalCodePlus4 *string `locationName:"postalCodePlus4" type:"string" sensitive:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} - // PreDirectional is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - PreDirectional *string `locationName:"preDirectional" type:"string" sensitive:"true"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionInput) String() string { + return awsutil.Prettify(s) +} - // State is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - State *string `locationName:"state" type:"string" sensitive:"true"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionInput) GoString() string { + return s.String() +} - // StreetName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - StreetName *string `locationName:"streetName" type:"string" sensitive:"true"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProxySessionInput"} + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + } + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } - // StreetNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - StreetNumber *string `locationName:"streetNumber" type:"string" sensitive:"true"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProxySessionId sets the ProxySessionId field's value. +func (s *DeleteProxySessionInput) SetProxySessionId(v string) *DeleteProxySessionInput { + s.ProxySessionId = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteProxySessionInput) SetVoiceConnectorId(v string) *DeleteProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteProxySessionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionOutput) GoString() string { + return s.String() +} + +type DeleteSipMediaApplicationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSipMediaApplicationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *DeleteSipMediaApplicationInput) SetSipMediaApplicationId(v string) *DeleteSipMediaApplicationInput { + s.SipMediaApplicationId = &v + return s +} + +type DeleteSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationOutput) GoString() string { + return s.String() +} + +type DeleteSipRuleInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSipRuleInput"} + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) + } + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipRuleId sets the SipRuleId field's value. +func (s *DeleteSipRuleInput) SetSipRuleId(v string) *DeleteSipRuleInput { + s.SipRuleId = &v + return s +} + +type DeleteSipRuleOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorEmergencyCallingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // StreetSuffix is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Address's - // String and GoString methods. - StreetSuffix *string `locationName:"streetSuffix" type:"string" sensitive:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -7144,7 +11121,7 @@ type Address struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Address) String() string { +func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -7153,77 +11130,56 @@ func (s Address) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Address) GoString() string { +func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { return s.String() } -// SetCity sets the City field's value. -func (s *Address) SetCity(v string) *Address { - s.City = &v - return s -} - -// SetCountry sets the Country field's value. -func (s *Address) SetCountry(v string) *Address { - s.Country = &v - return s -} - -// SetPostDirectional sets the PostDirectional field's value. -func (s *Address) SetPostDirectional(v string) *Address { - s.PostDirectional = &v - return s -} - -// SetPostalCode sets the PostalCode field's value. -func (s *Address) SetPostalCode(v string) *Address { - s.PostalCode = &v - return s -} - -// SetPostalCodePlus4 sets the PostalCodePlus4 field's value. -func (s *Address) SetPostalCodePlus4(v string) *Address { - s.PostalCodePlus4 = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorEmergencyCallingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } -// SetPreDirectional sets the PreDirectional field's value. -func (s *Address) SetPreDirectional(v string) *Address { - s.PreDirectional = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetState sets the State field's value. -func (s *Address) SetState(v string) *Address { - s.State = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v return s } -// SetStreetName sets the StreetName field's value. -func (s *Address) SetStreetName(v string) *Address { - s.StreetName = &v - return s +type DeleteVoiceConnectorEmergencyCallingConfigurationOutput struct { + _ struct{} `type:"structure"` } -// SetStreetNumber sets the StreetNumber field's value. -func (s *Address) SetStreetNumber(v string) *Address { - s.StreetNumber = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) String() string { + return awsutil.Prettify(s) } -// SetStreetSuffix sets the StreetSuffix field's value. -func (s *Address) SetStreetSuffix(v string) *Address { - s.StreetSuffix = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { + return s.String() } -type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { - _ struct{} `type:"structure"` - - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` - - ForceAssociate *bool `type:"boolean"` +type DeleteVoiceConnectorGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorGroupId is a required field VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` @@ -7234,7 +11190,7 @@ type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { +func (s DeleteVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } @@ -7243,16 +11199,13 @@ func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) GoString() string { +func (s DeleteVoiceConnectorGroupInput) 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.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) - } +func (s *DeleteVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorGroupInput"} if s.VoiceConnectorGroupId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } @@ -7266,28 +11219,14 @@ func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { - s.E164PhoneNumbers = v - return s -} - -// SetForceAssociate sets the ForceAssociate field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { - s.ForceAssociate = &v - return s -} - // SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { +func (s *DeleteVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DeleteVoiceConnectorGroupInput { s.VoiceConnectorGroupId = &v return s } -type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { +type DeleteVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` - - PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation. @@ -7295,7 +11234,7 @@ type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { +func (s DeleteVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } @@ -7304,23 +11243,12 @@ func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) GoString() string { +func (s DeleteVoiceConnectorGroupOutput) 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"` - - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` - - ForceAssociate *bool `type:"boolean"` +type DeleteVoiceConnectorInput struct { + _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorId is a required field VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` @@ -7331,7 +11259,7 @@ type AssociatePhoneNumbersWithVoiceConnectorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorInput) String() string { +func (s DeleteVoiceConnectorInput) String() string { return awsutil.Prettify(s) } @@ -7340,16 +11268,13 @@ func (s AssociatePhoneNumbersWithVoiceConnectorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorInput) GoString() string { +func (s DeleteVoiceConnectorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) - } +func (s *DeleteVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -7363,28 +11288,17 @@ func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorInput { - s.E164PhoneNumbers = 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 { +func (s *DeleteVoiceConnectorInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorInput { s.VoiceConnectorId = &v return s } -type AssociatePhoneNumbersWithVoiceConnectorOutput struct { - _ struct{} `type:"structure"` +type DeleteVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - PhoneNumberErrors []*PhoneNumberError `type:"list"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -7392,7 +11306,7 @@ type AssociatePhoneNumbersWithVoiceConnectorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorOutput) String() string { +func (s DeleteVoiceConnectorOriginationInput) String() string { return awsutil.Prettify(s) } @@ -7401,21 +11315,34 @@ func (s AssociatePhoneNumbersWithVoiceConnectorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatePhoneNumbersWithVoiceConnectorOutput) GoString() string { +func (s DeleteVoiceConnectorOriginationInput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorOutput { - s.PhoneNumberErrors = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorOriginationInput"} + 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 } -type BadRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v + return s +} - Message_ *string `locationName:"message" type:"string"` +type DeleteVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -7423,7 +11350,7 @@ type BadRequestException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BadRequestException) String() string { +func (s DeleteVoiceConnectorOriginationOutput) String() string { return awsutil.Prettify(s) } @@ -7432,53 +11359,37 @@ func (s BadRequestException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BadRequestException) GoString() string { +func (s DeleteVoiceConnectorOriginationOutput) GoString() string { return s.String() } -func newErrorBadRequestException(v protocol.ResponseMetadata) error { - return &BadRequestException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *BadRequestException) Code() string { - return "BadRequestException" -} - -// Message returns the exception's message. -func (s *BadRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *BadRequestException) OrigErr() error { - return nil -} - -func (s *BadRequestException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +type DeleteVoiceConnectorOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *BadRequestException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *BadRequestException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOutput) GoString() string { + return s.String() } -type BatchDeletePhoneNumberInput struct { - _ struct{} `type:"structure"` +type DeleteVoiceConnectorProxyInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // PhoneNumberIds is a required field - PhoneNumberIds []*string `min:"1" type:"list" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -7486,7 +11397,7 @@ type BatchDeletePhoneNumberInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchDeletePhoneNumberInput) String() string { +func (s DeleteVoiceConnectorProxyInput) String() string { return awsutil.Prettify(s) } @@ -7495,18 +11406,18 @@ func (s BatchDeletePhoneNumberInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchDeletePhoneNumberInput) GoString() string { +func (s DeleteVoiceConnectorProxyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDeletePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDeletePhoneNumberInput"} - if s.PhoneNumberIds == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberIds")) +func (s *DeleteVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorProxyInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.PhoneNumberIds != nil && len(s.PhoneNumberIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberIds", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -7515,16 +11426,14 @@ func (s *BatchDeletePhoneNumberInput) Validate() error { return nil } -// SetPhoneNumberIds sets the PhoneNumberIds field's value. -func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { - s.PhoneNumberIds = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorProxyInput { + s.VoiceConnectorId = &v return s } -type BatchDeletePhoneNumberOutput struct { +type DeleteVoiceConnectorProxyOutput struct { _ struct{} `type:"structure"` - - PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation. @@ -7532,7 +11441,7 @@ type BatchDeletePhoneNumberOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchDeletePhoneNumberOutput) String() string { +func (s DeleteVoiceConnectorProxyOutput) String() string { return awsutil.Prettify(s) } @@ -7541,21 +11450,15 @@ func (s BatchDeletePhoneNumberOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchDeletePhoneNumberOutput) GoString() string { +func (s DeleteVoiceConnectorProxyOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *BatchDeletePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchDeletePhoneNumberOutput { - s.PhoneNumberErrors = v - return s -} - -type BatchUpdatePhoneNumberInput struct { - _ struct{} `type:"structure"` +type DeleteVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // UpdatePhoneNumberRequestItems is a required field - UpdatePhoneNumberRequestItems []*UpdatePhoneNumberRequestItem `type:"list" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -7563,7 +11466,7 @@ type BatchUpdatePhoneNumberInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchUpdatePhoneNumberInput) String() string { +func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -7572,25 +11475,18 @@ func (s BatchUpdatePhoneNumberInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchUpdatePhoneNumberInput) GoString() string { +func (s DeleteVoiceConnectorStreamingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchUpdatePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchUpdatePhoneNumberInput"} - if s.UpdatePhoneNumberRequestItems == nil { - invalidParams.Add(request.NewErrParamRequired("UpdatePhoneNumberRequestItems")) +func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.UpdatePhoneNumberRequestItems != nil { - for i, v := range s.UpdatePhoneNumberRequestItems { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdatePhoneNumberRequestItems", i), err.(request.ErrInvalidParams)) - } - } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -7599,16 +11495,14 @@ func (s *BatchUpdatePhoneNumberInput) Validate() error { return nil } -// SetUpdatePhoneNumberRequestItems sets the UpdatePhoneNumberRequestItems field's value. -func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { - s.UpdatePhoneNumberRequestItems = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v return s } -type BatchUpdatePhoneNumberOutput struct { +type DeleteVoiceConnectorStreamingConfigurationOutput struct { _ struct{} `type:"structure"` - - PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation. @@ -7616,7 +11510,7 @@ type BatchUpdatePhoneNumberOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchUpdatePhoneNumberOutput) String() string { +func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -7625,53 +11519,18 @@ func (s BatchUpdatePhoneNumberOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s BatchUpdatePhoneNumberOutput) GoString() string { +func (s DeleteVoiceConnectorStreamingConfigurationOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *BatchUpdatePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchUpdatePhoneNumberOutput { - s.PhoneNumberErrors = v - return s -} - -type CandidateAddress struct { +type DeleteVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` - // City is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - City *string `locationName:"city" type:"string" sensitive:"true"` - - // Country is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - Country *string `locationName:"country" type:"string" sensitive:"true"` - - // PostalCode is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - PostalCode *string `locationName:"postalCode" type:"string" sensitive:"true"` - - // PostalCodePlus4 is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - PostalCodePlus4 *string `locationName:"postalCodePlus4" type:"string" sensitive:"true"` - - // State is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - State *string `locationName:"state" type:"string" sensitive:"true"` - - // StreetInfo is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - StreetInfo *string `locationName:"streetInfo" type:"string" sensitive:"true"` + // Usernames is a required field + Usernames []*string `type:"list" required:"true"` - // StreetNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CandidateAddress's - // String and GoString methods. - StreetNumber *string `locationName:"streetNumber" type:"string" sensitive:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -7679,7 +11538,7 @@ type CandidateAddress struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CandidateAddress) String() string { +func (s DeleteVoiceConnectorTerminationCredentialsInput) String() string { return awsutil.Prettify(s) } @@ -7688,57 +11547,43 @@ func (s CandidateAddress) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CandidateAddress) GoString() string { +func (s DeleteVoiceConnectorTerminationCredentialsInput) GoString() string { return s.String() } -// SetCity sets the City field's value. -func (s *CandidateAddress) SetCity(v string) *CandidateAddress { - s.City = &v - return s -} - -// SetCountry sets the Country field's value. -func (s *CandidateAddress) SetCountry(v string) *CandidateAddress { - s.Country = &v - return s -} - -// SetPostalCode sets the PostalCode field's value. -func (s *CandidateAddress) SetPostalCode(v string) *CandidateAddress { - s.PostalCode = &v - return s -} - -// SetPostalCodePlus4 sets the PostalCodePlus4 field's value. -func (s *CandidateAddress) SetPostalCodePlus4(v string) *CandidateAddress { - s.PostalCodePlus4 = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationCredentialsInput"} + if s.Usernames == nil { + invalidParams.Add(request.NewErrParamRequired("Usernames")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } -// SetState sets the State field's value. -func (s *CandidateAddress) SetState(v string) *CandidateAddress { - s.State = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetStreetInfo sets the StreetInfo field's value. -func (s *CandidateAddress) SetStreetInfo(v string) *CandidateAddress { - s.StreetInfo = &v +// SetUsernames sets the Usernames field's value. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetUsernames(v []*string) *DeleteVoiceConnectorTerminationCredentialsInput { + s.Usernames = v return s } -// SetStreetNumber sets the StreetNumber field's value. -func (s *CandidateAddress) SetStreetNumber(v string) *CandidateAddress { - s.StreetNumber = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v return s } -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` +type DeleteVoiceConnectorTerminationCredentialsOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -7746,7 +11591,7 @@ type ConflictException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) String() string { +func (s DeleteVoiceConnectorTerminationCredentialsOutput) String() string { return awsutil.Prettify(s) } @@ -7755,56 +11600,15 @@ func (s ConflictException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ConflictException) GoString() string { +func (s DeleteVoiceConnectorTerminationCredentialsOutput) GoString() string { return s.String() -} - -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} - -type CreatePhoneNumberOrderInput struct { - _ struct{} `type:"structure"` +} - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` +type DeleteVoiceConnectorTerminationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // ProductType is a required field - ProductType *string `type:"string" required:"true" enum:"PhoneNumberProductType"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -7812,7 +11616,7 @@ type CreatePhoneNumberOrderInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreatePhoneNumberOrderInput) String() string { +func (s DeleteVoiceConnectorTerminationInput) String() string { return awsutil.Prettify(s) } @@ -7821,18 +11625,18 @@ func (s CreatePhoneNumberOrderInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreatePhoneNumberOrderInput) GoString() string { +func (s DeleteVoiceConnectorTerminationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePhoneNumberOrderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePhoneNumberOrderInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) +func (s *DeleteVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.ProductType == nil { - invalidParams.Add(request.NewErrParamRequired("ProductType")) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -7841,22 +11645,14 @@ func (s *CreatePhoneNumberOrderInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *CreatePhoneNumberOrderInput) SetE164PhoneNumbers(v []*string) *CreatePhoneNumberOrderInput { - s.E164PhoneNumbers = v - return s -} - -// SetProductType sets the ProductType field's value. -func (s *CreatePhoneNumberOrderInput) SetProductType(v string) *CreatePhoneNumberOrderInput { - s.ProductType = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v return s } -type CreatePhoneNumberOrderOutput struct { +type DeleteVoiceConnectorTerminationOutput struct { _ struct{} `type:"structure"` - - PhoneNumberOrder *PhoneNumberOrder `type:"structure"` } // String returns the string representation. @@ -7864,7 +11660,7 @@ type CreatePhoneNumberOrderOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreatePhoneNumberOrderOutput) String() string { +func (s DeleteVoiceConnectorTerminationOutput) String() string { return awsutil.Prettify(s) } @@ -7873,40 +11669,15 @@ func (s CreatePhoneNumberOrderOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreatePhoneNumberOrderOutput) GoString() string { +func (s DeleteVoiceConnectorTerminationOutput) GoString() string { return s.String() } -// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. -func (s *CreatePhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *CreatePhoneNumberOrderOutput { - s.PhoneNumberOrder = v - return s -} - -type CreateProxySessionInput struct { - _ struct{} `type:"structure"` - - // Capabilities is a required field - Capabilities []*string `type:"list" required:"true" enum:"Capability"` - - ExpiryMinutes *int64 `min:"1" type:"integer"` - - GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` - - GeoMatchParams *GeoMatchParams `type:"structure"` - - // Name is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateProxySessionInput's - // String and GoString methods. - Name *string `type:"string" sensitive:"true"` - - NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` - - // ParticipantPhoneNumbers is a required field - ParticipantPhoneNumbers []*string `min:"2" type:"list" required:"true"` +type DeleteVoiceProfileDomainInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // VoiceProfileDomainId is a required field + VoiceProfileDomainId *string `location:"uri" locationName:"VoiceProfileDomainId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -7914,7 +11685,7 @@ type CreateProxySessionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateProxySessionInput) String() string { +func (s DeleteVoiceProfileDomainInput) String() string { return awsutil.Prettify(s) } @@ -7923,35 +11694,18 @@ func (s CreateProxySessionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateProxySessionInput) GoString() string { +func (s DeleteVoiceProfileDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateProxySessionInput"} - if s.Capabilities == nil { - invalidParams.Add(request.NewErrParamRequired("Capabilities")) - } - if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { - invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) - } - if s.ParticipantPhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("ParticipantPhoneNumbers")) - } - if s.ParticipantPhoneNumbers != nil && len(s.ParticipantPhoneNumbers) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ParticipantPhoneNumbers", 2)) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *DeleteVoiceProfileDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceProfileDomainInput"} + if s.VoiceProfileDomainId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileDomainId")) } - if s.GeoMatchParams != nil { - if err := s.GeoMatchParams.Validate(); err != nil { - invalidParams.AddNested("GeoMatchParams", err.(request.ErrInvalidParams)) - } + if s.VoiceProfileDomainId != nil && len(*s.VoiceProfileDomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileDomainId", 1)) } if invalidParams.Len() > 0 { @@ -7960,58 +11714,83 @@ func (s *CreateProxySessionInput) Validate() error { return nil } -// SetCapabilities sets the Capabilities field's value. -func (s *CreateProxySessionInput) SetCapabilities(v []*string) *CreateProxySessionInput { - s.Capabilities = v +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *DeleteVoiceProfileDomainInput) SetVoiceProfileDomainId(v string) *DeleteVoiceProfileDomainInput { + s.VoiceProfileDomainId = &v return s } -// SetExpiryMinutes sets the ExpiryMinutes field's value. -func (s *CreateProxySessionInput) SetExpiryMinutes(v int64) *CreateProxySessionInput { - s.ExpiryMinutes = &v - return s +type DeleteVoiceProfileDomainOutput struct { + _ struct{} `type:"structure"` } -// SetGeoMatchLevel sets the GeoMatchLevel field's value. -func (s *CreateProxySessionInput) SetGeoMatchLevel(v string) *CreateProxySessionInput { - s.GeoMatchLevel = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceProfileDomainOutput) String() string { + return awsutil.Prettify(s) } -// SetGeoMatchParams sets the GeoMatchParams field's value. -func (s *CreateProxySessionInput) SetGeoMatchParams(v *GeoMatchParams) *CreateProxySessionInput { - s.GeoMatchParams = v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceProfileDomainOutput) GoString() string { + return s.String() } -// SetName sets the Name field's value. -func (s *CreateProxySessionInput) SetName(v string) *CreateProxySessionInput { - s.Name = &v - return s +type DeleteVoiceProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceProfileId is a required field + VoiceProfileId *string `location:"uri" locationName:"VoiceProfileId" min:"1" type:"string" required:"true"` } -// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. -func (s *CreateProxySessionInput) SetNumberSelectionBehavior(v string) *CreateProxySessionInput { - s.NumberSelectionBehavior = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceProfileInput) String() string { + return awsutil.Prettify(s) } -// SetParticipantPhoneNumbers sets the ParticipantPhoneNumbers field's value. -func (s *CreateProxySessionInput) SetParticipantPhoneNumbers(v []*string) *CreateProxySessionInput { - s.ParticipantPhoneNumbers = v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceProfileInput) GoString() string { + return s.String() } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *CreateProxySessionInput) SetVoiceConnectorId(v string) *CreateProxySessionInput { - s.VoiceConnectorId = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceProfileInput"} + if s.VoiceProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileId")) + } + if s.VoiceProfileId != nil && len(*s.VoiceProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceProfileId sets the VoiceProfileId field's value. +func (s *DeleteVoiceProfileInput) SetVoiceProfileId(v string) *DeleteVoiceProfileInput { + s.VoiceProfileId = &v return s } -type CreateProxySessionOutput struct { +type DeleteVoiceProfileOutput struct { _ struct{} `type:"structure"` - - ProxySession *ProxySession `type:"structure"` } // String returns the string representation. @@ -8019,7 +11798,7 @@ type CreateProxySessionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateProxySessionOutput) String() string { +func (s DeleteVoiceProfileOutput) String() string { return awsutil.Prettify(s) } @@ -8028,37 +11807,18 @@ func (s CreateProxySessionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateProxySessionOutput) GoString() string { +func (s DeleteVoiceProfileOutput) GoString() string { return s.String() } -// SetProxySession sets the ProxySession field's value. -func (s *CreateProxySessionOutput) SetProxySession(v *ProxySession) *CreateProxySessionOutput { - s.ProxySession = v - return s -} - -type CreateSipMediaApplicationCallInput struct { +type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { _ struct{} `type:"structure"` - ArgumentsMap map[string]*string `type:"map"` - - // FromPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateSipMediaApplicationCallInput's - // String and GoString methods. - // FromPhoneNumber is a required field - FromPhoneNumber *string `type:"string" required:"true" sensitive:"true"` - - SipHeaders map[string]*string `type:"map"` - - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` - // ToPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateSipMediaApplicationCallInput's - // String and GoString methods. - // ToPhoneNumber is a required field - ToPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` } // String returns the string representation. @@ -8066,7 +11826,7 @@ type CreateSipMediaApplicationCallInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationCallInput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } @@ -8075,24 +11835,21 @@ func (s CreateSipMediaApplicationCallInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationCallInput) 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 *CreateSipMediaApplicationCallInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationCallInput"} - if s.FromPhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("FromPhoneNumber")) - } - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorGroupInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } - if s.ToPhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("ToPhoneNumber")) + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) } if invalidParams.Len() > 0 { @@ -8101,40 +11858,22 @@ func (s *CreateSipMediaApplicationCallInput) Validate() error { return nil } -// SetArgumentsMap sets the ArgumentsMap field's value. -func (s *CreateSipMediaApplicationCallInput) SetArgumentsMap(v map[string]*string) *CreateSipMediaApplicationCallInput { - s.ArgumentsMap = v - return s -} - -// SetFromPhoneNumber sets the FromPhoneNumber field's value. -func (s *CreateSipMediaApplicationCallInput) SetFromPhoneNumber(v string) *CreateSipMediaApplicationCallInput { - s.FromPhoneNumber = &v - return s -} - -// SetSipHeaders sets the SipHeaders field's value. -func (s *CreateSipMediaApplicationCallInput) SetSipHeaders(v map[string]*string) *CreateSipMediaApplicationCallInput { - s.SipHeaders = v - return s -} - -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *CreateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *CreateSipMediaApplicationCallInput { - s.SipMediaApplicationId = &v +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.E164PhoneNumbers = v return s } -// SetToPhoneNumber sets the ToPhoneNumber field's value. -func (s *CreateSipMediaApplicationCallInput) SetToPhoneNumber(v string) *CreateSipMediaApplicationCallInput { - s.ToPhoneNumber = &v +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v return s } -type CreateSipMediaApplicationCallOutput struct { +type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` - SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` + PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation. @@ -8142,7 +11881,7 @@ type CreateSipMediaApplicationCallOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationCallOutput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } @@ -8151,27 +11890,24 @@ func (s CreateSipMediaApplicationCallOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationCallOutput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) GoString() string { return s.String() } -// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. -func (s *CreateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *CreateSipMediaApplicationCallOutput { - s.SipMediaApplicationCall = v +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v return s } -type CreateSipMediaApplicationInput struct { +type DisassociatePhoneNumbersFromVoiceConnectorInput struct { _ struct{} `type:"structure"` - // AwsRegion is a required field - AwsRegion *string `type:"string" required:"true"` - - // Endpoints is a required field - Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list" required:"true"` + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -8179,7 +11915,7 @@ type CreateSipMediaApplicationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationInput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorInput) String() string { return awsutil.Prettify(s) } @@ -8188,27 +11924,21 @@ func (s CreateSipMediaApplicationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationInput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationInput"} - if s.AwsRegion == nil { - invalidParams.Add(request.NewErrParamRequired("AwsRegion")) - } - if s.Endpoints == nil { - invalidParams.Add(request.NewErrParamRequired("Endpoints")) - } - if s.Endpoints != nil && len(s.Endpoints) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -8217,28 +11947,22 @@ func (s *CreateSipMediaApplicationInput) Validate() error { return nil } -// SetAwsRegion sets the AwsRegion field's value. -func (s *CreateSipMediaApplicationInput) SetAwsRegion(v string) *CreateSipMediaApplicationInput { - s.AwsRegion = &v - return s -} - -// SetEndpoints sets the Endpoints field's value. -func (s *CreateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *CreateSipMediaApplicationInput { - s.Endpoints = v +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorInput { + s.E164PhoneNumbers = v return s } -// SetName sets the Name field's value. -func (s *CreateSipMediaApplicationInput) SetName(v string) *CreateSipMediaApplicationInput { - s.Name = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetVoiceConnectorId(v string) *DisassociatePhoneNumbersFromVoiceConnectorInput { + s.VoiceConnectorId = &v return s } -type CreateSipMediaApplicationOutput struct { +type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { _ struct{} `type:"structure"` - SipMediaApplication *SipMediaApplication `type:"structure"` + PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation. @@ -8246,7 +11970,7 @@ type CreateSipMediaApplicationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationOutput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) String() string { return awsutil.Prettify(s) } @@ -8255,31 +11979,20 @@ func (s CreateSipMediaApplicationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipMediaApplicationOutput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) GoString() string { return s.String() } -// SetSipMediaApplication sets the SipMediaApplication field's value. -func (s *CreateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *CreateSipMediaApplicationOutput { - s.SipMediaApplication = v +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorOutput { + s.PhoneNumberErrors = v return s } -type CreateSipRuleInput struct { +type EmergencyCallingConfiguration struct { _ struct{} `type:"structure"` - Disabled *bool `type:"boolean"` - - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` - - // TriggerType is a required field - TriggerType *string `type:"string" required:"true" enum:"SipRuleTriggerType"` - - // TriggerValue is a required field - TriggerValue *string `type:"string" required:"true"` + DNIS []*DNISEmergencyCallingConfiguration `type:"list"` } // String returns the string representation. @@ -8287,7 +12000,7 @@ type CreateSipRuleInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipRuleInput) String() string { +func (s EmergencyCallingConfiguration) String() string { return awsutil.Prettify(s) } @@ -8296,35 +12009,20 @@ func (s CreateSipRuleInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipRuleInput) GoString() string { +func (s EmergencyCallingConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSipRuleInput"} - 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.TargetApplications != nil && len(s.TargetApplications) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) - } - if s.TriggerType == nil { - invalidParams.Add(request.NewErrParamRequired("TriggerType")) - } - if s.TriggerValue == nil { - invalidParams.Add(request.NewErrParamRequired("TriggerValue")) - } - if s.TargetApplications != nil { - for i, v := range s.TargetApplications { +func (s *EmergencyCallingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EmergencyCallingConfiguration"} + if s.DNIS != nil { + for i, v := range s.DNIS { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DNIS", i), err.(request.ErrInvalidParams)) } } } @@ -8335,40 +12033,17 @@ func (s *CreateSipRuleInput) Validate() error { return nil } -// SetDisabled sets the Disabled field's value. -func (s *CreateSipRuleInput) SetDisabled(v bool) *CreateSipRuleInput { - s.Disabled = &v - return s -} - -// SetName sets the Name field's value. -func (s *CreateSipRuleInput) SetName(v string) *CreateSipRuleInput { - s.Name = &v - return s -} - -// SetTargetApplications sets the TargetApplications field's value. -func (s *CreateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *CreateSipRuleInput { - s.TargetApplications = v - return s -} - -// SetTriggerType sets the TriggerType field's value. -func (s *CreateSipRuleInput) SetTriggerType(v string) *CreateSipRuleInput { - s.TriggerType = &v - return s -} - -// SetTriggerValue sets the TriggerValue field's value. -func (s *CreateSipRuleInput) SetTriggerValue(v string) *CreateSipRuleInput { - s.TriggerValue = &v +// SetDNIS sets the DNIS field's value. +func (s *EmergencyCallingConfiguration) SetDNIS(v []*DNISEmergencyCallingConfiguration) *EmergencyCallingConfiguration { + s.DNIS = v return s } -type CreateSipRuleOutput struct { - _ struct{} `type:"structure"` +type ForbiddenException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - SipRule *SipRule `type:"structure"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -8376,7 +12051,7 @@ type CreateSipRuleOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipRuleOutput) String() string { +func (s ForbiddenException) String() string { return awsutil.Prettify(s) } @@ -8385,23 +12060,56 @@ func (s CreateSipRuleOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateSipRuleOutput) GoString() string { +func (s ForbiddenException) GoString() string { return s.String() } -// SetSipRule sets the SipRule field's value. -func (s *CreateSipRuleOutput) SetSipRule(v *SipRule) *CreateSipRuleOutput { - s.SipRule = v - return s +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + RespMetadata: v, + } } -type CreateVoiceConnectorGroupInput struct { +// Code returns the exception type name. +func (s *ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s *ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ForbiddenException) OrigErr() error { + return nil +} + +func (s *ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ForbiddenException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ForbiddenException) RequestID() string { + return s.RespMetadata.RequestID +} + +type GeoMatchParams struct { _ struct{} `type:"structure"` - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // AreaCode is a required field + AreaCode *string `type:"string" required:"true"` - VoiceConnectorItems []*VoiceConnectorItem `type:"list"` + // Country is a required field + Country *string `type:"string" required:"true"` } // String returns the string representation. @@ -8409,7 +12117,7 @@ type CreateVoiceConnectorGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorGroupInput) String() string { +func (s GeoMatchParams) String() string { return awsutil.Prettify(s) } @@ -8418,28 +12126,18 @@ func (s CreateVoiceConnectorGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorGroupInput) GoString() string { +func (s GeoMatchParams) 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)) +func (s *GeoMatchParams) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GeoMatchParams"} + if s.AreaCode == nil { + invalidParams.Add(request.NewErrParamRequired("AreaCode")) } - 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 s.Country == nil { + invalidParams.Add(request.NewErrParamRequired("Country")) } if invalidParams.Len() > 0 { @@ -8448,22 +12146,44 @@ func (s *CreateVoiceConnectorGroupInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *CreateVoiceConnectorGroupInput) SetName(v string) *CreateVoiceConnectorGroupInput { - s.Name = &v - return s +// SetAreaCode sets the AreaCode field's value. +func (s *GeoMatchParams) SetAreaCode(v string) *GeoMatchParams { + s.AreaCode = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *GeoMatchParams) SetCountry(v string) *GeoMatchParams { + s.Country = &v + return s +} + +type GetGlobalSettingsInput struct { + _ struct{} `type:"structure" nopayload:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGlobalSettingsInput) String() string { + return awsutil.Prettify(s) } -// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. -func (s *CreateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *CreateVoiceConnectorGroupInput { - s.VoiceConnectorItems = v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGlobalSettingsInput) GoString() string { + return s.String() } -type CreateVoiceConnectorGroupOutput struct { +type GetGlobalSettingsOutput struct { _ struct{} `type:"structure"` - VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` + VoiceConnector *VoiceConnectorSettings `type:"structure"` } // String returns the string representation. @@ -8471,7 +12191,7 @@ type CreateVoiceConnectorGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorGroupOutput) String() string { +func (s GetGlobalSettingsOutput) String() string { return awsutil.Prettify(s) } @@ -8480,26 +12200,24 @@ func (s CreateVoiceConnectorGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorGroupOutput) GoString() string { +func (s GetGlobalSettingsOutput) GoString() string { return s.String() } -// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. -func (s *CreateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *CreateVoiceConnectorGroupOutput { - s.VoiceConnectorGroup = v +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetGlobalSettingsOutput) SetVoiceConnector(v *VoiceConnectorSettings) *GetGlobalSettingsOutput { + s.VoiceConnector = v return s } -type CreateVoiceConnectorInput struct { - _ struct{} `type:"structure"` - - AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` - - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` +type GetPhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // RequireEncryption is a required field - RequireEncryption *bool `type:"boolean" required:"true"` + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetPhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -8507,7 +12225,7 @@ type CreateVoiceConnectorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorInput) String() string { +func (s GetPhoneNumberInput) String() string { return awsutil.Prettify(s) } @@ -8516,21 +12234,18 @@ func (s CreateVoiceConnectorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorInput) GoString() string { +func (s GetPhoneNumberInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *GetPhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) } - if s.RequireEncryption == nil { - invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) } if invalidParams.Len() > 0 { @@ -8539,28 +12254,17 @@ 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 - return s -} - -// SetRequireEncryption sets the RequireEncryption field's value. -func (s *CreateVoiceConnectorInput) SetRequireEncryption(v bool) *CreateVoiceConnectorInput { - s.RequireEncryption = &v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *GetPhoneNumberInput) SetPhoneNumberId(v string) *GetPhoneNumberInput { + s.PhoneNumberId = &v return s } -type CreateVoiceConnectorOutput struct { - _ struct{} `type:"structure"` +type GetPhoneNumberOrderInput struct { + _ struct{} `type:"structure" nopayload:"true"` - VoiceConnector *VoiceConnector `type:"structure"` + // PhoneNumberOrderId is a required field + PhoneNumberOrderId *string `location:"uri" locationName:"phoneNumberOrderId" type:"string" required:"true"` } // String returns the string representation. @@ -8568,7 +12272,7 @@ type CreateVoiceConnectorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorOutput) String() string { +func (s GetPhoneNumberOrderInput) String() string { return awsutil.Prettify(s) } @@ -8577,28 +12281,36 @@ func (s CreateVoiceConnectorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateVoiceConnectorOutput) GoString() string { +func (s GetPhoneNumberOrderInput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *CreateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *CreateVoiceConnectorOutput { - s.VoiceConnector = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPhoneNumberOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberOrderInput"} + if s.PhoneNumberOrderId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberOrderId")) + } + if s.PhoneNumberOrderId != nil && len(*s.PhoneNumberOrderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberOrderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. +func (s *GetPhoneNumberOrderInput) SetPhoneNumberOrderId(v string) *GetPhoneNumberOrderInput { + s.PhoneNumberOrderId = &v return s } -type Credential struct { +type GetPhoneNumberOrderOutput struct { _ struct{} `type:"structure"` - // Password is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Credential's - // String and GoString methods. - Password *string `type:"string" sensitive:"true"` - - // Username is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Credential's - // String and GoString methods. - Username *string `type:"string" sensitive:"true"` + PhoneNumberOrder *PhoneNumberOrder `type:"structure"` } // String returns the string representation. @@ -8606,7 +12318,7 @@ type Credential struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Credential) String() string { +func (s GetPhoneNumberOrderOutput) String() string { return awsutil.Prettify(s) } @@ -8615,38 +12327,20 @@ func (s Credential) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Credential) GoString() string { +func (s GetPhoneNumberOrderOutput) GoString() string { return s.String() } -// SetPassword sets the Password field's value. -func (s *Credential) SetPassword(v string) *Credential { - s.Password = &v - return s -} - -// SetUsername sets the Username field's value. -func (s *Credential) SetUsername(v string) *Credential { - s.Username = &v +// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. +func (s *GetPhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *GetPhoneNumberOrderOutput { + s.PhoneNumberOrder = v return s } -type DNISEmergencyCallingConfiguration struct { +type GetPhoneNumberOutput struct { _ struct{} `type:"structure"` - // CallingCountry is a required field - CallingCountry *string `type:"string" required:"true"` - - // EmergencyPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by DNISEmergencyCallingConfiguration's - // String and GoString methods. - // EmergencyPhoneNumber is a required field - EmergencyPhoneNumber *string `type:"string" required:"true" sensitive:"true"` - - // TestPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by DNISEmergencyCallingConfiguration's - // String and GoString methods. - TestPhoneNumber *string `type:"string" sensitive:"true"` + PhoneNumber *PhoneNumber `type:"structure"` } // String returns the string representation. @@ -8654,7 +12348,7 @@ type DNISEmergencyCallingConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DNISEmergencyCallingConfiguration) String() string { +func (s GetPhoneNumberOutput) String() string { return awsutil.Prettify(s) } @@ -8663,52 +12357,18 @@ func (s DNISEmergencyCallingConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DNISEmergencyCallingConfiguration) GoString() string { +func (s GetPhoneNumberOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DNISEmergencyCallingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DNISEmergencyCallingConfiguration"} - if s.CallingCountry == nil { - invalidParams.Add(request.NewErrParamRequired("CallingCountry")) - } - if s.EmergencyPhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("EmergencyPhoneNumber")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetCallingCountry sets the CallingCountry field's value. -func (s *DNISEmergencyCallingConfiguration) SetCallingCountry(v string) *DNISEmergencyCallingConfiguration { - s.CallingCountry = &v - return s -} - -// SetEmergencyPhoneNumber sets the EmergencyPhoneNumber field's value. -func (s *DNISEmergencyCallingConfiguration) SetEmergencyPhoneNumber(v string) *DNISEmergencyCallingConfiguration { - s.EmergencyPhoneNumber = &v - return s -} - -// SetTestPhoneNumber sets the TestPhoneNumber field's value. -func (s *DNISEmergencyCallingConfiguration) SetTestPhoneNumber(v string) *DNISEmergencyCallingConfiguration { - s.TestPhoneNumber = &v +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *GetPhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *GetPhoneNumberOutput { + s.PhoneNumber = v return s } -type DeletePhoneNumberInput struct { +type GetPhoneNumberSettingsInput struct { _ struct{} `type:"structure" nopayload:"true"` - - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by DeletePhoneNumberInput's - // String and GoString methods. - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -8716,7 +12376,7 @@ type DeletePhoneNumberInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeletePhoneNumberInput) String() string { +func (s GetPhoneNumberSettingsInput) String() string { return awsutil.Prettify(s) } @@ -8725,34 +12385,19 @@ func (s DeletePhoneNumberInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeletePhoneNumberInput) GoString() string { +func (s GetPhoneNumberSettingsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) - } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} +type GetPhoneNumberSettingsOutput struct { + _ struct{} `type:"structure"` -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *DeletePhoneNumberInput) SetPhoneNumberId(v string) *DeletePhoneNumberInput { - s.PhoneNumberId = &v - return s -} + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetPhoneNumberSettingsOutput's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` -type DeletePhoneNumberOutput struct { - _ struct{} `type:"structure"` + CallingNameUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -8760,7 +12405,7 @@ type DeletePhoneNumberOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeletePhoneNumberOutput) String() string { +func (s GetPhoneNumberSettingsOutput) String() string { return awsutil.Prettify(s) } @@ -8769,11 +12414,23 @@ func (s DeletePhoneNumberOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeletePhoneNumberOutput) GoString() string { +func (s GetPhoneNumberSettingsOutput) GoString() string { return s.String() } -type DeleteProxySessionInput struct { +// 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 GetProxySessionInput struct { _ struct{} `type:"structure" nopayload:"true"` // ProxySessionId is a required field @@ -8788,7 +12445,7 @@ type DeleteProxySessionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteProxySessionInput) String() string { +func (s GetProxySessionInput) String() string { return awsutil.Prettify(s) } @@ -8797,13 +12454,13 @@ func (s DeleteProxySessionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteProxySessionInput) GoString() string { +func (s GetProxySessionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteProxySessionInput"} +func (s *GetProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetProxySessionInput"} if s.ProxySessionId == nil { invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) } @@ -8824,19 +12481,21 @@ func (s *DeleteProxySessionInput) Validate() error { } // SetProxySessionId sets the ProxySessionId field's value. -func (s *DeleteProxySessionInput) SetProxySessionId(v string) *DeleteProxySessionInput { +func (s *GetProxySessionInput) SetProxySessionId(v string) *GetProxySessionInput { s.ProxySessionId = &v return s } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteProxySessionInput) SetVoiceConnectorId(v string) *DeleteProxySessionInput { +func (s *GetProxySessionInput) SetVoiceConnectorId(v string) *GetProxySessionInput { s.VoiceConnectorId = &v return s } -type DeleteProxySessionOutput struct { +type GetProxySessionOutput struct { _ struct{} `type:"structure"` + + ProxySession *ProxySession `type:"structure"` } // String returns the string representation. @@ -8844,7 +12503,7 @@ type DeleteProxySessionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteProxySessionOutput) String() string { +func (s GetProxySessionOutput) String() string { return awsutil.Prettify(s) } @@ -8853,11 +12512,17 @@ func (s DeleteProxySessionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteProxySessionOutput) GoString() string { +func (s GetProxySessionOutput) GoString() string { return s.String() } -type DeleteSipMediaApplicationInput struct { +// SetProxySession sets the ProxySession field's value. +func (s *GetProxySessionOutput) SetProxySession(v *ProxySession) *GetProxySessionOutput { + s.ProxySession = v + return s +} + +type GetSipMediaApplicationAlexaSkillConfigurationInput struct { _ struct{} `type:"structure" nopayload:"true"` // SipMediaApplicationId is a required field @@ -8869,7 +12534,7 @@ type DeleteSipMediaApplicationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipMediaApplicationInput) String() string { +func (s GetSipMediaApplicationAlexaSkillConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -8878,13 +12543,13 @@ func (s DeleteSipMediaApplicationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipMediaApplicationInput) GoString() string { +func (s GetSipMediaApplicationAlexaSkillConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSipMediaApplicationInput"} +func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationAlexaSkillConfigurationInput"} if s.SipMediaApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) } @@ -8899,13 +12564,15 @@ func (s *DeleteSipMediaApplicationInput) Validate() error { } // SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *DeleteSipMediaApplicationInput) SetSipMediaApplicationId(v string) *DeleteSipMediaApplicationInput { +func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationAlexaSkillConfigurationInput { s.SipMediaApplicationId = &v return s } -type DeleteSipMediaApplicationOutput struct { +type GetSipMediaApplicationAlexaSkillConfigurationOutput struct { _ struct{} `type:"structure"` + + SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` } // String returns the string representation. @@ -8913,7 +12580,7 @@ type DeleteSipMediaApplicationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipMediaApplicationOutput) String() string { +func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -8922,15 +12589,21 @@ func (s DeleteSipMediaApplicationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipMediaApplicationOutput) GoString() string { +func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) GoString() string { return s.String() } -type DeleteSipRuleInput struct { +// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. +func (s *GetSipMediaApplicationAlexaSkillConfigurationOutput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *GetSipMediaApplicationAlexaSkillConfigurationOutput { + s.SipMediaApplicationAlexaSkillConfiguration = v + return s +} + +type GetSipMediaApplicationInput struct { _ struct{} `type:"structure" nopayload:"true"` - // SipRuleId is a required field - SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` } // String returns the string representation. @@ -8938,7 +12611,7 @@ type DeleteSipRuleInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipRuleInput) String() string { +func (s GetSipMediaApplicationInput) String() string { return awsutil.Prettify(s) } @@ -8947,18 +12620,18 @@ func (s DeleteSipRuleInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipRuleInput) GoString() string { +func (s GetSipMediaApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSipRuleInput"} - if s.SipRuleId == nil { - invalidParams.Add(request.NewErrParamRequired("SipRuleId")) +func (s *GetSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) } - if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) } if invalidParams.Len() > 0 { @@ -8967,14 +12640,63 @@ func (s *DeleteSipRuleInput) Validate() error { return nil } -// SetSipRuleId sets the SipRuleId field's value. -func (s *DeleteSipRuleInput) SetSipRuleId(v string) *DeleteSipRuleInput { - s.SipRuleId = &v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationInput { + s.SipMediaApplicationId = &v return s } -type DeleteSipRuleOutput struct { +type GetSipMediaApplicationLoggingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSipMediaApplicationLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationLoggingConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationId = &v + return s +} + +type GetSipMediaApplicationLoggingConfigurationOutput struct { _ struct{} `type:"structure"` + + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` } // String returns the string representation. @@ -8982,7 +12704,7 @@ type DeleteSipRuleOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipRuleOutput) String() string { +func (s GetSipMediaApplicationLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -8991,15 +12713,51 @@ func (s DeleteSipRuleOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteSipRuleOutput) GoString() string { +func (s GetSipMediaApplicationLoggingConfigurationOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorEmergencyCallingConfigurationInput struct { +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *GetSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *GetSipMediaApplicationLoggingConfigurationOutput { + s.SipMediaApplicationLoggingConfiguration = v + return s +} + +type GetSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplication *SipMediaApplication `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *GetSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *GetSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type GetSipRuleInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` } // String returns the string representation. @@ -9007,7 +12765,7 @@ type DeleteVoiceConnectorEmergencyCallingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) String() string { +func (s GetSipRuleInput) String() string { return awsutil.Prettify(s) } @@ -9016,18 +12774,18 @@ func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) String() string // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { +func (s GetSipRuleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorEmergencyCallingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *GetSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipRuleInput"} + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) } if invalidParams.Len() > 0 { @@ -9036,14 +12794,16 @@ func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() erro return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorEmergencyCallingConfigurationInput { - s.VoiceConnectorId = &v +// SetSipRuleId sets the SipRuleId field's value. +func (s *GetSipRuleInput) SetSipRuleId(v string) *GetSipRuleInput { + s.SipRuleId = &v return s } -type DeleteVoiceConnectorEmergencyCallingConfigurationOutput struct { +type GetSipRuleOutput struct { _ struct{} `type:"structure"` + + SipRule *SipRule `type:"structure"` } // String returns the string representation. @@ -9051,7 +12811,7 @@ type DeleteVoiceConnectorEmergencyCallingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) String() string { +func (s GetSipRuleOutput) String() string { return awsutil.Prettify(s) } @@ -9060,15 +12820,24 @@ func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) String() string // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { +func (s GetSipRuleOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorGroupInput struct { +// SetSipRule sets the SipRule field's value. +func (s *GetSipRuleOutput) SetSipRule(v *SipRule) *GetSipRuleOutput { + s.SipRule = v + return s +} + +type GetSpeakerSearchTaskInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // SpeakerSearchTaskId is a required field + SpeakerSearchTaskId *string `location:"uri" locationName:"SpeakerSearchTaskId" min:"1" type:"string" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"VoiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9076,7 +12845,7 @@ type DeleteVoiceConnectorGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorGroupInput) String() string { +func (s GetSpeakerSearchTaskInput) String() string { return awsutil.Prettify(s) } @@ -9085,18 +12854,24 @@ func (s DeleteVoiceConnectorGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorGroupInput) GoString() string { +func (s GetSpeakerSearchTaskInput) 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")) +func (s *GetSpeakerSearchTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSpeakerSearchTaskInput"} + if s.SpeakerSearchTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("SpeakerSearchTaskId")) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.SpeakerSearchTaskId != nil && len(*s.SpeakerSearchTaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SpeakerSearchTaskId", 1)) + } + 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 { @@ -9105,14 +12880,22 @@ func (s *DeleteVoiceConnectorGroupInput) Validate() error { return nil } -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *DeleteVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DeleteVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *GetSpeakerSearchTaskInput) SetSpeakerSearchTaskId(v string) *GetSpeakerSearchTaskInput { + s.SpeakerSearchTaskId = &v return s } -type DeleteVoiceConnectorGroupOutput struct { +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetSpeakerSearchTaskInput) SetVoiceConnectorId(v string) *GetSpeakerSearchTaskInput { + s.VoiceConnectorId = &v + return s +} + +type GetSpeakerSearchTaskOutput struct { _ struct{} `type:"structure"` + + SpeakerSearchTask *SpeakerSearchTask `type:"structure"` } // String returns the string representation. @@ -9120,7 +12903,7 @@ type DeleteVoiceConnectorGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorGroupOutput) String() string { +func (s GetSpeakerSearchTaskOutput) String() string { return awsutil.Prettify(s) } @@ -9129,11 +12912,17 @@ func (s DeleteVoiceConnectorGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorGroupOutput) GoString() string { +func (s GetSpeakerSearchTaskOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorInput struct { +// SetSpeakerSearchTask sets the SpeakerSearchTask field's value. +func (s *GetSpeakerSearchTaskOutput) SetSpeakerSearchTask(v *SpeakerSearchTask) *GetSpeakerSearchTaskOutput { + s.SpeakerSearchTask = v + return s +} + +type GetVoiceConnectorEmergencyCallingConfigurationInput struct { _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorId is a required field @@ -9145,7 +12934,7 @@ type DeleteVoiceConnectorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorInput) String() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -9154,13 +12943,13 @@ func (s DeleteVoiceConnectorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorInput) GoString() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorInput"} +func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorEmergencyCallingConfigurationInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -9175,16 +12964,15 @@ func (s *DeleteVoiceConnectorInput) Validate() error { } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorInput { +func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorEmergencyCallingConfigurationInput { s.VoiceConnectorId = &v return s } -type DeleteVoiceConnectorOriginationInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type GetVoiceConnectorEmergencyCallingConfigurationOutput struct { + _ struct{} `type:"structure"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` } // String returns the string representation. @@ -9192,7 +12980,7 @@ type DeleteVoiceConnectorOriginationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorOriginationInput) String() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -9201,34 +12989,21 @@ func (s DeleteVoiceConnectorOriginationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorOriginationInput) GoString() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorOriginationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorOriginationInput"} - 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 *DeleteVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorOriginationInput { - s.VoiceConnectorId = &v +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *GetVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *GetVoiceConnectorEmergencyCallingConfigurationOutput { + s.EmergencyCallingConfiguration = v return s } -type DeleteVoiceConnectorOriginationOutput struct { - _ struct{} `type:"structure"` +type GetVoiceConnectorGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` } // String returns the string representation. @@ -9236,7 +13011,7 @@ type DeleteVoiceConnectorOriginationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorOriginationOutput) String() string { +func (s GetVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } @@ -9245,12 +13020,36 @@ func (s DeleteVoiceConnectorOriginationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorOriginationOutput) GoString() string { +func (s GetVoiceConnectorGroupInput) GoString() string { return s.String() } -type DeleteVoiceConnectorOutput struct { +// 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"` + + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` } // String returns the string representation. @@ -9258,7 +13057,7 @@ type DeleteVoiceConnectorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorOutput) String() string { +func (s GetVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } @@ -9267,15 +13066,21 @@ func (s DeleteVoiceConnectorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorOutput) GoString() string { +func (s GetVoiceConnectorGroupOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorProxyInput struct { +// 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" nopayload:"true"` // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -9283,7 +13088,7 @@ type DeleteVoiceConnectorProxyInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorProxyInput) String() string { +func (s GetVoiceConnectorInput) String() string { return awsutil.Prettify(s) } @@ -9292,13 +13097,13 @@ func (s DeleteVoiceConnectorProxyInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorProxyInput) GoString() string { +func (s GetVoiceConnectorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorProxyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorProxyInput"} +func (s *GetVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -9313,34 +13118,12 @@ func (s *DeleteVoiceConnectorProxyInput) Validate() error { } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorProxyInput { +func (s *GetVoiceConnectorInput) SetVoiceConnectorId(v string) *GetVoiceConnectorInput { s.VoiceConnectorId = &v return s } -type DeleteVoiceConnectorProxyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteVoiceConnectorProxyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteVoiceConnectorProxyOutput) GoString() string { - return s.String() -} - -type DeleteVoiceConnectorStreamingConfigurationInput struct { +type GetVoiceConnectorLoggingConfigurationInput struct { _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorId is a required field @@ -9352,7 +13135,7 @@ type DeleteVoiceConnectorStreamingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { +func (s GetVoiceConnectorLoggingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -9361,13 +13144,13 @@ func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorStreamingConfigurationInput) GoString() string { +func (s GetVoiceConnectorLoggingConfigurationInput) 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"} +func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorLoggingConfigurationInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -9382,13 +13165,15 @@ func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorStreamingConfigurationInput { +func (s *GetVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorLoggingConfigurationInput { s.VoiceConnectorId = &v return s } -type DeleteVoiceConnectorStreamingConfigurationOutput struct { +type GetVoiceConnectorLoggingConfigurationOutput struct { _ struct{} `type:"structure"` + + LoggingConfiguration *LoggingConfiguration `type:"structure"` } // String returns the string representation. @@ -9396,7 +13181,7 @@ type DeleteVoiceConnectorStreamingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { +func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -9405,15 +13190,18 @@ func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorStreamingConfigurationOutput) GoString() string { +func (s GetVoiceConnectorLoggingConfigurationOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorTerminationCredentialsInput struct { - _ struct{} `type:"structure"` +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *GetVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *GetVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} - // Usernames is a required field - Usernames []*string `type:"list" required:"true"` +type GetVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorId is a required field VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` @@ -9424,7 +13212,7 @@ type DeleteVoiceConnectorTerminationCredentialsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationCredentialsInput) String() string { +func (s GetVoiceConnectorOriginationInput) String() string { return awsutil.Prettify(s) } @@ -9433,16 +13221,13 @@ func (s DeleteVoiceConnectorTerminationCredentialsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationCredentialsInput) GoString() string { +func (s GetVoiceConnectorOriginationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationCredentialsInput"} - if s.Usernames == nil { - invalidParams.Add(request.NewErrParamRequired("Usernames")) - } +func (s *GetVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorOriginationInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -9456,20 +13241,46 @@ func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { return nil } -// SetUsernames sets the Usernames field's value. -func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetUsernames(v []*string) *DeleteVoiceConnectorTerminationCredentialsInput { - s.Usernames = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationCredentialsInput { - s.VoiceConnectorId = &v +type GetVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` + + Origination *Origination `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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 DeleteVoiceConnectorTerminationCredentialsOutput struct { +type GetVoiceConnectorOutput struct { _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnector `type:"structure"` } // String returns the string representation. @@ -9477,7 +13288,7 @@ type DeleteVoiceConnectorTerminationCredentialsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationCredentialsOutput) String() string { +func (s GetVoiceConnectorOutput) String() string { return awsutil.Prettify(s) } @@ -9486,15 +13297,21 @@ func (s DeleteVoiceConnectorTerminationCredentialsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationCredentialsOutput) GoString() string { +func (s GetVoiceConnectorOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorTerminationInput struct { +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +type GetVoiceConnectorProxyInput struct { _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9502,7 +13319,7 @@ type DeleteVoiceConnectorTerminationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationInput) String() string { +func (s GetVoiceConnectorProxyInput) String() string { return awsutil.Prettify(s) } @@ -9511,13 +13328,13 @@ func (s DeleteVoiceConnectorTerminationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationInput) GoString() string { +func (s GetVoiceConnectorProxyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorTerminationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationInput"} +func (s *GetVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorProxyInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -9532,13 +13349,15 @@ func (s *DeleteVoiceConnectorTerminationInput) Validate() error { } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationInput { +func (s *GetVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *GetVoiceConnectorProxyInput { s.VoiceConnectorId = &v return s } -type DeleteVoiceConnectorTerminationOutput struct { +type GetVoiceConnectorProxyOutput struct { _ struct{} `type:"structure"` + + Proxy *Proxy `type:"structure"` } // String returns the string representation. @@ -9546,7 +13365,7 @@ type DeleteVoiceConnectorTerminationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationOutput) String() string { +func (s GetVoiceConnectorProxyOutput) String() string { return awsutil.Prettify(s) } @@ -9555,18 +13374,21 @@ func (s DeleteVoiceConnectorTerminationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteVoiceConnectorTerminationOutput) GoString() string { +func (s GetVoiceConnectorProxyOutput) GoString() string { return s.String() } -type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { - _ struct{} `type:"structure"` +// SetProxy sets the Proxy field's value. +func (s *GetVoiceConnectorProxyOutput) SetProxy(v *Proxy) *GetVoiceConnectorProxyOutput { + s.Proxy = v + return s +} - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` +type GetVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -9574,7 +13396,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { +func (s GetVoiceConnectorStreamingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -9583,21 +13405,18 @@ func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) 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 *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorGroupInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) - } - if s.VoiceConnectorGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) +func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -9606,22 +13425,16 @@ func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { - s.E164PhoneNumbers = v - return s -} - -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v return s } -type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { +type GetVoiceConnectorStreamingConfigurationOutput struct { _ struct{} `type:"structure"` - PhoneNumberErrors []*PhoneNumberError `type:"list"` + StreamingConfiguration *StreamingConfiguration `type:"structure"` } // String returns the string representation. @@ -9629,7 +13442,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { +func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -9638,21 +13451,18 @@ func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) GoString() string { +func (s GetVoiceConnectorStreamingConfigurationOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput { - s.PhoneNumberErrors = v +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *GetVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *GetVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v return s } -type DisassociatePhoneNumbersFromVoiceConnectorInput struct { - _ struct{} `type:"structure"` - - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` +type GetVoiceConnectorTerminationHealthInput struct { + _ struct{} `type:"structure" nopayload:"true"` // VoiceConnectorId is a required field VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` @@ -9663,7 +13473,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorInput) String() string { +func (s GetVoiceConnectorTerminationHealthInput) String() string { return awsutil.Prettify(s) } @@ -9672,16 +13482,13 @@ func (s DisassociatePhoneNumbersFromVoiceConnectorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorInput) GoString() string { +func (s GetVoiceConnectorTerminationHealthInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) - } +func (s *GetVoiceConnectorTerminationHealthInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationHealthInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -9695,22 +13502,16 @@ func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorInput { - s.E164PhoneNumbers = v - return s -} - // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetVoiceConnectorId(v string) *DisassociatePhoneNumbersFromVoiceConnectorInput { +func (s *GetVoiceConnectorTerminationHealthInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationHealthInput { s.VoiceConnectorId = &v return s } -type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { +type GetVoiceConnectorTerminationHealthOutput struct { _ struct{} `type:"structure"` - PhoneNumberErrors []*PhoneNumberError `type:"list"` + TerminationHealth *TerminationHealth `type:"structure"` } // String returns the string representation. @@ -9718,7 +13519,7 @@ type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) String() string { +func (s GetVoiceConnectorTerminationHealthOutput) String() string { return awsutil.Prettify(s) } @@ -9727,20 +13528,21 @@ func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) GoString() string { +func (s GetVoiceConnectorTerminationHealthOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorOutput { - s.PhoneNumberErrors = v +// SetTerminationHealth sets the TerminationHealth field's value. +func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { + s.TerminationHealth = v return s } -type EmergencyCallingConfiguration struct { - _ struct{} `type:"structure"` +type GetVoiceConnectorTerminationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - DNIS []*DNISEmergencyCallingConfiguration `type:"list"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -9748,7 +13550,7 @@ type EmergencyCallingConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s EmergencyCallingConfiguration) String() string { +func (s GetVoiceConnectorTerminationInput) String() string { return awsutil.Prettify(s) } @@ -9757,22 +13559,18 @@ func (s EmergencyCallingConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s EmergencyCallingConfiguration) GoString() string { +func (s GetVoiceConnectorTerminationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *EmergencyCallingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EmergencyCallingConfiguration"} - if s.DNIS != nil { - for i, v := range s.DNIS { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DNIS", i), err.(request.ErrInvalidParams)) - } - } +func (s *GetVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationInput"} + 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 { @@ -9781,17 +13579,16 @@ func (s *EmergencyCallingConfiguration) Validate() error { return nil } -// SetDNIS sets the DNIS field's value. -func (s *EmergencyCallingConfiguration) SetDNIS(v []*DNISEmergencyCallingConfiguration) *EmergencyCallingConfiguration { - s.DNIS = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v return s } -type ForbiddenException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type GetVoiceConnectorTerminationOutput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"message" type:"string"` + Termination *Termination `type:"structure"` } // String returns the string representation. @@ -9799,7 +13596,7 @@ type ForbiddenException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ForbiddenException) String() string { +func (s GetVoiceConnectorTerminationOutput) String() string { return awsutil.Prettify(s) } @@ -9808,56 +13605,21 @@ func (s ForbiddenException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ForbiddenException) GoString() string { +func (s GetVoiceConnectorTerminationOutput) GoString() string { return s.String() } -func newErrorForbiddenException(v protocol.ResponseMetadata) error { - return &ForbiddenException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ForbiddenException) Code() string { - return "ForbiddenException" -} - -// Message returns the exception's message. -func (s *ForbiddenException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ForbiddenException) OrigErr() error { - return nil -} - -func (s *ForbiddenException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ForbiddenException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ForbiddenException) RequestID() string { - return s.RespMetadata.RequestID +// SetTermination sets the Termination field's value. +func (s *GetVoiceConnectorTerminationOutput) SetTermination(v *Termination) *GetVoiceConnectorTerminationOutput { + s.Termination = v + return s } -type GeoMatchParams struct { - _ struct{} `type:"structure"` - - // AreaCode is a required field - AreaCode *string `type:"string" required:"true"` +type GetVoiceProfileDomainInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // Country is a required field - Country *string `type:"string" required:"true"` + // VoiceProfileDomainId is a required field + VoiceProfileDomainId *string `location:"uri" locationName:"VoiceProfileDomainId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9865,7 +13627,7 @@ type GeoMatchParams struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GeoMatchParams) String() string { +func (s GetVoiceProfileDomainInput) String() string { return awsutil.Prettify(s) } @@ -9874,18 +13636,18 @@ func (s GeoMatchParams) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GeoMatchParams) GoString() string { +func (s GetVoiceProfileDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GeoMatchParams) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GeoMatchParams"} - if s.AreaCode == nil { - invalidParams.Add(request.NewErrParamRequired("AreaCode")) +func (s *GetVoiceProfileDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceProfileDomainInput"} + if s.VoiceProfileDomainId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileDomainId")) } - if s.Country == nil { - invalidParams.Add(request.NewErrParamRequired("Country")) + if s.VoiceProfileDomainId != nil && len(*s.VoiceProfileDomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileDomainId", 1)) } if invalidParams.Len() > 0 { @@ -9894,20 +13656,16 @@ func (s *GeoMatchParams) Validate() error { return nil } -// SetAreaCode sets the AreaCode field's value. -func (s *GeoMatchParams) SetAreaCode(v string) *GeoMatchParams { - s.AreaCode = &v +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *GetVoiceProfileDomainInput) SetVoiceProfileDomainId(v string) *GetVoiceProfileDomainInput { + s.VoiceProfileDomainId = &v return s } -// SetCountry sets the Country field's value. -func (s *GeoMatchParams) SetCountry(v string) *GeoMatchParams { - s.Country = &v - return s -} +type GetVoiceProfileDomainOutput struct { + _ struct{} `type:"structure"` -type GetGlobalSettingsInput struct { - _ struct{} `type:"structure" nopayload:"true"` + VoiceProfileDomain *VoiceProfileDomain `type:"structure"` } // String returns the string representation. @@ -9915,7 +13673,7 @@ type GetGlobalSettingsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetGlobalSettingsInput) String() string { +func (s GetVoiceProfileDomainOutput) String() string { return awsutil.Prettify(s) } @@ -9924,14 +13682,21 @@ func (s GetGlobalSettingsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetGlobalSettingsInput) GoString() string { +func (s GetVoiceProfileDomainOutput) GoString() string { return s.String() } -type GetGlobalSettingsOutput struct { - _ struct{} `type:"structure"` +// SetVoiceProfileDomain sets the VoiceProfileDomain field's value. +func (s *GetVoiceProfileDomainOutput) SetVoiceProfileDomain(v *VoiceProfileDomain) *GetVoiceProfileDomainOutput { + s.VoiceProfileDomain = v + return s +} - VoiceConnector *VoiceConnectorSettings `type:"structure"` +type GetVoiceProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceProfileId is a required field + VoiceProfileId *string `location:"uri" locationName:"VoiceProfileId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9939,7 +13704,7 @@ type GetGlobalSettingsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetGlobalSettingsOutput) String() string { +func (s GetVoiceProfileInput) String() string { return awsutil.Prettify(s) } @@ -9948,71 +13713,73 @@ func (s GetGlobalSettingsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetGlobalSettingsOutput) GoString() string { +func (s GetVoiceProfileInput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *GetGlobalSettingsOutput) SetVoiceConnector(v *VoiceConnectorSettings) *GetGlobalSettingsOutput { - s.VoiceConnector = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceProfileInput"} + if s.VoiceProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileId")) + } + if s.VoiceProfileId != nil && len(*s.VoiceProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceProfileId sets the VoiceProfileId field's value. +func (s *GetVoiceProfileInput) SetVoiceProfileId(v string) *GetVoiceProfileInput { + s.VoiceProfileId = &v return s } -type GetPhoneNumberInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type GetVoiceProfileOutput struct { + _ struct{} `type:"structure"` - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by GetPhoneNumberInput's - // String and GoString methods. - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` + VoiceProfile *VoiceProfile `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetPhoneNumberInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetPhoneNumberInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) - } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) - } +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceProfileOutput) String() string { + return awsutil.Prettify(s) +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceProfileOutput) GoString() string { + return s.String() } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *GetPhoneNumberInput) SetPhoneNumberId(v string) *GetPhoneNumberInput { - s.PhoneNumberId = &v +// SetVoiceProfile sets the VoiceProfile field's value. +func (s *GetVoiceProfileOutput) SetVoiceProfile(v *VoiceProfile) *GetVoiceProfileOutput { + s.VoiceProfile = v return s } -type GetPhoneNumberOrderInput struct { +type GetVoiceToneAnalysisTaskInput struct { _ struct{} `type:"structure" nopayload:"true"` - // PhoneNumberOrderId is a required field - PhoneNumberOrderId *string `location:"uri" locationName:"phoneNumberOrderId" type:"string" required:"true"` + // IsCaller is a required field + IsCaller *bool `location:"querystring" locationName:"isCaller" type:"boolean" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"VoiceConnectorId" min:"1" type:"string" required:"true"` + + // VoiceToneAnalysisTaskId is a required field + VoiceToneAnalysisTaskId *string `location:"uri" locationName:"VoiceToneAnalysisTaskId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -10020,7 +13787,7 @@ type GetPhoneNumberOrderInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberOrderInput) String() string { +func (s GetVoiceToneAnalysisTaskInput) String() string { return awsutil.Prettify(s) } @@ -10029,18 +13796,27 @@ func (s GetPhoneNumberOrderInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberOrderInput) GoString() string { +func (s GetVoiceToneAnalysisTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetPhoneNumberOrderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberOrderInput"} - if s.PhoneNumberOrderId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberOrderId")) +func (s *GetVoiceToneAnalysisTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceToneAnalysisTaskInput"} + if s.IsCaller == nil { + invalidParams.Add(request.NewErrParamRequired("IsCaller")) } - if s.PhoneNumberOrderId != nil && len(*s.PhoneNumberOrderId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberOrderId", 1)) + 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.VoiceToneAnalysisTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceToneAnalysisTaskId")) + } + if s.VoiceToneAnalysisTaskId != nil && len(*s.VoiceToneAnalysisTaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceToneAnalysisTaskId", 1)) } if invalidParams.Len() > 0 { @@ -10049,16 +13825,28 @@ func (s *GetPhoneNumberOrderInput) Validate() error { return nil } -// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. -func (s *GetPhoneNumberOrderInput) SetPhoneNumberOrderId(v string) *GetPhoneNumberOrderInput { - s.PhoneNumberOrderId = &v +// SetIsCaller sets the IsCaller field's value. +func (s *GetVoiceToneAnalysisTaskInput) SetIsCaller(v bool) *GetVoiceToneAnalysisTaskInput { + s.IsCaller = &v return s } -type GetPhoneNumberOrderOutput struct { +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceToneAnalysisTaskInput) SetVoiceConnectorId(v string) *GetVoiceToneAnalysisTaskInput { + s.VoiceConnectorId = &v + return s +} + +// SetVoiceToneAnalysisTaskId sets the VoiceToneAnalysisTaskId field's value. +func (s *GetVoiceToneAnalysisTaskInput) SetVoiceToneAnalysisTaskId(v string) *GetVoiceToneAnalysisTaskInput { + s.VoiceToneAnalysisTaskId = &v + return s +} + +type GetVoiceToneAnalysisTaskOutput struct { _ struct{} `type:"structure"` - PhoneNumberOrder *PhoneNumberOrder `type:"structure"` + VoiceToneAnalysisTask *VoiceToneAnalysisTask `type:"structure"` } // String returns the string representation. @@ -10066,7 +13854,7 @@ type GetPhoneNumberOrderOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberOrderOutput) String() string { +func (s GetVoiceToneAnalysisTaskOutput) String() string { return awsutil.Prettify(s) } @@ -10075,20 +13863,21 @@ func (s GetPhoneNumberOrderOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberOrderOutput) GoString() string { +func (s GetVoiceToneAnalysisTaskOutput) GoString() string { return s.String() } -// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. -func (s *GetPhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *GetPhoneNumberOrderOutput { - s.PhoneNumberOrder = v +// SetVoiceToneAnalysisTask sets the VoiceToneAnalysisTask field's value. +func (s *GetVoiceToneAnalysisTaskOutput) SetVoiceToneAnalysisTask(v *VoiceToneAnalysisTask) *GetVoiceToneAnalysisTaskOutput { + s.VoiceToneAnalysisTask = v return s } -type GetPhoneNumberOutput struct { - _ struct{} `type:"structure"` +type GoneException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - PhoneNumber *PhoneNumber `type:"structure"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -10096,7 +13885,7 @@ type GetPhoneNumberOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberOutput) String() string { +func (s GoneException) String() string { return awsutil.Prettify(s) } @@ -10105,17 +13894,49 @@ func (s GetPhoneNumberOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberOutput) GoString() string { +func (s GoneException) GoString() string { return s.String() } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *GetPhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *GetPhoneNumberOutput { - s.PhoneNumber = v - return s +func newErrorGoneException(v protocol.ResponseMetadata) error { + return &GoneException{ + RespMetadata: v, + } } -type GetPhoneNumberSettingsInput struct { +// Code returns the exception type name. +func (s *GoneException) Code() string { + return "GoneException" +} + +// Message returns the exception's message. +func (s *GoneException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *GoneException) OrigErr() error { + return nil +} + +func (s *GoneException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *GoneException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *GoneException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListAvailableVoiceConnectorRegionsInput struct { _ struct{} `type:"structure" nopayload:"true"` } @@ -10124,7 +13945,7 @@ type GetPhoneNumberSettingsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberSettingsInput) String() string { +func (s ListAvailableVoiceConnectorRegionsInput) String() string { return awsutil.Prettify(s) } @@ -10133,19 +13954,14 @@ func (s GetPhoneNumberSettingsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberSettingsInput) GoString() string { +func (s ListAvailableVoiceConnectorRegionsInput) GoString() string { return s.String() } -type GetPhoneNumberSettingsOutput struct { +type ListAvailableVoiceConnectorRegionsOutput struct { _ struct{} `type:"structure"` - // CallingName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by GetPhoneNumberSettingsOutput's - // String and GoString methods. - CallingName *string `type:"string" sensitive:"true"` - - CallingNameUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + VoiceConnectorRegions []*string `type:"list" enum:"VoiceConnectorAwsRegion"` } // String returns the string representation. @@ -10153,7 +13969,7 @@ type GetPhoneNumberSettingsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberSettingsOutput) String() string { +func (s ListAvailableVoiceConnectorRegionsOutput) String() string { return awsutil.Prettify(s) } @@ -10162,30 +13978,22 @@ func (s GetPhoneNumberSettingsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetPhoneNumberSettingsOutput) GoString() string { +func (s ListAvailableVoiceConnectorRegionsOutput) 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 +// SetVoiceConnectorRegions sets the VoiceConnectorRegions field's value. +func (s *ListAvailableVoiceConnectorRegionsOutput) SetVoiceConnectorRegions(v []*string) *ListAvailableVoiceConnectorRegionsOutput { + s.VoiceConnectorRegions = v return s } -type GetProxySessionInput struct { +type ListPhoneNumberOrdersInput struct { _ struct{} `type:"structure" nopayload:"true"` - // ProxySessionId is a required field - ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -10193,7 +14001,7 @@ type GetProxySessionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetProxySessionInput) String() string { +func (s ListPhoneNumberOrdersInput) String() string { return awsutil.Prettify(s) } @@ -10202,24 +14010,15 @@ func (s GetProxySessionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetProxySessionInput) GoString() string { +func (s ListPhoneNumberOrdersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetProxySessionInput"} - if s.ProxySessionId == nil { - invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) - } - if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *ListPhoneNumberOrdersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumberOrdersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -10228,22 +14027,24 @@ func (s *GetProxySessionInput) Validate() error { return nil } -// SetProxySessionId sets the ProxySessionId field's value. -func (s *GetProxySessionInput) SetProxySessionId(v string) *GetProxySessionInput { - s.ProxySessionId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumberOrdersInput) SetMaxResults(v int64) *ListPhoneNumberOrdersInput { + s.MaxResults = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetProxySessionInput) SetVoiceConnectorId(v string) *GetProxySessionInput { - s.VoiceConnectorId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumberOrdersInput) SetNextToken(v string) *ListPhoneNumberOrdersInput { + s.NextToken = &v return s } -type GetProxySessionOutput struct { +type ListPhoneNumberOrdersOutput struct { _ struct{} `type:"structure"` - ProxySession *ProxySession `type:"structure"` + NextToken *string `type:"string"` + + PhoneNumberOrders []*PhoneNumberOrder `type:"list"` } // String returns the string representation. @@ -10251,7 +14052,7 @@ type GetProxySessionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetProxySessionOutput) String() string { +func (s ListPhoneNumberOrdersOutput) String() string { return awsutil.Prettify(s) } @@ -10260,21 +14061,36 @@ func (s GetProxySessionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetProxySessionOutput) GoString() string { +func (s ListPhoneNumberOrdersOutput) GoString() string { return s.String() } -// SetProxySession sets the ProxySession field's value. -func (s *GetProxySessionOutput) SetProxySession(v *ProxySession) *GetProxySessionOutput { - s.ProxySession = v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumberOrdersOutput) SetNextToken(v string) *ListPhoneNumberOrdersOutput { + s.NextToken = &v return s } -type GetSipMediaApplicationAlexaSkillConfigurationInput struct { +// SetPhoneNumberOrders sets the PhoneNumberOrders field's value. +func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { + s.PhoneNumberOrders = v + return s +} + +type ListPhoneNumbersInput struct { _ struct{} `type:"structure" nopayload:"true"` - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + FilterName *string `location:"querystring" locationName:"filter-name" type:"string" enum:"PhoneNumberAssociationName"` + + FilterValue *string `location:"querystring" locationName:"filter-value" type:"string"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + ProductType *string `location:"querystring" locationName:"product-type" type:"string" enum:"PhoneNumberProductType"` + + Status *string `location:"querystring" locationName:"status" type:"string"` } // String returns the string representation. @@ -10282,7 +14098,7 @@ type GetSipMediaApplicationAlexaSkillConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationAlexaSkillConfigurationInput) String() string { +func (s ListPhoneNumbersInput) String() string { return awsutil.Prettify(s) } @@ -10291,18 +14107,15 @@ func (s GetSipMediaApplicationAlexaSkillConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationAlexaSkillConfigurationInput) GoString() string { +func (s ListPhoneNumbersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationAlexaSkillConfigurationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) - } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) +func (s *ListPhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -10311,16 +14124,48 @@ func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { return nil } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationAlexaSkillConfigurationInput { - s.SipMediaApplicationId = &v +// SetFilterName sets the FilterName field's value. +func (s *ListPhoneNumbersInput) SetFilterName(v string) *ListPhoneNumbersInput { + s.FilterName = &v return s } -type GetSipMediaApplicationAlexaSkillConfigurationOutput struct { +// SetFilterValue sets the FilterValue field's value. +func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { + s.FilterValue = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumbersInput) SetMaxResults(v int64) *ListPhoneNumbersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersInput) SetNextToken(v string) *ListPhoneNumbersInput { + s.NextToken = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *ListPhoneNumbersInput) SetProductType(v string) *ListPhoneNumbersInput { + s.ProductType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListPhoneNumbersInput) SetStatus(v string) *ListPhoneNumbersInput { + s.Status = &v + return s +} + +type ListPhoneNumbersOutput struct { _ struct{} `type:"structure"` - SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` + NextToken *string `type:"string"` + + PhoneNumbers []*PhoneNumber `type:"list"` } // String returns the string representation. @@ -10328,7 +14173,7 @@ type GetSipMediaApplicationAlexaSkillConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) String() string { +func (s ListPhoneNumbersOutput) String() string { return awsutil.Prettify(s) } @@ -10337,21 +14182,33 @@ func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) GoString() string { +func (s ListPhoneNumbersOutput) GoString() string { return s.String() } -// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. -func (s *GetSipMediaApplicationAlexaSkillConfigurationOutput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *GetSipMediaApplicationAlexaSkillConfigurationOutput { - s.SipMediaApplicationAlexaSkillConfiguration = v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOutput) SetNextToken(v string) *ListPhoneNumbersOutput { + s.NextToken = &v return s } -type GetSipMediaApplicationInput struct { +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *ListPhoneNumbersOutput) SetPhoneNumbers(v []*PhoneNumber) *ListPhoneNumbersOutput { + s.PhoneNumbers = v + return s +} + +type ListProxySessionsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + Status *string `location:"querystring" locationName:"status" type:"string" enum:"ProxySessionStatus"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -10359,7 +14216,7 @@ type GetSipMediaApplicationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationInput) String() string { +func (s ListProxySessionsInput) String() string { return awsutil.Prettify(s) } @@ -10368,18 +14225,21 @@ func (s GetSipMediaApplicationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationInput) GoString() string { +func (s ListProxySessionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) +func (s *ListProxySessionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProxySessionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + 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 { @@ -10388,17 +14248,36 @@ func (s *GetSipMediaApplicationInput) Validate() error { return nil } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *GetSipMediaApplicationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationInput { - s.SipMediaApplicationId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListProxySessionsInput) SetMaxResults(v int64) *ListProxySessionsInput { + s.MaxResults = &v return s } -type GetSipMediaApplicationLoggingConfigurationInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListProxySessionsInput) SetNextToken(v string) *ListProxySessionsInput { + s.NextToken = &v + return s +} - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +// SetStatus sets the Status field's value. +func (s *ListProxySessionsInput) SetStatus(v string) *ListProxySessionsInput { + s.Status = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ListProxySessionsInput) SetVoiceConnectorId(v string) *ListProxySessionsInput { + s.VoiceConnectorId = &v + return s +} + +type ListProxySessionsOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + ProxySessions []*ProxySession `type:"list"` } // String returns the string representation. @@ -10406,7 +14285,7 @@ type GetSipMediaApplicationLoggingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationLoggingConfigurationInput) String() string { +func (s ListProxySessionsOutput) String() string { return awsutil.Prettify(s) } @@ -10415,36 +14294,28 @@ func (s GetSipMediaApplicationLoggingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationLoggingConfigurationInput) GoString() string { +func (s ListProxySessionsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipMediaApplicationLoggingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationLoggingConfigurationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) - } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListProxySessionsOutput) SetNextToken(v string) *ListProxySessionsOutput { + s.NextToken = &v + return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *GetSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationLoggingConfigurationInput { - s.SipMediaApplicationId = &v +// SetProxySessions sets the ProxySessions field's value. +func (s *ListProxySessionsOutput) SetProxySessions(v []*ProxySession) *ListProxySessionsOutput { + s.ProxySessions = v return s } -type GetSipMediaApplicationLoggingConfigurationOutput struct { - _ struct{} `type:"structure"` +type ListSipMediaApplicationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` - SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -10452,7 +14323,7 @@ type GetSipMediaApplicationLoggingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationLoggingConfigurationOutput) String() string { +func (s ListSipMediaApplicationsInput) String() string { return awsutil.Prettify(s) } @@ -10461,20 +14332,41 @@ func (s GetSipMediaApplicationLoggingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationLoggingConfigurationOutput) GoString() string { +func (s ListSipMediaApplicationsInput) GoString() string { return s.String() } -// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. -func (s *GetSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *GetSipMediaApplicationLoggingConfigurationOutput { - s.SipMediaApplicationLoggingConfiguration = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSipMediaApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSipMediaApplicationsInput"} + 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 *ListSipMediaApplicationsInput) SetMaxResults(v int64) *ListSipMediaApplicationsInput { + s.MaxResults = &v return s } -type GetSipMediaApplicationOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListSipMediaApplicationsInput) SetNextToken(v string) *ListSipMediaApplicationsInput { + s.NextToken = &v + return s +} + +type ListSipMediaApplicationsOutput struct { _ struct{} `type:"structure"` - SipMediaApplication *SipMediaApplication `type:"structure"` + NextToken *string `type:"string"` + + SipMediaApplications []*SipMediaApplication `type:"list"` } // String returns the string representation. @@ -10482,7 +14374,7 @@ type GetSipMediaApplicationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationOutput) String() string { +func (s ListSipMediaApplicationsOutput) String() string { return awsutil.Prettify(s) } @@ -10491,21 +14383,30 @@ func (s GetSipMediaApplicationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipMediaApplicationOutput) GoString() string { +func (s ListSipMediaApplicationsOutput) GoString() string { return s.String() } -// SetSipMediaApplication sets the SipMediaApplication field's value. -func (s *GetSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *GetSipMediaApplicationOutput { - s.SipMediaApplication = v +// SetNextToken sets the NextToken field's value. +func (s *ListSipMediaApplicationsOutput) SetNextToken(v string) *ListSipMediaApplicationsOutput { + s.NextToken = &v return s } -type GetSipRuleInput struct { +// SetSipMediaApplications sets the SipMediaApplications field's value. +func (s *ListSipMediaApplicationsOutput) SetSipMediaApplications(v []*SipMediaApplication) *ListSipMediaApplicationsOutput { + s.SipMediaApplications = v + return s +} + +type ListSipRulesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // SipRuleId is a required field - SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + SipMediaApplicationId *string `location:"querystring" locationName:"sip-media-application" type:"string"` } // String returns the string representation. @@ -10513,7 +14414,7 @@ type GetSipRuleInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipRuleInput) String() string { +func (s ListSipRulesInput) String() string { return awsutil.Prettify(s) } @@ -10522,18 +14423,15 @@ func (s GetSipRuleInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipRuleInput) GoString() string { +func (s ListSipRulesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipRuleInput"} - if s.SipRuleId == nil { - invalidParams.Add(request.NewErrParamRequired("SipRuleId")) - } - if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) +func (s *ListSipRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSipRulesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -10542,16 +14440,30 @@ func (s *GetSipRuleInput) Validate() error { return nil } -// SetSipRuleId sets the SipRuleId field's value. -func (s *GetSipRuleInput) SetSipRuleId(v string) *GetSipRuleInput { - s.SipRuleId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListSipRulesInput) SetMaxResults(v int64) *ListSipRulesInput { + s.MaxResults = &v return s } -type GetSipRuleOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListSipRulesInput) SetNextToken(v string) *ListSipRulesInput { + s.NextToken = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *ListSipRulesInput) SetSipMediaApplicationId(v string) *ListSipRulesInput { + s.SipMediaApplicationId = &v + return s +} + +type ListSipRulesOutput struct { _ struct{} `type:"structure"` - SipRule *SipRule `type:"structure"` + NextToken *string `type:"string"` + + SipRules []*SipRule `type:"list"` } // String returns the string representation. @@ -10559,7 +14471,7 @@ type GetSipRuleOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipRuleOutput) String() string { +func (s ListSipRulesOutput) String() string { return awsutil.Prettify(s) } @@ -10568,21 +14480,27 @@ func (s GetSipRuleOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetSipRuleOutput) GoString() string { +func (s ListSipRulesOutput) GoString() string { return s.String() } -// SetSipRule sets the SipRule field's value. -func (s *GetSipRuleOutput) SetSipRule(v *SipRule) *GetSipRuleOutput { - s.SipRule = v +// SetNextToken sets the NextToken field's value. +func (s *ListSipRulesOutput) SetNextToken(v string) *ListSipRulesOutput { + s.NextToken = &v return s } -type GetVoiceConnectorEmergencyCallingConfigurationInput struct { +// SetSipRules sets the SipRules field's value. +func (s *ListSipRulesOutput) SetSipRules(v []*SipRule) *ListSipRulesOutput { + s.SipRules = v + return s +} + +type ListSupportedPhoneNumberCountriesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // ProductType is a required field + ProductType *string `location:"querystring" locationName:"product-type" type:"string" required:"true" enum:"PhoneNumberProductType"` } // String returns the string representation. @@ -10590,7 +14508,7 @@ type GetVoiceConnectorEmergencyCallingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorEmergencyCallingConfigurationInput) String() string { +func (s ListSupportedPhoneNumberCountriesInput) String() string { return awsutil.Prettify(s) } @@ -10599,18 +14517,15 @@ func (s GetVoiceConnectorEmergencyCallingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { +func (s ListSupportedPhoneNumberCountriesInput) GoString() string { return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorEmergencyCallingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSupportedPhoneNumberCountriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSupportedPhoneNumberCountriesInput"} + if s.ProductType == nil { + invalidParams.Add(request.NewErrParamRequired("ProductType")) } if invalidParams.Len() > 0 { @@ -10619,16 +14534,16 @@ func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorEmergencyCallingConfigurationInput { - s.VoiceConnectorId = &v +// SetProductType sets the ProductType field's value. +func (s *ListSupportedPhoneNumberCountriesInput) SetProductType(v string) *ListSupportedPhoneNumberCountriesInput { + s.ProductType = &v return s } -type GetVoiceConnectorEmergencyCallingConfigurationOutput struct { +type ListSupportedPhoneNumberCountriesOutput struct { _ struct{} `type:"structure"` - EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` + PhoneNumberCountries []*PhoneNumberCountry `type:"list"` } // String returns the string representation. @@ -10636,7 +14551,7 @@ type GetVoiceConnectorEmergencyCallingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) String() string { +func (s ListSupportedPhoneNumberCountriesOutput) String() string { return awsutil.Prettify(s) } @@ -10645,21 +14560,24 @@ func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { +func (s ListSupportedPhoneNumberCountriesOutput) GoString() string { return s.String() } -// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. -func (s *GetVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *GetVoiceConnectorEmergencyCallingConfigurationOutput { - s.EmergencyCallingConfiguration = v +// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. +func (s *ListSupportedPhoneNumberCountriesOutput) SetPhoneNumberCountries(v []*PhoneNumberCountry) *ListSupportedPhoneNumberCountriesOutput { + s.PhoneNumberCountries = v return s } -type GetVoiceConnectorGroupInput struct { +type ListTagsForResourceInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // ResourceARN is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ListTagsForResourceInput's + // String and GoString methods. + // ResourceARN is a required field + ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -10667,7 +14585,7 @@ type GetVoiceConnectorGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorGroupInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -10676,18 +14594,18 @@ func (s GetVoiceConnectorGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorGroupInput) GoString() string { +func (s ListTagsForResourceInput) 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")) +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if invalidParams.Len() > 0 { @@ -10696,16 +14614,16 @@ func (s *GetVoiceConnectorGroupInput) Validate() error { return nil } -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *GetVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *GetVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { + s.ResourceARN = &v return s } -type GetVoiceConnectorGroupOutput struct { +type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` - VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation. @@ -10713,7 +14631,7 @@ type GetVoiceConnectorGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorGroupOutput) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } @@ -10722,21 +14640,22 @@ func (s GetVoiceConnectorGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorGroupOutput) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } -// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. -func (s *GetVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *GetVoiceConnectorGroupOutput { - s.VoiceConnectorGroup = v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v return s } -type GetVoiceConnectorInput struct { +type ListVoiceConnectorGroupsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -10744,7 +14663,7 @@ type GetVoiceConnectorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorInput) String() string { +func (s ListVoiceConnectorGroupsInput) String() string { return awsutil.Prettify(s) } @@ -10753,18 +14672,15 @@ func (s GetVoiceConnectorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorInput) GoString() string { +func (s ListVoiceConnectorGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +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 { @@ -10773,13 +14689,57 @@ func (s *GetVoiceConnectorInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorInput) SetVoiceConnectorId(v string) *GetVoiceConnectorInput { - s.VoiceConnectorId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListVoiceConnectorGroupsInput) SetMaxResults(v int64) *ListVoiceConnectorGroupsInput { + s.MaxResults = &v return s } -type GetVoiceConnectorLoggingConfigurationInput struct { +// 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"` + + NextToken *string `type:"string"` + + VoiceConnectorGroups []*VoiceConnectorGroup `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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" nopayload:"true"` // VoiceConnectorId is a required field @@ -10791,7 +14751,7 @@ type GetVoiceConnectorLoggingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorLoggingConfigurationInput) String() string { +func (s ListVoiceConnectorTerminationCredentialsInput) String() string { return awsutil.Prettify(s) } @@ -10800,13 +14760,13 @@ func (s GetVoiceConnectorLoggingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorLoggingConfigurationInput) GoString() string { +func (s ListVoiceConnectorTerminationCredentialsInput) 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"} +func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorTerminationCredentialsInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -10821,15 +14781,15 @@ func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorLoggingConfigurationInput { +func (s *ListVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *ListVoiceConnectorTerminationCredentialsInput { s.VoiceConnectorId = &v return s } -type GetVoiceConnectorLoggingConfigurationOutput struct { +type ListVoiceConnectorTerminationCredentialsOutput struct { _ struct{} `type:"structure"` - LoggingConfiguration *LoggingConfiguration `type:"structure"` + Usernames []*string `type:"list"` } // String returns the string representation. @@ -10837,7 +14797,7 @@ type GetVoiceConnectorLoggingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { +func (s ListVoiceConnectorTerminationCredentialsOutput) String() string { return awsutil.Prettify(s) } @@ -10846,21 +14806,22 @@ func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorLoggingConfigurationOutput) GoString() string { +func (s ListVoiceConnectorTerminationCredentialsOutput) GoString() string { return s.String() } -// SetLoggingConfiguration sets the LoggingConfiguration field's value. -func (s *GetVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *GetVoiceConnectorLoggingConfigurationOutput { - s.LoggingConfiguration = v +// SetUsernames sets the Usernames field's value. +func (s *ListVoiceConnectorTerminationCredentialsOutput) SetUsernames(v []*string) *ListVoiceConnectorTerminationCredentialsOutput { + s.Usernames = v return s } -type GetVoiceConnectorOriginationInput struct { +type ListVoiceConnectorsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -10868,7 +14829,7 @@ type GetVoiceConnectorOriginationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorOriginationInput) String() string { +func (s ListVoiceConnectorsInput) String() string { return awsutil.Prettify(s) } @@ -10877,18 +14838,15 @@ func (s GetVoiceConnectorOriginationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorOriginationInput) GoString() string { +func (s ListVoiceConnectorsInput) 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)) +func (s *ListVoiceConnectorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -10897,46 +14855,24 @@ func (s *GetVoiceConnectorOriginationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { - s.VoiceConnectorId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListVoiceConnectorsInput) SetMaxResults(v int64) *ListVoiceConnectorsInput { + s.MaxResults = &v return s } -type GetVoiceConnectorOriginationOutput struct { - _ struct{} `type:"structure"` - - Origination *Origination `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetVoiceConnectorOriginationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetVoiceConnectorOriginationOutput) GoString() string { - return s.String() -} - -// SetOrigination sets the Origination field's value. -func (s *GetVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *GetVoiceConnectorOriginationOutput { - s.Origination = v +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorsInput) SetNextToken(v string) *ListVoiceConnectorsInput { + s.NextToken = &v return s } -type GetVoiceConnectorOutput struct { +type ListVoiceConnectorsOutput struct { _ struct{} `type:"structure"` - VoiceConnector *VoiceConnector `type:"structure"` + NextToken *string `type:"string"` + + VoiceConnectors []*VoiceConnector `type:"list"` } // String returns the string representation. @@ -10944,7 +14880,7 @@ type GetVoiceConnectorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorOutput) String() string { +func (s ListVoiceConnectorsOutput) String() string { return awsutil.Prettify(s) } @@ -10953,21 +14889,28 @@ func (s GetVoiceConnectorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorOutput) GoString() string { +func (s ListVoiceConnectorsOutput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { - s.VoiceConnector = v +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorsOutput) SetNextToken(v string) *ListVoiceConnectorsOutput { + s.NextToken = &v return s } -type GetVoiceConnectorProxyInput struct { +// SetVoiceConnectors sets the VoiceConnectors field's value. +func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { + s.VoiceConnectors = v + return s +} + +type ListVoiceProfileDomainsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation. @@ -10975,7 +14918,7 @@ type GetVoiceConnectorProxyInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorProxyInput) String() string { +func (s ListVoiceProfileDomainsInput) String() string { return awsutil.Prettify(s) } @@ -10984,18 +14927,15 @@ func (s GetVoiceConnectorProxyInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorProxyInput) GoString() string { +func (s ListVoiceProfileDomainsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorProxyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorProxyInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *ListVoiceProfileDomainsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceProfileDomainsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -11004,16 +14944,24 @@ func (s *GetVoiceConnectorProxyInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *GetVoiceConnectorProxyInput { - s.VoiceConnectorId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListVoiceProfileDomainsInput) SetMaxResults(v int64) *ListVoiceProfileDomainsInput { + s.MaxResults = &v return s } -type GetVoiceConnectorProxyOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceProfileDomainsInput) SetNextToken(v string) *ListVoiceProfileDomainsInput { + s.NextToken = &v + return s +} + +type ListVoiceProfileDomainsOutput struct { _ struct{} `type:"structure"` - Proxy *Proxy `type:"structure"` + NextToken *string `type:"string"` + + VoiceProfileDomains []*VoiceProfileDomainSummary `type:"list"` } // String returns the string representation. @@ -11021,7 +14969,7 @@ type GetVoiceConnectorProxyOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorProxyOutput) String() string { +func (s ListVoiceProfileDomainsOutput) String() string { return awsutil.Prettify(s) } @@ -11030,21 +14978,31 @@ func (s GetVoiceConnectorProxyOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorProxyOutput) GoString() string { +func (s ListVoiceProfileDomainsOutput) GoString() string { return s.String() } -// SetProxy sets the Proxy field's value. -func (s *GetVoiceConnectorProxyOutput) SetProxy(v *Proxy) *GetVoiceConnectorProxyOutput { - s.Proxy = v +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceProfileDomainsOutput) SetNextToken(v string) *ListVoiceProfileDomainsOutput { + s.NextToken = &v return s } -type GetVoiceConnectorStreamingConfigurationInput struct { +// SetVoiceProfileDomains sets the VoiceProfileDomains field's value. +func (s *ListVoiceProfileDomainsOutput) SetVoiceProfileDomains(v []*VoiceProfileDomainSummary) *ListVoiceProfileDomainsOutput { + s.VoiceProfileDomains = v + return s +} + +type ListVoiceProfilesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // VoiceProfileDomainId is a required field + VoiceProfileDomainId *string `location:"querystring" locationName:"voice-profile-domain-id" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -11052,7 +15010,7 @@ type GetVoiceConnectorStreamingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorStreamingConfigurationInput) String() string { +func (s ListVoiceProfilesInput) String() string { return awsutil.Prettify(s) } @@ -11061,18 +15019,21 @@ func (s GetVoiceConnectorStreamingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorStreamingConfigurationInput) GoString() string { +func (s ListVoiceProfilesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorStreamingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *ListVoiceProfilesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceProfilesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.VoiceProfileDomainId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileDomainId")) + } + if s.VoiceProfileDomainId != nil && len(*s.VoiceProfileDomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileDomainId", 1)) } if invalidParams.Len() > 0 { @@ -11081,16 +15042,30 @@ func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorStreamingConfigurationInput { - s.VoiceConnectorId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListVoiceProfilesInput) SetMaxResults(v int64) *ListVoiceProfilesInput { + s.MaxResults = &v return s } -type GetVoiceConnectorStreamingConfigurationOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceProfilesInput) SetNextToken(v string) *ListVoiceProfilesInput { + s.NextToken = &v + return s +} + +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *ListVoiceProfilesInput) SetVoiceProfileDomainId(v string) *ListVoiceProfilesInput { + s.VoiceProfileDomainId = &v + return s +} + +type ListVoiceProfilesOutput struct { _ struct{} `type:"structure"` - StreamingConfiguration *StreamingConfiguration `type:"structure"` + NextToken *string `type:"string"` + + VoiceProfiles []*VoiceProfileSummary `type:"list"` } // String returns the string representation. @@ -11098,7 +15073,7 @@ type GetVoiceConnectorStreamingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { +func (s ListVoiceProfilesOutput) String() string { return awsutil.Prettify(s) } @@ -11107,21 +15082,28 @@ func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorStreamingConfigurationOutput) GoString() string { +func (s ListVoiceProfilesOutput) GoString() string { return s.String() } -// SetStreamingConfiguration sets the StreamingConfiguration field's value. -func (s *GetVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *GetVoiceConnectorStreamingConfigurationOutput { - s.StreamingConfiguration = v +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceProfilesOutput) SetNextToken(v string) *ListVoiceProfilesOutput { + s.NextToken = &v return s } -type GetVoiceConnectorTerminationHealthInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetVoiceProfiles sets the VoiceProfiles field's value. +func (s *ListVoiceProfilesOutput) SetVoiceProfiles(v []*VoiceProfileSummary) *ListVoiceProfilesOutput { + s.VoiceProfiles = v + return s +} - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +type LoggingConfiguration struct { + _ struct{} `type:"structure"` + + EnableMediaMetricLogs *bool `type:"boolean"` + + EnableSIPLogs *bool `type:"boolean"` } // String returns the string representation. @@ -11129,7 +15111,7 @@ type GetVoiceConnectorTerminationHealthInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationHealthInput) String() string { +func (s LoggingConfiguration) String() string { return awsutil.Prettify(s) } @@ -11138,36 +15120,31 @@ func (s GetVoiceConnectorTerminationHealthInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationHealthInput) GoString() string { +func (s LoggingConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorTerminationHealthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationHealthInput"} - 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 +// SetEnableMediaMetricLogs sets the EnableMediaMetricLogs field's value. +func (s *LoggingConfiguration) SetEnableMediaMetricLogs(v bool) *LoggingConfiguration { + s.EnableMediaMetricLogs = &v + return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorTerminationHealthInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationHealthInput { - s.VoiceConnectorId = &v +// SetEnableSIPLogs sets the EnableSIPLogs field's value. +func (s *LoggingConfiguration) SetEnableSIPLogs(v bool) *LoggingConfiguration { + s.EnableSIPLogs = &v return s } -type GetVoiceConnectorTerminationHealthOutput struct { +type MediaInsightsConfiguration struct { _ struct{} `type:"structure"` - TerminationHealth *TerminationHealth `type:"structure"` + // ConfigurationArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by MediaInsightsConfiguration's + // String and GoString methods. + ConfigurationArn *string `min:"1" type:"string" sensitive:"true"` + + Disabled *bool `type:"boolean"` } // String returns the string representation. @@ -11175,7 +15152,7 @@ type GetVoiceConnectorTerminationHealthOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationHealthOutput) String() string { +func (s MediaInsightsConfiguration) String() string { return awsutil.Prettify(s) } @@ -11184,21 +15161,40 @@ func (s GetVoiceConnectorTerminationHealthOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationHealthOutput) GoString() string { +func (s MediaInsightsConfiguration) GoString() string { return s.String() } -// SetTerminationHealth sets the TerminationHealth field's value. -func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { - s.TerminationHealth = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *MediaInsightsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MediaInsightsConfiguration"} + if s.ConfigurationArn != nil && len(*s.ConfigurationArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationArn sets the ConfigurationArn field's value. +func (s *MediaInsightsConfiguration) SetConfigurationArn(v string) *MediaInsightsConfiguration { + s.ConfigurationArn = &v return s } -type GetVoiceConnectorTerminationInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetDisabled sets the Disabled field's value. +func (s *MediaInsightsConfiguration) SetDisabled(v bool) *MediaInsightsConfiguration { + s.Disabled = &v + return s +} - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -11206,7 +15202,7 @@ type GetVoiceConnectorTerminationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationInput) String() string { +func (s NotFoundException) String() string { return awsutil.Prettify(s) } @@ -11215,36 +15211,57 @@ func (s GetVoiceConnectorTerminationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationInput) GoString() string { +func (s NotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorTerminationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationInput { - s.VoiceConnectorId = &v - return s +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type GetVoiceConnectorTerminationOutput struct { +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +type OrderedPhoneNumber struct { _ struct{} `type:"structure"` - Termination *Termination `type:"structure"` + // E164PhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by OrderedPhoneNumber's + // String and GoString methods. + E164PhoneNumber *string `type:"string" sensitive:"true"` + + Status *string `type:"string" enum:"OrderedPhoneNumberStatus"` } // String returns the string representation. @@ -11252,7 +15269,7 @@ type GetVoiceConnectorTerminationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationOutput) String() string { +func (s OrderedPhoneNumber) String() string { return awsutil.Prettify(s) } @@ -11261,18 +15278,28 @@ func (s GetVoiceConnectorTerminationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s GetVoiceConnectorTerminationOutput) GoString() string { +func (s OrderedPhoneNumber) GoString() string { return s.String() } -// SetTermination sets the Termination field's value. -func (s *GetVoiceConnectorTerminationOutput) SetTermination(v *Termination) *GetVoiceConnectorTerminationOutput { - s.Termination = v +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *OrderedPhoneNumber) SetE164PhoneNumber(v string) *OrderedPhoneNumber { + s.E164PhoneNumber = &v return s } -type ListAvailableVoiceConnectorRegionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetStatus sets the Status field's value. +func (s *OrderedPhoneNumber) SetStatus(v string) *OrderedPhoneNumber { + s.Status = &v + return s +} + +type Origination struct { + _ struct{} `type:"structure"` + + Disabled *bool `type:"boolean"` + + Routes []*OriginationRoute `type:"list"` } // String returns the string representation. @@ -11280,7 +15307,7 @@ type ListAvailableVoiceConnectorRegionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAvailableVoiceConnectorRegionsInput) String() string { +func (s Origination) String() string { return awsutil.Prettify(s) } @@ -11289,46 +15316,54 @@ func (s ListAvailableVoiceConnectorRegionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAvailableVoiceConnectorRegionsInput) GoString() string { +func (s Origination) GoString() string { return s.String() } -type ListAvailableVoiceConnectorRegionsOutput struct { - _ struct{} `type:"structure"` - - VoiceConnectorRegions []*string `type:"list" enum:"VoiceConnectorAwsRegion"` -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *Origination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Origination"} + if s.Routes != nil { + for i, v := range s.Routes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Routes", i), err.(request.ErrInvalidParams)) + } + } + } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListAvailableVoiceConnectorRegionsOutput) String() string { - return awsutil.Prettify(s) + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListAvailableVoiceConnectorRegionsOutput) GoString() string { - return s.String() +// SetDisabled sets the Disabled field's value. +func (s *Origination) SetDisabled(v bool) *Origination { + s.Disabled = &v + return s } -// SetVoiceConnectorRegions sets the VoiceConnectorRegions field's value. -func (s *ListAvailableVoiceConnectorRegionsOutput) SetVoiceConnectorRegions(v []*string) *ListAvailableVoiceConnectorRegionsOutput { - s.VoiceConnectorRegions = v +// SetRoutes sets the Routes field's value. +func (s *Origination) SetRoutes(v []*OriginationRoute) *Origination { + s.Routes = v return s } -type ListPhoneNumberOrdersInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type OriginationRoute struct { + _ struct{} `type:"structure"` - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + Host *string `type:"string"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + Port *int64 `type:"integer"` + + Priority *int64 `min:"1" type:"integer"` + + Protocol *string `type:"string" enum:"OriginationRouteProtocol"` + + Weight *int64 `min:"1" type:"integer"` } // String returns the string representation. @@ -11336,7 +15371,7 @@ type ListPhoneNumberOrdersInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumberOrdersInput) String() string { +func (s OriginationRoute) String() string { return awsutil.Prettify(s) } @@ -11345,15 +15380,18 @@ func (s ListPhoneNumberOrdersInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumberOrdersInput) GoString() string { +func (s OriginationRoute) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListPhoneNumberOrdersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumberOrdersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *OriginationRoute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginationRoute"} + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) + } + if s.Weight != nil && *s.Weight < 1 { + invalidParams.Add(request.NewErrParamMinValue("Weight", 1)) } if invalidParams.Len() > 0 { @@ -11362,24 +15400,48 @@ func (s *ListPhoneNumberOrdersInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListPhoneNumberOrdersInput) SetMaxResults(v int64) *ListPhoneNumberOrdersInput { - s.MaxResults = &v +// SetHost sets the Host field's value. +func (s *OriginationRoute) SetHost(v string) *OriginationRoute { + s.Host = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumberOrdersInput) SetNextToken(v string) *ListPhoneNumberOrdersInput { - s.NextToken = &v +// SetPort sets the Port field's value. +func (s *OriginationRoute) SetPort(v int64) *OriginationRoute { + s.Port = &v return s } -type ListPhoneNumberOrdersOutput struct { +// SetPriority sets the Priority field's value. +func (s *OriginationRoute) SetPriority(v int64) *OriginationRoute { + s.Priority = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *OriginationRoute) SetProtocol(v string) *OriginationRoute { + s.Protocol = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *OriginationRoute) SetWeight(v int64) *OriginationRoute { + s.Weight = &v + return s +} + +type Participant struct { _ struct{} `type:"structure"` - NextToken *string `type:"string"` + // PhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Participant's + // String and GoString methods. + PhoneNumber *string `type:"string" sensitive:"true"` - PhoneNumberOrders []*PhoneNumberOrder `type:"list"` + // ProxyPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Participant's + // String and GoString methods. + ProxyPhoneNumber *string `type:"string" sensitive:"true"` } // String returns the string representation. @@ -11387,7 +15449,7 @@ type ListPhoneNumberOrdersOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumberOrdersOutput) String() string { +func (s Participant) String() string { return awsutil.Prettify(s) } @@ -11396,36 +15458,61 @@ func (s ListPhoneNumberOrdersOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumberOrdersOutput) GoString() string { +func (s Participant) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumberOrdersOutput) SetNextToken(v string) *ListPhoneNumberOrdersOutput { - s.NextToken = &v +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *Participant) SetPhoneNumber(v string) *Participant { + s.PhoneNumber = &v return s } -// SetPhoneNumberOrders sets the PhoneNumberOrders field's value. -func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { - s.PhoneNumberOrders = v +// SetProxyPhoneNumber sets the ProxyPhoneNumber field's value. +func (s *Participant) SetProxyPhoneNumber(v string) *Participant { + s.ProxyPhoneNumber = &v return s } -type ListPhoneNumbersInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type PhoneNumber struct { + _ struct{} `type:"structure"` - FilterName *string `location:"querystring" locationName:"filter-name" type:"string" enum:"PhoneNumberAssociationName"` + Associations []*PhoneNumberAssociation `type:"list"` - FilterValue *string `location:"querystring" locationName:"filter-value" type:"string"` + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + CallingNameStatus *string `type:"string" enum:"CallingNameStatus"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + Capabilities *PhoneNumberCapabilities `type:"structure"` - ProductType *string `location:"querystring" locationName:"product-type" type:"string" enum:"PhoneNumberProductType"` + Country *string `type:"string"` - Status *string `location:"querystring" locationName:"status" type:"string"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // E164PhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + E164PhoneNumber *string `type:"string" sensitive:"true"` + + OrderId *string `type:"string"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + PhoneNumberId *string `type:"string" sensitive:"true"` + + ProductType *string `type:"string" enum:"PhoneNumberProductType"` + + Status *string `type:"string" enum:"PhoneNumberStatus"` + + Type *string `type:"string" enum:"PhoneNumberType"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -11433,7 +15520,7 @@ type ListPhoneNumbersInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumbersInput) String() string { +func (s PhoneNumber) String() string { return awsutil.Prettify(s) } @@ -11442,65 +15529,102 @@ func (s ListPhoneNumbersInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumbersInput) GoString() string { +func (s PhoneNumber) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPhoneNumbersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetAssociations sets the Associations field's value. +func (s *PhoneNumber) SetAssociations(v []*PhoneNumberAssociation) *PhoneNumber { + s.Associations = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCallingName sets the CallingName field's value. +func (s *PhoneNumber) SetCallingName(v string) *PhoneNumber { + s.CallingName = &v + return s } -// SetFilterName sets the FilterName field's value. -func (s *ListPhoneNumbersInput) SetFilterName(v string) *ListPhoneNumbersInput { - s.FilterName = &v +// SetCallingNameStatus sets the CallingNameStatus field's value. +func (s *PhoneNumber) SetCallingNameStatus(v string) *PhoneNumber { + s.CallingNameStatus = &v return s } -// SetFilterValue sets the FilterValue field's value. -func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { - s.FilterValue = &v +// SetCapabilities sets the Capabilities field's value. +func (s *PhoneNumber) SetCapabilities(v *PhoneNumberCapabilities) *PhoneNumber { + s.Capabilities = v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListPhoneNumbersInput) SetMaxResults(v int64) *ListPhoneNumbersInput { - s.MaxResults = &v +// SetCountry sets the Country field's value. +func (s *PhoneNumber) SetCountry(v string) *PhoneNumber { + s.Country = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumbersInput) SetNextToken(v string) *ListPhoneNumbersInput { - s.NextToken = &v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *PhoneNumber) SetCreatedTimestamp(v time.Time) *PhoneNumber { + s.CreatedTimestamp = &v + return s +} + +// SetDeletionTimestamp sets the DeletionTimestamp field's value. +func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { + s.DeletionTimestamp = &v + return s +} + +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *PhoneNumber) SetE164PhoneNumber(v string) *PhoneNumber { + s.E164PhoneNumber = &v + return s +} + +// SetOrderId sets the OrderId field's value. +func (s *PhoneNumber) SetOrderId(v string) *PhoneNumber { + s.OrderId = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *PhoneNumber) SetPhoneNumberId(v string) *PhoneNumber { + s.PhoneNumberId = &v return s } // SetProductType sets the ProductType field's value. -func (s *ListPhoneNumbersInput) SetProductType(v string) *ListPhoneNumbersInput { +func (s *PhoneNumber) SetProductType(v string) *PhoneNumber { s.ProductType = &v return s } // SetStatus sets the Status field's value. -func (s *ListPhoneNumbersInput) SetStatus(v string) *ListPhoneNumbersInput { +func (s *PhoneNumber) SetStatus(v string) *PhoneNumber { s.Status = &v return s } -type ListPhoneNumbersOutput struct { +// SetType sets the Type field's value. +func (s *PhoneNumber) SetType(v string) *PhoneNumber { + s.Type = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *PhoneNumber) SetUpdatedTimestamp(v time.Time) *PhoneNumber { + s.UpdatedTimestamp = &v + return s +} + +type PhoneNumberAssociation struct { _ struct{} `type:"structure"` - NextToken *string `type:"string"` + AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - PhoneNumbers []*PhoneNumber `type:"list"` + Name *string `type:"string" enum:"PhoneNumberAssociationName"` + + Value *string `type:"string"` } // String returns the string representation. @@ -11508,7 +15632,7 @@ type ListPhoneNumbersOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumbersOutput) String() string { +func (s PhoneNumberAssociation) String() string { return awsutil.Prettify(s) } @@ -11517,33 +15641,42 @@ func (s ListPhoneNumbersOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListPhoneNumbersOutput) GoString() string { +func (s PhoneNumberAssociation) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumbersOutput) SetNextToken(v string) *ListPhoneNumbersOutput { - s.NextToken = &v +// SetAssociatedTimestamp sets the AssociatedTimestamp field's value. +func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { + s.AssociatedTimestamp = &v return s } -// SetPhoneNumbers sets the PhoneNumbers field's value. -func (s *ListPhoneNumbersOutput) SetPhoneNumbers(v []*PhoneNumber) *ListPhoneNumbersOutput { - s.PhoneNumbers = v +// SetName sets the Name field's value. +func (s *PhoneNumberAssociation) SetName(v string) *PhoneNumberAssociation { + s.Name = &v return s } -type ListProxySessionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetValue sets the Value field's value. +func (s *PhoneNumberAssociation) SetValue(v string) *PhoneNumberAssociation { + s.Value = &v + return s +} - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +type PhoneNumberCapabilities struct { + _ struct{} `type:"structure"` + + InboundCall *bool `type:"boolean"` + + InboundMMS *bool `type:"boolean"` + + InboundSMS *bool `type:"boolean"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + OutboundCall *bool `type:"boolean"` - Status *string `location:"querystring" locationName:"status" type:"string" enum:"ProxySessionStatus"` + OutboundMMS *bool `type:"boolean"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + OutboundSMS *bool `type:"boolean"` } // String returns the string representation. @@ -11551,7 +15684,7 @@ type ListProxySessionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListProxySessionsInput) String() string { +func (s PhoneNumberCapabilities) String() string { return awsutil.Prettify(s) } @@ -11560,59 +15693,52 @@ func (s ListProxySessionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListProxySessionsInput) GoString() string { +func (s PhoneNumberCapabilities) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListProxySessionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListProxySessionsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } +// SetInboundCall sets the InboundCall field's value. +func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { + s.InboundCall = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetInboundMMS sets the InboundMMS field's value. +func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { + s.InboundMMS = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListProxySessionsInput) SetMaxResults(v int64) *ListProxySessionsInput { - s.MaxResults = &v +// SetInboundSMS sets the InboundSMS field's value. +func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { + s.InboundSMS = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListProxySessionsInput) SetNextToken(v string) *ListProxySessionsInput { - s.NextToken = &v +// SetOutboundCall sets the OutboundCall field's value. +func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { + s.OutboundCall = &v return s } -// SetStatus sets the Status field's value. -func (s *ListProxySessionsInput) SetStatus(v string) *ListProxySessionsInput { - s.Status = &v +// SetOutboundMMS sets the OutboundMMS field's value. +func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { + s.OutboundMMS = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *ListProxySessionsInput) SetVoiceConnectorId(v string) *ListProxySessionsInput { - s.VoiceConnectorId = &v +// SetOutboundSMS sets the OutboundSMS field's value. +func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { + s.OutboundSMS = &v return s } -type ListProxySessionsOutput struct { +type PhoneNumberCountry struct { _ struct{} `type:"structure"` - NextToken *string `type:"string"` + CountryCode *string `type:"string"` - ProxySessions []*ProxySession `type:"list"` + SupportedPhoneNumberTypes []*string `type:"list" enum:"PhoneNumberType"` } // String returns the string representation. @@ -11620,7 +15746,7 @@ type ListProxySessionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListProxySessionsOutput) String() string { +func (s PhoneNumberCountry) String() string { return awsutil.Prettify(s) } @@ -11629,28 +15755,33 @@ func (s ListProxySessionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListProxySessionsOutput) GoString() string { +func (s PhoneNumberCountry) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListProxySessionsOutput) SetNextToken(v string) *ListProxySessionsOutput { - s.NextToken = &v +// SetCountryCode sets the CountryCode field's value. +func (s *PhoneNumberCountry) SetCountryCode(v string) *PhoneNumberCountry { + s.CountryCode = &v return s } -// SetProxySessions sets the ProxySessions field's value. -func (s *ListProxySessionsOutput) SetProxySessions(v []*ProxySession) *ListProxySessionsOutput { - s.ProxySessions = v +// SetSupportedPhoneNumberTypes sets the SupportedPhoneNumberTypes field's value. +func (s *PhoneNumberCountry) SetSupportedPhoneNumberTypes(v []*string) *PhoneNumberCountry { + s.SupportedPhoneNumberTypes = v return s } -type ListSipMediaApplicationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type PhoneNumberError struct { + _ struct{} `type:"structure"` - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + ErrorCode *string `type:"string" enum:"ErrorCode"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + ErrorMessage *string `type:"string"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumberError's + // String and GoString methods. + PhoneNumberId *string `type:"string" sensitive:"true"` } // String returns the string representation. @@ -11658,7 +15789,7 @@ type ListSipMediaApplicationsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipMediaApplicationsInput) String() string { +func (s PhoneNumberError) String() string { return awsutil.Prettify(s) } @@ -11667,41 +15798,44 @@ func (s ListSipMediaApplicationsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipMediaApplicationsInput) GoString() string { +func (s PhoneNumberError) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSipMediaApplicationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSipMediaApplicationsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetErrorCode sets the ErrorCode field's value. +func (s *PhoneNumberError) SetErrorCode(v string) *PhoneNumberError { + s.ErrorCode = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListSipMediaApplicationsInput) SetMaxResults(v int64) *ListSipMediaApplicationsInput { - s.MaxResults = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PhoneNumberError) SetErrorMessage(v string) *PhoneNumberError { + s.ErrorMessage = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSipMediaApplicationsInput) SetNextToken(v string) *ListSipMediaApplicationsInput { - s.NextToken = &v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *PhoneNumberError) SetPhoneNumberId(v string) *PhoneNumberError { + s.PhoneNumberId = &v return s } -type ListSipMediaApplicationsOutput struct { +type PhoneNumberOrder struct { _ struct{} `type:"structure"` - NextToken *string `type:"string"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - SipMediaApplications []*SipMediaApplication `type:"list"` + OrderType *string `type:"string" enum:"PhoneNumberOrderType"` + + OrderedPhoneNumbers []*OrderedPhoneNumber `type:"list"` + + PhoneNumberOrderId *string `type:"string"` + + ProductType *string `type:"string" enum:"PhoneNumberProductType"` + + Status *string `type:"string" enum:"PhoneNumberOrderStatus"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -11709,7 +15843,7 @@ type ListSipMediaApplicationsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipMediaApplicationsOutput) String() string { +func (s PhoneNumberOrder) String() string { return awsutil.Prettify(s) } @@ -11718,30 +15852,65 @@ func (s ListSipMediaApplicationsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipMediaApplicationsOutput) GoString() string { +func (s PhoneNumberOrder) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListSipMediaApplicationsOutput) SetNextToken(v string) *ListSipMediaApplicationsOutput { - s.NextToken = &v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *PhoneNumberOrder) SetCreatedTimestamp(v time.Time) *PhoneNumberOrder { + s.CreatedTimestamp = &v return s } -// SetSipMediaApplications sets the SipMediaApplications field's value. -func (s *ListSipMediaApplicationsOutput) SetSipMediaApplications(v []*SipMediaApplication) *ListSipMediaApplicationsOutput { - s.SipMediaApplications = v +// SetOrderType sets the OrderType field's value. +func (s *PhoneNumberOrder) SetOrderType(v string) *PhoneNumberOrder { + s.OrderType = &v return s } -type ListSipRulesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetOrderedPhoneNumbers sets the OrderedPhoneNumbers field's value. +func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { + s.OrderedPhoneNumbers = v + return s +} - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. +func (s *PhoneNumberOrder) SetPhoneNumberOrderId(v string) *PhoneNumberOrder { + s.PhoneNumberOrderId = &v + return s +} - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +// SetProductType sets the ProductType field's value. +func (s *PhoneNumberOrder) SetProductType(v string) *PhoneNumberOrder { + s.ProductType = &v + return s +} - SipMediaApplicationId *string `location:"querystring" locationName:"sip-media-application" type:"string"` +// SetStatus sets the Status field's value. +func (s *PhoneNumberOrder) SetStatus(v string) *PhoneNumberOrder { + s.Status = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *PhoneNumberOrder) SetUpdatedTimestamp(v time.Time) *PhoneNumberOrder { + s.UpdatedTimestamp = &v + return s +} + +type Proxy struct { + _ struct{} `type:"structure"` + + DefaultSessionExpiryMinutes *int64 `type:"integer"` + + Disabled *bool `type:"boolean"` + + // FallBackPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Proxy's + // String and GoString methods. + FallBackPhoneNumber *string `type:"string" sensitive:"true"` + + PhoneNumberCountries []*string `type:"list"` } // String returns the string representation. @@ -11749,7 +15918,7 @@ type ListSipRulesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipRulesInput) String() string { +func (s Proxy) String() string { return awsutil.Prettify(s) } @@ -11758,47 +15927,62 @@ func (s ListSipRulesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipRulesInput) GoString() string { +func (s Proxy) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSipRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSipRulesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. +func (s *Proxy) SetDefaultSessionExpiryMinutes(v int64) *Proxy { + s.DefaultSessionExpiryMinutes = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDisabled sets the Disabled field's value. +func (s *Proxy) SetDisabled(v bool) *Proxy { + s.Disabled = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListSipRulesInput) SetMaxResults(v int64) *ListSipRulesInput { - s.MaxResults = &v +// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. +func (s *Proxy) SetFallBackPhoneNumber(v string) *Proxy { + s.FallBackPhoneNumber = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSipRulesInput) SetNextToken(v string) *ListSipRulesInput { - s.NextToken = &v +// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. +func (s *Proxy) SetPhoneNumberCountries(v []*string) *Proxy { + s.PhoneNumberCountries = v return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *ListSipRulesInput) SetSipMediaApplicationId(v string) *ListSipRulesInput { - s.SipMediaApplicationId = &v - return s -} +type ProxySession struct { + _ struct{} `type:"structure"` + + Capabilities []*string `type:"list" enum:"Capability"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + EndedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + ExpiryMinutes *int64 `min:"1" type:"integer"` + + GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` + + GeoMatchParams *GeoMatchParams `type:"structure"` + + Name *string `type:"string"` + + NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` + + Participants []*Participant `type:"list"` -type ListSipRulesOutput struct { - _ struct{} `type:"structure"` + ProxySessionId *string `min:"1" type:"string"` - NextToken *string `type:"string"` + Status *string `type:"string" enum:"ProxySessionStatus"` - SipRules []*SipRule `type:"list"` + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceConnectorId *string `min:"1" type:"string"` } // String returns the string representation. @@ -11806,7 +15990,7 @@ type ListSipRulesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipRulesOutput) String() string { +func (s ProxySession) String() string { return awsutil.Prettify(s) } @@ -11815,102 +15999,95 @@ func (s ListSipRulesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListSipRulesOutput) GoString() string { +func (s ProxySession) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListSipRulesOutput) SetNextToken(v string) *ListSipRulesOutput { - s.NextToken = &v +// SetCapabilities sets the Capabilities field's value. +func (s *ProxySession) SetCapabilities(v []*string) *ProxySession { + s.Capabilities = v return s } -// SetSipRules sets the SipRules field's value. -func (s *ListSipRulesOutput) SetSipRules(v []*SipRule) *ListSipRulesOutput { - s.SipRules = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ProxySession) SetCreatedTimestamp(v time.Time) *ProxySession { + s.CreatedTimestamp = &v return s } -type ListSupportedPhoneNumberCountriesInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // ProductType is a required field - ProductType *string `location:"querystring" locationName:"product-type" type:"string" required:"true" enum:"PhoneNumberProductType"` +// SetEndedTimestamp sets the EndedTimestamp field's value. +func (s *ProxySession) SetEndedTimestamp(v time.Time) *ProxySession { + s.EndedTimestamp = &v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSupportedPhoneNumberCountriesInput) String() string { - return awsutil.Prettify(s) +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *ProxySession) SetExpiryMinutes(v int64) *ProxySession { + s.ExpiryMinutes = &v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSupportedPhoneNumberCountriesInput) GoString() string { - return s.String() +// SetGeoMatchLevel sets the GeoMatchLevel field's value. +func (s *ProxySession) SetGeoMatchLevel(v string) *ProxySession { + s.GeoMatchLevel = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSupportedPhoneNumberCountriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSupportedPhoneNumberCountriesInput"} - if s.ProductType == nil { - invalidParams.Add(request.NewErrParamRequired("ProductType")) - } +// SetGeoMatchParams sets the GeoMatchParams field's value. +func (s *ProxySession) SetGeoMatchParams(v *GeoMatchParams) *ProxySession { + s.GeoMatchParams = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetName sets the Name field's value. +func (s *ProxySession) SetName(v string) *ProxySession { + s.Name = &v + return s } -// SetProductType sets the ProductType field's value. -func (s *ListSupportedPhoneNumberCountriesInput) SetProductType(v string) *ListSupportedPhoneNumberCountriesInput { - s.ProductType = &v +// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. +func (s *ProxySession) SetNumberSelectionBehavior(v string) *ProxySession { + s.NumberSelectionBehavior = &v return s } -type ListSupportedPhoneNumberCountriesOutput struct { - _ struct{} `type:"structure"` +// SetParticipants sets the Participants field's value. +func (s *ProxySession) SetParticipants(v []*Participant) *ProxySession { + s.Participants = v + return s +} - PhoneNumberCountries []*PhoneNumberCountry `type:"list"` +// SetProxySessionId sets the ProxySessionId field's value. +func (s *ProxySession) SetProxySessionId(v string) *ProxySession { + s.ProxySessionId = &v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSupportedPhoneNumberCountriesOutput) String() string { - return awsutil.Prettify(s) +// SetStatus sets the Status field's value. +func (s *ProxySession) SetStatus(v string) *ProxySession { + s.Status = &v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSupportedPhoneNumberCountriesOutput) GoString() string { - return s.String() +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *ProxySession) SetUpdatedTimestamp(v time.Time) *ProxySession { + s.UpdatedTimestamp = &v + return s } -// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. -func (s *ListSupportedPhoneNumberCountriesOutput) SetPhoneNumberCountries(v []*PhoneNumberCountry) *ListSupportedPhoneNumberCountriesOutput { - s.PhoneNumberCountries = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ProxySession) SetVoiceConnectorId(v string) *ProxySession { + s.VoiceConnectorId = &v return s } -type ListVoiceConnectorGroupsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type PutSipMediaApplicationAlexaSkillConfigurationInput struct { + _ struct{} `type:"structure"` - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` } // String returns the string representation. @@ -11918,7 +16095,7 @@ type ListVoiceConnectorGroupsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorGroupsInput) String() string { +func (s PutSipMediaApplicationAlexaSkillConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -11927,15 +16104,23 @@ func (s ListVoiceConnectorGroupsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorGroupsInput) GoString() string { +func (s PutSipMediaApplicationAlexaSkillConfigurationInput) 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)) +func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationAlexaSkillConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + if s.SipMediaApplicationAlexaSkillConfiguration != nil { + if err := s.SipMediaApplicationAlexaSkillConfiguration.Validate(); err != nil { + invalidParams.AddNested("SipMediaApplicationAlexaSkillConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11944,24 +16129,22 @@ func (s *ListVoiceConnectorGroupsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListVoiceConnectorGroupsInput) SetMaxResults(v int64) *ListVoiceConnectorGroupsInput { - s.MaxResults = &v +// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. +func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *PutSipMediaApplicationAlexaSkillConfigurationInput { + s.SipMediaApplicationAlexaSkillConfiguration = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorGroupsInput) SetNextToken(v string) *ListVoiceConnectorGroupsInput { - s.NextToken = &v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationAlexaSkillConfigurationInput { + s.SipMediaApplicationId = &v return s } -type ListVoiceConnectorGroupsOutput struct { +type PutSipMediaApplicationAlexaSkillConfigurationOutput struct { _ struct{} `type:"structure"` - NextToken *string `type:"string"` - - VoiceConnectorGroups []*VoiceConnectorGroup `type:"list"` + SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` } // String returns the string representation. @@ -11969,7 +16152,7 @@ type ListVoiceConnectorGroupsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorGroupsOutput) String() string { +func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -11978,27 +16161,23 @@ func (s ListVoiceConnectorGroupsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorGroupsOutput) GoString() string { +func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorGroupsOutput) SetNextToken(v string) *ListVoiceConnectorGroupsOutput { - s.NextToken = &v +// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. +func (s *PutSipMediaApplicationAlexaSkillConfigurationOutput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *PutSipMediaApplicationAlexaSkillConfigurationOutput { + s.SipMediaApplicationAlexaSkillConfiguration = v return s } -// SetVoiceConnectorGroups sets the VoiceConnectorGroups field's value. -func (s *ListVoiceConnectorGroupsOutput) SetVoiceConnectorGroups(v []*VoiceConnectorGroup) *ListVoiceConnectorGroupsOutput { - s.VoiceConnectorGroups = v - return s -} +type PutSipMediaApplicationLoggingConfigurationInput struct { + _ struct{} `type:"structure"` -type ListVoiceConnectorTerminationCredentialsInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` } // String returns the string representation. @@ -12006,7 +16185,7 @@ type ListVoiceConnectorTerminationCredentialsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorTerminationCredentialsInput) String() string { +func (s PutSipMediaApplicationLoggingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -12015,18 +16194,18 @@ func (s ListVoiceConnectorTerminationCredentialsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorTerminationCredentialsInput) GoString() string { +func (s PutSipMediaApplicationLoggingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorTerminationCredentialsInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *PutSipMediaApplicationLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationLoggingConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) } if invalidParams.Len() > 0 { @@ -12035,48 +16214,22 @@ func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *ListVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *ListVoiceConnectorTerminationCredentialsInput { - s.VoiceConnectorId = &v - return s -} - -type ListVoiceConnectorTerminationCredentialsOutput struct { - _ struct{} `type:"structure"` - - Usernames []*string `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListVoiceConnectorTerminationCredentialsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListVoiceConnectorTerminationCredentialsOutput) GoString() string { - return s.String() -} - -// SetUsernames sets the Usernames field's value. -func (s *ListVoiceConnectorTerminationCredentialsOutput) SetUsernames(v []*string) *ListVoiceConnectorTerminationCredentialsOutput { - s.Usernames = v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationId = &v return s } -type ListVoiceConnectorsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationLoggingConfiguration = v + return s +} - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +type PutSipMediaApplicationLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` } // String returns the string representation. @@ -12084,7 +16237,7 @@ type ListVoiceConnectorsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorsInput) String() string { +func (s PutSipMediaApplicationLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -12093,41 +16246,24 @@ func (s ListVoiceConnectorsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorsInput) GoString() string { +func (s PutSipMediaApplicationLoggingConfigurationOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVoiceConnectorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorsInput"} - 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 *ListVoiceConnectorsInput) SetMaxResults(v int64) *ListVoiceConnectorsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorsInput) SetNextToken(v string) *ListVoiceConnectorsInput { - s.NextToken = &v +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *PutSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationOutput { + s.SipMediaApplicationLoggingConfiguration = v return s } -type ListVoiceConnectorsOutput struct { +type PutVoiceConnectorEmergencyCallingConfigurationInput struct { _ struct{} `type:"structure"` - NextToken *string `type:"string"` + // EmergencyCallingConfiguration is a required field + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure" required:"true"` - VoiceConnectors []*VoiceConnector `type:"list"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -12135,7 +16271,7 @@ type ListVoiceConnectorsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorsOutput) String() string { +func (s PutVoiceConnectorEmergencyCallingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -12144,28 +16280,50 @@ func (s ListVoiceConnectorsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListVoiceConnectorsOutput) GoString() string { +func (s PutVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorsOutput) SetNextToken(v string) *ListVoiceConnectorsOutput { - s.NextToken = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorEmergencyCallingConfigurationInput"} + if s.EmergencyCallingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("EmergencyCallingConfiguration")) + } + 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.EmergencyCallingConfiguration != nil { + if err := s.EmergencyCallingConfiguration.Validate(); err != nil { + invalidParams.AddNested("EmergencyCallingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationInput { + s.EmergencyCallingConfiguration = v return s } -// SetVoiceConnectors sets the VoiceConnectors field's value. -func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { - s.VoiceConnectors = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v return s } -type LoggingConfiguration struct { +type PutVoiceConnectorEmergencyCallingConfigurationOutput struct { _ struct{} `type:"structure"` - EnableMediaMetricLogs *bool `type:"boolean"` - - EnableSIPLogs *bool `type:"boolean"` + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` } // String returns the string representation. @@ -12173,7 +16331,7 @@ type LoggingConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LoggingConfiguration) String() string { +func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -12182,27 +16340,24 @@ func (s LoggingConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LoggingConfiguration) GoString() string { +func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { return s.String() } -// SetEnableMediaMetricLogs sets the EnableMediaMetricLogs field's value. -func (s *LoggingConfiguration) SetEnableMediaMetricLogs(v bool) *LoggingConfiguration { - s.EnableMediaMetricLogs = &v +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationOutput { + s.EmergencyCallingConfiguration = v return s } -// SetEnableSIPLogs sets the EnableSIPLogs field's value. -func (s *LoggingConfiguration) SetEnableSIPLogs(v bool) *LoggingConfiguration { - s.EnableSIPLogs = &v - return s -} +type PutVoiceConnectorLoggingConfigurationInput struct { + _ struct{} `type:"structure"` -type NotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // LoggingConfiguration is a required field + LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` - Message_ *string `locationName:"message" type:"string"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -12210,7 +16365,7 @@ type NotFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s NotFoundException) String() string { +func (s PutVoiceConnectorLoggingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -12219,57 +16374,45 @@ func (s NotFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s NotFoundException) GoString() string { +func (s PutVoiceConnectorLoggingConfigurationInput) GoString() string { return s.String() } -func newErrorNotFoundException(v protocol.ResponseMetadata) error { - return &NotFoundException{ - RespMetadata: v, +// 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")) } -} - -// Code returns the exception type name. -func (s *NotFoundException) Code() string { - return "NotFoundException" -} - -// Message returns the exception's message. -func (s *NotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *NotFoundException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *NotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *NotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationInput { + s.LoggingConfiguration = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *NotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v + return s } -type OrderedPhoneNumber struct { +type PutVoiceConnectorLoggingConfigurationOutput struct { _ struct{} `type:"structure"` - // E164PhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by OrderedPhoneNumber's - // String and GoString methods. - E164PhoneNumber *string `type:"string" sensitive:"true"` - - Status *string `type:"string" enum:"OrderedPhoneNumberStatus"` + LoggingConfiguration *LoggingConfiguration `type:"structure"` } // String returns the string representation. @@ -12277,7 +16420,7 @@ type OrderedPhoneNumber struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s OrderedPhoneNumber) String() string { +func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -12286,28 +16429,24 @@ func (s OrderedPhoneNumber) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s OrderedPhoneNumber) GoString() string { +func (s PutVoiceConnectorLoggingConfigurationOutput) GoString() string { return s.String() } -// SetE164PhoneNumber sets the E164PhoneNumber field's value. -func (s *OrderedPhoneNumber) SetE164PhoneNumber(v string) *OrderedPhoneNumber { - s.E164PhoneNumber = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *OrderedPhoneNumber) SetStatus(v string) *OrderedPhoneNumber { - s.Status = &v +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v return s } -type Origination struct { +type PutVoiceConnectorOriginationInput struct { _ struct{} `type:"structure"` - Disabled *bool `type:"boolean"` + // Origination is a required field + Origination *Origination `type:"structure" required:"true"` - Routes []*OriginationRoute `type:"list"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -12315,7 +16454,7 @@ type Origination struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Origination) String() string { +func (s PutVoiceConnectorOriginationInput) String() string { return awsutil.Prettify(s) } @@ -12324,21 +16463,25 @@ func (s Origination) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Origination) GoString() string { +func (s PutVoiceConnectorOriginationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Origination) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Origination"} - if s.Routes != nil { - for i, v := range s.Routes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Routes", i), err.(request.ErrInvalidParams)) - } +func (s *PutVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorOriginationInput"} + if s.Origination == nil { + invalidParams.Add(request.NewErrParamRequired("Origination")) + } + 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.Origination != nil { + if err := s.Origination.Validate(); err != nil { + invalidParams.AddNested("Origination", err.(request.ErrInvalidParams)) } } @@ -12348,30 +16491,66 @@ func (s *Origination) Validate() error { return nil } -// SetDisabled sets the Disabled field's value. -func (s *Origination) SetDisabled(v bool) *Origination { - s.Disabled = &v +// SetOrigination sets the Origination field's value. +func (s *PutVoiceConnectorOriginationInput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationInput { + s.Origination = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v return s } -// SetRoutes sets the Routes field's value. -func (s *Origination) SetRoutes(v []*OriginationRoute) *Origination { - s.Routes = v +type PutVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` + + Origination *Origination `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorOriginationOutput) GoString() string { + return s.String() +} + +// SetOrigination sets the Origination field's value. +func (s *PutVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationOutput { + s.Origination = v return s } -type OriginationRoute struct { +type PutVoiceConnectorProxyInput struct { _ struct{} `type:"structure"` - Host *string `type:"string"` + // DefaultSessionExpiryMinutes is a required field + DefaultSessionExpiryMinutes *int64 `type:"integer" required:"true"` - Port *int64 `type:"integer"` + Disabled *bool `type:"boolean"` - Priority *int64 `min:"1" type:"integer"` + // FallBackPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PutVoiceConnectorProxyInput's + // String and GoString methods. + FallBackPhoneNumber *string `type:"string" sensitive:"true"` - Protocol *string `type:"string" enum:"OriginationRouteProtocol"` + // PhoneNumberPoolCountries is a required field + PhoneNumberPoolCountries []*string `min:"1" type:"list" required:"true"` - Weight *int64 `min:"1" type:"integer"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -12379,7 +16558,7 @@ type OriginationRoute struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s OriginationRoute) String() string { +func (s PutVoiceConnectorProxyInput) String() string { return awsutil.Prettify(s) } @@ -12388,18 +16567,27 @@ func (s OriginationRoute) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s OriginationRoute) GoString() string { +func (s PutVoiceConnectorProxyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *OriginationRoute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OriginationRoute"} - if s.Priority != nil && *s.Priority < 1 { - invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) +func (s *PutVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorProxyInput"} + if s.DefaultSessionExpiryMinutes == nil { + invalidParams.Add(request.NewErrParamRequired("DefaultSessionExpiryMinutes")) } - if s.Weight != nil && *s.Weight < 1 { - invalidParams.Add(request.NewErrParamMinValue("Weight", 1)) + if s.PhoneNumberPoolCountries == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberPoolCountries")) + } + if s.PhoneNumberPoolCountries != nil && len(s.PhoneNumberPoolCountries) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberPoolCountries", 1)) + } + 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 { @@ -12408,48 +16596,40 @@ func (s *OriginationRoute) Validate() error { return nil } -// SetHost sets the Host field's value. -func (s *OriginationRoute) SetHost(v string) *OriginationRoute { - s.Host = &v +// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. +func (s *PutVoiceConnectorProxyInput) SetDefaultSessionExpiryMinutes(v int64) *PutVoiceConnectorProxyInput { + s.DefaultSessionExpiryMinutes = &v return s } -// SetPort sets the Port field's value. -func (s *OriginationRoute) SetPort(v int64) *OriginationRoute { - s.Port = &v +// SetDisabled sets the Disabled field's value. +func (s *PutVoiceConnectorProxyInput) SetDisabled(v bool) *PutVoiceConnectorProxyInput { + s.Disabled = &v return s } -// SetPriority sets the Priority field's value. -func (s *OriginationRoute) SetPriority(v int64) *OriginationRoute { - s.Priority = &v +// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. +func (s *PutVoiceConnectorProxyInput) SetFallBackPhoneNumber(v string) *PutVoiceConnectorProxyInput { + s.FallBackPhoneNumber = &v return s } -// SetProtocol sets the Protocol field's value. -func (s *OriginationRoute) SetProtocol(v string) *OriginationRoute { - s.Protocol = &v +// SetPhoneNumberPoolCountries sets the PhoneNumberPoolCountries field's value. +func (s *PutVoiceConnectorProxyInput) SetPhoneNumberPoolCountries(v []*string) *PutVoiceConnectorProxyInput { + s.PhoneNumberPoolCountries = v return s } -// SetWeight sets the Weight field's value. -func (s *OriginationRoute) SetWeight(v int64) *OriginationRoute { - s.Weight = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *PutVoiceConnectorProxyInput { + s.VoiceConnectorId = &v return s } -type Participant struct { +type PutVoiceConnectorProxyOutput struct { _ struct{} `type:"structure"` - // PhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Participant's - // String and GoString methods. - PhoneNumber *string `type:"string" sensitive:"true"` - - // ProxyPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Participant's - // String and GoString methods. - ProxyPhoneNumber *string `type:"string" sensitive:"true"` + Proxy *Proxy `type:"structure"` } // String returns the string representation. @@ -12457,7 +16637,7 @@ type Participant struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Participant) String() string { +func (s PutVoiceConnectorProxyOutput) String() string { return awsutil.Prettify(s) } @@ -12466,61 +16646,24 @@ func (s Participant) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Participant) GoString() string { +func (s PutVoiceConnectorProxyOutput) GoString() string { return s.String() } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *Participant) SetPhoneNumber(v string) *Participant { - s.PhoneNumber = &v - return s -} - -// SetProxyPhoneNumber sets the ProxyPhoneNumber field's value. -func (s *Participant) SetProxyPhoneNumber(v string) *Participant { - s.ProxyPhoneNumber = &v +// SetProxy sets the Proxy field's value. +func (s *PutVoiceConnectorProxyOutput) SetProxy(v *Proxy) *PutVoiceConnectorProxyOutput { + s.Proxy = v return s } -type PhoneNumber struct { +type PutVoiceConnectorStreamingConfigurationInput struct { _ struct{} `type:"structure"` - Associations []*PhoneNumberAssociation `type:"list"` - - // CallingName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PhoneNumber's - // String and GoString methods. - CallingName *string `type:"string" sensitive:"true"` - - CallingNameStatus *string `type:"string" enum:"CallingNameStatus"` - - Capabilities *PhoneNumberCapabilities `type:"structure"` - - Country *string `type:"string"` - - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // E164PhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PhoneNumber's - // String and GoString methods. - E164PhoneNumber *string `type:"string" sensitive:"true"` - - OrderId *string `type:"string"` - - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PhoneNumber's - // String and GoString methods. - PhoneNumberId *string `type:"string" sensitive:"true"` - - ProductType *string `type:"string" enum:"PhoneNumberProductType"` - - Status *string `type:"string" enum:"PhoneNumberStatus"` - - Type *string `type:"string" enum:"PhoneNumberType"` + // StreamingConfiguration is a required field + StreamingConfiguration *StreamingConfiguration `type:"structure" required:"true"` - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -12528,7 +16671,7 @@ type PhoneNumber struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumber) String() string { +func (s PutVoiceConnectorStreamingConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -12537,102 +16680,50 @@ func (s PhoneNumber) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumber) GoString() string { +func (s PutVoiceConnectorStreamingConfigurationInput) GoString() string { return s.String() } -// SetAssociations sets the Associations field's value. -func (s *PhoneNumber) SetAssociations(v []*PhoneNumberAssociation) *PhoneNumber { - s.Associations = v - 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 - return s -} - -// SetCountry sets the Country field's value. -func (s *PhoneNumber) SetCountry(v string) *PhoneNumber { - s.Country = &v - return s -} - -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *PhoneNumber) SetCreatedTimestamp(v time.Time) *PhoneNumber { - s.CreatedTimestamp = &v - return s -} - -// SetDeletionTimestamp sets the DeletionTimestamp field's value. -func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { - s.DeletionTimestamp = &v - return s -} - -// SetE164PhoneNumber sets the E164PhoneNumber field's value. -func (s *PhoneNumber) SetE164PhoneNumber(v string) *PhoneNumber { - s.E164PhoneNumber = &v - return s -} - -// SetOrderId sets the OrderId field's value. -func (s *PhoneNumber) SetOrderId(v string) *PhoneNumber { - s.OrderId = &v - return s -} - -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *PhoneNumber) SetPhoneNumberId(v string) *PhoneNumber { - s.PhoneNumberId = &v - return s -} - -// SetProductType sets the ProductType field's value. -func (s *PhoneNumber) SetProductType(v string) *PhoneNumber { - s.ProductType = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *PhoneNumber) SetStatus(v string) *PhoneNumber { - s.Status = &v - return s -} +// 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)) + } + } -// SetType sets the Type field's value. -func (s *PhoneNumber) SetType(v string) *PhoneNumber { - s.Type = &v + 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 } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *PhoneNumber) SetUpdatedTimestamp(v time.Time) *PhoneNumber { - s.UpdatedTimestamp = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v return s } -type PhoneNumberAssociation struct { +type PutVoiceConnectorStreamingConfigurationOutput struct { _ struct{} `type:"structure"` - AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - Name *string `type:"string" enum:"PhoneNumberAssociationName"` - - Value *string `type:"string"` + StreamingConfiguration *StreamingConfiguration `type:"structure"` } // String returns the string representation. @@ -12640,7 +16731,7 @@ type PhoneNumberAssociation struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberAssociation) String() string { +func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -12649,42 +16740,23 @@ func (s PhoneNumberAssociation) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberAssociation) GoString() string { +func (s PutVoiceConnectorStreamingConfigurationOutput) GoString() string { return s.String() } -// SetAssociatedTimestamp sets the AssociatedTimestamp field's value. -func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { - s.AssociatedTimestamp = &v - return s -} - -// SetName sets the Name field's value. -func (s *PhoneNumberAssociation) SetName(v string) *PhoneNumberAssociation { - s.Name = &v - return s -} - -// SetValue sets the Value field's value. -func (s *PhoneNumberAssociation) SetValue(v string) *PhoneNumberAssociation { - s.Value = &v +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v return s } -type PhoneNumberCapabilities struct { +type PutVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` - InboundCall *bool `type:"boolean"` - - InboundMMS *bool `type:"boolean"` - - InboundSMS *bool `type:"boolean"` - - OutboundCall *bool `type:"boolean"` - - OutboundMMS *bool `type:"boolean"` + Credentials []*Credential `type:"list"` - OutboundSMS *bool `type:"boolean"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -12692,7 +16764,7 @@ type PhoneNumberCapabilities struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberCapabilities) String() string { +func (s PutVoiceConnectorTerminationCredentialsInput) String() string { return awsutil.Prettify(s) } @@ -12701,52 +16773,68 @@ func (s PhoneNumberCapabilities) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberCapabilities) GoString() string { +func (s PutVoiceConnectorTerminationCredentialsInput) GoString() string { return s.String() } -// SetInboundCall sets the InboundCall field's value. -func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { - s.InboundCall = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationCredentialsInput"} + 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 } -// SetInboundMMS sets the InboundMMS field's value. -func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { - s.InboundMMS = &v +// SetCredentials sets the Credentials field's value. +func (s *PutVoiceConnectorTerminationCredentialsInput) SetCredentials(v []*Credential) *PutVoiceConnectorTerminationCredentialsInput { + s.Credentials = v return s } -// SetInboundSMS sets the InboundSMS field's value. -func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { - s.InboundSMS = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v return s } -// SetOutboundCall sets the OutboundCall field's value. -func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { - s.OutboundCall = &v - return s +type PutVoiceConnectorTerminationCredentialsOutput struct { + _ struct{} `type:"structure"` } -// SetOutboundMMS sets the OutboundMMS field's value. -func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { - s.OutboundMMS = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationCredentialsOutput) String() string { + return awsutil.Prettify(s) } -// SetOutboundSMS sets the OutboundSMS field's value. -func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { - s.OutboundSMS = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationCredentialsOutput) GoString() string { + return s.String() } -type PhoneNumberCountry struct { +type PutVoiceConnectorTerminationInput struct { _ struct{} `type:"structure"` - CountryCode *string `type:"string"` + // Termination is a required field + Termination *Termination `type:"structure" required:"true"` - SupportedPhoneNumberTypes []*string `type:"list" enum:"PhoneNumberType"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -12754,7 +16842,7 @@ type PhoneNumberCountry struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberCountry) String() string { +func (s PutVoiceConnectorTerminationInput) String() string { return awsutil.Prettify(s) } @@ -12763,33 +16851,50 @@ func (s PhoneNumberCountry) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberCountry) GoString() string { +func (s PutVoiceConnectorTerminationInput) GoString() string { return s.String() } -// SetCountryCode sets the CountryCode field's value. -func (s *PhoneNumberCountry) SetCountryCode(v string) *PhoneNumberCountry { - s.CountryCode = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationInput"} + if s.Termination == nil { + invalidParams.Add(request.NewErrParamRequired("Termination")) + } + 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.Termination != nil { + if err := s.Termination.Validate(); err != nil { + invalidParams.AddNested("Termination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTermination sets the Termination field's value. +func (s *PutVoiceConnectorTerminationInput) SetTermination(v *Termination) *PutVoiceConnectorTerminationInput { + s.Termination = v return s } -// SetSupportedPhoneNumberTypes sets the SupportedPhoneNumberTypes field's value. -func (s *PhoneNumberCountry) SetSupportedPhoneNumberTypes(v []*string) *PhoneNumberCountry { - s.SupportedPhoneNumberTypes = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v return s } -type PhoneNumberError struct { +type PutVoiceConnectorTerminationOutput struct { _ struct{} `type:"structure"` - ErrorCode *string `type:"string" enum:"ErrorCode"` - - ErrorMessage *string `type:"string"` - - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PhoneNumberError's - // String and GoString methods. - PhoneNumberId *string `type:"string" sensitive:"true"` + Termination *Termination `type:"structure"` } // String returns the string representation. @@ -12797,7 +16902,7 @@ type PhoneNumberError struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberError) String() string { +func (s PutVoiceConnectorTerminationOutput) String() string { return awsutil.Prettify(s) } @@ -12806,44 +16911,21 @@ func (s PhoneNumberError) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberError) GoString() string { +func (s PutVoiceConnectorTerminationOutput) GoString() string { return s.String() } -// SetErrorCode sets the ErrorCode field's value. -func (s *PhoneNumberError) SetErrorCode(v string) *PhoneNumberError { - s.ErrorCode = &v - return s -} - -// SetErrorMessage sets the ErrorMessage field's value. -func (s *PhoneNumberError) SetErrorMessage(v string) *PhoneNumberError { - s.ErrorMessage = &v - return s -} - -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *PhoneNumberError) SetPhoneNumberId(v string) *PhoneNumberError { - s.PhoneNumberId = &v +// SetTermination sets the Termination field's value. +func (s *PutVoiceConnectorTerminationOutput) SetTermination(v *Termination) *PutVoiceConnectorTerminationOutput { + s.Termination = v return s } -type PhoneNumberOrder struct { - _ struct{} `type:"structure"` - - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - OrderType *string `type:"string" enum:"PhoneNumberOrderType"` - - OrderedPhoneNumbers []*OrderedPhoneNumber `type:"list"` - - PhoneNumberOrderId *string `type:"string"` - - ProductType *string `type:"string" enum:"PhoneNumberProductType"` - - Status *string `type:"string" enum:"PhoneNumberOrderStatus"` +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -12851,7 +16933,7 @@ type PhoneNumberOrder struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberOrder) String() string { +func (s ResourceLimitExceededException) String() string { return awsutil.Prettify(s) } @@ -12860,65 +16942,56 @@ func (s PhoneNumberOrder) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PhoneNumberOrder) GoString() string { +func (s ResourceLimitExceededException) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *PhoneNumberOrder) SetCreatedTimestamp(v time.Time) *PhoneNumberOrder { - s.CreatedTimestamp = &v - return s -} - -// SetOrderType sets the OrderType field's value. -func (s *PhoneNumberOrder) SetOrderType(v string) *PhoneNumberOrder { - s.OrderType = &v - return s -} - -// SetOrderedPhoneNumbers sets the OrderedPhoneNumbers field's value. -func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { - s.OrderedPhoneNumbers = v - return s +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + RespMetadata: v, + } } -// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. -func (s *PhoneNumberOrder) SetPhoneNumberOrderId(v string) *PhoneNumberOrder { - s.PhoneNumberOrderId = &v - return s +// Code returns the exception type name. +func (s *ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" } -// SetProductType sets the ProductType field's value. -func (s *PhoneNumberOrder) SetProductType(v string) *PhoneNumberOrder { - s.ProductType = &v - return s +// Message returns the exception's message. +func (s *ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetStatus sets the Status field's value. -func (s *PhoneNumberOrder) SetStatus(v string) *PhoneNumberOrder { - s.Status = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceLimitExceededException) OrigErr() error { + return nil } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *PhoneNumberOrder) SetUpdatedTimestamp(v time.Time) *PhoneNumberOrder { - s.UpdatedTimestamp = &v - return s +func (s *ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type Proxy struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} - DefaultSessionExpiryMinutes *int64 `type:"integer"` +// RequestID returns the service's response RequestID for request. +func (s *ResourceLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} - Disabled *bool `type:"boolean"` +type RestorePhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // FallBackPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Proxy's + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by RestorePhoneNumberInput's // String and GoString methods. - FallBackPhoneNumber *string `type:"string" sensitive:"true"` - - PhoneNumberCountries []*string `type:"list"` + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -12926,7 +16999,7 @@ type Proxy struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Proxy) String() string { +func (s RestorePhoneNumberInput) String() string { return awsutil.Prettify(s) } @@ -12935,62 +17008,80 @@ func (s Proxy) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Proxy) GoString() string { +func (s RestorePhoneNumberInput) GoString() string { return s.String() } -// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. -func (s *Proxy) SetDefaultSessionExpiryMinutes(v int64) *Proxy { - s.DefaultSessionExpiryMinutes = &v - return s -} - -// SetDisabled sets the Disabled field's value. -func (s *Proxy) SetDisabled(v bool) *Proxy { - s.Disabled = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestorePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestorePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } -// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. -func (s *Proxy) SetFallBackPhoneNumber(v string) *Proxy { - s.FallBackPhoneNumber = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. -func (s *Proxy) SetPhoneNumberCountries(v []*string) *Proxy { - s.PhoneNumberCountries = v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *RestorePhoneNumberInput) SetPhoneNumberId(v string) *RestorePhoneNumberInput { + s.PhoneNumberId = &v return s } -type ProxySession struct { +type RestorePhoneNumberOutput struct { _ struct{} `type:"structure"` - Capabilities []*string `type:"list" enum:"Capability"` + PhoneNumber *PhoneNumber `type:"structure"` +} - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestorePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} - EndedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestorePhoneNumberOutput) GoString() string { + return s.String() +} - ExpiryMinutes *int64 `min:"1" type:"integer"` +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *RestorePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *RestorePhoneNumberOutput { + s.PhoneNumber = v + return s +} - GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` +type SearchAvailablePhoneNumbersInput struct { + _ struct{} `type:"structure" nopayload:"true"` - GeoMatchParams *GeoMatchParams `type:"structure"` + AreaCode *string `location:"querystring" locationName:"area-code" type:"string"` - Name *string `type:"string"` + City *string `location:"querystring" locationName:"city" type:"string"` - NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` + Country *string `location:"querystring" locationName:"country" type:"string"` - Participants []*Participant `type:"list"` + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - ProxySessionId *string `min:"1" type:"string"` + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` - Status *string `type:"string" enum:"ProxySessionStatus"` + PhoneNumberType *string `location:"querystring" locationName:"phone-number-type" type:"string" enum:"PhoneNumberType"` - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + State *string `location:"querystring" locationName:"state" type:"string"` - VoiceConnectorId *string `min:"1" type:"string"` + TollFreePrefix *string `location:"querystring" locationName:"toll-free-prefix" min:"3" type:"string"` } // String returns the string representation. @@ -12998,7 +17089,7 @@ type ProxySession struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ProxySession) String() string { +func (s SearchAvailablePhoneNumbersInput) String() string { return awsutil.Prettify(s) } @@ -13007,95 +17098,120 @@ func (s ProxySession) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ProxySession) GoString() string { +func (s SearchAvailablePhoneNumbersInput) GoString() string { return s.String() } -// SetCapabilities sets the Capabilities field's value. -func (s *ProxySession) SetCapabilities(v []*string) *ProxySession { - s.Capabilities = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchAvailablePhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchAvailablePhoneNumbersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.TollFreePrefix != nil && len(*s.TollFreePrefix) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TollFreePrefix", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *ProxySession) SetCreatedTimestamp(v time.Time) *ProxySession { - s.CreatedTimestamp = &v +// SetAreaCode sets the AreaCode field's value. +func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { + s.AreaCode = &v return s } -// SetEndedTimestamp sets the EndedTimestamp field's value. -func (s *ProxySession) SetEndedTimestamp(v time.Time) *ProxySession { - s.EndedTimestamp = &v +// SetCity sets the City field's value. +func (s *SearchAvailablePhoneNumbersInput) SetCity(v string) *SearchAvailablePhoneNumbersInput { + s.City = &v return s } -// SetExpiryMinutes sets the ExpiryMinutes field's value. -func (s *ProxySession) SetExpiryMinutes(v int64) *ProxySession { - s.ExpiryMinutes = &v +// SetCountry sets the Country field's value. +func (s *SearchAvailablePhoneNumbersInput) SetCountry(v string) *SearchAvailablePhoneNumbersInput { + s.Country = &v return s } -// SetGeoMatchLevel sets the GeoMatchLevel field's value. -func (s *ProxySession) SetGeoMatchLevel(v string) *ProxySession { - s.GeoMatchLevel = &v +// SetMaxResults sets the MaxResults field's value. +func (s *SearchAvailablePhoneNumbersInput) SetMaxResults(v int64) *SearchAvailablePhoneNumbersInput { + s.MaxResults = &v return s } -// SetGeoMatchParams sets the GeoMatchParams field's value. -func (s *ProxySession) SetGeoMatchParams(v *GeoMatchParams) *ProxySession { - s.GeoMatchParams = v +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersInput) SetNextToken(v string) *SearchAvailablePhoneNumbersInput { + s.NextToken = &v return s } -// SetName sets the Name field's value. -func (s *ProxySession) SetName(v string) *ProxySession { - s.Name = &v +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *SearchAvailablePhoneNumbersInput) SetPhoneNumberType(v string) *SearchAvailablePhoneNumbersInput { + s.PhoneNumberType = &v return s } -// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. -func (s *ProxySession) SetNumberSelectionBehavior(v string) *ProxySession { - s.NumberSelectionBehavior = &v +// SetState sets the State field's value. +func (s *SearchAvailablePhoneNumbersInput) SetState(v string) *SearchAvailablePhoneNumbersInput { + s.State = &v return s } -// SetParticipants sets the Participants field's value. -func (s *ProxySession) SetParticipants(v []*Participant) *ProxySession { - s.Participants = v +// SetTollFreePrefix sets the TollFreePrefix field's value. +func (s *SearchAvailablePhoneNumbersInput) SetTollFreePrefix(v string) *SearchAvailablePhoneNumbersInput { + s.TollFreePrefix = &v return s } -// SetProxySessionId sets the ProxySessionId field's value. -func (s *ProxySession) SetProxySessionId(v string) *ProxySession { - s.ProxySessionId = &v - return s +type SearchAvailablePhoneNumbersOutput struct { + _ struct{} `type:"structure"` + + E164PhoneNumbers []*string `type:"list"` + + NextToken *string `type:"string"` } -// SetStatus sets the Status field's value. -func (s *ProxySession) SetStatus(v string) *ProxySession { - s.Status = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchAvailablePhoneNumbersOutput) String() string { + return awsutil.Prettify(s) } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *ProxySession) SetUpdatedTimestamp(v time.Time) *ProxySession { - s.UpdatedTimestamp = &v +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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 } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *ProxySession) SetVoiceConnectorId(v string) *ProxySession { - s.VoiceConnectorId = &v +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetNextToken(v string) *SearchAvailablePhoneNumbersOutput { + s.NextToken = &v return s } -type PutSipMediaApplicationAlexaSkillConfigurationInput struct { +type ServerSideEncryptionConfiguration struct { _ struct{} `type:"structure"` - SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` - - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // KmsKeyArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ServerSideEncryptionConfiguration's + // String and GoString methods. + // KmsKeyArn is a required field + KmsKeyArn *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -13103,7 +17219,7 @@ type PutSipMediaApplicationAlexaSkillConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationAlexaSkillConfigurationInput) String() string { +func (s ServerSideEncryptionConfiguration) String() string { return awsutil.Prettify(s) } @@ -13112,23 +17228,18 @@ func (s PutSipMediaApplicationAlexaSkillConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationAlexaSkillConfigurationInput) GoString() string { +func (s ServerSideEncryptionConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationAlexaSkillConfigurationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) - } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) +func (s *ServerSideEncryptionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ServerSideEncryptionConfiguration"} + if s.KmsKeyArn == nil { + invalidParams.Add(request.NewErrParamRequired("KmsKeyArn")) } - if s.SipMediaApplicationAlexaSkillConfiguration != nil { - if err := s.SipMediaApplicationAlexaSkillConfiguration.Validate(); err != nil { - invalidParams.AddNested("SipMediaApplicationAlexaSkillConfiguration", err.(request.ErrInvalidParams)) - } + if s.KmsKeyArn != nil && len(*s.KmsKeyArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KmsKeyArn", 1)) } if invalidParams.Len() > 0 { @@ -13137,22 +17248,17 @@ func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { return nil } -// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. -func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *PutSipMediaApplicationAlexaSkillConfigurationInput { - s.SipMediaApplicationAlexaSkillConfiguration = v - return s -} - -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationAlexaSkillConfigurationInput { - s.SipMediaApplicationId = &v +// SetKmsKeyArn sets the KmsKeyArn field's value. +func (s *ServerSideEncryptionConfiguration) SetKmsKeyArn(v string) *ServerSideEncryptionConfiguration { + s.KmsKeyArn = &v return s } -type PutSipMediaApplicationAlexaSkillConfigurationOutput struct { - _ struct{} `type:"structure"` +type ServiceFailureException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -13160,7 +17266,7 @@ type PutSipMediaApplicationAlexaSkillConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) String() string { +func (s ServiceFailureException) String() string { return awsutil.Prettify(s) } @@ -13169,23 +17275,53 @@ func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) GoString() string { +func (s ServiceFailureException) GoString() string { return s.String() } -// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. -func (s *PutSipMediaApplicationAlexaSkillConfigurationOutput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *PutSipMediaApplicationAlexaSkillConfigurationOutput { - s.SipMediaApplicationAlexaSkillConfiguration = v - return s +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ + RespMetadata: v, + } } -type PutSipMediaApplicationLoggingConfigurationInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *ServiceFailureException) Code() string { + return "ServiceFailureException" +} - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +// Message returns the exception's message. +func (s *ServiceFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceFailureException) OrigErr() error { + return nil +} + +func (s *ServiceFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceFailureException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceFailureException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -13193,7 +17329,7 @@ type PutSipMediaApplicationLoggingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationLoggingConfigurationInput) String() string { +func (s ServiceUnavailableException) String() string { return awsutil.Prettify(s) } @@ -13202,42 +17338,62 @@ func (s PutSipMediaApplicationLoggingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationLoggingConfigurationInput) GoString() string { +func (s ServiceUnavailableException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutSipMediaApplicationLoggingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationLoggingConfigurationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) - } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s *ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceUnavailableException) OrigErr() error { return nil } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationLoggingConfigurationInput { - s.SipMediaApplicationId = &v - return s +func (s *ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. -func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationInput { - s.SipMediaApplicationLoggingConfiguration = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceUnavailableException) StatusCode() int { + return s.RespMetadata.StatusCode } -type PutSipMediaApplicationLoggingConfigurationOutput struct { +// RequestID returns the service's response RequestID for request. +func (s *ServiceUnavailableException) RequestID() string { + return s.RespMetadata.RequestID +} + +type SipMediaApplication struct { _ struct{} `type:"structure"` - SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` + AwsRegion *string `type:"string"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` + + Name *string `min:"1" type:"string"` + + SipMediaApplicationId *string `type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -13245,7 +17401,7 @@ type PutSipMediaApplicationLoggingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationLoggingConfigurationOutput) String() string { +func (s SipMediaApplication) String() string { return awsutil.Prettify(s) } @@ -13254,24 +17410,54 @@ func (s PutSipMediaApplicationLoggingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutSipMediaApplicationLoggingConfigurationOutput) GoString() string { +func (s SipMediaApplication) GoString() string { return s.String() } -// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. -func (s *PutSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationOutput { - s.SipMediaApplicationLoggingConfiguration = v +// SetAwsRegion sets the AwsRegion field's value. +func (s *SipMediaApplication) SetAwsRegion(v string) *SipMediaApplication { + s.AwsRegion = &v return s } -type PutVoiceConnectorEmergencyCallingConfigurationInput struct { +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SipMediaApplication) SetCreatedTimestamp(v time.Time) *SipMediaApplication { + s.CreatedTimestamp = &v + return s +} + +// SetEndpoints sets the Endpoints field's value. +func (s *SipMediaApplication) SetEndpoints(v []*SipMediaApplicationEndpoint) *SipMediaApplication { + s.Endpoints = v + return s +} + +// SetName sets the Name field's value. +func (s *SipMediaApplication) SetName(v string) *SipMediaApplication { + s.Name = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *SipMediaApplication) SetSipMediaApplicationId(v string) *SipMediaApplication { + s.SipMediaApplicationId = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SipMediaApplication) SetUpdatedTimestamp(v time.Time) *SipMediaApplication { + s.UpdatedTimestamp = &v + return s +} + +type SipMediaApplicationAlexaSkillConfiguration struct { _ struct{} `type:"structure"` - // EmergencyCallingConfiguration is a required field - EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure" required:"true"` + // AlexaSkillIds is a required field + AlexaSkillIds []*string `min:"1" type:"list" required:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // AlexaSkillStatus is a required field + AlexaSkillStatus *string `type:"string" required:"true" enum:"AlexaSkillStatus"` } // String returns the string representation. @@ -13279,7 +17465,7 @@ type PutVoiceConnectorEmergencyCallingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorEmergencyCallingConfigurationInput) String() string { +func (s SipMediaApplicationAlexaSkillConfiguration) String() string { return awsutil.Prettify(s) } @@ -13288,26 +17474,21 @@ func (s PutVoiceConnectorEmergencyCallingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { +func (s SipMediaApplicationAlexaSkillConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorEmergencyCallingConfigurationInput"} - if s.EmergencyCallingConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("EmergencyCallingConfiguration")) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *SipMediaApplicationAlexaSkillConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SipMediaApplicationAlexaSkillConfiguration"} + if s.AlexaSkillIds == nil { + invalidParams.Add(request.NewErrParamRequired("AlexaSkillIds")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.AlexaSkillIds != nil && len(s.AlexaSkillIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlexaSkillIds", 1)) } - if s.EmergencyCallingConfiguration != nil { - if err := s.EmergencyCallingConfiguration.Validate(); err != nil { - invalidParams.AddNested("EmergencyCallingConfiguration", err.(request.ErrInvalidParams)) - } + if s.AlexaSkillStatus == nil { + invalidParams.Add(request.NewErrParamRequired("AlexaSkillStatus")) } if invalidParams.Len() > 0 { @@ -13316,22 +17497,55 @@ func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { return nil } -// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. -func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationInput { - s.EmergencyCallingConfiguration = v +// SetAlexaSkillIds sets the AlexaSkillIds field's value. +func (s *SipMediaApplicationAlexaSkillConfiguration) SetAlexaSkillIds(v []*string) *SipMediaApplicationAlexaSkillConfiguration { + s.AlexaSkillIds = v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorEmergencyCallingConfigurationInput { - s.VoiceConnectorId = &v +// SetAlexaSkillStatus sets the AlexaSkillStatus field's value. +func (s *SipMediaApplicationAlexaSkillConfiguration) SetAlexaSkillStatus(v string) *SipMediaApplicationAlexaSkillConfiguration { + s.AlexaSkillStatus = &v return s } -type PutVoiceConnectorEmergencyCallingConfigurationOutput struct { +type SipMediaApplicationCall struct { _ struct{} `type:"structure"` - EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` + TransactionId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationCall) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationCall) GoString() string { + return s.String() +} + +// SetTransactionId sets the TransactionId field's value. +func (s *SipMediaApplicationCall) SetTransactionId(v string) *SipMediaApplicationCall { + s.TransactionId = &v + return s +} + +type SipMediaApplicationEndpoint struct { + _ struct{} `type:"structure"` + + // LambdaArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SipMediaApplicationEndpoint's + // String and GoString methods. + LambdaArn *string `type:"string" sensitive:"true"` } // String returns the string representation. @@ -13339,7 +17553,7 @@ type PutVoiceConnectorEmergencyCallingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) String() string { +func (s SipMediaApplicationEndpoint) String() string { return awsutil.Prettify(s) } @@ -13348,24 +17562,20 @@ func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { +func (s SipMediaApplicationEndpoint) GoString() string { return s.String() } -// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. -func (s *PutVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationOutput { - s.EmergencyCallingConfiguration = v +// SetLambdaArn sets the LambdaArn field's value. +func (s *SipMediaApplicationEndpoint) SetLambdaArn(v string) *SipMediaApplicationEndpoint { + s.LambdaArn = &v return s } -type PutVoiceConnectorLoggingConfigurationInput struct { +type SipMediaApplicationLoggingConfiguration struct { _ struct{} `type:"structure"` - // LoggingConfiguration is a required field - LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` - - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + EnableSipMediaApplicationMessageLogs *bool `type:"boolean"` } // String returns the string representation. @@ -13373,7 +17583,7 @@ type PutVoiceConnectorLoggingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorLoggingConfigurationInput) String() string { +func (s SipMediaApplicationLoggingConfiguration) String() string { return awsutil.Prettify(s) } @@ -13382,45 +17592,34 @@ func (s PutVoiceConnectorLoggingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorLoggingConfigurationInput) GoString() string { +func (s SipMediaApplicationLoggingConfiguration) 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 +// SetEnableSipMediaApplicationMessageLogs sets the EnableSipMediaApplicationMessageLogs field's value. +func (s *SipMediaApplicationLoggingConfiguration) SetEnableSipMediaApplicationMessageLogs(v bool) *SipMediaApplicationLoggingConfiguration { + s.EnableSipMediaApplicationMessageLogs = &v return s } -type PutVoiceConnectorLoggingConfigurationOutput struct { +type SipRule struct { _ struct{} `type:"structure"` - LoggingConfiguration *LoggingConfiguration `type:"structure"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Disabled *bool `type:"boolean"` + + Name *string `min:"1" type:"string"` + + SipRuleId *string `type:"string"` + + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` + + TriggerType *string `type:"string" enum:"SipRuleTriggerType"` + + TriggerValue *string `type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -13428,7 +17627,7 @@ type PutVoiceConnectorLoggingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { +func (s SipRule) String() string { return awsutil.Prettify(s) } @@ -13437,24 +17636,66 @@ func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorLoggingConfigurationOutput) GoString() string { +func (s SipRule) GoString() string { return s.String() } -// SetLoggingConfiguration sets the LoggingConfiguration field's value. -func (s *PutVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationOutput { - s.LoggingConfiguration = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SipRule) SetCreatedTimestamp(v time.Time) *SipRule { + s.CreatedTimestamp = &v return s } -type PutVoiceConnectorOriginationInput struct { +// SetDisabled sets the Disabled field's value. +func (s *SipRule) SetDisabled(v bool) *SipRule { + s.Disabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *SipRule) SetName(v string) *SipRule { + s.Name = &v + return s +} + +// SetSipRuleId sets the SipRuleId field's value. +func (s *SipRule) SetSipRuleId(v string) *SipRule { + s.SipRuleId = &v + return s +} + +// SetTargetApplications sets the TargetApplications field's value. +func (s *SipRule) SetTargetApplications(v []*SipRuleTargetApplication) *SipRule { + s.TargetApplications = v + return s +} + +// SetTriggerType sets the TriggerType field's value. +func (s *SipRule) SetTriggerType(v string) *SipRule { + s.TriggerType = &v + return s +} + +// SetTriggerValue sets the TriggerValue field's value. +func (s *SipRule) SetTriggerValue(v string) *SipRule { + s.TriggerValue = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SipRule) SetUpdatedTimestamp(v time.Time) *SipRule { + s.UpdatedTimestamp = &v + return s +} + +type SipRuleTargetApplication struct { _ struct{} `type:"structure"` - // Origination is a required field - Origination *Origination `type:"structure" required:"true"` + AwsRegion *string `type:"string"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + Priority *int64 `min:"1" type:"integer"` + + SipMediaApplicationId *string `type:"string"` } // String returns the string representation. @@ -13462,7 +17703,7 @@ type PutVoiceConnectorOriginationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorOriginationInput) String() string { +func (s SipRuleTargetApplication) String() string { return awsutil.Prettify(s) } @@ -13471,26 +17712,15 @@ func (s PutVoiceConnectorOriginationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorOriginationInput) GoString() string { +func (s SipRuleTargetApplication) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorOriginationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorOriginationInput"} - if s.Origination == nil { - invalidParams.Add(request.NewErrParamRequired("Origination")) - } - 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.Origination != nil { - if err := s.Origination.Validate(); err != nil { - invalidParams.AddNested("Origination", err.(request.ErrInvalidParams)) - } +func (s *SipRuleTargetApplication) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SipRuleTargetApplication"} + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) } if invalidParams.Len() > 0 { @@ -13499,22 +17729,30 @@ func (s *PutVoiceConnectorOriginationInput) Validate() error { return nil } -// SetOrigination sets the Origination field's value. -func (s *PutVoiceConnectorOriginationInput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationInput { - s.Origination = v +// SetAwsRegion sets the AwsRegion field's value. +func (s *SipRuleTargetApplication) SetAwsRegion(v string) *SipRuleTargetApplication { + s.AwsRegion = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorOriginationInput { - s.VoiceConnectorId = &v +// SetPriority sets the Priority field's value. +func (s *SipRuleTargetApplication) SetPriority(v int64) *SipRuleTargetApplication { + s.Priority = &v return s } -type PutVoiceConnectorOriginationOutput struct { +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *SipRuleTargetApplication) SetSipMediaApplicationId(v string) *SipRuleTargetApplication { + s.SipMediaApplicationId = &v + return s +} + +type SpeakerSearchDetails struct { _ struct{} `type:"structure"` - Origination *Origination `type:"structure"` + Results []*SpeakerSearchResult `type:"list"` + + VoiceprintGenerationStatus *string `min:"1" type:"string"` } // String returns the string representation. @@ -13522,7 +17760,7 @@ type PutVoiceConnectorOriginationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorOriginationOutput) String() string { +func (s SpeakerSearchDetails) String() string { return awsutil.Prettify(s) } @@ -13531,34 +17769,28 @@ func (s PutVoiceConnectorOriginationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorOriginationOutput) GoString() string { +func (s SpeakerSearchDetails) GoString() string { return s.String() } -// SetOrigination sets the Origination field's value. -func (s *PutVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationOutput { - s.Origination = v +// SetResults sets the Results field's value. +func (s *SpeakerSearchDetails) SetResults(v []*SpeakerSearchResult) *SpeakerSearchDetails { + s.Results = v return s } -type PutVoiceConnectorProxyInput struct { - _ struct{} `type:"structure"` - - // DefaultSessionExpiryMinutes is a required field - DefaultSessionExpiryMinutes *int64 `type:"integer" required:"true"` - - Disabled *bool `type:"boolean"` +// SetVoiceprintGenerationStatus sets the VoiceprintGenerationStatus field's value. +func (s *SpeakerSearchDetails) SetVoiceprintGenerationStatus(v string) *SpeakerSearchDetails { + s.VoiceprintGenerationStatus = &v + return s +} - // FallBackPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PutVoiceConnectorProxyInput's - // String and GoString methods. - FallBackPhoneNumber *string `type:"string" sensitive:"true"` +type SpeakerSearchResult struct { + _ struct{} `type:"structure"` - // PhoneNumberPoolCountries is a required field - PhoneNumberPoolCountries []*string `min:"1" type:"list" required:"true"` + ConfidenceScore *float64 `type:"float"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + VoiceProfileId *string `min:"1" type:"string"` } // String returns the string representation. @@ -13566,7 +17798,7 @@ type PutVoiceConnectorProxyInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorProxyInput) String() string { +func (s SpeakerSearchResult) String() string { return awsutil.Prettify(s) } @@ -13575,69 +17807,40 @@ func (s PutVoiceConnectorProxyInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorProxyInput) GoString() string { +func (s SpeakerSearchResult) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorProxyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorProxyInput"} - if s.DefaultSessionExpiryMinutes == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultSessionExpiryMinutes")) - } - if s.PhoneNumberPoolCountries == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberPoolCountries")) - } - if s.PhoneNumberPoolCountries != nil && len(s.PhoneNumberPoolCountries) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberPoolCountries", 1)) - } - 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 -} - -// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. -func (s *PutVoiceConnectorProxyInput) SetDefaultSessionExpiryMinutes(v int64) *PutVoiceConnectorProxyInput { - s.DefaultSessionExpiryMinutes = &v +// SetConfidenceScore sets the ConfidenceScore field's value. +func (s *SpeakerSearchResult) SetConfidenceScore(v float64) *SpeakerSearchResult { + s.ConfidenceScore = &v return s } -// SetDisabled sets the Disabled field's value. -func (s *PutVoiceConnectorProxyInput) SetDisabled(v bool) *PutVoiceConnectorProxyInput { - s.Disabled = &v +// SetVoiceProfileId sets the VoiceProfileId field's value. +func (s *SpeakerSearchResult) SetVoiceProfileId(v string) *SpeakerSearchResult { + s.VoiceProfileId = &v return s } -// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. -func (s *PutVoiceConnectorProxyInput) SetFallBackPhoneNumber(v string) *PutVoiceConnectorProxyInput { - s.FallBackPhoneNumber = &v - return s -} +type SpeakerSearchTask struct { + _ struct{} `type:"structure"` -// SetPhoneNumberPoolCountries sets the PhoneNumberPoolCountries field's value. -func (s *PutVoiceConnectorProxyInput) SetPhoneNumberPoolCountries(v []*string) *PutVoiceConnectorProxyInput { - s.PhoneNumberPoolCountries = v - return s -} + CallDetails *CallDetails `type:"structure"` -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *PutVoiceConnectorProxyInput { - s.VoiceConnectorId = &v - return s -} + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -type PutVoiceConnectorProxyOutput struct { - _ struct{} `type:"structure"` + SpeakerSearchDetails *SpeakerSearchDetails `type:"structure"` + + SpeakerSearchTaskId *string `min:"1" type:"string"` + + SpeakerSearchTaskStatus *string `type:"string"` + + StartedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + StatusMessage *string `type:"string"` - Proxy *Proxy `type:"structure"` + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -13645,7 +17848,7 @@ type PutVoiceConnectorProxyOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorProxyOutput) String() string { +func (s SpeakerSearchTask) String() string { return awsutil.Prettify(s) } @@ -13654,24 +17857,71 @@ func (s PutVoiceConnectorProxyOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorProxyOutput) GoString() string { +func (s SpeakerSearchTask) GoString() string { return s.String() } -// SetProxy sets the Proxy field's value. -func (s *PutVoiceConnectorProxyOutput) SetProxy(v *Proxy) *PutVoiceConnectorProxyOutput { - s.Proxy = v +// SetCallDetails sets the CallDetails field's value. +func (s *SpeakerSearchTask) SetCallDetails(v *CallDetails) *SpeakerSearchTask { + s.CallDetails = v return s } -type PutVoiceConnectorStreamingConfigurationInput struct { +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SpeakerSearchTask) SetCreatedTimestamp(v time.Time) *SpeakerSearchTask { + s.CreatedTimestamp = &v + return s +} + +// SetSpeakerSearchDetails sets the SpeakerSearchDetails field's value. +func (s *SpeakerSearchTask) SetSpeakerSearchDetails(v *SpeakerSearchDetails) *SpeakerSearchTask { + s.SpeakerSearchDetails = v + return s +} + +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *SpeakerSearchTask) SetSpeakerSearchTaskId(v string) *SpeakerSearchTask { + s.SpeakerSearchTaskId = &v + return s +} + +// SetSpeakerSearchTaskStatus sets the SpeakerSearchTaskStatus field's value. +func (s *SpeakerSearchTask) SetSpeakerSearchTaskStatus(v string) *SpeakerSearchTask { + s.SpeakerSearchTaskStatus = &v + return s +} + +// SetStartedTimestamp sets the StartedTimestamp field's value. +func (s *SpeakerSearchTask) SetStartedTimestamp(v time.Time) *SpeakerSearchTask { + s.StartedTimestamp = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *SpeakerSearchTask) SetStatusMessage(v string) *SpeakerSearchTask { + s.StatusMessage = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SpeakerSearchTask) SetUpdatedTimestamp(v time.Time) *SpeakerSearchTask { + s.UpdatedTimestamp = &v + return s +} + +type StartSpeakerSearchTaskInput struct { _ struct{} `type:"structure"` - // StreamingConfiguration is a required field - StreamingConfiguration *StreamingConfiguration `type:"structure" required:"true"` + ClientRequestToken *string `type:"string"` + + // TransactionId is a required field + TransactionId *string `min:"1" type:"string" required:"true"` // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"VoiceConnectorId" min:"1" type:"string" required:"true"` + + // VoiceProfileDomainId is a required field + VoiceProfileDomainId *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -13679,7 +17929,7 @@ type PutVoiceConnectorStreamingConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorStreamingConfigurationInput) String() string { +func (s StartSpeakerSearchTaskInput) String() string { return awsutil.Prettify(s) } @@ -13688,15 +17938,18 @@ func (s PutVoiceConnectorStreamingConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorStreamingConfigurationInput) GoString() string { +func (s StartSpeakerSearchTaskInput) 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")) +func (s *StartSpeakerSearchTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartSpeakerSearchTaskInput"} + if s.TransactionId == nil { + invalidParams.Add(request.NewErrParamRequired("TransactionId")) + } + if s.TransactionId != nil && len(*s.TransactionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransactionId", 1)) } if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) @@ -13704,10 +17957,11 @@ func (s *PutVoiceConnectorStreamingConfigurationInput) Validate() error { 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 s.VoiceProfileDomainId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileDomainId")) + } + if s.VoiceProfileDomainId != nil && len(*s.VoiceProfileDomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileDomainId", 1)) } if invalidParams.Len() > 0 { @@ -13716,22 +17970,34 @@ func (s *PutVoiceConnectorStreamingConfigurationInput) Validate() error { return nil } -// SetStreamingConfiguration sets the StreamingConfiguration field's value. -func (s *PutVoiceConnectorStreamingConfigurationInput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationInput { - s.StreamingConfiguration = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartSpeakerSearchTaskInput) SetClientRequestToken(v string) *StartSpeakerSearchTaskInput { + s.ClientRequestToken = &v + return s +} + +// SetTransactionId sets the TransactionId field's value. +func (s *StartSpeakerSearchTaskInput) SetTransactionId(v string) *StartSpeakerSearchTaskInput { + s.TransactionId = &v return s } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorStreamingConfigurationInput { +func (s *StartSpeakerSearchTaskInput) SetVoiceConnectorId(v string) *StartSpeakerSearchTaskInput { s.VoiceConnectorId = &v return s } -type PutVoiceConnectorStreamingConfigurationOutput struct { +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *StartSpeakerSearchTaskInput) SetVoiceProfileDomainId(v string) *StartSpeakerSearchTaskInput { + s.VoiceProfileDomainId = &v + return s +} + +type StartSpeakerSearchTaskOutput struct { _ struct{} `type:"structure"` - StreamingConfiguration *StreamingConfiguration `type:"structure"` + SpeakerSearchTask *SpeakerSearchTask `type:"structure"` } // String returns the string representation. @@ -13739,7 +18005,7 @@ type PutVoiceConnectorStreamingConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { +func (s StartSpeakerSearchTaskOutput) String() string { return awsutil.Prettify(s) } @@ -13748,23 +18014,29 @@ func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorStreamingConfigurationOutput) GoString() string { +func (s StartSpeakerSearchTaskOutput) GoString() string { return s.String() } -// SetStreamingConfiguration sets the StreamingConfiguration field's value. -func (s *PutVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationOutput { - s.StreamingConfiguration = v +// SetSpeakerSearchTask sets the SpeakerSearchTask field's value. +func (s *StartSpeakerSearchTaskOutput) SetSpeakerSearchTask(v *SpeakerSearchTask) *StartSpeakerSearchTaskOutput { + s.SpeakerSearchTask = v return s } -type PutVoiceConnectorTerminationCredentialsInput struct { +type StartVoiceToneAnalysisTaskInput struct { _ struct{} `type:"structure"` - Credentials []*Credential `type:"list"` + ClientRequestToken *string `type:"string"` + + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + + // TransactionId is a required field + TransactionId *string `min:"1" type:"string" required:"true"` // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"VoiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -13772,7 +18044,7 @@ type PutVoiceConnectorTerminationCredentialsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationCredentialsInput) String() string { +func (s StartVoiceToneAnalysisTaskInput) String() string { return awsutil.Prettify(s) } @@ -13781,13 +18053,22 @@ func (s PutVoiceConnectorTerminationCredentialsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationCredentialsInput) GoString() string { +func (s StartVoiceToneAnalysisTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationCredentialsInput"} +func (s *StartVoiceToneAnalysisTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartVoiceToneAnalysisTaskInput"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.TransactionId == nil { + invalidParams.Add(request.NewErrParamRequired("TransactionId")) + } + if s.TransactionId != nil && len(*s.TransactionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransactionId", 1)) + } if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -13801,20 +18082,34 @@ func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { return nil } -// SetCredentials sets the Credentials field's value. -func (s *PutVoiceConnectorTerminationCredentialsInput) SetCredentials(v []*Credential) *PutVoiceConnectorTerminationCredentialsInput { - s.Credentials = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetClientRequestToken(v string) *StartVoiceToneAnalysisTaskInput { + s.ClientRequestToken = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetLanguageCode(v string) *StartVoiceToneAnalysisTaskInput { + s.LanguageCode = &v + return s +} + +// SetTransactionId sets the TransactionId field's value. +func (s *StartVoiceToneAnalysisTaskInput) SetTransactionId(v string) *StartVoiceToneAnalysisTaskInput { + s.TransactionId = &v return s } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationCredentialsInput { +func (s *StartVoiceToneAnalysisTaskInput) SetVoiceConnectorId(v string) *StartVoiceToneAnalysisTaskInput { s.VoiceConnectorId = &v return s } -type PutVoiceConnectorTerminationCredentialsOutput struct { +type StartVoiceToneAnalysisTaskOutput struct { _ struct{} `type:"structure"` + + VoiceToneAnalysisTask *VoiceToneAnalysisTask `type:"structure"` } // String returns the string representation. @@ -13822,7 +18117,7 @@ type PutVoiceConnectorTerminationCredentialsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationCredentialsOutput) String() string { +func (s StartVoiceToneAnalysisTaskOutput) String() string { return awsutil.Prettify(s) } @@ -13831,18 +18126,24 @@ func (s PutVoiceConnectorTerminationCredentialsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationCredentialsOutput) GoString() string { +func (s StartVoiceToneAnalysisTaskOutput) GoString() string { return s.String() } -type PutVoiceConnectorTerminationInput struct { - _ struct{} `type:"structure"` +// SetVoiceToneAnalysisTask sets the VoiceToneAnalysisTask field's value. +func (s *StartVoiceToneAnalysisTaskOutput) SetVoiceToneAnalysisTask(v *VoiceToneAnalysisTask) *StartVoiceToneAnalysisTaskOutput { + s.VoiceToneAnalysisTask = v + return s +} - // Termination is a required field - Termination *Termination `type:"structure" required:"true"` +type StopSpeakerSearchTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SpeakerSearchTaskId is a required field + SpeakerSearchTaskId *string `location:"uri" locationName:"SpeakerSearchTaskId" min:"1" type:"string" required:"true"` // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"VoiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -13850,7 +18151,7 @@ type PutVoiceConnectorTerminationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationInput) String() string { +func (s StopSpeakerSearchTaskInput) String() string { return awsutil.Prettify(s) } @@ -13859,15 +18160,18 @@ func (s PutVoiceConnectorTerminationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationInput) GoString() string { +func (s StopSpeakerSearchTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorTerminationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationInput"} - if s.Termination == nil { - invalidParams.Add(request.NewErrParamRequired("Termination")) +func (s *StopSpeakerSearchTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopSpeakerSearchTaskInput"} + if s.SpeakerSearchTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("SpeakerSearchTaskId")) + } + if s.SpeakerSearchTaskId != nil && len(*s.SpeakerSearchTaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SpeakerSearchTaskId", 1)) } if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) @@ -13875,11 +18179,6 @@ func (s *PutVoiceConnectorTerminationInput) Validate() error { if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } - if s.Termination != nil { - if err := s.Termination.Validate(); err != nil { - invalidParams.AddNested("Termination", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -13887,22 +18186,20 @@ func (s *PutVoiceConnectorTerminationInput) Validate() error { return nil } -// SetTermination sets the Termination field's value. -func (s *PutVoiceConnectorTerminationInput) SetTermination(v *Termination) *PutVoiceConnectorTerminationInput { - s.Termination = v +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *StopSpeakerSearchTaskInput) SetSpeakerSearchTaskId(v string) *StopSpeakerSearchTaskInput { + s.SpeakerSearchTaskId = &v return s } // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationInput { +func (s *StopSpeakerSearchTaskInput) SetVoiceConnectorId(v string) *StopSpeakerSearchTaskInput { s.VoiceConnectorId = &v return s } -type PutVoiceConnectorTerminationOutput struct { +type StopSpeakerSearchTaskOutput struct { _ struct{} `type:"structure"` - - Termination *Termination `type:"structure"` } // String returns the string representation. @@ -13910,7 +18207,7 @@ type PutVoiceConnectorTerminationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationOutput) String() string { +func (s StopSpeakerSearchTaskOutput) String() string { return awsutil.Prettify(s) } @@ -13919,21 +18216,18 @@ func (s PutVoiceConnectorTerminationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PutVoiceConnectorTerminationOutput) GoString() string { +func (s StopSpeakerSearchTaskOutput) GoString() string { return s.String() } -// SetTermination sets the Termination field's value. -func (s *PutVoiceConnectorTerminationOutput) SetTermination(v *Termination) *PutVoiceConnectorTerminationOutput { - s.Termination = v - return s -} +type StopVoiceToneAnalysisTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` -type ResourceLimitExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"VoiceConnectorId" min:"1" type:"string" required:"true"` - Message_ *string `locationName:"message" type:"string"` + // VoiceToneAnalysisTaskId is a required field + VoiceToneAnalysisTaskId *string `location:"uri" locationName:"VoiceToneAnalysisTaskId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -13941,7 +18235,7 @@ type ResourceLimitExceededException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceLimitExceededException) String() string { +func (s StopVoiceToneAnalysisTaskInput) String() string { return awsutil.Prettify(s) } @@ -13950,84 +18244,24 @@ func (s ResourceLimitExceededException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceLimitExceededException) GoString() string { +func (s StopVoiceToneAnalysisTaskInput) GoString() string { return s.String() } -func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { - return &ResourceLimitExceededException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopVoiceToneAnalysisTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopVoiceToneAnalysisTaskInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } -} - -// Code returns the exception type name. -func (s *ResourceLimitExceededException) Code() string { - return "ResourceLimitExceededException" -} - -// Message returns the exception's message. -func (s *ResourceLimitExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceLimitExceededException) OrigErr() error { - return nil -} - -func (s *ResourceLimitExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceLimitExceededException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ResourceLimitExceededException) RequestID() string { - return s.RespMetadata.RequestID -} - -type RestorePhoneNumberInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by RestorePhoneNumberInput's - // String and GoString methods. - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestorePhoneNumberInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestorePhoneNumberInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestorePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestorePhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + if s.VoiceToneAnalysisTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceToneAnalysisTaskId")) } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + if s.VoiceToneAnalysisTaskId != nil && len(*s.VoiceToneAnalysisTaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceToneAnalysisTaskId", 1)) } if invalidParams.Len() > 0 { @@ -14036,16 +18270,20 @@ func (s *RestorePhoneNumberInput) Validate() error { return nil } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *RestorePhoneNumberInput) SetPhoneNumberId(v string) *RestorePhoneNumberInput { - s.PhoneNumberId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *StopVoiceToneAnalysisTaskInput) SetVoiceConnectorId(v string) *StopVoiceToneAnalysisTaskInput { + s.VoiceConnectorId = &v return s } -type RestorePhoneNumberOutput struct { - _ struct{} `type:"structure"` +// SetVoiceToneAnalysisTaskId sets the VoiceToneAnalysisTaskId field's value. +func (s *StopVoiceToneAnalysisTaskInput) SetVoiceToneAnalysisTaskId(v string) *StopVoiceToneAnalysisTaskInput { + s.VoiceToneAnalysisTaskId = &v + return s +} - PhoneNumber *PhoneNumber `type:"structure"` +type StopVoiceToneAnalysisTaskOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -14053,7 +18291,7 @@ type RestorePhoneNumberOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RestorePhoneNumberOutput) String() string { +func (s StopVoiceToneAnalysisTaskOutput) String() string { return awsutil.Prettify(s) } @@ -14062,34 +18300,22 @@ func (s RestorePhoneNumberOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RestorePhoneNumberOutput) GoString() string { - return s.String() -} - -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *RestorePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *RestorePhoneNumberOutput { - s.PhoneNumber = v - return s -} - -type SearchAvailablePhoneNumbersInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - AreaCode *string `location:"querystring" locationName:"area-code" type:"string"` - - City *string `location:"querystring" locationName:"city" type:"string"` - - Country *string `location:"querystring" locationName:"country" type:"string"` +func (s StopVoiceToneAnalysisTaskOutput) GoString() string { + return s.String() +} - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +type StreamingConfiguration struct { + _ struct{} `type:"structure"` - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // DataRetentionInHours is a required field + DataRetentionInHours *int64 `type:"integer" required:"true"` - PhoneNumberType *string `location:"querystring" locationName:"phone-number-type" type:"string" enum:"PhoneNumberType"` + // Disabled is a required field + Disabled *bool `type:"boolean" required:"true"` - State *string `location:"querystring" locationName:"state" type:"string"` + MediaInsightsConfiguration *MediaInsightsConfiguration `type:"structure"` - TollFreePrefix *string `location:"querystring" locationName:"toll-free-prefix" min:"3" type:"string"` + StreamingNotificationTargets []*StreamingNotificationTarget `min:"1" type:"list"` } // String returns the string representation. @@ -14097,7 +18323,7 @@ type SearchAvailablePhoneNumbersInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SearchAvailablePhoneNumbersInput) String() string { +func (s StreamingConfiguration) String() string { return awsutil.Prettify(s) } @@ -14106,18 +18332,26 @@ func (s SearchAvailablePhoneNumbersInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SearchAvailablePhoneNumbersInput) GoString() string { +func (s StreamingConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SearchAvailablePhoneNumbersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SearchAvailablePhoneNumbersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *StreamingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamingConfiguration"} + if s.DataRetentionInHours == nil { + invalidParams.Add(request.NewErrParamRequired("DataRetentionInHours")) } - if s.TollFreePrefix != nil && len(*s.TollFreePrefix) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TollFreePrefix", 3)) + if s.Disabled == nil { + invalidParams.Add(request.NewErrParamRequired("Disabled")) + } + if s.StreamingNotificationTargets != nil && len(s.StreamingNotificationTargets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamingNotificationTargets", 1)) + } + if s.MediaInsightsConfiguration != nil { + if err := s.MediaInsightsConfiguration.Validate(); err != nil { + invalidParams.AddNested("MediaInsightsConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -14126,60 +18360,34 @@ func (s *SearchAvailablePhoneNumbersInput) Validate() error { return nil } -// SetAreaCode sets the AreaCode field's value. -func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { - s.AreaCode = &v - return s -} - -// SetCity sets the City field's value. -func (s *SearchAvailablePhoneNumbersInput) SetCity(v string) *SearchAvailablePhoneNumbersInput { - s.City = &v - return s -} - -// SetCountry sets the Country field's value. -func (s *SearchAvailablePhoneNumbersInput) SetCountry(v string) *SearchAvailablePhoneNumbersInput { - s.Country = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *SearchAvailablePhoneNumbersInput) SetMaxResults(v int64) *SearchAvailablePhoneNumbersInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *SearchAvailablePhoneNumbersInput) SetNextToken(v string) *SearchAvailablePhoneNumbersInput { - s.NextToken = &v +// SetDataRetentionInHours sets the DataRetentionInHours field's value. +func (s *StreamingConfiguration) SetDataRetentionInHours(v int64) *StreamingConfiguration { + s.DataRetentionInHours = &v return s } -// SetPhoneNumberType sets the PhoneNumberType field's value. -func (s *SearchAvailablePhoneNumbersInput) SetPhoneNumberType(v string) *SearchAvailablePhoneNumbersInput { - s.PhoneNumberType = &v +// SetDisabled sets the Disabled field's value. +func (s *StreamingConfiguration) SetDisabled(v bool) *StreamingConfiguration { + s.Disabled = &v return s } -// SetState sets the State field's value. -func (s *SearchAvailablePhoneNumbersInput) SetState(v string) *SearchAvailablePhoneNumbersInput { - s.State = &v +// SetMediaInsightsConfiguration sets the MediaInsightsConfiguration field's value. +func (s *StreamingConfiguration) SetMediaInsightsConfiguration(v *MediaInsightsConfiguration) *StreamingConfiguration { + s.MediaInsightsConfiguration = v return s } -// SetTollFreePrefix sets the TollFreePrefix field's value. -func (s *SearchAvailablePhoneNumbersInput) SetTollFreePrefix(v string) *SearchAvailablePhoneNumbersInput { - s.TollFreePrefix = &v +// SetStreamingNotificationTargets sets the StreamingNotificationTargets field's value. +func (s *StreamingConfiguration) SetStreamingNotificationTargets(v []*StreamingNotificationTarget) *StreamingConfiguration { + s.StreamingNotificationTargets = v return s } -type SearchAvailablePhoneNumbersOutput struct { +type StreamingNotificationTarget struct { _ struct{} `type:"structure"` - E164PhoneNumbers []*string `type:"list"` - - NextToken *string `type:"string"` + NotificationTarget *string `type:"string" enum:"NotificationTarget"` } // String returns the string representation. @@ -14187,7 +18395,7 @@ type SearchAvailablePhoneNumbersOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SearchAvailablePhoneNumbersOutput) String() string { +func (s StreamingNotificationTarget) String() string { return awsutil.Prettify(s) } @@ -14196,27 +18404,30 @@ func (s SearchAvailablePhoneNumbersOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SearchAvailablePhoneNumbersOutput) GoString() string { +func (s StreamingNotificationTarget) GoString() string { return s.String() } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *SearchAvailablePhoneNumbersOutput { - s.E164PhoneNumbers = v +// SetNotificationTarget sets the NotificationTarget field's value. +func (s *StreamingNotificationTarget) SetNotificationTarget(v string) *StreamingNotificationTarget { + s.NotificationTarget = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *SearchAvailablePhoneNumbersOutput) SetNextToken(v string) *SearchAvailablePhoneNumbersOutput { - s.NextToken = &v - return s -} +type Tag struct { + _ struct{} `type:"structure"` -type ServiceFailureException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // Key is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Tag's + // String and GoString methods. + // Key is a required field + Key *string `min:"1" type:"string" required:"true" sensitive:"true"` - Message_ *string `locationName:"message" type:"string"` + // Value is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Tag's + // String and GoString methods. + // Value is a required field + Value *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -14224,7 +18435,7 @@ type ServiceFailureException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceFailureException) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } @@ -14233,53 +18444,52 @@ func (s ServiceFailureException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceFailureException) GoString() string { +func (s Tag) GoString() string { return s.String() } -func newErrorServiceFailureException(v protocol.ResponseMetadata) error { - return &ServiceFailureException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) } -} - -// Code returns the exception type name. -func (s *ServiceFailureException) Code() string { - return "ServiceFailureException" -} - -// Message returns the exception's message. -func (s *ServiceFailureException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceFailureException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *ServiceFailureException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceFailureException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceFailureException) RequestID() string { - return s.RespMetadata.RequestID -} +type TagResourceInput struct { + _ struct{} `type:"structure"` -type ServiceUnavailableException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // ResourceARN is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by TagResourceInput's + // String and GoString methods. + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true" sensitive:"true"` - Message_ *string `locationName:"message" type:"string"` + // Tags is a required field + Tags []*Tag `min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -14287,7 +18497,7 @@ type ServiceUnavailableException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceUnavailableException) String() string { +func (s TagResourceInput) String() string { return awsutil.Prettify(s) } @@ -14296,62 +18506,91 @@ func (s ServiceUnavailableException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ServiceUnavailableException) GoString() string { +func (s TagResourceInput) GoString() string { return s.String() } -func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { - return &ServiceUnavailableException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } -} -// Code returns the exception type name. -func (s *ServiceUnavailableException) Code() string { - return "ServiceUnavailableException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *ServiceUnavailableException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetResourceARN sets the ResourceARN field's value. +func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { + s.ResourceARN = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceUnavailableException) OrigErr() error { - return nil +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s } -func (s *ServiceUnavailableException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +type TagResourceOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceUnavailableException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *ServiceUnavailableException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() } -type SipMediaApplication struct { +type Termination struct { _ struct{} `type:"structure"` - AwsRegion *string `type:"string"` - - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + CallingRegions []*string `type:"list"` - Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` + CidrAllowedList []*string `type:"list"` - Name *string `min:"1" type:"string"` + CpsLimit *int64 `min:"1" type:"integer"` - SipMediaApplicationId *string `type:"string"` + // DefaultPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Termination's + // String and GoString methods. + DefaultPhoneNumber *string `type:"string" sensitive:"true"` - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + Disabled *bool `type:"boolean"` } // String returns the string representation. @@ -14359,7 +18598,7 @@ type SipMediaApplication struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplication) String() string { +func (s Termination) String() string { return awsutil.Prettify(s) } @@ -14368,54 +18607,59 @@ func (s SipMediaApplication) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplication) GoString() string { +func (s Termination) GoString() string { return s.String() } -// SetAwsRegion sets the AwsRegion field's value. -func (s *SipMediaApplication) SetAwsRegion(v string) *SipMediaApplication { - s.AwsRegion = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *Termination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Termination"} + if s.CpsLimit != nil && *s.CpsLimit < 1 { + invalidParams.Add(request.NewErrParamMinValue("CpsLimit", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *SipMediaApplication) SetCreatedTimestamp(v time.Time) *SipMediaApplication { - s.CreatedTimestamp = &v +// SetCallingRegions sets the CallingRegions field's value. +func (s *Termination) SetCallingRegions(v []*string) *Termination { + s.CallingRegions = v return s } -// SetEndpoints sets the Endpoints field's value. -func (s *SipMediaApplication) SetEndpoints(v []*SipMediaApplicationEndpoint) *SipMediaApplication { - s.Endpoints = v +// SetCidrAllowedList sets the CidrAllowedList field's value. +func (s *Termination) SetCidrAllowedList(v []*string) *Termination { + s.CidrAllowedList = v return s } -// SetName sets the Name field's value. -func (s *SipMediaApplication) SetName(v string) *SipMediaApplication { - s.Name = &v +// SetCpsLimit sets the CpsLimit field's value. +func (s *Termination) SetCpsLimit(v int64) *Termination { + s.CpsLimit = &v return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *SipMediaApplication) SetSipMediaApplicationId(v string) *SipMediaApplication { - s.SipMediaApplicationId = &v +// SetDefaultPhoneNumber sets the DefaultPhoneNumber field's value. +func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { + s.DefaultPhoneNumber = &v return s } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *SipMediaApplication) SetUpdatedTimestamp(v time.Time) *SipMediaApplication { - s.UpdatedTimestamp = &v +// SetDisabled sets the Disabled field's value. +func (s *Termination) SetDisabled(v bool) *Termination { + s.Disabled = &v return s } -type SipMediaApplicationAlexaSkillConfiguration struct { +type TerminationHealth struct { _ struct{} `type:"structure"` - // AlexaSkillIds is a required field - AlexaSkillIds []*string `min:"1" type:"list" required:"true"` + Source *string `type:"string"` - // AlexaSkillStatus is a required field - AlexaSkillStatus *string `type:"string" required:"true" enum:"AlexaSkillStatus"` + Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -14423,7 +18667,7 @@ type SipMediaApplicationAlexaSkillConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationAlexaSkillConfiguration) String() string { +func (s TerminationHealth) String() string { return awsutil.Prettify(s) } @@ -14432,45 +18676,27 @@ func (s SipMediaApplicationAlexaSkillConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationAlexaSkillConfiguration) GoString() string { +func (s TerminationHealth) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SipMediaApplicationAlexaSkillConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SipMediaApplicationAlexaSkillConfiguration"} - if s.AlexaSkillIds == nil { - invalidParams.Add(request.NewErrParamRequired("AlexaSkillIds")) - } - if s.AlexaSkillIds != nil && len(s.AlexaSkillIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AlexaSkillIds", 1)) - } - if s.AlexaSkillStatus == nil { - invalidParams.Add(request.NewErrParamRequired("AlexaSkillStatus")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAlexaSkillIds sets the AlexaSkillIds field's value. -func (s *SipMediaApplicationAlexaSkillConfiguration) SetAlexaSkillIds(v []*string) *SipMediaApplicationAlexaSkillConfiguration { - s.AlexaSkillIds = v +// SetSource sets the Source field's value. +func (s *TerminationHealth) SetSource(v string) *TerminationHealth { + s.Source = &v return s } -// SetAlexaSkillStatus sets the AlexaSkillStatus field's value. -func (s *SipMediaApplicationAlexaSkillConfiguration) SetAlexaSkillStatus(v string) *SipMediaApplicationAlexaSkillConfiguration { - s.AlexaSkillStatus = &v +// SetTimestamp sets the Timestamp field's value. +func (s *TerminationHealth) SetTimestamp(v time.Time) *TerminationHealth { + s.Timestamp = &v return s } -type SipMediaApplicationCall struct { - _ struct{} `type:"structure"` +type ThrottledClientException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - TransactionId *string `type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -14478,7 +18704,7 @@ type SipMediaApplicationCall struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationCall) String() string { +func (s ThrottledClientException) String() string { return awsutil.Prettify(s) } @@ -14487,23 +18713,53 @@ func (s SipMediaApplicationCall) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationCall) GoString() string { +func (s ThrottledClientException) GoString() string { return s.String() } -// SetTransactionId sets the TransactionId field's value. -func (s *SipMediaApplicationCall) SetTransactionId(v string) *SipMediaApplicationCall { - s.TransactionId = &v - return s +func newErrorThrottledClientException(v protocol.ResponseMetadata) error { + return &ThrottledClientException{ + RespMetadata: v, + } } -type SipMediaApplicationEndpoint struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *ThrottledClientException) Code() string { + return "ThrottledClientException" +} - // LambdaArn is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by SipMediaApplicationEndpoint's - // String and GoString methods. - LambdaArn *string `type:"string" sensitive:"true"` +// Message returns the exception's message. +func (s *ThrottledClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottledClientException) OrigErr() error { + return nil +} + +func (s *ThrottledClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ThrottledClientException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottledClientException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UnauthorizedClientException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -14511,7 +18767,7 @@ type SipMediaApplicationEndpoint struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationEndpoint) String() string { +func (s UnauthorizedClientException) String() string { return awsutil.Prettify(s) } @@ -14520,20 +18776,53 @@ func (s SipMediaApplicationEndpoint) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationEndpoint) GoString() string { +func (s UnauthorizedClientException) GoString() string { return s.String() } -// SetLambdaArn sets the LambdaArn field's value. -func (s *SipMediaApplicationEndpoint) SetLambdaArn(v string) *SipMediaApplicationEndpoint { - s.LambdaArn = &v - return s +func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { + return &UnauthorizedClientException{ + RespMetadata: v, + } } -type SipMediaApplicationLoggingConfiguration struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *UnauthorizedClientException) Code() string { + return "UnauthorizedClientException" +} - EnableSipMediaApplicationMessageLogs *bool `type:"boolean"` +// Message returns the exception's message. +func (s *UnauthorizedClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnauthorizedClientException) OrigErr() error { + return nil +} + +func (s *UnauthorizedClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnauthorizedClientException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnauthorizedClientException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -14541,7 +18830,7 @@ type SipMediaApplicationLoggingConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationLoggingConfiguration) String() string { +func (s UnprocessableEntityException) String() string { return awsutil.Prettify(s) } @@ -14550,34 +18839,59 @@ func (s SipMediaApplicationLoggingConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipMediaApplicationLoggingConfiguration) GoString() string { +func (s UnprocessableEntityException) GoString() string { return s.String() } -// SetEnableSipMediaApplicationMessageLogs sets the EnableSipMediaApplicationMessageLogs field's value. -func (s *SipMediaApplicationLoggingConfiguration) SetEnableSipMediaApplicationMessageLogs(v bool) *SipMediaApplicationLoggingConfiguration { - s.EnableSipMediaApplicationMessageLogs = &v - return s +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + RespMetadata: v, + } } -type SipRule struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" +} - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// Message returns the exception's message. +func (s *UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - Disabled *bool `type:"boolean"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnprocessableEntityException) OrigErr() error { + return nil +} - Name *string `min:"1" type:"string"` +func (s *UnprocessableEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - SipRuleId *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s *UnprocessableEntityException) StatusCode() int { + return s.RespMetadata.StatusCode +} - TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` +// RequestID returns the service's response RequestID for request. +func (s *UnprocessableEntityException) RequestID() string { + return s.RespMetadata.RequestID +} - TriggerType *string `type:"string" enum:"SipRuleTriggerType"` +type UntagResourceInput struct { + _ struct{} `type:"structure"` - TriggerValue *string `type:"string"` + // ResourceARN is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UntagResourceInput's + // String and GoString methods. + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true" sensitive:"true"` - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // TagKeys is a required field + TagKeys []*string `min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -14585,7 +18899,7 @@ type SipRule struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipRule) String() string { +func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } @@ -14594,66 +18908,70 @@ func (s SipRule) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipRule) GoString() string { +func (s UntagResourceInput) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *SipRule) SetCreatedTimestamp(v time.Time) *SipRule { - s.CreatedTimestamp = &v - return s -} - -// SetDisabled sets the Disabled field's value. -func (s *SipRule) SetDisabled(v bool) *SipRule { - s.Disabled = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } -// SetName sets the Name field's value. -func (s *SipRule) SetName(v string) *SipRule { - s.Name = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSipRuleId sets the SipRuleId field's value. -func (s *SipRule) SetSipRuleId(v string) *SipRule { - s.SipRuleId = &v +// SetResourceARN sets the ResourceARN field's value. +func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { + s.ResourceARN = &v return s } -// SetTargetApplications sets the TargetApplications field's value. -func (s *SipRule) SetTargetApplications(v []*SipRuleTargetApplication) *SipRule { - s.TargetApplications = v +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v return s } -// SetTriggerType sets the TriggerType field's value. -func (s *SipRule) SetTriggerType(v string) *SipRule { - s.TriggerType = &v - return s +type UntagResourceOutput struct { + _ struct{} `type:"structure"` } -// SetTriggerValue sets the TriggerValue field's value. -func (s *SipRule) SetTriggerValue(v string) *SipRule { - s.TriggerValue = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *SipRule) SetUpdatedTimestamp(v time.Time) *SipRule { - s.UpdatedTimestamp = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() } -type SipRuleTargetApplication struct { +type UpdateGlobalSettingsInput struct { _ struct{} `type:"structure"` - AwsRegion *string `type:"string"` - - Priority *int64 `min:"1" type:"integer"` - - SipMediaApplicationId *string `type:"string"` + VoiceConnector *VoiceConnectorSettings `type:"structure"` } // String returns the string representation. @@ -14661,7 +18979,7 @@ type SipRuleTargetApplication struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipRuleTargetApplication) String() string { +func (s UpdateGlobalSettingsInput) String() string { return awsutil.Prettify(s) } @@ -14670,51 +18988,53 @@ func (s SipRuleTargetApplication) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SipRuleTargetApplication) GoString() string { +func (s UpdateGlobalSettingsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SipRuleTargetApplication) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SipRuleTargetApplication"} - if s.Priority != nil && *s.Priority < 1 { - invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *UpdateGlobalSettingsInput) SetVoiceConnector(v *VoiceConnectorSettings) *UpdateGlobalSettingsInput { + s.VoiceConnector = v + return s } -// SetAwsRegion sets the AwsRegion field's value. -func (s *SipRuleTargetApplication) SetAwsRegion(v string) *SipRuleTargetApplication { - s.AwsRegion = &v - return s +type UpdateGlobalSettingsOutput struct { + _ struct{} `type:"structure"` } -// SetPriority sets the Priority field's value. -func (s *SipRuleTargetApplication) SetPriority(v int64) *SipRuleTargetApplication { - s.Priority = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGlobalSettingsOutput) String() string { + return awsutil.Prettify(s) } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *SipRuleTargetApplication) SetSipMediaApplicationId(v string) *SipRuleTargetApplication { - s.SipMediaApplicationId = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGlobalSettingsOutput) GoString() string { + return s.String() } -type StreamingConfiguration struct { +type UpdatePhoneNumberInput struct { _ struct{} `type:"structure"` - // DataRetentionInHours is a required field - DataRetentionInHours *int64 `type:"integer" required:"true"` + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberInput's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` - // Disabled is a required field - Disabled *bool `type:"boolean" required:"true"` + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` - StreamingNotificationTargets []*StreamingNotificationTarget `min:"1" type:"list"` + ProductType *string `type:"string" enum:"PhoneNumberProductType"` } // String returns the string representation. @@ -14722,7 +19042,7 @@ type StreamingConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s StreamingConfiguration) String() string { +func (s UpdatePhoneNumberInput) String() string { return awsutil.Prettify(s) } @@ -14731,21 +19051,18 @@ func (s StreamingConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s StreamingConfiguration) GoString() string { +func (s UpdatePhoneNumberInput) GoString() string { return s.String() } // 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 s.Disabled == nil { - invalidParams.Add(request.NewErrParamRequired("Disabled")) +func (s *UpdatePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) } - if s.StreamingNotificationTargets != nil && len(s.StreamingNotificationTargets) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamingNotificationTargets", 1)) + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) } if invalidParams.Len() > 0 { @@ -14754,28 +19071,28 @@ func (s *StreamingConfiguration) Validate() error { return nil } -// SetDataRetentionInHours sets the DataRetentionInHours field's value. -func (s *StreamingConfiguration) SetDataRetentionInHours(v int64) *StreamingConfiguration { - s.DataRetentionInHours = &v +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberInput) SetCallingName(v string) *UpdatePhoneNumberInput { + s.CallingName = &v return s } -// SetDisabled sets the Disabled field's value. -func (s *StreamingConfiguration) SetDisabled(v bool) *StreamingConfiguration { - s.Disabled = &v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *UpdatePhoneNumberInput) SetPhoneNumberId(v string) *UpdatePhoneNumberInput { + s.PhoneNumberId = &v return s } -// SetStreamingNotificationTargets sets the StreamingNotificationTargets field's value. -func (s *StreamingConfiguration) SetStreamingNotificationTargets(v []*StreamingNotificationTarget) *StreamingConfiguration { - s.StreamingNotificationTargets = v +// SetProductType sets the ProductType field's value. +func (s *UpdatePhoneNumberInput) SetProductType(v string) *UpdatePhoneNumberInput { + s.ProductType = &v return s } -type StreamingNotificationTarget struct { +type UpdatePhoneNumberOutput struct { _ struct{} `type:"structure"` - NotificationTarget *string `type:"string" enum:"NotificationTarget"` + PhoneNumber *PhoneNumber `type:"structure"` } // String returns the string representation. @@ -14783,7 +19100,7 @@ type StreamingNotificationTarget struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s StreamingNotificationTarget) String() string { +func (s UpdatePhoneNumberOutput) String() string { return awsutil.Prettify(s) } @@ -14792,31 +19109,31 @@ func (s StreamingNotificationTarget) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s StreamingNotificationTarget) GoString() string { +func (s UpdatePhoneNumberOutput) GoString() string { return s.String() } -// SetNotificationTarget sets the NotificationTarget field's value. -func (s *StreamingNotificationTarget) SetNotificationTarget(v string) *StreamingNotificationTarget { - s.NotificationTarget = &v +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *UpdatePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *UpdatePhoneNumberOutput { + s.PhoneNumber = v return s } -type Termination struct { +type UpdatePhoneNumberRequestItem struct { _ struct{} `type:"structure"` - CallingRegions []*string `type:"list"` - - CidrAllowedList []*string `type:"list"` - - CpsLimit *int64 `min:"1" type:"integer"` + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberRequestItem's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` - // DefaultPhoneNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Termination's + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberRequestItem's // String and GoString methods. - DefaultPhoneNumber *string `type:"string" sensitive:"true"` + // PhoneNumberId is a required field + PhoneNumberId *string `type:"string" required:"true" sensitive:"true"` - Disabled *bool `type:"boolean"` + ProductType *string `type:"string" enum:"PhoneNumberProductType"` } // String returns the string representation. @@ -14824,7 +19141,7 @@ type Termination struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Termination) String() string { +func (s UpdatePhoneNumberRequestItem) String() string { return awsutil.Prettify(s) } @@ -14833,15 +19150,15 @@ func (s Termination) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Termination) GoString() string { +func (s UpdatePhoneNumberRequestItem) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Termination) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Termination"} - if s.CpsLimit != nil && *s.CpsLimit < 1 { - invalidParams.Add(request.NewErrParamMinValue("CpsLimit", 1)) +func (s *UpdatePhoneNumberRequestItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberRequestItem"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) } if invalidParams.Len() > 0 { @@ -14850,42 +19167,73 @@ func (s *Termination) Validate() error { return nil } -// SetCallingRegions sets the CallingRegions field's value. -func (s *Termination) SetCallingRegions(v []*string) *Termination { - s.CallingRegions = v +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberRequestItem) SetCallingName(v string) *UpdatePhoneNumberRequestItem { + s.CallingName = &v return s } -// SetCidrAllowedList sets the CidrAllowedList field's value. -func (s *Termination) SetCidrAllowedList(v []*string) *Termination { - s.CidrAllowedList = v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *UpdatePhoneNumberRequestItem) SetPhoneNumberId(v string) *UpdatePhoneNumberRequestItem { + s.PhoneNumberId = &v return s } -// SetCpsLimit sets the CpsLimit field's value. -func (s *Termination) SetCpsLimit(v int64) *Termination { - s.CpsLimit = &v +// SetProductType sets the ProductType field's value. +func (s *UpdatePhoneNumberRequestItem) SetProductType(v string) *UpdatePhoneNumberRequestItem { + s.ProductType = &v return s } -// SetDefaultPhoneNumber sets the DefaultPhoneNumber field's value. -func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { - s.DefaultPhoneNumber = &v - return s +type UpdatePhoneNumberSettingsInput struct { + _ struct{} `type:"structure"` + + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberSettingsInput's + // String and GoString methods. + // CallingName is a required field + CallingName *string `type:"string" required:"true" sensitive:"true"` } -// SetDisabled sets the Disabled field's value. -func (s *Termination) SetDisabled(v bool) *Termination { - s.Disabled = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberSettingsInput) String() string { + return awsutil.Prettify(s) } -type TerminationHealth struct { - _ struct{} `type:"structure"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberSettingsInput) GoString() string { + return s.String() +} - Source *string `type:"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")) + } - Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + 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. @@ -14893,7 +19241,7 @@ type TerminationHealth struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s TerminationHealth) String() string { +func (s UpdatePhoneNumberSettingsOutput) String() string { return awsutil.Prettify(s) } @@ -14902,27 +19250,23 @@ func (s TerminationHealth) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s TerminationHealth) GoString() string { +func (s UpdatePhoneNumberSettingsOutput) GoString() string { return s.String() } -// SetSource sets the Source field's value. -func (s *TerminationHealth) SetSource(v string) *TerminationHealth { - s.Source = &v - return s -} +type UpdateProxySessionInput struct { + _ struct{} `type:"structure"` -// SetTimestamp sets the Timestamp field's value. -func (s *TerminationHealth) SetTimestamp(v time.Time) *TerminationHealth { - s.Timestamp = &v - return s -} + // Capabilities is a required field + Capabilities []*string `type:"list" required:"true" enum:"Capability"` -type ThrottledClientException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + ExpiryMinutes *int64 `min:"1" type:"integer"` - Message_ *string `locationName:"message" type:"string"` + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -14930,7 +19274,7 @@ type ThrottledClientException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThrottledClientException) String() string { +func (s UpdateProxySessionInput) String() string { return awsutil.Prettify(s) } @@ -14939,53 +19283,66 @@ func (s ThrottledClientException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThrottledClientException) GoString() string { +func (s UpdateProxySessionInput) GoString() string { return s.String() } -func newErrorThrottledClientException(v protocol.ResponseMetadata) error { - return &ThrottledClientException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProxySessionInput"} + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) + } + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + } + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } -} - -// Code returns the exception type name. -func (s *ThrottledClientException) Code() string { - return "ThrottledClientException" -} -// Message returns the exception's message. -func (s *ThrottledClientException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottledClientException) OrigErr() error { - return nil +// SetCapabilities sets the Capabilities field's value. +func (s *UpdateProxySessionInput) SetCapabilities(v []*string) *UpdateProxySessionInput { + s.Capabilities = v + return s } -func (s *ThrottledClientException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *UpdateProxySessionInput) SetExpiryMinutes(v int64) *UpdateProxySessionInput { + s.ExpiryMinutes = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottledClientException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetProxySessionId sets the ProxySessionId field's value. +func (s *UpdateProxySessionInput) SetProxySessionId(v string) *UpdateProxySessionInput { + s.ProxySessionId = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ThrottledClientException) RequestID() string { - return s.RespMetadata.RequestID +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *UpdateProxySessionInput) SetVoiceConnectorId(v string) *UpdateProxySessionInput { + s.VoiceConnectorId = &v + return s } -type UnauthorizedClientException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type UpdateProxySessionOutput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"message" type:"string"` + ProxySession *ProxySession `type:"structure"` } // String returns the string representation. @@ -14993,7 +19350,7 @@ type UnauthorizedClientException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnauthorizedClientException) String() string { +func (s UpdateProxySessionOutput) String() string { return awsutil.Prettify(s) } @@ -15002,52 +19359,27 @@ func (s UnauthorizedClientException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnauthorizedClientException) GoString() string { +func (s UpdateProxySessionOutput) GoString() string { return s.String() } -func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { - return &UnauthorizedClientException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *UnauthorizedClientException) Code() string { - return "UnauthorizedClientException" -} - -// Message returns the exception's message. -func (s *UnauthorizedClientException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UnauthorizedClientException) OrigErr() error { - return nil -} - -func (s *UnauthorizedClientException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetProxySession sets the ProxySession field's value. +func (s *UpdateProxySessionOutput) SetProxySession(v *ProxySession) *UpdateProxySessionOutput { + s.ProxySession = v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *UnauthorizedClientException) StatusCode() int { - return s.RespMetadata.StatusCode -} +type UpdateSipMediaApplicationCallInput struct { + _ struct{} `type:"structure"` -// RequestID returns the service's response RequestID for request. -func (s *UnauthorizedClientException) RequestID() string { - return s.RespMetadata.RequestID -} + // Arguments is a required field + Arguments map[string]*string `type:"map" required:"true"` -type UpdateGlobalSettingsInput struct { - _ struct{} `type:"structure"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` - VoiceConnector *VoiceConnectorSettings `type:"structure"` + // TransactionId is a required field + TransactionId *string `location:"uri" locationName:"transactionId" type:"string" required:"true"` } // String returns the string representation. @@ -15055,7 +19387,7 @@ type UpdateGlobalSettingsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateGlobalSettingsInput) String() string { +func (s UpdateSipMediaApplicationCallInput) String() string { return awsutil.Prettify(s) } @@ -15064,18 +19396,57 @@ func (s UpdateGlobalSettingsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateGlobalSettingsInput) GoString() string { +func (s UpdateSipMediaApplicationCallInput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *UpdateGlobalSettingsInput) SetVoiceConnector(v *VoiceConnectorSettings) *UpdateGlobalSettingsInput { - s.VoiceConnector = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSipMediaApplicationCallInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSipMediaApplicationCallInput"} + if s.Arguments == nil { + invalidParams.Add(request.NewErrParamRequired("Arguments")) + } + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + if s.TransactionId == nil { + invalidParams.Add(request.NewErrParamRequired("TransactionId")) + } + if s.TransactionId != nil && len(*s.TransactionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransactionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArguments sets the Arguments field's value. +func (s *UpdateSipMediaApplicationCallInput) SetArguments(v map[string]*string) *UpdateSipMediaApplicationCallInput { + s.Arguments = v return s } -type UpdateGlobalSettingsOutput struct { +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *UpdateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *UpdateSipMediaApplicationCallInput { + s.SipMediaApplicationId = &v + return s +} + +// SetTransactionId sets the TransactionId field's value. +func (s *UpdateSipMediaApplicationCallInput) SetTransactionId(v string) *UpdateSipMediaApplicationCallInput { + s.TransactionId = &v + return s +} + +type UpdateSipMediaApplicationCallOutput struct { _ struct{} `type:"structure"` + + SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` } // String returns the string representation. @@ -15083,7 +19454,7 @@ type UpdateGlobalSettingsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateGlobalSettingsOutput) String() string { +func (s UpdateSipMediaApplicationCallOutput) String() string { return awsutil.Prettify(s) } @@ -15092,25 +19463,25 @@ func (s UpdateGlobalSettingsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateGlobalSettingsOutput) GoString() string { +func (s UpdateSipMediaApplicationCallOutput) GoString() string { return s.String() } -type UpdatePhoneNumberInput struct { +// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. +func (s *UpdateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *UpdateSipMediaApplicationCallOutput { + s.SipMediaApplicationCall = v + return s +} + +type UpdateSipMediaApplicationInput struct { _ struct{} `type:"structure"` - // CallingName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdatePhoneNumberInput's - // String and GoString methods. - CallingName *string `type:"string" sensitive:"true"` + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdatePhoneNumberInput's - // String and GoString methods. - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` + Name *string `min:"1" type:"string"` - ProductType *string `type:"string" enum:"PhoneNumberProductType"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` } // String returns the string representation. @@ -15118,7 +19489,7 @@ type UpdatePhoneNumberInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberInput) String() string { +func (s UpdateSipMediaApplicationInput) String() string { return awsutil.Prettify(s) } @@ -15127,18 +19498,24 @@ func (s UpdatePhoneNumberInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberInput) GoString() string { +func (s UpdateSipMediaApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdatePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) +func (s *UpdateSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSipMediaApplicationInput"} + if s.Endpoints != nil && len(s.Endpoints) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) } if invalidParams.Len() > 0 { @@ -15147,28 +19524,28 @@ func (s *UpdatePhoneNumberInput) Validate() error { return nil } -// SetCallingName sets the CallingName field's value. -func (s *UpdatePhoneNumberInput) SetCallingName(v string) *UpdatePhoneNumberInput { - s.CallingName = &v +// SetEndpoints sets the Endpoints field's value. +func (s *UpdateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *UpdateSipMediaApplicationInput { + s.Endpoints = v return s } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *UpdatePhoneNumberInput) SetPhoneNumberId(v string) *UpdatePhoneNumberInput { - s.PhoneNumberId = &v +// SetName sets the Name field's value. +func (s *UpdateSipMediaApplicationInput) SetName(v string) *UpdateSipMediaApplicationInput { + s.Name = &v return s -} - -// SetProductType sets the ProductType field's value. -func (s *UpdatePhoneNumberInput) SetProductType(v string) *UpdatePhoneNumberInput { - s.ProductType = &v +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *UpdateSipMediaApplicationInput) SetSipMediaApplicationId(v string) *UpdateSipMediaApplicationInput { + s.SipMediaApplicationId = &v return s } -type UpdatePhoneNumberOutput struct { +type UpdateSipMediaApplicationOutput struct { _ struct{} `type:"structure"` - PhoneNumber *PhoneNumber `type:"structure"` + SipMediaApplication *SipMediaApplication `type:"structure"` } // String returns the string representation. @@ -15176,7 +19553,7 @@ type UpdatePhoneNumberOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberOutput) String() string { +func (s UpdateSipMediaApplicationOutput) String() string { return awsutil.Prettify(s) } @@ -15185,31 +19562,28 @@ func (s UpdatePhoneNumberOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberOutput) GoString() string { +func (s UpdateSipMediaApplicationOutput) GoString() string { return s.String() } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *UpdatePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *UpdatePhoneNumberOutput { - s.PhoneNumber = v +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *UpdateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *UpdateSipMediaApplicationOutput { + s.SipMediaApplication = v return s } -type UpdatePhoneNumberRequestItem struct { +type UpdateSipRuleInput struct { _ struct{} `type:"structure"` - // CallingName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdatePhoneNumberRequestItem's - // String and GoString methods. - CallingName *string `type:"string" sensitive:"true"` + Disabled *bool `type:"boolean"` - // PhoneNumberId is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdatePhoneNumberRequestItem's - // String and GoString methods. - // PhoneNumberId is a required field - PhoneNumberId *string `type:"string" required:"true" sensitive:"true"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` - ProductType *string `type:"string" enum:"PhoneNumberProductType"` + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` } // String returns the string representation. @@ -15217,7 +19591,7 @@ type UpdatePhoneNumberRequestItem struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberRequestItem) String() string { +func (s UpdateSipRuleInput) String() string { return awsutil.Prettify(s) } @@ -15226,15 +19600,37 @@ func (s UpdatePhoneNumberRequestItem) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberRequestItem) GoString() string { +func (s UpdateSipRuleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdatePhoneNumberRequestItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberRequestItem"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) +func (s *UpdateSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSipRuleInput"} + 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.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) + } + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + } + if s.TargetApplications != nil && len(s.TargetApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) + } + if s.TargetApplications != nil { + for i, v := range s.TargetApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -15243,32 +19639,34 @@ func (s *UpdatePhoneNumberRequestItem) Validate() error { return nil } -// SetCallingName sets the CallingName field's value. -func (s *UpdatePhoneNumberRequestItem) SetCallingName(v string) *UpdatePhoneNumberRequestItem { - s.CallingName = &v +// SetDisabled sets the Disabled field's value. +func (s *UpdateSipRuleInput) SetDisabled(v bool) *UpdateSipRuleInput { + s.Disabled = &v return s } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *UpdatePhoneNumberRequestItem) SetPhoneNumberId(v string) *UpdatePhoneNumberRequestItem { - s.PhoneNumberId = &v +// SetName sets the Name field's value. +func (s *UpdateSipRuleInput) SetName(v string) *UpdateSipRuleInput { + s.Name = &v return s } -// SetProductType sets the ProductType field's value. -func (s *UpdatePhoneNumberRequestItem) SetProductType(v string) *UpdatePhoneNumberRequestItem { - s.ProductType = &v +// SetSipRuleId sets the SipRuleId field's value. +func (s *UpdateSipRuleInput) SetSipRuleId(v string) *UpdateSipRuleInput { + s.SipRuleId = &v return s } -type UpdatePhoneNumberSettingsInput struct { +// SetTargetApplications sets the TargetApplications field's value. +func (s *UpdateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *UpdateSipRuleInput { + s.TargetApplications = v + return s +} + +type UpdateSipRuleOutput struct { _ struct{} `type:"structure"` - // CallingName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdatePhoneNumberSettingsInput's - // String and GoString methods. - // CallingName is a required field - CallingName *string `type:"string" required:"true" sensitive:"true"` + SipRule *SipRule `type:"structure"` } // String returns the string representation. @@ -15276,7 +19674,7 @@ type UpdatePhoneNumberSettingsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberSettingsInput) String() string { +func (s UpdateSipRuleOutput) String() string { return awsutil.Prettify(s) } @@ -15285,64 +19683,27 @@ func (s UpdatePhoneNumberSettingsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdatePhoneNumberSettingsInput) GoString() string { +func (s UpdateSipRuleOutput) 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 +// SetSipRule sets the SipRule field's value. +func (s *UpdateSipRuleOutput) SetSipRule(v *SipRule) *UpdateSipRuleOutput { + s.SipRule = v return s } -type UpdatePhoneNumberSettingsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdatePhoneNumberSettingsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdatePhoneNumberSettingsOutput) GoString() string { - return s.String() -} - -type UpdateProxySessionInput struct { +type UpdateVoiceConnectorGroupInput struct { _ struct{} `type:"structure"` - // Capabilities is a required field - Capabilities []*string `type:"list" required:"true" enum:"Capability"` - - ExpiryMinutes *int64 `min:"1" type:"integer"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` - // ProxySessionId is a required field - ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // VoiceConnectorItems is a required field + VoiceConnectorItems []*VoiceConnectorItem `type:"list" required:"true"` } // String returns the string representation. @@ -15350,7 +19711,7 @@ type UpdateProxySessionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateProxySessionInput) String() string { +func (s UpdateVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } @@ -15359,30 +19720,37 @@ func (s UpdateProxySessionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateProxySessionInput) GoString() string { +func (s UpdateVoiceConnectorGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateProxySessionInput"} - if s.Capabilities == nil { - invalidParams.Add(request.NewErrParamRequired("Capabilities")) +func (s *UpdateVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceConnectorGroupInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { - invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.ProxySessionId == nil { - invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } - if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.VoiceConnectorItems == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorItems")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 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 { @@ -15391,34 +19759,28 @@ func (s *UpdateProxySessionInput) Validate() error { return nil } -// SetCapabilities sets the Capabilities field's value. -func (s *UpdateProxySessionInput) SetCapabilities(v []*string) *UpdateProxySessionInput { - s.Capabilities = v - return s -} - -// SetExpiryMinutes sets the ExpiryMinutes field's value. -func (s *UpdateProxySessionInput) SetExpiryMinutes(v int64) *UpdateProxySessionInput { - s.ExpiryMinutes = &v +// SetName sets the Name field's value. +func (s *UpdateVoiceConnectorGroupInput) SetName(v string) *UpdateVoiceConnectorGroupInput { + s.Name = &v return s } -// SetProxySessionId sets the ProxySessionId field's value. -func (s *UpdateProxySessionInput) SetProxySessionId(v string) *UpdateProxySessionInput { - s.ProxySessionId = &v +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *UpdateVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *UpdateProxySessionInput) SetVoiceConnectorId(v string) *UpdateProxySessionInput { - s.VoiceConnectorId = &v +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *UpdateVoiceConnectorGroupInput { + s.VoiceConnectorItems = v return s } -type UpdateProxySessionOutput struct { +type UpdateVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` - ProxySession *ProxySession `type:"structure"` + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` } // String returns the string representation. @@ -15426,7 +19788,7 @@ type UpdateProxySessionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateProxySessionOutput) String() string { +func (s UpdateVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } @@ -15435,27 +19797,27 @@ func (s UpdateProxySessionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateProxySessionOutput) GoString() string { +func (s UpdateVoiceConnectorGroupOutput) GoString() string { return s.String() } -// SetProxySession sets the ProxySession field's value. -func (s *UpdateProxySessionOutput) SetProxySession(v *ProxySession) *UpdateProxySessionOutput { - s.ProxySession = v +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *UpdateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *UpdateVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v return s } -type UpdateSipMediaApplicationCallInput struct { +type UpdateVoiceConnectorInput struct { _ struct{} `type:"structure"` - // Arguments is a required field - Arguments map[string]*string `type:"map" required:"true"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // RequireEncryption is a required field + RequireEncryption *bool `type:"boolean" required:"true"` - // TransactionId is a required field - TransactionId *string `location:"uri" locationName:"transactionId" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation. @@ -15463,7 +19825,7 @@ type UpdateSipMediaApplicationCallInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationCallInput) String() string { +func (s UpdateVoiceConnectorInput) String() string { return awsutil.Prettify(s) } @@ -15472,27 +19834,27 @@ func (s UpdateSipMediaApplicationCallInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationCallInput) GoString() string { +func (s UpdateVoiceConnectorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSipMediaApplicationCallInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSipMediaApplicationCallInput"} - if s.Arguments == nil { - invalidParams.Add(request.NewErrParamRequired("Arguments")) +func (s *UpdateVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceConnectorInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + if s.RequireEncryption == nil { + invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) } - if s.TransactionId == nil { - invalidParams.Add(request.NewErrParamRequired("TransactionId")) + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.TransactionId != nil && len(*s.TransactionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TransactionId", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -15501,28 +19863,28 @@ func (s *UpdateSipMediaApplicationCallInput) Validate() error { return nil } -// SetArguments sets the Arguments field's value. -func (s *UpdateSipMediaApplicationCallInput) SetArguments(v map[string]*string) *UpdateSipMediaApplicationCallInput { - s.Arguments = v +// SetName sets the Name field's value. +func (s *UpdateVoiceConnectorInput) SetName(v string) *UpdateVoiceConnectorInput { + s.Name = &v return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *UpdateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *UpdateSipMediaApplicationCallInput { - s.SipMediaApplicationId = &v +// SetRequireEncryption sets the RequireEncryption field's value. +func (s *UpdateVoiceConnectorInput) SetRequireEncryption(v bool) *UpdateVoiceConnectorInput { + s.RequireEncryption = &v return s } -// SetTransactionId sets the TransactionId field's value. -func (s *UpdateSipMediaApplicationCallInput) SetTransactionId(v string) *UpdateSipMediaApplicationCallInput { - s.TransactionId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *UpdateVoiceConnectorInput) SetVoiceConnectorId(v string) *UpdateVoiceConnectorInput { + s.VoiceConnectorId = &v return s } -type UpdateSipMediaApplicationCallOutput struct { +type UpdateVoiceConnectorOutput struct { _ struct{} `type:"structure"` - SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` + VoiceConnector *VoiceConnector `type:"structure"` } // String returns the string representation. @@ -15530,7 +19892,7 @@ type UpdateSipMediaApplicationCallOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationCallOutput) String() string { +func (s UpdateVoiceConnectorOutput) String() string { return awsutil.Prettify(s) } @@ -15539,25 +19901,25 @@ func (s UpdateSipMediaApplicationCallOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationCallOutput) GoString() string { +func (s UpdateVoiceConnectorOutput) GoString() string { return s.String() } -// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. -func (s *UpdateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *UpdateSipMediaApplicationCallOutput { - s.SipMediaApplicationCall = v +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *UpdateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *UpdateVoiceConnectorOutput { + s.VoiceConnector = v return s } -type UpdateSipMediaApplicationInput struct { +type UpdateVoiceProfileDomainInput struct { _ struct{} `type:"structure"` - Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` + Description *string `type:"string"` Name *string `min:"1" type:"string"` - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // VoiceProfileDomainId is a required field + VoiceProfileDomainId *string `location:"uri" locationName:"VoiceProfileDomainId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -15565,7 +19927,7 @@ type UpdateSipMediaApplicationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationInput) String() string { +func (s UpdateVoiceProfileDomainInput) String() string { return awsutil.Prettify(s) } @@ -15574,24 +19936,21 @@ func (s UpdateSipMediaApplicationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationInput) GoString() string { +func (s UpdateVoiceProfileDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSipMediaApplicationInput"} - if s.Endpoints != nil && len(s.Endpoints) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) - } +func (s *UpdateVoiceProfileDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceProfileDomainInput"} if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + if s.VoiceProfileDomainId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileDomainId")) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + if s.VoiceProfileDomainId != nil && len(*s.VoiceProfileDomainId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileDomainId", 1)) } if invalidParams.Len() > 0 { @@ -15600,28 +19959,28 @@ func (s *UpdateSipMediaApplicationInput) Validate() error { return nil } -// SetEndpoints sets the Endpoints field's value. -func (s *UpdateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *UpdateSipMediaApplicationInput { - s.Endpoints = v +// SetDescription sets the Description field's value. +func (s *UpdateVoiceProfileDomainInput) SetDescription(v string) *UpdateVoiceProfileDomainInput { + s.Description = &v return s } // SetName sets the Name field's value. -func (s *UpdateSipMediaApplicationInput) SetName(v string) *UpdateSipMediaApplicationInput { +func (s *UpdateVoiceProfileDomainInput) SetName(v string) *UpdateVoiceProfileDomainInput { s.Name = &v return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *UpdateSipMediaApplicationInput) SetSipMediaApplicationId(v string) *UpdateSipMediaApplicationInput { - s.SipMediaApplicationId = &v +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *UpdateVoiceProfileDomainInput) SetVoiceProfileDomainId(v string) *UpdateVoiceProfileDomainInput { + s.VoiceProfileDomainId = &v return s } -type UpdateSipMediaApplicationOutput struct { +type UpdateVoiceProfileDomainOutput struct { _ struct{} `type:"structure"` - SipMediaApplication *SipMediaApplication `type:"structure"` + VoiceProfileDomain *VoiceProfileDomain `type:"structure"` } // String returns the string representation. @@ -15629,7 +19988,7 @@ type UpdateSipMediaApplicationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationOutput) String() string { +func (s UpdateVoiceProfileDomainOutput) String() string { return awsutil.Prettify(s) } @@ -15638,28 +19997,24 @@ func (s UpdateSipMediaApplicationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipMediaApplicationOutput) GoString() string { +func (s UpdateVoiceProfileDomainOutput) GoString() string { return s.String() } -// SetSipMediaApplication sets the SipMediaApplication field's value. -func (s *UpdateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *UpdateSipMediaApplicationOutput { - s.SipMediaApplication = v +// SetVoiceProfileDomain sets the VoiceProfileDomain field's value. +func (s *UpdateVoiceProfileDomainOutput) SetVoiceProfileDomain(v *VoiceProfileDomain) *UpdateVoiceProfileDomainOutput { + s.VoiceProfileDomain = v return s } -type UpdateSipRuleInput struct { +type UpdateVoiceProfileInput struct { _ struct{} `type:"structure"` - Disabled *bool `type:"boolean"` - - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // SipRuleId is a required field - SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + // SpeakerSearchTaskId is a required field + SpeakerSearchTaskId *string `min:"1" type:"string" required:"true"` - TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` + // VoiceProfileId is a required field + VoiceProfileId *string `location:"uri" locationName:"VoiceProfileId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -15667,7 +20022,7 @@ type UpdateSipRuleInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipRuleInput) String() string { +func (s UpdateVoiceProfileInput) String() string { return awsutil.Prettify(s) } @@ -15676,37 +20031,24 @@ func (s UpdateSipRuleInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipRuleInput) GoString() string { +func (s UpdateVoiceProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSipRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *UpdateVoiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceProfileInput"} + if s.SpeakerSearchTaskId == nil { + invalidParams.Add(request.NewErrParamRequired("SpeakerSearchTaskId")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.SipRuleId == nil { - invalidParams.Add(request.NewErrParamRequired("SipRuleId")) - } - if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + if s.SpeakerSearchTaskId != nil && len(*s.SpeakerSearchTaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SpeakerSearchTaskId", 1)) } - if s.TargetApplications != nil && len(s.TargetApplications) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) + if s.VoiceProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceProfileId")) } - if s.TargetApplications != nil { - for i, v := range s.TargetApplications { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) - } - } + if s.VoiceProfileId != nil && len(*s.VoiceProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceProfileId", 1)) } if invalidParams.Len() > 0 { @@ -15715,34 +20057,22 @@ func (s *UpdateSipRuleInput) Validate() error { return nil } -// SetDisabled sets the Disabled field's value. -func (s *UpdateSipRuleInput) SetDisabled(v bool) *UpdateSipRuleInput { - s.Disabled = &v - return s -} - -// SetName sets the Name field's value. -func (s *UpdateSipRuleInput) SetName(v string) *UpdateSipRuleInput { - s.Name = &v - return s -} - -// SetSipRuleId sets the SipRuleId field's value. -func (s *UpdateSipRuleInput) SetSipRuleId(v string) *UpdateSipRuleInput { - s.SipRuleId = &v +// SetSpeakerSearchTaskId sets the SpeakerSearchTaskId field's value. +func (s *UpdateVoiceProfileInput) SetSpeakerSearchTaskId(v string) *UpdateVoiceProfileInput { + s.SpeakerSearchTaskId = &v return s } -// SetTargetApplications sets the TargetApplications field's value. -func (s *UpdateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *UpdateSipRuleInput { - s.TargetApplications = v +// SetVoiceProfileId sets the VoiceProfileId field's value. +func (s *UpdateVoiceProfileInput) SetVoiceProfileId(v string) *UpdateVoiceProfileInput { + s.VoiceProfileId = &v return s } -type UpdateSipRuleOutput struct { +type UpdateVoiceProfileOutput struct { _ struct{} `type:"structure"` - SipRule *SipRule `type:"structure"` + VoiceProfile *VoiceProfile `type:"structure"` } // String returns the string representation. @@ -15750,7 +20080,7 @@ type UpdateSipRuleOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipRuleOutput) String() string { +func (s UpdateVoiceProfileOutput) String() string { return awsutil.Prettify(s) } @@ -15759,27 +20089,57 @@ func (s UpdateSipRuleOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSipRuleOutput) GoString() string { +func (s UpdateVoiceProfileOutput) GoString() string { return s.String() } -// SetSipRule sets the SipRule field's value. -func (s *UpdateSipRuleOutput) SetSipRule(v *SipRule) *UpdateSipRuleOutput { - s.SipRule = v +// SetVoiceProfile sets the VoiceProfile field's value. +func (s *UpdateVoiceProfileOutput) SetVoiceProfile(v *VoiceProfile) *UpdateVoiceProfileOutput { + s.VoiceProfile = v return s } -type UpdateVoiceConnectorGroupInput struct { +type ValidateE911AddressInput struct { _ struct{} `type:"structure"` - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // AwsAccountId is a required field + AwsAccountId *string `type:"string" required:"true"` - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // City is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // City is a required field + City *string `type:"string" required:"true" sensitive:"true"` - // VoiceConnectorItems is a required field - VoiceConnectorItems []*VoiceConnectorItem `type:"list" required:"true"` + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // Country is a required field + Country *string `type:"string" required:"true" sensitive:"true"` + + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // PostalCode is a required field + PostalCode *string `type:"string" required:"true" sensitive:"true"` + + // State is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // State is a required field + State *string `type:"string" required:"true" sensitive:"true"` + + // StreetInfo is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // StreetInfo is a required field + StreetInfo *string `type:"string" required:"true" sensitive:"true"` + + // StreetNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // StreetNumber is a required field + StreetNumber *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -15787,7 +20147,7 @@ type UpdateVoiceConnectorGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorGroupInput) String() string { +func (s ValidateE911AddressInput) String() string { return awsutil.Prettify(s) } @@ -15796,67 +20156,93 @@ func (s UpdateVoiceConnectorGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorGroupInput) GoString() string { +func (s ValidateE911AddressInput) 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")) +func (s *ValidateE911AddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ValidateE911AddressInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.City == nil { + invalidParams.Add(request.NewErrParamRequired("City")) } - if s.VoiceConnectorGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + if s.Country == nil { + invalidParams.Add(request.NewErrParamRequired("Country")) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.PostalCode == nil { + invalidParams.Add(request.NewErrParamRequired("PostalCode")) } - if s.VoiceConnectorItems == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorItems")) + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) } - 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 s.StreetInfo == nil { + invalidParams.Add(request.NewErrParamRequired("StreetInfo")) + } + if s.StreetNumber == nil { + invalidParams.Add(request.NewErrParamRequired("StreetNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *ValidateE911AddressInput) SetAwsAccountId(v string) *ValidateE911AddressInput { + s.AwsAccountId = &v + return s +} + +// SetCity sets the City field's value. +func (s *ValidateE911AddressInput) SetCity(v string) *ValidateE911AddressInput { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *ValidateE911AddressInput) SetCountry(v string) *ValidateE911AddressInput { + s.Country = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetPostalCode sets the PostalCode field's value. +func (s *ValidateE911AddressInput) SetPostalCode(v string) *ValidateE911AddressInput { + s.PostalCode = &v + return s } -// SetName sets the Name field's value. -func (s *UpdateVoiceConnectorGroupInput) SetName(v string) *UpdateVoiceConnectorGroupInput { - s.Name = &v +// SetState sets the State field's value. +func (s *ValidateE911AddressInput) SetState(v string) *ValidateE911AddressInput { + s.State = &v return s } -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *UpdateVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetStreetInfo sets the StreetInfo field's value. +func (s *ValidateE911AddressInput) SetStreetInfo(v string) *ValidateE911AddressInput { + s.StreetInfo = &v return s } -// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. -func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *UpdateVoiceConnectorGroupInput { - s.VoiceConnectorItems = v +// SetStreetNumber sets the StreetNumber field's value. +func (s *ValidateE911AddressInput) SetStreetNumber(v string) *ValidateE911AddressInput { + s.StreetNumber = &v return s } -type UpdateVoiceConnectorGroupOutput struct { +type ValidateE911AddressOutput struct { _ struct{} `type:"structure"` - VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` + Address *Address `type:"structure"` + + AddressExternalId *string `type:"string"` + + CandidateAddressList []*CandidateAddress `type:"list"` + + ValidationResult *int64 `type:"integer"` } // String returns the string representation. @@ -15864,7 +20250,7 @@ type UpdateVoiceConnectorGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorGroupOutput) String() string { +func (s ValidateE911AddressOutput) String() string { return awsutil.Prettify(s) } @@ -15873,27 +20259,52 @@ func (s UpdateVoiceConnectorGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorGroupOutput) GoString() string { +func (s ValidateE911AddressOutput) GoString() string { return s.String() } -// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. -func (s *UpdateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *UpdateVoiceConnectorGroupOutput { - s.VoiceConnectorGroup = v +// SetAddress sets the Address field's value. +func (s *ValidateE911AddressOutput) SetAddress(v *Address) *ValidateE911AddressOutput { + s.Address = v return s } -type UpdateVoiceConnectorInput struct { +// SetAddressExternalId sets the AddressExternalId field's value. +func (s *ValidateE911AddressOutput) SetAddressExternalId(v string) *ValidateE911AddressOutput { + s.AddressExternalId = &v + return s +} + +// SetCandidateAddressList sets the CandidateAddressList field's value. +func (s *ValidateE911AddressOutput) SetCandidateAddressList(v []*CandidateAddress) *ValidateE911AddressOutput { + s.CandidateAddressList = v + return s +} + +// SetValidationResult sets the ValidationResult field's value. +func (s *ValidateE911AddressOutput) SetValidationResult(v int64) *ValidateE911AddressOutput { + s.ValidationResult = &v + return s +} + +type VoiceConnector struct { _ struct{} `type:"structure"` - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` - // RequireEncryption is a required field - RequireEncryption *bool `type:"boolean" required:"true"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + Name *string `min:"1" type:"string"` + + OutboundHostName *string `type:"string"` + + RequireEncryption *bool `type:"boolean"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceConnectorArn *string `type:"string"` + + VoiceConnectorId *string `type:"string"` } // String returns the string representation. @@ -15901,7 +20312,7 @@ type UpdateVoiceConnectorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorInput) String() string { +func (s VoiceConnector) String() string { return awsutil.Prettify(s) } @@ -15910,57 +20321,72 @@ func (s UpdateVoiceConnectorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorInput) GoString() string { +func (s VoiceConnector) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceConnectorInput"} - 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.RequireEncryption == nil { - invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } +// SetAwsRegion sets the AwsRegion field's value. +func (s *VoiceConnector) SetAwsRegion(v string) *VoiceConnector { + s.AwsRegion = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceConnector) SetCreatedTimestamp(v time.Time) *VoiceConnector { + s.CreatedTimestamp = &v + return s } // SetName sets the Name field's value. -func (s *UpdateVoiceConnectorInput) SetName(v string) *UpdateVoiceConnectorInput { +func (s *VoiceConnector) SetName(v string) *VoiceConnector { s.Name = &v return s } +// SetOutboundHostName sets the OutboundHostName field's value. +func (s *VoiceConnector) SetOutboundHostName(v string) *VoiceConnector { + s.OutboundHostName = &v + return s +} + // SetRequireEncryption sets the RequireEncryption field's value. -func (s *UpdateVoiceConnectorInput) SetRequireEncryption(v bool) *UpdateVoiceConnectorInput { +func (s *VoiceConnector) SetRequireEncryption(v bool) *VoiceConnector { s.RequireEncryption = &v return s } +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceConnector) SetUpdatedTimestamp(v time.Time) *VoiceConnector { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceConnectorArn sets the VoiceConnectorArn field's value. +func (s *VoiceConnector) SetVoiceConnectorArn(v string) *VoiceConnector { + s.VoiceConnectorArn = &v + return s +} + // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *UpdateVoiceConnectorInput) SetVoiceConnectorId(v string) *UpdateVoiceConnectorInput { +func (s *VoiceConnector) SetVoiceConnectorId(v string) *VoiceConnector { s.VoiceConnectorId = &v return s } -type UpdateVoiceConnectorOutput struct { +type VoiceConnectorGroup struct { _ struct{} `type:"structure"` - VoiceConnector *VoiceConnector `type:"structure"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Name *string `min:"1" type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceConnectorGroupArn *string `type:"string"` + + VoiceConnectorGroupId *string `type:"string"` + + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` } // String returns the string representation. @@ -15968,7 +20394,7 @@ type UpdateVoiceConnectorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorOutput) String() string { +func (s VoiceConnectorGroup) String() string { return awsutil.Prettify(s) } @@ -15977,57 +20403,54 @@ func (s UpdateVoiceConnectorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateVoiceConnectorOutput) GoString() string { +func (s VoiceConnectorGroup) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *UpdateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *UpdateVoiceConnectorOutput { - s.VoiceConnector = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceConnectorGroup) SetCreatedTimestamp(v time.Time) *VoiceConnectorGroup { + s.CreatedTimestamp = &v return s } -type ValidateE911AddressInput struct { - _ struct{} `type:"structure"` +// SetName sets the Name field's value. +func (s *VoiceConnectorGroup) SetName(v string) *VoiceConnectorGroup { + s.Name = &v + return s +} - // AwsAccountId is a required field - AwsAccountId *string `type:"string" required:"true"` +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceConnectorGroup) SetUpdatedTimestamp(v time.Time) *VoiceConnectorGroup { + s.UpdatedTimestamp = &v + return s +} - // City is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ValidateE911AddressInput's - // String and GoString methods. - // City is a required field - City *string `type:"string" required:"true" sensitive:"true"` +// SetVoiceConnectorGroupArn sets the VoiceConnectorGroupArn field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorGroupArn(v string) *VoiceConnectorGroup { + s.VoiceConnectorGroupArn = &v + return s +} - // Country is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ValidateE911AddressInput's - // String and GoString methods. - // Country is a required field - Country *string `type:"string" required:"true" sensitive:"true"` +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorGroupId(v string) *VoiceConnectorGroup { + s.VoiceConnectorGroupId = &v + return s +} - // PostalCode is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ValidateE911AddressInput's - // String and GoString methods. - // PostalCode is a required field - PostalCode *string `type:"string" required:"true" sensitive:"true"` +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorItems(v []*VoiceConnectorItem) *VoiceConnectorGroup { + s.VoiceConnectorItems = v + return s +} - // State is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ValidateE911AddressInput's - // String and GoString methods. - // State is a required field - State *string `type:"string" required:"true" sensitive:"true"` +type VoiceConnectorItem struct { + _ struct{} `type:"structure"` - // StreetInfo is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ValidateE911AddressInput's - // String and GoString methods. - // StreetInfo is a required field - StreetInfo *string `type:"string" required:"true" sensitive:"true"` + // Priority is a required field + Priority *int64 `min:"1" type:"integer" required:"true"` - // StreetNumber is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ValidateE911AddressInput's - // String and GoString methods. - // StreetNumber is a required field - StreetNumber *string `type:"string" required:"true" sensitive:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `type:"string" required:"true"` } // String returns the string representation. @@ -16035,7 +20458,7 @@ type ValidateE911AddressInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ValidateE911AddressInput) String() string { +func (s VoiceConnectorItem) String() string { return awsutil.Prettify(s) } @@ -16044,33 +20467,21 @@ func (s ValidateE911AddressInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ValidateE911AddressInput) GoString() string { +func (s VoiceConnectorItem) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ValidateE911AddressInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ValidateE911AddressInput"} - if s.AwsAccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) - } - if s.City == nil { - invalidParams.Add(request.NewErrParamRequired("City")) - } - if s.Country == nil { - invalidParams.Add(request.NewErrParamRequired("Country")) - } - if s.PostalCode == nil { - invalidParams.Add(request.NewErrParamRequired("PostalCode")) - } - if s.State == nil { - invalidParams.Add(request.NewErrParamRequired("State")) +// 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.StreetInfo == nil { - invalidParams.Add(request.NewErrParamRequired("StreetInfo")) + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) } - if s.StreetNumber == nil { - invalidParams.Add(request.NewErrParamRequired("StreetNumber")) + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } if invalidParams.Len() > 0 { @@ -16079,58 +20490,65 @@ func (s *ValidateE911AddressInput) Validate() error { return nil } -// SetAwsAccountId sets the AwsAccountId field's value. -func (s *ValidateE911AddressInput) SetAwsAccountId(v string) *ValidateE911AddressInput { - s.AwsAccountId = &v +// SetPriority sets the Priority field's value. +func (s *VoiceConnectorItem) SetPriority(v int64) *VoiceConnectorItem { + s.Priority = &v return s } -// SetCity sets the City field's value. -func (s *ValidateE911AddressInput) SetCity(v string) *ValidateE911AddressInput { - s.City = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *VoiceConnectorItem) SetVoiceConnectorId(v string) *VoiceConnectorItem { + s.VoiceConnectorId = &v return s } -// SetCountry sets the Country field's value. -func (s *ValidateE911AddressInput) SetCountry(v string) *ValidateE911AddressInput { - s.Country = &v - return s -} +type VoiceConnectorSettings struct { + _ struct{} `type:"structure"` -// SetPostalCode sets the PostalCode field's value. -func (s *ValidateE911AddressInput) SetPostalCode(v string) *ValidateE911AddressInput { - s.PostalCode = &v - return s + CdrBucket *string `type:"string"` } -// SetState sets the State field's value. -func (s *ValidateE911AddressInput) SetState(v string) *ValidateE911AddressInput { - s.State = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorSettings) String() string { + return awsutil.Prettify(s) } -// SetStreetInfo sets the StreetInfo field's value. -func (s *ValidateE911AddressInput) SetStreetInfo(v string) *ValidateE911AddressInput { - s.StreetInfo = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorSettings) GoString() string { + return s.String() } -// SetStreetNumber sets the StreetNumber field's value. -func (s *ValidateE911AddressInput) SetStreetNumber(v string) *ValidateE911AddressInput { - s.StreetNumber = &v +// SetCdrBucket sets the CdrBucket field's value. +func (s *VoiceConnectorSettings) SetCdrBucket(v string) *VoiceConnectorSettings { + s.CdrBucket = &v return s } -type ValidateE911AddressOutput struct { +type VoiceProfile struct { _ struct{} `type:"structure"` - Address *Address `type:"structure"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - AddressExternalId *string `type:"string"` + ExpirationTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - CandidateAddressList []*CandidateAddress `type:"list"` + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - ValidationResult *int64 `type:"integer"` + // VoiceProfileArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by VoiceProfile's + // String and GoString methods. + VoiceProfileArn *string `min:"1" type:"string" sensitive:"true"` + + VoiceProfileDomainId *string `min:"1" type:"string"` + + VoiceProfileId *string `min:"1" type:"string"` } // String returns the string representation. @@ -16138,7 +20556,7 @@ type ValidateE911AddressOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ValidateE911AddressOutput) String() string { +func (s VoiceProfile) String() string { return awsutil.Prettify(s) } @@ -16147,52 +20565,65 @@ func (s ValidateE911AddressOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ValidateE911AddressOutput) GoString() string { +func (s VoiceProfile) GoString() string { return s.String() } -// SetAddress sets the Address field's value. -func (s *ValidateE911AddressOutput) SetAddress(v *Address) *ValidateE911AddressOutput { - s.Address = v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceProfile) SetCreatedTimestamp(v time.Time) *VoiceProfile { + s.CreatedTimestamp = &v return s } -// SetAddressExternalId sets the AddressExternalId field's value. -func (s *ValidateE911AddressOutput) SetAddressExternalId(v string) *ValidateE911AddressOutput { - s.AddressExternalId = &v +// SetExpirationTimestamp sets the ExpirationTimestamp field's value. +func (s *VoiceProfile) SetExpirationTimestamp(v time.Time) *VoiceProfile { + s.ExpirationTimestamp = &v return s } -// SetCandidateAddressList sets the CandidateAddressList field's value. -func (s *ValidateE911AddressOutput) SetCandidateAddressList(v []*CandidateAddress) *ValidateE911AddressOutput { - s.CandidateAddressList = v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceProfile) SetUpdatedTimestamp(v time.Time) *VoiceProfile { + s.UpdatedTimestamp = &v return s } -// SetValidationResult sets the ValidationResult field's value. -func (s *ValidateE911AddressOutput) SetValidationResult(v int64) *ValidateE911AddressOutput { - s.ValidationResult = &v +// SetVoiceProfileArn sets the VoiceProfileArn field's value. +func (s *VoiceProfile) SetVoiceProfileArn(v string) *VoiceProfile { + s.VoiceProfileArn = &v return s } -type VoiceConnector struct { - _ struct{} `type:"structure"` +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *VoiceProfile) SetVoiceProfileDomainId(v string) *VoiceProfile { + s.VoiceProfileDomainId = &v + return s +} - AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` +// SetVoiceProfileId sets the VoiceProfileId field's value. +func (s *VoiceProfile) SetVoiceProfileId(v string) *VoiceProfile { + s.VoiceProfileId = &v + return s +} + +type VoiceProfileDomain struct { + _ struct{} `type:"structure"` CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - Name *string `min:"1" type:"string"` + Description *string `type:"string"` - OutboundHostName *string `type:"string"` + Name *string `min:"1" type:"string"` - RequireEncryption *bool `type:"boolean"` + ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure"` UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - VoiceConnectorArn *string `type:"string"` + // VoiceProfileDomainArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by VoiceProfileDomain's + // String and GoString methods. + VoiceProfileDomainArn *string `min:"1" type:"string" sensitive:"true"` - VoiceConnectorId *string `type:"string"` + VoiceProfileDomainId *string `min:"1" type:"string"` } // String returns the string representation. @@ -16200,7 +20631,7 @@ type VoiceConnector struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnector) String() string { +func (s VoiceProfileDomain) String() string { return awsutil.Prettify(s) } @@ -16209,72 +20640,69 @@ func (s VoiceConnector) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnector) GoString() string { +func (s VoiceProfileDomain) 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 { +func (s *VoiceProfileDomain) SetCreatedTimestamp(v time.Time) *VoiceProfileDomain { s.CreatedTimestamp = &v return s } -// SetName sets the Name field's value. -func (s *VoiceConnector) SetName(v string) *VoiceConnector { - s.Name = &v +// SetDescription sets the Description field's value. +func (s *VoiceProfileDomain) SetDescription(v string) *VoiceProfileDomain { + s.Description = &v return s } -// SetOutboundHostName sets the OutboundHostName field's value. -func (s *VoiceConnector) SetOutboundHostName(v string) *VoiceConnector { - s.OutboundHostName = &v +// SetName sets the Name field's value. +func (s *VoiceProfileDomain) SetName(v string) *VoiceProfileDomain { + s.Name = &v return s } -// SetRequireEncryption sets the RequireEncryption field's value. -func (s *VoiceConnector) SetRequireEncryption(v bool) *VoiceConnector { - s.RequireEncryption = &v +// SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value. +func (s *VoiceProfileDomain) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *VoiceProfileDomain { + s.ServerSideEncryptionConfiguration = v return s } // SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *VoiceConnector) SetUpdatedTimestamp(v time.Time) *VoiceConnector { +func (s *VoiceProfileDomain) SetUpdatedTimestamp(v time.Time) *VoiceProfileDomain { s.UpdatedTimestamp = &v return s } -// SetVoiceConnectorArn sets the VoiceConnectorArn field's value. -func (s *VoiceConnector) SetVoiceConnectorArn(v string) *VoiceConnector { - s.VoiceConnectorArn = &v +// SetVoiceProfileDomainArn sets the VoiceProfileDomainArn field's value. +func (s *VoiceProfileDomain) SetVoiceProfileDomainArn(v string) *VoiceProfileDomain { + s.VoiceProfileDomainArn = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *VoiceConnector) SetVoiceConnectorId(v string) *VoiceConnector { - s.VoiceConnectorId = &v +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *VoiceProfileDomain) SetVoiceProfileDomainId(v string) *VoiceProfileDomain { + s.VoiceProfileDomainId = &v return s } -type VoiceConnectorGroup struct { +type VoiceProfileDomainSummary struct { _ struct{} `type:"structure"` CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + Description *string `type:"string"` + Name *string `min:"1" type:"string"` UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - VoiceConnectorGroupArn *string `type:"string"` - - VoiceConnectorGroupId *string `type:"string"` + // VoiceProfileDomainArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by VoiceProfileDomainSummary's + // String and GoString methods. + VoiceProfileDomainArn *string `min:"1" type:"string" sensitive:"true"` - VoiceConnectorItems []*VoiceConnectorItem `type:"list"` + VoiceProfileDomainId *string `min:"1" type:"string"` } // String returns the string representation. @@ -16282,7 +20710,7 @@ type VoiceConnectorGroup struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnectorGroup) String() string { +func (s VoiceProfileDomainSummary) String() string { return awsutil.Prettify(s) } @@ -16291,54 +20719,63 @@ func (s VoiceConnectorGroup) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnectorGroup) GoString() string { +func (s VoiceProfileDomainSummary) GoString() string { return s.String() } // SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *VoiceConnectorGroup) SetCreatedTimestamp(v time.Time) *VoiceConnectorGroup { +func (s *VoiceProfileDomainSummary) SetCreatedTimestamp(v time.Time) *VoiceProfileDomainSummary { s.CreatedTimestamp = &v return s } +// SetDescription sets the Description field's value. +func (s *VoiceProfileDomainSummary) SetDescription(v string) *VoiceProfileDomainSummary { + s.Description = &v + return s +} + // SetName sets the Name field's value. -func (s *VoiceConnectorGroup) SetName(v string) *VoiceConnectorGroup { +func (s *VoiceProfileDomainSummary) SetName(v string) *VoiceProfileDomainSummary { s.Name = &v return s } // SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *VoiceConnectorGroup) SetUpdatedTimestamp(v time.Time) *VoiceConnectorGroup { +func (s *VoiceProfileDomainSummary) SetUpdatedTimestamp(v time.Time) *VoiceProfileDomainSummary { s.UpdatedTimestamp = &v return s } -// SetVoiceConnectorGroupArn sets the VoiceConnectorGroupArn field's value. -func (s *VoiceConnectorGroup) SetVoiceConnectorGroupArn(v string) *VoiceConnectorGroup { - s.VoiceConnectorGroupArn = &v - return s -} - -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *VoiceConnectorGroup) SetVoiceConnectorGroupId(v string) *VoiceConnectorGroup { - s.VoiceConnectorGroupId = &v +// SetVoiceProfileDomainArn sets the VoiceProfileDomainArn field's value. +func (s *VoiceProfileDomainSummary) SetVoiceProfileDomainArn(v string) *VoiceProfileDomainSummary { + s.VoiceProfileDomainArn = &v return s } -// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. -func (s *VoiceConnectorGroup) SetVoiceConnectorItems(v []*VoiceConnectorItem) *VoiceConnectorGroup { - s.VoiceConnectorItems = v +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *VoiceProfileDomainSummary) SetVoiceProfileDomainId(v string) *VoiceProfileDomainSummary { + s.VoiceProfileDomainId = &v return s } -type VoiceConnectorItem struct { +type VoiceProfileSummary struct { _ struct{} `type:"structure"` - // Priority is a required field - Priority *int64 `min:"1" type:"integer" required:"true"` + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // VoiceConnectorId is a required field - VoiceConnectorId *string `type:"string" required:"true"` + ExpirationTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // VoiceProfileArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by VoiceProfileSummary's + // String and GoString methods. + VoiceProfileArn *string `min:"1" type:"string" sensitive:"true"` + + VoiceProfileDomainId *string `min:"1" type:"string"` + + VoiceProfileId *string `min:"1" type:"string"` } // String returns the string representation. @@ -16346,7 +20783,7 @@ type VoiceConnectorItem struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnectorItem) String() string { +func (s VoiceProfileSummary) String() string { return awsutil.Prettify(s) } @@ -16355,45 +20792,62 @@ func (s VoiceConnectorItem) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnectorItem) GoString() string { +func (s VoiceProfileSummary) 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")) - } +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceProfileSummary) SetCreatedTimestamp(v time.Time) *VoiceProfileSummary { + s.CreatedTimestamp = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetExpirationTimestamp sets the ExpirationTimestamp field's value. +func (s *VoiceProfileSummary) SetExpirationTimestamp(v time.Time) *VoiceProfileSummary { + s.ExpirationTimestamp = &v + return s } -// SetPriority sets the Priority field's value. -func (s *VoiceConnectorItem) SetPriority(v int64) *VoiceConnectorItem { - s.Priority = &v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceProfileSummary) SetUpdatedTimestamp(v time.Time) *VoiceProfileSummary { + s.UpdatedTimestamp = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *VoiceConnectorItem) SetVoiceConnectorId(v string) *VoiceConnectorItem { - s.VoiceConnectorId = &v +// SetVoiceProfileArn sets the VoiceProfileArn field's value. +func (s *VoiceProfileSummary) SetVoiceProfileArn(v string) *VoiceProfileSummary { + s.VoiceProfileArn = &v return s } -type VoiceConnectorSettings struct { +// SetVoiceProfileDomainId sets the VoiceProfileDomainId field's value. +func (s *VoiceProfileSummary) SetVoiceProfileDomainId(v string) *VoiceProfileSummary { + s.VoiceProfileDomainId = &v + return s +} + +// SetVoiceProfileId sets the VoiceProfileId field's value. +func (s *VoiceProfileSummary) SetVoiceProfileId(v string) *VoiceProfileSummary { + s.VoiceProfileId = &v + return s +} + +type VoiceToneAnalysisTask struct { _ struct{} `type:"structure"` - CdrBucket *string `type:"string"` + CallDetails *CallDetails `type:"structure"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + StartedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + StatusMessage *string `type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceToneAnalysisTaskId *string `min:"1" type:"string"` + + VoiceToneAnalysisTaskStatus *string `type:"string"` } // String returns the string representation. @@ -16401,7 +20855,7 @@ type VoiceConnectorSettings struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnectorSettings) String() string { +func (s VoiceToneAnalysisTask) String() string { return awsutil.Prettify(s) } @@ -16410,13 +20864,49 @@ func (s VoiceConnectorSettings) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s VoiceConnectorSettings) GoString() string { +func (s VoiceToneAnalysisTask) GoString() string { return s.String() } -// SetCdrBucket sets the CdrBucket field's value. -func (s *VoiceConnectorSettings) SetCdrBucket(v string) *VoiceConnectorSettings { - s.CdrBucket = &v +// SetCallDetails sets the CallDetails field's value. +func (s *VoiceToneAnalysisTask) SetCallDetails(v *CallDetails) *VoiceToneAnalysisTask { + s.CallDetails = v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceToneAnalysisTask) SetCreatedTimestamp(v time.Time) *VoiceToneAnalysisTask { + s.CreatedTimestamp = &v + return s +} + +// SetStartedTimestamp sets the StartedTimestamp field's value. +func (s *VoiceToneAnalysisTask) SetStartedTimestamp(v time.Time) *VoiceToneAnalysisTask { + s.StartedTimestamp = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *VoiceToneAnalysisTask) SetStatusMessage(v string) *VoiceToneAnalysisTask { + s.StatusMessage = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceToneAnalysisTask) SetUpdatedTimestamp(v time.Time) *VoiceToneAnalysisTask { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceToneAnalysisTaskId sets the VoiceToneAnalysisTaskId field's value. +func (s *VoiceToneAnalysisTask) SetVoiceToneAnalysisTaskId(v string) *VoiceToneAnalysisTask { + s.VoiceToneAnalysisTaskId = &v + return s +} + +// SetVoiceToneAnalysisTaskStatus sets the VoiceToneAnalysisTaskStatus field's value. +func (s *VoiceToneAnalysisTask) SetVoiceToneAnalysisTaskStatus(v string) *VoiceToneAnalysisTask { + s.VoiceToneAnalysisTaskStatus = &v return s } @@ -16564,6 +21054,18 @@ func GeoMatchLevel_Values() []string { } } +const ( + // LanguageCodeEnUs is a LanguageCode enum value + LanguageCodeEnUs = "en-US" +) + +// LanguageCode_Values returns all elements of the LanguageCode enum +func LanguageCode_Values() []string { + return []string{ + LanguageCodeEnUs, + } +} + const ( // NotificationTargetEventBridge is a NotificationTarget enum value NotificationTargetEventBridge = "EventBridge" diff --git a/service/chimesdkvoice/chimesdkvoiceiface/interface.go b/service/chimesdkvoice/chimesdkvoiceiface/interface.go index ca1ec2aeb9d..0663be33093 100644 --- a/service/chimesdkvoice/chimesdkvoiceiface/interface.go +++ b/service/chimesdkvoice/chimesdkvoiceiface/interface.go @@ -104,6 +104,14 @@ type ChimeSDKVoiceAPI interface { CreateVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.CreateVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.CreateVoiceConnectorGroupOutput, error) CreateVoiceConnectorGroupRequest(*chimesdkvoice.CreateVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.CreateVoiceConnectorGroupOutput) + CreateVoiceProfile(*chimesdkvoice.CreateVoiceProfileInput) (*chimesdkvoice.CreateVoiceProfileOutput, error) + CreateVoiceProfileWithContext(aws.Context, *chimesdkvoice.CreateVoiceProfileInput, ...request.Option) (*chimesdkvoice.CreateVoiceProfileOutput, error) + CreateVoiceProfileRequest(*chimesdkvoice.CreateVoiceProfileInput) (*request.Request, *chimesdkvoice.CreateVoiceProfileOutput) + + CreateVoiceProfileDomain(*chimesdkvoice.CreateVoiceProfileDomainInput) (*chimesdkvoice.CreateVoiceProfileDomainOutput, error) + CreateVoiceProfileDomainWithContext(aws.Context, *chimesdkvoice.CreateVoiceProfileDomainInput, ...request.Option) (*chimesdkvoice.CreateVoiceProfileDomainOutput, error) + CreateVoiceProfileDomainRequest(*chimesdkvoice.CreateVoiceProfileDomainInput) (*request.Request, *chimesdkvoice.CreateVoiceProfileDomainOutput) + DeletePhoneNumber(*chimesdkvoice.DeletePhoneNumberInput) (*chimesdkvoice.DeletePhoneNumberOutput, error) DeletePhoneNumberWithContext(aws.Context, *chimesdkvoice.DeletePhoneNumberInput, ...request.Option) (*chimesdkvoice.DeletePhoneNumberOutput, error) DeletePhoneNumberRequest(*chimesdkvoice.DeletePhoneNumberInput) (*request.Request, *chimesdkvoice.DeletePhoneNumberOutput) @@ -152,6 +160,14 @@ type ChimeSDKVoiceAPI interface { DeleteVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsOutput, error) DeleteVoiceConnectorTerminationCredentialsRequest(*chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsOutput) + DeleteVoiceProfile(*chimesdkvoice.DeleteVoiceProfileInput) (*chimesdkvoice.DeleteVoiceProfileOutput, error) + DeleteVoiceProfileWithContext(aws.Context, *chimesdkvoice.DeleteVoiceProfileInput, ...request.Option) (*chimesdkvoice.DeleteVoiceProfileOutput, error) + DeleteVoiceProfileRequest(*chimesdkvoice.DeleteVoiceProfileInput) (*request.Request, *chimesdkvoice.DeleteVoiceProfileOutput) + + DeleteVoiceProfileDomain(*chimesdkvoice.DeleteVoiceProfileDomainInput) (*chimesdkvoice.DeleteVoiceProfileDomainOutput, error) + DeleteVoiceProfileDomainWithContext(aws.Context, *chimesdkvoice.DeleteVoiceProfileDomainInput, ...request.Option) (*chimesdkvoice.DeleteVoiceProfileDomainOutput, error) + DeleteVoiceProfileDomainRequest(*chimesdkvoice.DeleteVoiceProfileDomainInput) (*request.Request, *chimesdkvoice.DeleteVoiceProfileDomainOutput) + DisassociatePhoneNumbersFromVoiceConnector(*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorInput) (*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) DisassociatePhoneNumbersFromVoiceConnectorWithContext(aws.Context, *chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorInput, ...request.Option) (*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) DisassociatePhoneNumbersFromVoiceConnectorRequest(*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorInput) (*request.Request, *chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorOutput) @@ -196,6 +212,10 @@ type ChimeSDKVoiceAPI interface { GetSipRuleWithContext(aws.Context, *chimesdkvoice.GetSipRuleInput, ...request.Option) (*chimesdkvoice.GetSipRuleOutput, error) GetSipRuleRequest(*chimesdkvoice.GetSipRuleInput) (*request.Request, *chimesdkvoice.GetSipRuleOutput) + GetSpeakerSearchTask(*chimesdkvoice.GetSpeakerSearchTaskInput) (*chimesdkvoice.GetSpeakerSearchTaskOutput, error) + GetSpeakerSearchTaskWithContext(aws.Context, *chimesdkvoice.GetSpeakerSearchTaskInput, ...request.Option) (*chimesdkvoice.GetSpeakerSearchTaskOutput, error) + GetSpeakerSearchTaskRequest(*chimesdkvoice.GetSpeakerSearchTaskInput) (*request.Request, *chimesdkvoice.GetSpeakerSearchTaskOutput) + GetVoiceConnector(*chimesdkvoice.GetVoiceConnectorInput) (*chimesdkvoice.GetVoiceConnectorOutput, error) GetVoiceConnectorWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorOutput, error) GetVoiceConnectorRequest(*chimesdkvoice.GetVoiceConnectorInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorOutput) @@ -232,6 +252,18 @@ type ChimeSDKVoiceAPI interface { GetVoiceConnectorTerminationHealthWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorTerminationHealthInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorTerminationHealthOutput, error) GetVoiceConnectorTerminationHealthRequest(*chimesdkvoice.GetVoiceConnectorTerminationHealthInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorTerminationHealthOutput) + GetVoiceProfile(*chimesdkvoice.GetVoiceProfileInput) (*chimesdkvoice.GetVoiceProfileOutput, error) + GetVoiceProfileWithContext(aws.Context, *chimesdkvoice.GetVoiceProfileInput, ...request.Option) (*chimesdkvoice.GetVoiceProfileOutput, error) + GetVoiceProfileRequest(*chimesdkvoice.GetVoiceProfileInput) (*request.Request, *chimesdkvoice.GetVoiceProfileOutput) + + GetVoiceProfileDomain(*chimesdkvoice.GetVoiceProfileDomainInput) (*chimesdkvoice.GetVoiceProfileDomainOutput, error) + GetVoiceProfileDomainWithContext(aws.Context, *chimesdkvoice.GetVoiceProfileDomainInput, ...request.Option) (*chimesdkvoice.GetVoiceProfileDomainOutput, error) + GetVoiceProfileDomainRequest(*chimesdkvoice.GetVoiceProfileDomainInput) (*request.Request, *chimesdkvoice.GetVoiceProfileDomainOutput) + + GetVoiceToneAnalysisTask(*chimesdkvoice.GetVoiceToneAnalysisTaskInput) (*chimesdkvoice.GetVoiceToneAnalysisTaskOutput, error) + GetVoiceToneAnalysisTaskWithContext(aws.Context, *chimesdkvoice.GetVoiceToneAnalysisTaskInput, ...request.Option) (*chimesdkvoice.GetVoiceToneAnalysisTaskOutput, error) + GetVoiceToneAnalysisTaskRequest(*chimesdkvoice.GetVoiceToneAnalysisTaskInput) (*request.Request, *chimesdkvoice.GetVoiceToneAnalysisTaskOutput) + ListAvailableVoiceConnectorRegions(*chimesdkvoice.ListAvailableVoiceConnectorRegionsInput) (*chimesdkvoice.ListAvailableVoiceConnectorRegionsOutput, error) ListAvailableVoiceConnectorRegionsWithContext(aws.Context, *chimesdkvoice.ListAvailableVoiceConnectorRegionsInput, ...request.Option) (*chimesdkvoice.ListAvailableVoiceConnectorRegionsOutput, error) ListAvailableVoiceConnectorRegionsRequest(*chimesdkvoice.ListAvailableVoiceConnectorRegionsInput) (*request.Request, *chimesdkvoice.ListAvailableVoiceConnectorRegionsOutput) @@ -275,6 +307,10 @@ type ChimeSDKVoiceAPI interface { ListSupportedPhoneNumberCountriesWithContext(aws.Context, *chimesdkvoice.ListSupportedPhoneNumberCountriesInput, ...request.Option) (*chimesdkvoice.ListSupportedPhoneNumberCountriesOutput, error) ListSupportedPhoneNumberCountriesRequest(*chimesdkvoice.ListSupportedPhoneNumberCountriesInput) (*request.Request, *chimesdkvoice.ListSupportedPhoneNumberCountriesOutput) + ListTagsForResource(*chimesdkvoice.ListTagsForResourceInput) (*chimesdkvoice.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *chimesdkvoice.ListTagsForResourceInput, ...request.Option) (*chimesdkvoice.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*chimesdkvoice.ListTagsForResourceInput) (*request.Request, *chimesdkvoice.ListTagsForResourceOutput) + ListVoiceConnectorGroups(*chimesdkvoice.ListVoiceConnectorGroupsInput) (*chimesdkvoice.ListVoiceConnectorGroupsOutput, error) ListVoiceConnectorGroupsWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorGroupsInput, ...request.Option) (*chimesdkvoice.ListVoiceConnectorGroupsOutput, error) ListVoiceConnectorGroupsRequest(*chimesdkvoice.ListVoiceConnectorGroupsInput) (*request.Request, *chimesdkvoice.ListVoiceConnectorGroupsOutput) @@ -293,6 +329,20 @@ type ChimeSDKVoiceAPI interface { ListVoiceConnectorsPages(*chimesdkvoice.ListVoiceConnectorsInput, func(*chimesdkvoice.ListVoiceConnectorsOutput, bool) bool) error ListVoiceConnectorsPagesWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorsInput, func(*chimesdkvoice.ListVoiceConnectorsOutput, bool) bool, ...request.Option) error + ListVoiceProfileDomains(*chimesdkvoice.ListVoiceProfileDomainsInput) (*chimesdkvoice.ListVoiceProfileDomainsOutput, error) + ListVoiceProfileDomainsWithContext(aws.Context, *chimesdkvoice.ListVoiceProfileDomainsInput, ...request.Option) (*chimesdkvoice.ListVoiceProfileDomainsOutput, error) + ListVoiceProfileDomainsRequest(*chimesdkvoice.ListVoiceProfileDomainsInput) (*request.Request, *chimesdkvoice.ListVoiceProfileDomainsOutput) + + ListVoiceProfileDomainsPages(*chimesdkvoice.ListVoiceProfileDomainsInput, func(*chimesdkvoice.ListVoiceProfileDomainsOutput, bool) bool) error + ListVoiceProfileDomainsPagesWithContext(aws.Context, *chimesdkvoice.ListVoiceProfileDomainsInput, func(*chimesdkvoice.ListVoiceProfileDomainsOutput, bool) bool, ...request.Option) error + + ListVoiceProfiles(*chimesdkvoice.ListVoiceProfilesInput) (*chimesdkvoice.ListVoiceProfilesOutput, error) + ListVoiceProfilesWithContext(aws.Context, *chimesdkvoice.ListVoiceProfilesInput, ...request.Option) (*chimesdkvoice.ListVoiceProfilesOutput, error) + ListVoiceProfilesRequest(*chimesdkvoice.ListVoiceProfilesInput) (*request.Request, *chimesdkvoice.ListVoiceProfilesOutput) + + ListVoiceProfilesPages(*chimesdkvoice.ListVoiceProfilesInput, func(*chimesdkvoice.ListVoiceProfilesOutput, bool) bool) error + ListVoiceProfilesPagesWithContext(aws.Context, *chimesdkvoice.ListVoiceProfilesInput, func(*chimesdkvoice.ListVoiceProfilesOutput, bool) bool, ...request.Option) error + PutSipMediaApplicationAlexaSkillConfiguration(*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationInput) (*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationOutput, error) PutSipMediaApplicationAlexaSkillConfigurationWithContext(aws.Context, *chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationInput, ...request.Option) (*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationOutput, error) PutSipMediaApplicationAlexaSkillConfigurationRequest(*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationInput) (*request.Request, *chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationOutput) @@ -340,6 +390,30 @@ type ChimeSDKVoiceAPI interface { SearchAvailablePhoneNumbersPages(*chimesdkvoice.SearchAvailablePhoneNumbersInput, func(*chimesdkvoice.SearchAvailablePhoneNumbersOutput, bool) bool) error SearchAvailablePhoneNumbersPagesWithContext(aws.Context, *chimesdkvoice.SearchAvailablePhoneNumbersInput, func(*chimesdkvoice.SearchAvailablePhoneNumbersOutput, bool) bool, ...request.Option) error + StartSpeakerSearchTask(*chimesdkvoice.StartSpeakerSearchTaskInput) (*chimesdkvoice.StartSpeakerSearchTaskOutput, error) + StartSpeakerSearchTaskWithContext(aws.Context, *chimesdkvoice.StartSpeakerSearchTaskInput, ...request.Option) (*chimesdkvoice.StartSpeakerSearchTaskOutput, error) + StartSpeakerSearchTaskRequest(*chimesdkvoice.StartSpeakerSearchTaskInput) (*request.Request, *chimesdkvoice.StartSpeakerSearchTaskOutput) + + StartVoiceToneAnalysisTask(*chimesdkvoice.StartVoiceToneAnalysisTaskInput) (*chimesdkvoice.StartVoiceToneAnalysisTaskOutput, error) + StartVoiceToneAnalysisTaskWithContext(aws.Context, *chimesdkvoice.StartVoiceToneAnalysisTaskInput, ...request.Option) (*chimesdkvoice.StartVoiceToneAnalysisTaskOutput, error) + StartVoiceToneAnalysisTaskRequest(*chimesdkvoice.StartVoiceToneAnalysisTaskInput) (*request.Request, *chimesdkvoice.StartVoiceToneAnalysisTaskOutput) + + StopSpeakerSearchTask(*chimesdkvoice.StopSpeakerSearchTaskInput) (*chimesdkvoice.StopSpeakerSearchTaskOutput, error) + StopSpeakerSearchTaskWithContext(aws.Context, *chimesdkvoice.StopSpeakerSearchTaskInput, ...request.Option) (*chimesdkvoice.StopSpeakerSearchTaskOutput, error) + StopSpeakerSearchTaskRequest(*chimesdkvoice.StopSpeakerSearchTaskInput) (*request.Request, *chimesdkvoice.StopSpeakerSearchTaskOutput) + + StopVoiceToneAnalysisTask(*chimesdkvoice.StopVoiceToneAnalysisTaskInput) (*chimesdkvoice.StopVoiceToneAnalysisTaskOutput, error) + StopVoiceToneAnalysisTaskWithContext(aws.Context, *chimesdkvoice.StopVoiceToneAnalysisTaskInput, ...request.Option) (*chimesdkvoice.StopVoiceToneAnalysisTaskOutput, error) + StopVoiceToneAnalysisTaskRequest(*chimesdkvoice.StopVoiceToneAnalysisTaskInput) (*request.Request, *chimesdkvoice.StopVoiceToneAnalysisTaskOutput) + + TagResource(*chimesdkvoice.TagResourceInput) (*chimesdkvoice.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *chimesdkvoice.TagResourceInput, ...request.Option) (*chimesdkvoice.TagResourceOutput, error) + TagResourceRequest(*chimesdkvoice.TagResourceInput) (*request.Request, *chimesdkvoice.TagResourceOutput) + + UntagResource(*chimesdkvoice.UntagResourceInput) (*chimesdkvoice.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *chimesdkvoice.UntagResourceInput, ...request.Option) (*chimesdkvoice.UntagResourceOutput, error) + UntagResourceRequest(*chimesdkvoice.UntagResourceInput) (*request.Request, *chimesdkvoice.UntagResourceOutput) + UpdateGlobalSettings(*chimesdkvoice.UpdateGlobalSettingsInput) (*chimesdkvoice.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsWithContext(aws.Context, *chimesdkvoice.UpdateGlobalSettingsInput, ...request.Option) (*chimesdkvoice.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsRequest(*chimesdkvoice.UpdateGlobalSettingsInput) (*request.Request, *chimesdkvoice.UpdateGlobalSettingsOutput) @@ -376,6 +450,14 @@ type ChimeSDKVoiceAPI interface { UpdateVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.UpdateVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.UpdateVoiceConnectorGroupOutput, error) UpdateVoiceConnectorGroupRequest(*chimesdkvoice.UpdateVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.UpdateVoiceConnectorGroupOutput) + UpdateVoiceProfile(*chimesdkvoice.UpdateVoiceProfileInput) (*chimesdkvoice.UpdateVoiceProfileOutput, error) + UpdateVoiceProfileWithContext(aws.Context, *chimesdkvoice.UpdateVoiceProfileInput, ...request.Option) (*chimesdkvoice.UpdateVoiceProfileOutput, error) + UpdateVoiceProfileRequest(*chimesdkvoice.UpdateVoiceProfileInput) (*request.Request, *chimesdkvoice.UpdateVoiceProfileOutput) + + UpdateVoiceProfileDomain(*chimesdkvoice.UpdateVoiceProfileDomainInput) (*chimesdkvoice.UpdateVoiceProfileDomainOutput, error) + UpdateVoiceProfileDomainWithContext(aws.Context, *chimesdkvoice.UpdateVoiceProfileDomainInput, ...request.Option) (*chimesdkvoice.UpdateVoiceProfileDomainOutput, error) + UpdateVoiceProfileDomainRequest(*chimesdkvoice.UpdateVoiceProfileDomainInput) (*request.Request, *chimesdkvoice.UpdateVoiceProfileDomainOutput) + ValidateE911Address(*chimesdkvoice.ValidateE911AddressInput) (*chimesdkvoice.ValidateE911AddressOutput, error) ValidateE911AddressWithContext(aws.Context, *chimesdkvoice.ValidateE911AddressInput, ...request.Option) (*chimesdkvoice.ValidateE911AddressOutput, error) ValidateE911AddressRequest(*chimesdkvoice.ValidateE911AddressInput) (*request.Request, *chimesdkvoice.ValidateE911AddressOutput) diff --git a/service/chimesdkvoice/errors.go b/service/chimesdkvoice/errors.go index c1fa11937bf..b4eb7613a40 100644 --- a/service/chimesdkvoice/errors.go +++ b/service/chimesdkvoice/errors.go @@ -24,6 +24,10 @@ const ( // "ForbiddenException". ErrCodeForbiddenException = "ForbiddenException" + // ErrCodeGoneException for service response error code + // "GoneException". + ErrCodeGoneException = "GoneException" + // ErrCodeNotFoundException for service response error code // "NotFoundException". ErrCodeNotFoundException = "NotFoundException" @@ -47,6 +51,10 @@ const ( // ErrCodeUnauthorizedClientException for service response error code // "UnauthorizedClientException". ErrCodeUnauthorizedClientException = "UnauthorizedClientException" + + // ErrCodeUnprocessableEntityException for service response error code + // "UnprocessableEntityException". + ErrCodeUnprocessableEntityException = "UnprocessableEntityException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ @@ -54,10 +62,12 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "BadRequestException": newErrorBadRequestException, "ConflictException": newErrorConflictException, "ForbiddenException": newErrorForbiddenException, + "GoneException": newErrorGoneException, "NotFoundException": newErrorNotFoundException, "ResourceLimitExceededException": newErrorResourceLimitExceededException, "ServiceFailureException": newErrorServiceFailureException, "ServiceUnavailableException": newErrorServiceUnavailableException, "ThrottledClientException": newErrorThrottledClientException, "UnauthorizedClientException": newErrorUnauthorizedClientException, + "UnprocessableEntityException": newErrorUnprocessableEntityException, } diff --git a/service/codeartifact/api.go b/service/codeartifact/api.go index a4bc3c98dec..5957cd4f00b 100644 --- a/service/codeartifact/api.go +++ b/service/codeartifact/api.go @@ -3339,15 +3339,17 @@ func (c *CodeArtifact) PublishPackageVersionRequest(input *PublishPackageVersion // Creates a new package version containing one or more assets (or files). // // The unfinished flag can be used to keep the package version in the Unfinished -// state until all of it’s assets have been uploaded (see Package version -// status (https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status) +// state until all of its assets have been uploaded (see Package version status +// (https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status) // in the CodeArtifact user guide). To set the package version’s status to // Published, omit the unfinished flag when uploading the final asset, or set // the status using UpdatePackageVersionStatus (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html). // Once a package version’s status is set to Published, it cannot change back // to Unfinished. // -// Only generic packages can be published using this API. +// Only generic packages can be published using this API. For more information, +// see Using generic packages (https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html) +// in the CodeArtifact User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4254,6 +4256,8 @@ type AssociateExternalConnectionInput struct { // // * public:maven-commonsware - for the CommonsWare Android repository. // + // * public:maven-clojars - for the Clojars repository. + // // ExternalConnection is a required field ExternalConnection *string `location:"querystring" locationName:"external-connection" min:"2" type:"string" required:"true"` @@ -4481,7 +4485,7 @@ type CopyPackageVersionsInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package that contains the versions to be copied. @@ -5201,6 +5205,8 @@ type DeletePackageInput struct { // // * Python and NuGet packages do not contain corresponding components, packages // of those formats do not have a namespace. + // + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package to delete. @@ -5367,7 +5373,7 @@ type DeletePackageVersionsInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package with the versions to delete. @@ -5904,7 +5910,7 @@ type DescribePackageInput struct { // * Python and NuGet packages do not contain a corresponding component, // packages of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the requested package. @@ -6071,7 +6077,7 @@ type DescribePackageVersionInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the requested package version. @@ -6495,7 +6501,7 @@ type DisposePackageVersionsInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package with the versions you want to dispose. @@ -7156,7 +7162,7 @@ type GetPackageVersionAssetInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package that contains the requested asset. @@ -7383,8 +7389,6 @@ type GetPackageVersionReadmeInput struct { // package version component that specifies its namespace depends on its type. // For example: // - // * The namespace of a Maven package version is its groupId. - // // * The namespace of an npm package version is its scope. // // * Python and NuGet package versions do not contain a corresponding component, @@ -8067,7 +8071,7 @@ type ListPackageVersionAssetsInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The token for the next set of results. Use the value returned in the previous @@ -8336,7 +8340,7 @@ type ListPackageVersionDependenciesInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The token for the next set of results. Use the value returned in the previous @@ -8600,7 +8604,7 @@ type ListPackageVersionsInput struct { // * Python and NuGet packages do not contain a corresponding component, // packages of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The token for the next set of results. Use the value returned in the previous @@ -8881,7 +8885,7 @@ type ListPackagesInput struct { // * Python and NuGet packages do not contain a corresponding component, // packages of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The token for the next set of results. Use the value returned in the previous @@ -9509,7 +9513,7 @@ type PackageDescription struct { // * Python and NuGet packages do not contain a corresponding component, // packages of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `locationName:"namespace" min:"1" type:"string"` // The package origin configuration for the package. @@ -9673,7 +9677,7 @@ type PackageSummary struct { // * Python and NuGet packages do not contain a corresponding component, // packages of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `locationName:"namespace" min:"1" type:"string"` // A PackageOriginConfiguration (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginConfiguration.html) @@ -9757,7 +9761,7 @@ type PackageVersionDescription struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `locationName:"namespace" min:"1" type:"string"` // A PackageVersionOrigin (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionOrigin.html) @@ -10069,7 +10073,9 @@ type PublishPackageVersionInput struct { AssetName *string `location:"querystring" locationName:"asset" min:"1" type:"string" required:"true"` // The SHA256 hash of the assetContent to publish. This value must be calculated - // by the caller and provided with the request. + // by the caller and provided with the request (see Publishing a generic package + // (https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages) + // in the CodeArtifact User Guide). // // This value is used as an integrity check to verify that the assetContent // has not changed after it was originally sent. @@ -10113,7 +10119,7 @@ type PublishPackageVersionInput struct { // Specifies whether the package version should remain in the unfinished state. // If omitted, the package version status will be set to Published (see Package - // version status (https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status) + // version status (https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status) // in the CodeArtifact User Guide). // // Valid values: unfinished @@ -10502,7 +10508,7 @@ type PutPackageOriginConfigurationInput struct { // * Python and NuGet packages do not contain a corresponding component, // packages of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package to be updated. @@ -10827,6 +10833,9 @@ type RepositoryDescription struct { // The Amazon Resource Name (ARN) of the repository. Arn *string `locationName:"arn" min:"1" type:"string"` + // A timestamp that represents the date and time the repository was created. + CreatedTime *time.Time `locationName:"createdTime" type:"timestamp"` + // A text description of the repository. Description *string `locationName:"description" type:"string"` @@ -10880,6 +10889,12 @@ func (s *RepositoryDescription) SetArn(v string) *RepositoryDescription { return s } +// SetCreatedTime sets the CreatedTime field's value. +func (s *RepositoryDescription) SetCreatedTime(v time.Time) *RepositoryDescription { + s.CreatedTime = &v + return s +} + // SetDescription sets the Description field's value. func (s *RepositoryDescription) SetDescription(v string) *RepositoryDescription { s.Description = &v @@ -10989,6 +11004,9 @@ type RepositorySummary struct { // The ARN of the repository. Arn *string `locationName:"arn" min:"1" type:"string"` + // A timestamp that represents the date and time the repository was created. + CreatedTime *time.Time `locationName:"createdTime" type:"timestamp"` + // The description of the repository. Description *string `locationName:"description" type:"string"` @@ -11033,6 +11051,12 @@ func (s *RepositorySummary) SetArn(v string) *RepositorySummary { return s } +// SetCreatedTime sets the CreatedTime field's value. +func (s *RepositorySummary) SetCreatedTime(v time.Time) *RepositorySummary { + s.CreatedTime = &v + return s +} + // SetDescription sets the Description field's value. func (s *RepositorySummary) SetDescription(v string) *RepositorySummary { s.Description = &v @@ -11638,7 +11662,7 @@ type UpdatePackageVersionsStatusInput struct { // * Python and NuGet package versions do not contain a corresponding component, // package versions of those formats do not have a namespace. // - // * The namespace of a generic package is it’s namespace. + // * The namespace of a generic package is its namespace. Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"` // The name of the package with the version statuses to update. diff --git a/service/guardduty/api.go b/service/guardduty/api.go index a0ae8a42372..4f5a534364a 100644 --- a/service/guardduty/api.go +++ b/service/guardduty/api.go @@ -1343,6 +1343,10 @@ func (c *GuardDuty) DeleteMembersRequest(input *DeleteMembersInput) (req *reques // Deletes GuardDuty member accounts (to the current GuardDuty administrator // account) specified by the account IDs. // +// With autoEnableOrganizationMembers configuration for your organization set +// to ALL, you'll receive an error if you attempt to disable GuardDuty for a +// member account in your organization. +// // 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. @@ -2049,6 +2053,10 @@ func (c *GuardDuty) DisassociateFromAdministratorAccountRequest(input *Disassoci // Disassociates the current GuardDuty member account from its administrator // account. // +// With autoEnableOrganizationMembers configuration for your organization set +// to ALL, you'll receive an error if you attempt to disable GuardDuty in a +// member 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. @@ -2225,6 +2233,10 @@ func (c *GuardDuty) DisassociateMembersRequest(input *DisassociateMembersInput) // Disassociates GuardDuty member accounts (to the current administrator account) // specified by the account IDs. // +// With autoEnableOrganizationMembers configuration for your organization set +// to ALL, you'll receive an error if you attempt to disassociate a member account +// before removing them from your Amazon Web Services organization. +// // 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. @@ -5054,7 +5066,8 @@ func (c *GuardDuty) StartMonitoringMembersRequest(input *StartMonitoringMembersI // // Turns on GuardDuty monitoring of the specified member accounts. Use this // operation to restart monitoring of accounts that you stopped monitoring with -// the StopMonitoringMembers operation. +// the StopMonitoringMembers (https://docs.aws.amazon.com/guardduty/latest/APIReference/API_StopMonitoringMembers.html) +// operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5139,6 +5152,10 @@ func (c *GuardDuty) StopMonitoringMembersRequest(input *StopMonitoringMembersInp // Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers // operation to restart monitoring for those accounts. // +// With autoEnableOrganizationMembers configuration for your organization set +// to ALL, you'll receive an error if you attempt to stop monitoring the member +// accounts in your organization. +// // 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. @@ -5977,7 +5994,8 @@ func (c *GuardDuty) UpdateOrganizationConfigurationRequest(input *UpdateOrganiza // UpdateOrganizationConfiguration API operation for Amazon GuardDuty. // -// Updates the delegated administrator account with the values provided. +// Configures the delegated administrator account with the provided values. +// You must provide the value for either autoEnableOrganizationMembers or autoEnable. // // There might be regional differences because some data sources might not be // available in all the Amazon Web Services Regions where GuardDuty is presently @@ -9956,8 +9974,21 @@ type DescribeOrganizationConfigurationOutput struct { // Indicates whether GuardDuty is automatically enabled for accounts added to // the organization. // - // AutoEnable is a required field - AutoEnable *bool `locationName:"autoEnable" type:"boolean" required:"true"` + // Deprecated: This field is deprecated, use AutoEnableOrganizationMembers instead + AutoEnable *bool `locationName:"autoEnable" deprecated:"true" type:"boolean"` + + // Indicates the auto-enablement configuration of GuardDuty for the member accounts + // in the organization. + // + // * NEW: Indicates that new accounts joining the organization are configured + // to have GuardDuty enabled automatically. + // + // * ALL: Indicates that all accounts (new and existing members) in the organization + // are configured to have GuardDuty enabled automatically. + // + // * NONE: Indicates that no account in the organization will be configured + // to have GuardDuty enabled automatically. + AutoEnableOrganizationMembers *string `locationName:"autoEnableOrganizationMembers" type:"string" enum:"AutoEnableMembers"` // Describes which data sources are enabled automatically for member accounts. // @@ -10002,6 +10033,12 @@ func (s *DescribeOrganizationConfigurationOutput) SetAutoEnable(v bool) *Describ return s } +// SetAutoEnableOrganizationMembers sets the AutoEnableOrganizationMembers field's value. +func (s *DescribeOrganizationConfigurationOutput) SetAutoEnableOrganizationMembers(v string) *DescribeOrganizationConfigurationOutput { + s.AutoEnableOrganizationMembers = &v + return s +} + // SetDataSources sets the DataSources field's value. func (s *DescribeOrganizationConfigurationOutput) SetDataSources(v *OrganizationDataSourceConfigurationsResult) *DescribeOrganizationConfigurationOutput { s.DataSources = v @@ -20575,15 +20612,28 @@ type UpdateOrganizationConfigurationInput struct { // Indicates whether to automatically enable member accounts in the organization. // - // AutoEnable is a required field - AutoEnable *bool `locationName:"autoEnable" type:"boolean" required:"true"` + // Deprecated: This field is deprecated, use AutoEnableOrganizationMembers instead + AutoEnable *bool `locationName:"autoEnable" deprecated:"true" type:"boolean"` + + // Indicates the auto-enablement configuration of GuardDuty for the member accounts + // in the organization. + // + // * NEW: Indicates that new accounts joining the organization are configured + // to have GuardDuty enabled automatically. + // + // * ALL: Indicates that all accounts (new and existing members) in the organization + // are configured to have GuardDuty enabled automatically. + // + // * NONE: Indicates that no account in the organization will be configured + // to have GuardDuty enabled automatically. + AutoEnableOrganizationMembers *string `locationName:"autoEnableOrganizationMembers" type:"string" enum:"AutoEnableMembers"` // Describes which data sources will be updated. // // Deprecated: This parameter is deprecated, use Features instead DataSources *OrganizationDataSourceConfigurations `locationName:"dataSources" deprecated:"true" type:"structure"` - // The ID of the detector to update the delegated administrator for. + // The ID of the detector that configures the delegated administrator. // // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" min:"1" type:"string" required:"true"` @@ -20613,9 +20663,6 @@ func (s UpdateOrganizationConfigurationInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateOrganizationConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateOrganizationConfigurationInput"} - if s.AutoEnable == nil { - invalidParams.Add(request.NewErrParamRequired("AutoEnable")) - } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } @@ -20640,6 +20687,12 @@ func (s *UpdateOrganizationConfigurationInput) SetAutoEnable(v bool) *UpdateOrga return s } +// SetAutoEnableOrganizationMembers sets the AutoEnableOrganizationMembers field's value. +func (s *UpdateOrganizationConfigurationInput) SetAutoEnableOrganizationMembers(v string) *UpdateOrganizationConfigurationInput { + s.AutoEnableOrganizationMembers = &v + return s +} + // SetDataSources sets the DataSources field's value. func (s *UpdateOrganizationConfigurationInput) SetDataSources(v *OrganizationDataSourceConfigurations) *UpdateOrganizationConfigurationInput { s.DataSources = v @@ -21396,6 +21449,26 @@ func AdminStatus_Values() []string { } } +const ( + // AutoEnableMembersNew is a AutoEnableMembers enum value + AutoEnableMembersNew = "NEW" + + // AutoEnableMembersAll is a AutoEnableMembers enum value + AutoEnableMembersAll = "ALL" + + // AutoEnableMembersNone is a AutoEnableMembers enum value + AutoEnableMembersNone = "NONE" +) + +// AutoEnableMembers_Values returns all elements of the AutoEnableMembers enum +func AutoEnableMembers_Values() []string { + return []string{ + AutoEnableMembersNew, + AutoEnableMembersAll, + AutoEnableMembersNone, + } +} + const ( // CriterionKeyEc2InstanceArn is a CriterionKey enum value CriterionKeyEc2InstanceArn = "EC2_INSTANCE_ARN" diff --git a/service/ivsrealtime/api.go b/service/ivsrealtime/api.go new file mode 100644 index 00000000000..a3519fd091d --- /dev/null +++ b/service/ivsrealtime/api.go @@ -0,0 +1,2629 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ivsrealtime + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opCreateParticipantToken = "CreateParticipantToken" + +// CreateParticipantTokenRequest generates a "aws/request.Request" representing the +// client's request for the CreateParticipantToken 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 CreateParticipantToken for more information on using the CreateParticipantToken +// 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 CreateParticipantTokenRequest method. +// req, resp := client.CreateParticipantTokenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/CreateParticipantToken +func (c *IVSRealTime) CreateParticipantTokenRequest(input *CreateParticipantTokenInput) (req *request.Request, output *CreateParticipantTokenOutput) { + op := &request.Operation{ + Name: opCreateParticipantToken, + HTTPMethod: "POST", + HTTPPath: "/CreateParticipantToken", + } + + if input == nil { + input = &CreateParticipantTokenInput{} + } + + output = &CreateParticipantTokenOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateParticipantToken API operation for Amazon Interactive Video Service RealTime. +// +// Creates an additional token for a specified stage. This can be done after +// stage creation or when tokens expire. Tokens always are scoped to the stage +// for which they are created. +// +// Encryption keys are owned by Amazon IVS and never used directly by your application. +// +// 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 Interactive Video Service RealTime's +// API operation CreateParticipantToken for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - AccessDeniedException +// +// - ServiceQuotaExceededException +// +// - PendingVerification +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/CreateParticipantToken +func (c *IVSRealTime) CreateParticipantToken(input *CreateParticipantTokenInput) (*CreateParticipantTokenOutput, error) { + req, out := c.CreateParticipantTokenRequest(input) + return out, req.Send() +} + +// CreateParticipantTokenWithContext is the same as CreateParticipantToken with the addition of +// the ability to pass a context and additional request options. +// +// See CreateParticipantToken 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 *IVSRealTime) CreateParticipantTokenWithContext(ctx aws.Context, input *CreateParticipantTokenInput, opts ...request.Option) (*CreateParticipantTokenOutput, error) { + req, out := c.CreateParticipantTokenRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateStage = "CreateStage" + +// CreateStageRequest generates a "aws/request.Request" representing the +// client's request for the CreateStage 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 CreateStage for more information on using the CreateStage +// 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 CreateStageRequest method. +// req, resp := client.CreateStageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/CreateStage +func (c *IVSRealTime) CreateStageRequest(input *CreateStageInput) (req *request.Request, output *CreateStageOutput) { + op := &request.Operation{ + Name: opCreateStage, + HTTPMethod: "POST", + HTTPPath: "/CreateStage", + } + + if input == nil { + input = &CreateStageInput{} + } + + output = &CreateStageOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateStage API operation for Amazon Interactive Video Service RealTime. +// +// Creates a new stage (and optionally participant tokens). +// +// 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 Interactive Video Service RealTime's +// API operation CreateStage for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - AccessDeniedException +// +// - ServiceQuotaExceededException +// +// - PendingVerification +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/CreateStage +func (c *IVSRealTime) CreateStage(input *CreateStageInput) (*CreateStageOutput, error) { + req, out := c.CreateStageRequest(input) + return out, req.Send() +} + +// CreateStageWithContext is the same as CreateStage with the addition of +// the ability to pass a context and additional request options. +// +// See CreateStage 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 *IVSRealTime) CreateStageWithContext(ctx aws.Context, input *CreateStageInput, opts ...request.Option) (*CreateStageOutput, error) { + req, out := c.CreateStageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteStage = "DeleteStage" + +// DeleteStageRequest generates a "aws/request.Request" representing the +// client's request for the DeleteStage 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 DeleteStage for more information on using the DeleteStage +// 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 DeleteStageRequest method. +// req, resp := client.DeleteStageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/DeleteStage +func (c *IVSRealTime) DeleteStageRequest(input *DeleteStageInput) (req *request.Request, output *DeleteStageOutput) { + op := &request.Operation{ + Name: opDeleteStage, + HTTPMethod: "POST", + HTTPPath: "/DeleteStage", + } + + if input == nil { + input = &DeleteStageInput{} + } + + output = &DeleteStageOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteStage API operation for Amazon Interactive Video Service RealTime. +// +// Shuts down and deletes the specified stage (disconnecting all participants). +// +// 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 Interactive Video Service RealTime's +// API operation DeleteStage for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - AccessDeniedException +// +// - ConflictException +// +// - PendingVerification +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/DeleteStage +func (c *IVSRealTime) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) { + req, out := c.DeleteStageRequest(input) + return out, req.Send() +} + +// DeleteStageWithContext is the same as DeleteStage with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteStage 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 *IVSRealTime) DeleteStageWithContext(ctx aws.Context, input *DeleteStageInput, opts ...request.Option) (*DeleteStageOutput, error) { + req, out := c.DeleteStageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisconnectParticipant = "DisconnectParticipant" + +// DisconnectParticipantRequest generates a "aws/request.Request" representing the +// client's request for the DisconnectParticipant 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 DisconnectParticipant for more information on using the DisconnectParticipant +// 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 DisconnectParticipantRequest method. +// req, resp := client.DisconnectParticipantRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/DisconnectParticipant +func (c *IVSRealTime) DisconnectParticipantRequest(input *DisconnectParticipantInput) (req *request.Request, output *DisconnectParticipantOutput) { + op := &request.Operation{ + Name: opDisconnectParticipant, + HTTPMethod: "POST", + HTTPPath: "/DisconnectParticipant", + } + + if input == nil { + input = &DisconnectParticipantInput{} + } + + output = &DisconnectParticipantOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DisconnectParticipant API operation for Amazon Interactive Video Service RealTime. +// +// Disconnects a specified participant and revokes the participant permanently +// from a specified stage. +// +// 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 Interactive Video Service RealTime's +// API operation DisconnectParticipant for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - AccessDeniedException +// +// - PendingVerification +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/DisconnectParticipant +func (c *IVSRealTime) DisconnectParticipant(input *DisconnectParticipantInput) (*DisconnectParticipantOutput, error) { + req, out := c.DisconnectParticipantRequest(input) + return out, req.Send() +} + +// DisconnectParticipantWithContext is the same as DisconnectParticipant with the addition of +// the ability to pass a context and additional request options. +// +// See DisconnectParticipant 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 *IVSRealTime) DisconnectParticipantWithContext(ctx aws.Context, input *DisconnectParticipantInput, opts ...request.Option) (*DisconnectParticipantOutput, error) { + req, out := c.DisconnectParticipantRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetStage = "GetStage" + +// GetStageRequest generates a "aws/request.Request" representing the +// client's request for the GetStage 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 GetStage for more information on using the GetStage +// 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 GetStageRequest method. +// req, resp := client.GetStageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/GetStage +func (c *IVSRealTime) GetStageRequest(input *GetStageInput) (req *request.Request, output *GetStageOutput) { + op := &request.Operation{ + Name: opGetStage, + HTTPMethod: "POST", + HTTPPath: "/GetStage", + } + + if input == nil { + input = &GetStageInput{} + } + + output = &GetStageOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetStage API operation for Amazon Interactive Video Service RealTime. +// +// Gets information for the specified stage. +// +// 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 Interactive Video Service RealTime's +// API operation GetStage for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - AccessDeniedException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/GetStage +func (c *IVSRealTime) GetStage(input *GetStageInput) (*GetStageOutput, error) { + req, out := c.GetStageRequest(input) + return out, req.Send() +} + +// GetStageWithContext is the same as GetStage with the addition of +// the ability to pass a context and additional request options. +// +// See GetStage 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 *IVSRealTime) GetStageWithContext(ctx aws.Context, input *GetStageInput, opts ...request.Option) (*GetStageOutput, error) { + req, out := c.GetStageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListStages = "ListStages" + +// ListStagesRequest generates a "aws/request.Request" representing the +// client's request for the ListStages 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 ListStages for more information on using the ListStages +// 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 ListStagesRequest method. +// req, resp := client.ListStagesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/ListStages +func (c *IVSRealTime) ListStagesRequest(input *ListStagesInput) (req *request.Request, output *ListStagesOutput) { + op := &request.Operation{ + Name: opListStages, + HTTPMethod: "POST", + HTTPPath: "/ListStages", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListStagesInput{} + } + + output = &ListStagesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListStages API operation for Amazon Interactive Video Service RealTime. +// +// Gets summary information about all stages in your account, in the AWS region +// where the API request is processed. +// +// 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 Interactive Video Service RealTime's +// API operation ListStages for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - AccessDeniedException +// +// - ConflictException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/ListStages +func (c *IVSRealTime) ListStages(input *ListStagesInput) (*ListStagesOutput, error) { + req, out := c.ListStagesRequest(input) + return out, req.Send() +} + +// ListStagesWithContext is the same as ListStages with the addition of +// the ability to pass a context and additional request options. +// +// See ListStages 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 *IVSRealTime) ListStagesWithContext(ctx aws.Context, input *ListStagesInput, opts ...request.Option) (*ListStagesOutput, error) { + req, out := c.ListStagesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListStagesPages iterates over the pages of a ListStages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListStages 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 ListStages operation. +// pageNum := 0 +// err := client.ListStagesPages(params, +// func(page *ivsrealtime.ListStagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IVSRealTime) ListStagesPages(input *ListStagesInput, fn func(*ListStagesOutput, bool) bool) error { + return c.ListStagesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListStagesPagesWithContext same as ListStagesPages 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 *IVSRealTime) ListStagesPagesWithContext(ctx aws.Context, input *ListStagesInput, fn func(*ListStagesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListStagesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListStagesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListStagesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/ListTagsForResource +func (c *IVSRealTime) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Amazon Interactive Video Service RealTime. +// +// Gets information about AWS tags for the specified ARN. +// +// 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 Interactive Video Service RealTime's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/ListTagsForResource +func (c *IVSRealTime) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IVSRealTime) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/TagResource +func (c *IVSRealTime) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon Interactive Video Service RealTime. +// +// Adds or updates tags for the AWS resource with the specified ARN. +// +// 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 Interactive Video Service RealTime's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/TagResource +func (c *IVSRealTime) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IVSRealTime) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/UntagResource +func (c *IVSRealTime) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon Interactive Video Service RealTime. +// +// Removes tags from the resource with the specified ARN. +// +// 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 Interactive Video Service RealTime's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/UntagResource +func (c *IVSRealTime) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IVSRealTime) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateStage = "UpdateStage" + +// UpdateStageRequest generates a "aws/request.Request" representing the +// client's request for the UpdateStage 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 UpdateStage for more information on using the UpdateStage +// 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 UpdateStageRequest method. +// req, resp := client.UpdateStageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/UpdateStage +func (c *IVSRealTime) UpdateStageRequest(input *UpdateStageInput) (req *request.Request, output *UpdateStageOutput) { + op := &request.Operation{ + Name: opUpdateStage, + HTTPMethod: "POST", + HTTPPath: "/UpdateStage", + } + + if input == nil { + input = &UpdateStageInput{} + } + + output = &UpdateStageOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateStage API operation for Amazon Interactive Video Service RealTime. +// +// Updates a stage’s configuration. +// +// 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 Interactive Video Service RealTime's +// API operation UpdateStage for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - AccessDeniedException +// +// - ServiceQuotaExceededException +// +// - PendingVerification +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/UpdateStage +func (c *IVSRealTime) UpdateStage(input *UpdateStageInput) (*UpdateStageOutput, error) { + req, out := c.UpdateStageRequest(input) + return out, req.Send() +} + +// UpdateStageWithContext is the same as UpdateStage with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateStage 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 *IVSRealTime) UpdateStageWithContext(ctx aws.Context, input *UpdateStageInput, opts ...request.Option) (*UpdateStageOutput, error) { + req, out := c.UpdateStageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // User does not have sufficient access to perform this action. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Updating or deleting a resource can cause an inconsistent state. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateParticipantTokenInput struct { + _ struct{} `type:"structure"` + + // Application-provided attributes to encode into the token and attach to a + // stage. Map keys and values can contain UTF-8 encoded text. The maximum length + // of this field is 1 KB total. This field is exposed to all stage participants + // and should not be used for personally identifying, confidential, or sensitive + // information. + Attributes map[string]*string `locationName:"attributes" type:"map"` + + // Set of capabilities that the user is allowed to perform in the stage. Default: + // PUBLISH, SUBSCRIBE. + Capabilities []*string `locationName:"capabilities" type:"list" enum:"ParticipantTokenCapability"` + + // Duration (in minutes), after which the token expires. Default: 60 (1 hour). + Duration *int64 `locationName:"duration" min:"1" type:"integer"` + + // ARN of the stage to which this token is scoped. + // + // StageArn is a required field + StageArn *string `locationName:"stageArn" min:"1" type:"string" required:"true"` + + // Name that can be specified to help identify the token. This can be any UTF-8 + // encoded text. This field is exposed to all stage participants and should + // not be used for personally identifying, confidential, or sensitive information. + UserId *string `locationName:"userId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateParticipantTokenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateParticipantTokenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateParticipantTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateParticipantTokenInput"} + if s.Duration != nil && *s.Duration < 1 { + invalidParams.Add(request.NewErrParamMinValue("Duration", 1)) + } + if s.StageArn == nil { + invalidParams.Add(request.NewErrParamRequired("StageArn")) + } + if s.StageArn != nil && len(*s.StageArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributes sets the Attributes field's value. +func (s *CreateParticipantTokenInput) SetAttributes(v map[string]*string) *CreateParticipantTokenInput { + s.Attributes = v + return s +} + +// SetCapabilities sets the Capabilities field's value. +func (s *CreateParticipantTokenInput) SetCapabilities(v []*string) *CreateParticipantTokenInput { + s.Capabilities = v + return s +} + +// SetDuration sets the Duration field's value. +func (s *CreateParticipantTokenInput) SetDuration(v int64) *CreateParticipantTokenInput { + s.Duration = &v + return s +} + +// SetStageArn sets the StageArn field's value. +func (s *CreateParticipantTokenInput) SetStageArn(v string) *CreateParticipantTokenInput { + s.StageArn = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateParticipantTokenInput) SetUserId(v string) *CreateParticipantTokenInput { + s.UserId = &v + return s +} + +type CreateParticipantTokenOutput struct { + _ struct{} `type:"structure"` + + // The participant token that was created. + ParticipantToken *ParticipantToken `locationName:"participantToken" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateParticipantTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateParticipantTokenOutput) GoString() string { + return s.String() +} + +// SetParticipantToken sets the ParticipantToken field's value. +func (s *CreateParticipantTokenOutput) SetParticipantToken(v *ParticipantToken) *CreateParticipantTokenOutput { + s.ParticipantToken = v + return s +} + +type CreateStageInput struct { + _ struct{} `type:"structure"` + + // Optional name that can be specified for the stage being created. + Name *string `locationName:"name" type:"string"` + + // Array of participant token configuration objects to attach to the new stage. + ParticipantTokenConfigurations []*ParticipantTokenConfiguration `locationName:"participantTokenConfigurations" type:"list"` + + // Tags attached to the resource. Array of maps, each of the form string:string + // (key:value). See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) + // for details, including restrictions that apply to tags and "Tag naming limits + // and requirements"; Amazon IVS has no constraints on tags beyond what is documented + // there. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateStageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateStageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateStageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateStageInput"} + if s.ParticipantTokenConfigurations != nil { + for i, v := range s.ParticipantTokenConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParticipantTokenConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateStageInput) SetName(v string) *CreateStageInput { + s.Name = &v + return s +} + +// SetParticipantTokenConfigurations sets the ParticipantTokenConfigurations field's value. +func (s *CreateStageInput) SetParticipantTokenConfigurations(v []*ParticipantTokenConfiguration) *CreateStageInput { + s.ParticipantTokenConfigurations = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateStageInput) SetTags(v map[string]*string) *CreateStageInput { + s.Tags = v + return s +} + +type CreateStageOutput struct { + _ struct{} `type:"structure"` + + // Participant tokens attached to the stage. These correspond to the participants + // in the request. + ParticipantTokens []*ParticipantToken `locationName:"participantTokens" type:"list"` + + // The stage that was created. + Stage *Stage `locationName:"stage" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateStageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateStageOutput) GoString() string { + return s.String() +} + +// SetParticipantTokens sets the ParticipantTokens field's value. +func (s *CreateStageOutput) SetParticipantTokens(v []*ParticipantToken) *CreateStageOutput { + s.ParticipantTokens = v + return s +} + +// SetStage sets the Stage field's value. +func (s *CreateStageOutput) SetStage(v *Stage) *CreateStageOutput { + s.Stage = v + return s +} + +type DeleteStageInput struct { + _ struct{} `type:"structure"` + + // ARN of the stage to be deleted. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteStageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteStageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteStageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteStageInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *DeleteStageInput) SetArn(v string) *DeleteStageInput { + s.Arn = &v + return s +} + +type DeleteStageOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteStageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteStageOutput) GoString() string { + return s.String() +} + +type DisconnectParticipantInput struct { + _ struct{} `type:"structure"` + + // Identifier of the participant to be disconnected. This is returned by CreateParticipantToken. + // + // ParticipantId is a required field + ParticipantId *string `locationName:"participantId" type:"string" required:"true"` + + // Description of why this participant is being disconnected. + Reason *string `locationName:"reason" type:"string"` + + // ARN of the stage to which the participant is attached. + // + // StageArn is a required field + StageArn *string `locationName:"stageArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisconnectParticipantInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisconnectParticipantInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisconnectParticipantInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisconnectParticipantInput"} + if s.ParticipantId == nil { + invalidParams.Add(request.NewErrParamRequired("ParticipantId")) + } + if s.StageArn == nil { + invalidParams.Add(request.NewErrParamRequired("StageArn")) + } + if s.StageArn != nil && len(*s.StageArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetParticipantId sets the ParticipantId field's value. +func (s *DisconnectParticipantInput) SetParticipantId(v string) *DisconnectParticipantInput { + s.ParticipantId = &v + return s +} + +// SetReason sets the Reason field's value. +func (s *DisconnectParticipantInput) SetReason(v string) *DisconnectParticipantInput { + s.Reason = &v + return s +} + +// SetStageArn sets the StageArn field's value. +func (s *DisconnectParticipantInput) SetStageArn(v string) *DisconnectParticipantInput { + s.StageArn = &v + return s +} + +type DisconnectParticipantOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisconnectParticipantOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisconnectParticipantOutput) GoString() string { + return s.String() +} + +type GetStageInput struct { + _ struct{} `type:"structure"` + + // ARN of the stage for which the information is to be retrieved. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetStageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetStageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetStageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetStageInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *GetStageInput) SetArn(v string) *GetStageInput { + s.Arn = &v + return s +} + +type GetStageOutput struct { + _ struct{} `type:"structure"` + + // Object specifying a stage. + Stage *Stage `locationName:"stage" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetStageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetStageOutput) GoString() string { + return s.String() +} + +// SetStage sets the Stage field's value. +func (s *GetStageOutput) SetStage(v *Stage) *GetStageOutput { + s.Stage = v + return s +} + +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Unexpected error during processing of request. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListStagesInput struct { + _ struct{} `type:"structure"` + + // Maximum number of results to return. Default: 50. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The first stage to retrieve. This is used for pagination; see the nextToken + // response field. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListStagesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListStagesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListStagesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListStagesInput"} + 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 *ListStagesInput) SetMaxResults(v int64) *ListStagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListStagesInput) SetNextToken(v string) *ListStagesInput { + s.NextToken = &v + return s +} + +type ListStagesOutput struct { + _ struct{} `type:"structure"` + + // If there are more rooms than maxResults, use nextToken in the request to + // get the next set. + NextToken *string `locationName:"nextToken" type:"string"` + + // List of the matching stages (summary information only). + // + // Stages is a required field + Stages []*StageSummary `locationName:"stages" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListStagesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListStagesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListStagesOutput) SetNextToken(v string) *ListStagesOutput { + s.NextToken = &v + return s +} + +// SetStages sets the Stages field's value. +func (s *ListStagesOutput) SetStages(v []*StageSummary) *ListStagesOutput { + s.Stages = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ARN of the resource to be retrieved. The ARN must be URL-encoded. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // Tags attached to the resource. Array of maps, each of the form string:string + // (key:value). + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// Object specifying a participant token in a stage. +type ParticipantToken struct { + _ struct{} `type:"structure"` + + // Application-provided attributes to encode into the token and attach to a + // stage. This field is exposed to all stage participants and should not be + // used for personally identifying, confidential, or sensitive information. + Attributes map[string]*string `locationName:"attributes" type:"map"` + + // Set of capabilities that the user is allowed to perform in the stage. + Capabilities []*string `locationName:"capabilities" type:"list" enum:"ParticipantTokenCapability"` + + // Duration (in minutes), after which the participant token expires. Default: + // 60 (1 hour). + Duration *int64 `locationName:"duration" min:"1" type:"integer"` + + // ISO 8601 timestamp (returned as a string) for when this token expires. + ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp"` + + // Unique identifier for this participant token, assigned by IVS. + ParticipantId *string `locationName:"participantId" type:"string"` + + // The issued client token, encrypted. + Token *string `locationName:"token" type:"string"` + + // Name to help identify the token. This can be any UTF-8 encoded text. This + // field is exposed to all stage participants and should not be used for personally + // identifying, confidential, or sensitive information. + UserId *string `locationName:"userId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ParticipantToken) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ParticipantToken) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *ParticipantToken) SetAttributes(v map[string]*string) *ParticipantToken { + s.Attributes = v + return s +} + +// SetCapabilities sets the Capabilities field's value. +func (s *ParticipantToken) SetCapabilities(v []*string) *ParticipantToken { + s.Capabilities = v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ParticipantToken) SetDuration(v int64) *ParticipantToken { + s.Duration = &v + return s +} + +// SetExpirationTime sets the ExpirationTime field's value. +func (s *ParticipantToken) SetExpirationTime(v time.Time) *ParticipantToken { + s.ExpirationTime = &v + return s +} + +// SetParticipantId sets the ParticipantId field's value. +func (s *ParticipantToken) SetParticipantId(v string) *ParticipantToken { + s.ParticipantId = &v + return s +} + +// SetToken sets the Token field's value. +func (s *ParticipantToken) SetToken(v string) *ParticipantToken { + s.Token = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *ParticipantToken) SetUserId(v string) *ParticipantToken { + s.UserId = &v + return s +} + +// Object specifying a participant token configuration in a stage. +type ParticipantTokenConfiguration struct { + _ struct{} `type:"structure"` + + // Application-provided attributes to encode into the corresponding participant + // token and attach to a stage. Map keys and values can contain UTF-8 encoded + // text. The maximum length of this field is 1 KB total. This field is exposed + // to all stage participants and should not be used for personally identifying, + // confidential, or sensitive information. + Attributes map[string]*string `locationName:"attributes" type:"map"` + + // Set of capabilities that the user is allowed to perform in the stage. + Capabilities []*string `locationName:"capabilities" type:"list" enum:"ParticipantTokenCapability"` + + // Duration (in minutes), after which the corresponding participant token expires. + // Default: 60 (1 hour). + Duration *int64 `locationName:"duration" min:"1" type:"integer"` + + // Name that can be specified to help identify the corresponding participant + // token. This can be any UTF-8 encoded text. This field is exposed to all stage + // participants and should not be used for personally identifying, confidential, + // or sensitive information. + UserId *string `locationName:"userId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ParticipantTokenConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ParticipantTokenConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ParticipantTokenConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParticipantTokenConfiguration"} + if s.Duration != nil && *s.Duration < 1 { + invalidParams.Add(request.NewErrParamMinValue("Duration", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributes sets the Attributes field's value. +func (s *ParticipantTokenConfiguration) SetAttributes(v map[string]*string) *ParticipantTokenConfiguration { + s.Attributes = v + return s +} + +// SetCapabilities sets the Capabilities field's value. +func (s *ParticipantTokenConfiguration) SetCapabilities(v []*string) *ParticipantTokenConfiguration { + s.Capabilities = v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ParticipantTokenConfiguration) SetDuration(v int64) *ParticipantTokenConfiguration { + s.Duration = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *ParticipantTokenConfiguration) SetUserId(v string) *ParticipantTokenConfiguration { + s.UserId = &v + return s +} + +type PendingVerification struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Your account is pending verification. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PendingVerification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PendingVerification) GoString() string { + return s.String() +} + +func newErrorPendingVerification(v protocol.ResponseMetadata) error { + return &PendingVerification{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *PendingVerification) Code() string { + return "PendingVerification" +} + +// Message returns the exception's message. +func (s *PendingVerification) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *PendingVerification) OrigErr() error { + return nil +} + +func (s *PendingVerification) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *PendingVerification) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *PendingVerification) RequestID() string { + return s.RespMetadata.RequestID +} + +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Request references a resource which does not exist. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Request would cause a service quota to be exceeded. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Object specifying a stage. +type Stage struct { + _ struct{} `type:"structure"` + + // ID of the active session within the stage. + ActiveSessionId *string `locationName:"activeSessionId" min:"16" type:"string"` + + // Stage ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Stage name. + Name *string `locationName:"name" type:"string"` + + // Tags attached to the resource. Array of maps, each of the form string:string + // (key:value). See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) + // for details, including restrictions that apply to tags and "Tag naming limits + // and requirements"; Amazon IVS has no constraints on tags beyond what is documented + // there. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Stage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Stage) GoString() string { + return s.String() +} + +// SetActiveSessionId sets the ActiveSessionId field's value. +func (s *Stage) SetActiveSessionId(v string) *Stage { + s.ActiveSessionId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Stage) SetArn(v string) *Stage { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *Stage) SetName(v string) *Stage { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Stage) SetTags(v map[string]*string) *Stage { + s.Tags = v + return s +} + +// Summary information about a stage. +type StageSummary struct { + _ struct{} `type:"structure"` + + // ID of the active session within the stage. + ActiveSessionId *string `locationName:"activeSessionId" min:"16" type:"string"` + + // Stage ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Stage name. + Name *string `locationName:"name" type:"string"` + + // Tags attached to the resource. Array of maps, each of the form string:string + // (key:value). See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) + // for details, including restrictions that apply to tags and "Tag naming limits + // and requirements"; Amazon IVS has no constraints on tags beyond what is documented + // there. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StageSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StageSummary) GoString() string { + return s.String() +} + +// SetActiveSessionId sets the ActiveSessionId field's value. +func (s *StageSummary) SetActiveSessionId(v string) *StageSummary { + s.ActiveSessionId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *StageSummary) SetArn(v string) *StageSummary { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *StageSummary) SetName(v string) *StageSummary { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *StageSummary) SetTags(v map[string]*string) *StageSummary { + s.Tags = v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the resource to be tagged. The ARN must be URL-encoded. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // Array of tags to be added or updated. Array of maps, each of the form string:string + // (key:value). See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) + // for details, including restrictions that apply to tags and "Tag naming limits + // and requirements"; Amazon IVS has no constraints beyond what is documented + // there. + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ARN of the resource to be untagged. The ARN must be URL-encoded. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // Array of tags to be removed. Array of maps, each of the form string:string + // (key:value). See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) + // for details, including restrictions that apply to tags and "Tag naming limits + // and requirements"; Amazon IVS has no constraints beyond what is documented + // there. + // + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +type UpdateStageInput struct { + _ struct{} `type:"structure"` + + // ARN of the stage to be updated. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Name of the stage to be updated. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateStageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateStageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateStageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateStageInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *UpdateStageInput) SetArn(v string) *UpdateStageInput { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateStageInput) SetName(v string) *UpdateStageInput { + s.Name = &v + return s +} + +type UpdateStageOutput struct { + _ struct{} `type:"structure"` + + // The updated stage. + Stage *Stage `locationName:"stage" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateStageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateStageOutput) GoString() string { + return s.String() +} + +// SetStage sets the Stage field's value. +func (s *UpdateStageOutput) SetStage(v *Stage) *UpdateStageOutput { + s.Stage = v + return s +} + +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The input fails to satisfy the constraints specified by an Amazon Web Services + // service. + ExceptionMessage *string `locationName:"exceptionMessage" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +const ( + // ParticipantTokenCapabilityPublish is a ParticipantTokenCapability enum value + ParticipantTokenCapabilityPublish = "PUBLISH" + + // ParticipantTokenCapabilitySubscribe is a ParticipantTokenCapability enum value + ParticipantTokenCapabilitySubscribe = "SUBSCRIBE" +) + +// ParticipantTokenCapability_Values returns all elements of the ParticipantTokenCapability enum +func ParticipantTokenCapability_Values() []string { + return []string{ + ParticipantTokenCapabilityPublish, + ParticipantTokenCapabilitySubscribe, + } +} diff --git a/service/ivsrealtime/doc.go b/service/ivsrealtime/doc.go new file mode 100644 index 00000000000..c928e7019b1 --- /dev/null +++ b/service/ivsrealtime/doc.go @@ -0,0 +1,92 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package ivsrealtime provides the client and types for making API +// requests to Amazon Interactive Video Service RealTime. +// +// # Introduction +// +// The Amazon Interactive Video Service (IVS) stage API is REST compatible, +// using a standard HTTP API and an AWS EventBridge event stream for responses. +// JSON is used for both requests and responses, including errors. +// +// Terminology: The IVS stage API sometimes is referred to as the IVS RealTime +// API. +// +// # Resources +// +// The following resources contain information about your IVS live stream (see +// Getting Started with Amazon IVS (https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html)): +// +// - Stage — A stage is a virtual space where multiple participants can +// exchange audio and video in real time. +// +// # Tagging +// +// A tag is a metadata label that you assign to an AWS resource. A tag comprises +// a key and a value, both set by you. For example, you might set a tag as topic:nature +// to label a particular video category. See Tagging AWS Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) +// for more information, including restrictions that apply to tags and "Tag +// naming limits and requirements"; Amazon IVS stages has no service-specific +// constraints beyond what is documented there. +// +// Tags can help you identify and organize your AWS resources. For example, +// you can use the same tag for different resources to indicate that they are +// related. You can also use tags to manage access (see Access Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html)). +// +// The Amazon IVS stage API has these tag-related endpoints: TagResource, UntagResource, +// and ListTagsForResource. The following resource supports tagging: Stage. +// +// At most 50 tags can be applied to a resource. +// +// Stages Endpoints +// +// - CreateParticipantToken — Creates an additional token for a specified +// stage. This can be done after stage creation or when tokens expire. +// +// - CreateStage — Creates a new stage (and optionally participant tokens). +// +// - DeleteStage — Shuts down and deletes the specified stage (disconnecting +// all participants). +// +// - DisconnectParticipant — Disconnects a specified participant and revokes +// the participant permanently from a specified stage. +// +// - GetStage — Gets information for the specified stage. +// +// - ListStages — Gets summary information about all stages in your account, +// in the AWS region where the API request is processed. +// +// - UpdateStage — Updates a stage’s configuration. +// +// Tags Endpoints +// +// - ListTagsForResource — Gets information about AWS tags for the specified +// ARN. +// +// - TagResource — Adds or updates tags for the AWS resource with the specified +// ARN. +// +// - UntagResource — Removes tags from the resource with the specified +// ARN. +// +// See https://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14 for more information on this service. +// +// See ivsrealtime package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/ivsrealtime/ +// +// # Using the Client +// +// To contact Amazon Interactive Video Service RealTime with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Interactive Video Service RealTime client IVSRealTime for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/ivsrealtime/#New +package ivsrealtime diff --git a/service/ivsrealtime/errors.go b/service/ivsrealtime/errors.go new file mode 100644 index 00000000000..4a755e656f1 --- /dev/null +++ b/service/ivsrealtime/errors.go @@ -0,0 +1,48 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ivsrealtime + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodePendingVerification for service response error code + // "PendingVerification". + ErrCodePendingVerification = "PendingVerification" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "PendingVerification": newErrorPendingVerification, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ValidationException": newErrorValidationException, +} diff --git a/service/ivsrealtime/ivsrealtimeiface/interface.go b/service/ivsrealtime/ivsrealtimeiface/interface.go new file mode 100644 index 00000000000..92122efa0c1 --- /dev/null +++ b/service/ivsrealtime/ivsrealtimeiface/interface.go @@ -0,0 +1,107 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package ivsrealtimeiface provides an interface to enable mocking the Amazon Interactive Video Service RealTime service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package ivsrealtimeiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/ivsrealtime" +) + +// IVSRealTimeAPI provides an interface to enable mocking the +// ivsrealtime.IVSRealTime service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Interactive Video Service RealTime. +// func myFunc(svc ivsrealtimeiface.IVSRealTimeAPI) bool { +// // Make svc.CreateParticipantToken request +// } +// +// func main() { +// sess := session.New() +// svc := ivsrealtime.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockIVSRealTimeClient struct { +// ivsrealtimeiface.IVSRealTimeAPI +// } +// func (m *mockIVSRealTimeClient) CreateParticipantToken(input *ivsrealtime.CreateParticipantTokenInput) (*ivsrealtime.CreateParticipantTokenOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockIVSRealTimeClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type IVSRealTimeAPI interface { + CreateParticipantToken(*ivsrealtime.CreateParticipantTokenInput) (*ivsrealtime.CreateParticipantTokenOutput, error) + CreateParticipantTokenWithContext(aws.Context, *ivsrealtime.CreateParticipantTokenInput, ...request.Option) (*ivsrealtime.CreateParticipantTokenOutput, error) + CreateParticipantTokenRequest(*ivsrealtime.CreateParticipantTokenInput) (*request.Request, *ivsrealtime.CreateParticipantTokenOutput) + + CreateStage(*ivsrealtime.CreateStageInput) (*ivsrealtime.CreateStageOutput, error) + CreateStageWithContext(aws.Context, *ivsrealtime.CreateStageInput, ...request.Option) (*ivsrealtime.CreateStageOutput, error) + CreateStageRequest(*ivsrealtime.CreateStageInput) (*request.Request, *ivsrealtime.CreateStageOutput) + + DeleteStage(*ivsrealtime.DeleteStageInput) (*ivsrealtime.DeleteStageOutput, error) + DeleteStageWithContext(aws.Context, *ivsrealtime.DeleteStageInput, ...request.Option) (*ivsrealtime.DeleteStageOutput, error) + DeleteStageRequest(*ivsrealtime.DeleteStageInput) (*request.Request, *ivsrealtime.DeleteStageOutput) + + DisconnectParticipant(*ivsrealtime.DisconnectParticipantInput) (*ivsrealtime.DisconnectParticipantOutput, error) + DisconnectParticipantWithContext(aws.Context, *ivsrealtime.DisconnectParticipantInput, ...request.Option) (*ivsrealtime.DisconnectParticipantOutput, error) + DisconnectParticipantRequest(*ivsrealtime.DisconnectParticipantInput) (*request.Request, *ivsrealtime.DisconnectParticipantOutput) + + GetStage(*ivsrealtime.GetStageInput) (*ivsrealtime.GetStageOutput, error) + GetStageWithContext(aws.Context, *ivsrealtime.GetStageInput, ...request.Option) (*ivsrealtime.GetStageOutput, error) + GetStageRequest(*ivsrealtime.GetStageInput) (*request.Request, *ivsrealtime.GetStageOutput) + + ListStages(*ivsrealtime.ListStagesInput) (*ivsrealtime.ListStagesOutput, error) + ListStagesWithContext(aws.Context, *ivsrealtime.ListStagesInput, ...request.Option) (*ivsrealtime.ListStagesOutput, error) + ListStagesRequest(*ivsrealtime.ListStagesInput) (*request.Request, *ivsrealtime.ListStagesOutput) + + ListStagesPages(*ivsrealtime.ListStagesInput, func(*ivsrealtime.ListStagesOutput, bool) bool) error + ListStagesPagesWithContext(aws.Context, *ivsrealtime.ListStagesInput, func(*ivsrealtime.ListStagesOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*ivsrealtime.ListTagsForResourceInput) (*ivsrealtime.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *ivsrealtime.ListTagsForResourceInput, ...request.Option) (*ivsrealtime.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*ivsrealtime.ListTagsForResourceInput) (*request.Request, *ivsrealtime.ListTagsForResourceOutput) + + TagResource(*ivsrealtime.TagResourceInput) (*ivsrealtime.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *ivsrealtime.TagResourceInput, ...request.Option) (*ivsrealtime.TagResourceOutput, error) + TagResourceRequest(*ivsrealtime.TagResourceInput) (*request.Request, *ivsrealtime.TagResourceOutput) + + UntagResource(*ivsrealtime.UntagResourceInput) (*ivsrealtime.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *ivsrealtime.UntagResourceInput, ...request.Option) (*ivsrealtime.UntagResourceOutput, error) + UntagResourceRequest(*ivsrealtime.UntagResourceInput) (*request.Request, *ivsrealtime.UntagResourceOutput) + + UpdateStage(*ivsrealtime.UpdateStageInput) (*ivsrealtime.UpdateStageOutput, error) + UpdateStageWithContext(aws.Context, *ivsrealtime.UpdateStageInput, ...request.Option) (*ivsrealtime.UpdateStageOutput, error) + UpdateStageRequest(*ivsrealtime.UpdateStageInput) (*request.Request, *ivsrealtime.UpdateStageOutput) +} + +var _ IVSRealTimeAPI = (*ivsrealtime.IVSRealTime)(nil) diff --git a/service/ivsrealtime/service.go b/service/ivsrealtime/service.go new file mode 100644 index 00000000000..edcc05b138a --- /dev/null +++ b/service/ivsrealtime/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ivsrealtime + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// IVSRealTime provides the API operation methods for making requests to +// Amazon Interactive Video Service RealTime. See this package's package overview docs +// for details on the service. +// +// IVSRealTime methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type IVSRealTime struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "IVS RealTime" // Name of service. + EndpointsID = "ivsrealtime" // ID to lookup a service endpoint with. + ServiceID = "IVS RealTime" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the IVSRealTime client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// +// mySession := session.Must(session.NewSession()) +// +// // Create a IVSRealTime client from just a session. +// svc := ivsrealtime.New(mySession) +// +// // Create a IVSRealTime client with additional configuration +// svc := ivsrealtime.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *IVSRealTime { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "ivs" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *IVSRealTime { + svc := &IVSRealTime{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2020-07-14", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a IVSRealTime operation and runs any +// custom request initialization. +func (c *IVSRealTime) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/mediaconvert/api.go b/service/mediaconvert/api.go index ec6342000af..0b14d7b137e 100644 --- a/service/mediaconvert/api.go +++ b/service/mediaconvert/api.go @@ -9942,19 +9942,15 @@ type DvbSubDestinationSettings struct { // must be identical. BackgroundOpacity *int64 `locationName:"backgroundOpacity" type:"integer"` - // Specify how MediaConvert handles the display definition segment (DDS). Keep - // the default, None (NONE), to exclude the DDS from this set of captions. Choose - // No display window (NO_DISPLAY_WINDOW) to have MediaConvert include the DDS - // but not include display window data. In this case, MediaConvert writes that - // information to the page composition segment (PCS) instead. Choose Specify - // (SPECIFIED) to have MediaConvert set up the display window based on the values - // that you specify in related job settings. For video resolutions that are - // 576 pixels or smaller in height, MediaConvert doesn't include the DDS, regardless - // of the value you choose for DDS handling (ddsHandling). In this case, it - // doesn't write the display window data to the PCS either. Related settings: - // Use the settings DDS x-coordinate (ddsXCoordinate) and DDS y-coordinate (ddsYCoordinate) - // to specify the offset between the top left corner of the display window and - // the top left corner of the video frame. All burn-in and DVB-Sub font settings + // Specify how MediaConvert handles the display definition segment (DDS). To + // exclude the DDS from this set of captions: Keep the default, None. To include + // the DDS: Choose Specified. When you do, also specify the offset coordinates + // of the display window with DDS x-coordinate and DDS y-coordinate. To include + // the DDS, but not include display window data: Choose No display window. When + // you do, you can write position metadata to the page composition segment (PCS) + // with DDS x-coordinate and DDS y-coordinate. For video resolutions with a + // height of 576 pixels or less, MediaConvert doesn't include the DDS, regardless + // of the value you choose for DDS handling. All burn-in and DVB-Sub font settings // must match. DdsHandling *string `locationName:"ddsHandling" type:"string" enum:"DvbddsHandling"` @@ -19128,11 +19124,11 @@ type MovSettings struct { // video codec is MPEG2. Mpeg2FourCCControl *string `locationName:"mpeg2FourCCControl" type:"string" enum:"MovMpeg2FourCCControl"` - // To make this output compatible with Omenon, keep the default value, OMNEON. - // Unless you need Omneon compatibility, set this value to NONE. When you keep - // the default value, OMNEON, MediaConvert increases the length of the edit - // list atom. This might cause file rejections when a recipient of the output - // file doesn't expct this extra padding. + // Unless you need Omneon compatibility: Keep the default value, None. To make + // this output compatible with Omneon: Choose Omneon. When you do, MediaConvert + // increases the length of the 'elst' edit list atom. Note that this might cause + // file rejections when a recipient of the output file doesn't expect this extra + // padding. PaddingControl *string `locationName:"paddingControl" type:"string" enum:"MovPaddingControl"` // Always keep the default value (SELF_CONTAINED) for this setting. @@ -30424,19 +30420,15 @@ func DvbSubtitlingType_Values() []string { } } -// Specify how MediaConvert handles the display definition segment (DDS). Keep -// the default, None (NONE), to exclude the DDS from this set of captions. Choose -// No display window (NO_DISPLAY_WINDOW) to have MediaConvert include the DDS -// but not include display window data. In this case, MediaConvert writes that -// information to the page composition segment (PCS) instead. Choose Specify -// (SPECIFIED) to have MediaConvert set up the display window based on the values -// that you specify in related job settings. For video resolutions that are -// 576 pixels or smaller in height, MediaConvert doesn't include the DDS, regardless -// of the value you choose for DDS handling (ddsHandling). In this case, it -// doesn't write the display window data to the PCS either. Related settings: -// Use the settings DDS x-coordinate (ddsXCoordinate) and DDS y-coordinate (ddsYCoordinate) -// to specify the offset between the top left corner of the display window and -// the top left corner of the video frame. All burn-in and DVB-Sub font settings +// Specify how MediaConvert handles the display definition segment (DDS). To +// exclude the DDS from this set of captions: Keep the default, None. To include +// the DDS: Choose Specified. When you do, also specify the offset coordinates +// of the display window with DDS x-coordinate and DDS y-coordinate. To include +// the DDS, but not include display window data: Choose No display window. When +// you do, you can write position metadata to the page composition segment (PCS) +// with DDS x-coordinate and DDS y-coordinate. For video resolutions with a +// height of 576 pixels or less, MediaConvert doesn't include the DDS, regardless +// of the value you choose for DDS handling. All burn-in and DVB-Sub font settings // must match. const ( // DvbddsHandlingNone is a DvbddsHandling enum value @@ -34818,11 +34810,11 @@ func MovMpeg2FourCCControl_Values() []string { } } -// To make this output compatible with Omenon, keep the default value, OMNEON. -// Unless you need Omneon compatibility, set this value to NONE. When you keep -// the default value, OMNEON, MediaConvert increases the length of the edit -// list atom. This might cause file rejections when a recipient of the output -// file doesn't expct this extra padding. +// Unless you need Omneon compatibility: Keep the default value, None. To make +// this output compatible with Omneon: Choose Omneon. When you do, MediaConvert +// increases the length of the 'elst' edit list atom. Note that this might cause +// file rejections when a recipient of the output file doesn't expect this extra +// padding. const ( // MovPaddingControlOmneon is a MovPaddingControl enum value MovPaddingControlOmneon = "OMNEON" diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 97e0987a7b8..ca4d10c1345 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -846,6 +846,97 @@ func (c *SageMaker) CreateAutoMLJobWithContext(ctx aws.Context, input *CreateAut return out, req.Send() } +const opCreateAutoMLJobV2 = "CreateAutoMLJobV2" + +// CreateAutoMLJobV2Request generates a "aws/request.Request" representing the +// client's request for the CreateAutoMLJobV2 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 CreateAutoMLJobV2 for more information on using the CreateAutoMLJobV2 +// 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 CreateAutoMLJobV2Request method. +// req, resp := client.CreateAutoMLJobV2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAutoMLJobV2 +func (c *SageMaker) CreateAutoMLJobV2Request(input *CreateAutoMLJobV2Input) (req *request.Request, output *CreateAutoMLJobV2Output) { + op := &request.Operation{ + Name: opCreateAutoMLJobV2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAutoMLJobV2Input{} + } + + output = &CreateAutoMLJobV2Output{} + req = c.newRequest(op, input, output) + return +} + +// CreateAutoMLJobV2 API operation for Amazon SageMaker Service. +// +// Creates an Amazon SageMaker AutoML job that uses non-tabular data such as +// images or text for Computer Vision or Natural Language Processing problems. +// +// Find the resulting model after you run an AutoML job V2 by calling . +// +// To create an AutoMLJob using tabular data, see . +// +// This API action is callable through SageMaker Canvas only. Calling it directly +// from the CLI or an SDK results in an error. +// +// 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 SageMaker Service's +// API operation CreateAutoMLJobV2 for usage and error information. +// +// Returned Error Types: +// +// - ResourceInUse +// Resource being accessed is in use. +// +// - ResourceLimitExceeded +// You have exceeded an SageMaker resource limit. For example, you might have +// too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAutoMLJobV2 +func (c *SageMaker) CreateAutoMLJobV2(input *CreateAutoMLJobV2Input) (*CreateAutoMLJobV2Output, error) { + req, out := c.CreateAutoMLJobV2Request(input) + return out, req.Send() +} + +// CreateAutoMLJobV2WithContext is the same as CreateAutoMLJobV2 with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAutoMLJobV2 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 *SageMaker) CreateAutoMLJobV2WithContext(ctx aws.Context, input *CreateAutoMLJobV2Input, opts ...request.Option) (*CreateAutoMLJobV2Output, error) { + req, out := c.CreateAutoMLJobV2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCodeRepository = "CreateCodeRepository" // CreateCodeRepositoryRequest generates a "aws/request.Request" representing the @@ -9404,6 +9495,87 @@ func (c *SageMaker) DescribeAutoMLJobWithContext(ctx aws.Context, input *Describ return out, req.Send() } +const opDescribeAutoMLJobV2 = "DescribeAutoMLJobV2" + +// DescribeAutoMLJobV2Request generates a "aws/request.Request" representing the +// client's request for the DescribeAutoMLJobV2 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 DescribeAutoMLJobV2 for more information on using the DescribeAutoMLJobV2 +// 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 DescribeAutoMLJobV2Request method. +// req, resp := client.DescribeAutoMLJobV2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAutoMLJobV2 +func (c *SageMaker) DescribeAutoMLJobV2Request(input *DescribeAutoMLJobV2Input) (req *request.Request, output *DescribeAutoMLJobV2Output) { + op := &request.Operation{ + Name: opDescribeAutoMLJobV2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAutoMLJobV2Input{} + } + + output = &DescribeAutoMLJobV2Output{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAutoMLJobV2 API operation for Amazon SageMaker Service. +// +// Returns information about an Amazon SageMaker AutoML V2 job. +// +// This API action is callable through SageMaker Canvas only. Calling it directly +// from the CLI or an SDK results in an error. +// +// 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 SageMaker Service's +// API operation DescribeAutoMLJobV2 for usage and error information. +// +// Returned Error Types: +// - ResourceNotFound +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAutoMLJobV2 +func (c *SageMaker) DescribeAutoMLJobV2(input *DescribeAutoMLJobV2Input) (*DescribeAutoMLJobV2Output, error) { + req, out := c.DescribeAutoMLJobV2Request(input) + return out, req.Send() +} + +// DescribeAutoMLJobV2WithContext is the same as DescribeAutoMLJobV2 with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAutoMLJobV2 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 *SageMaker) DescribeAutoMLJobV2WithContext(ctx aws.Context, input *DescribeAutoMLJobV2Input, opts ...request.Option) (*DescribeAutoMLJobV2Output, error) { + req, out := c.DescribeAutoMLJobV2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeCodeRepository = "DescribeCodeRepository" // DescribeCodeRepositoryRequest generates a "aws/request.Request" representing the @@ -31282,7 +31454,12 @@ type AutoMLCandidate struct { // The best candidate result from an AutoML training job. FinalAutoMLJobObjectiveMetric *FinalAutoMLJobObjectiveMetric `type:"structure"` - // Information about the inference container definitions. + // The mapping of all supported processing unit (CPU, GPU, etc...) to inference + // container definitions for the candidate. This field is populated for the + // V2 API only (for example, for jobs created by calling CreateAutoMLJobV2). + InferenceContainerDefinitions map[string][]*AutoMLContainerDefinition `type:"map"` + + // Information about the recommended inference container definitions. InferenceContainers []*AutoMLContainerDefinition `type:"list"` // The last modified time. @@ -31362,6 +31539,12 @@ func (s *AutoMLCandidate) SetFinalAutoMLJobObjectiveMetric(v *FinalAutoMLJobObje return s } +// SetInferenceContainerDefinitions sets the InferenceContainerDefinitions field's value. +func (s *AutoMLCandidate) SetInferenceContainerDefinitions(v map[string][]*AutoMLContainerDefinition) *AutoMLCandidate { + s.InferenceContainerDefinitions = v + return s +} + // SetInferenceContainers sets the InferenceContainers field's value. func (s *AutoMLCandidate) SetInferenceContainers(v []*AutoMLContainerDefinition) *AutoMLCandidate { s.InferenceContainers = v @@ -31757,8 +31940,13 @@ func (s *AutoMLDataSource) SetS3DataSource(v *AutoMLS3DataSource) *AutoMLDataSou } // This structure specifies how to split the data into train and validation -// datasets. The validation and training datasets must contain the same headers. -// The validation dataset must be less than 2 GB in size. +// datasets. +// +// If you are using the V1 API (for example CreateAutoMLJob) or the V2 API for +// Natural Language Processing problems (for example CreateAutoMLJobV2 with +// a TextClassificationJobConfig problem type), the validation and training +// datasets must contain the same headers. Also, for V1 API jobs, the validation +// dataset must be less than 2 GB in size. type AutoMLDataSplitConfig struct { _ struct{} `type:"structure"` @@ -31834,6 +32022,91 @@ func (s *AutoMLJobArtifacts) SetDataExplorationNotebookLocation(v string) *AutoM return s } +// A channel is a named input source that training algorithms can consume. This +// channel is used for the non tabular training data of an AutoML job using +// the V2 API. For tabular training data, see . For more information, see . +type AutoMLJobChannel struct { + _ struct{} `type:"structure"` + + // The type of channel. Defines whether the data are used for training or validation. + // The default value is training. Channels for training and validation must + // share the same ContentType + ChannelType *string `type:"string" enum:"AutoMLChannelType"` + + // The allowed compression types depend on the input format. We allow the compression + // type Gzip for S3Prefix inputs only. For all other inputs, the compression + // type should be None. If no compression type is provided, we default to None. + CompressionType *string `type:"string" enum:"CompressionType"` + + // The content type of the data from the input source. The following are the + // allowed content types for different problems: + // + // * ImageClassification: image/png, image/jpeg, image/* + // + // * TextClassification: text/csv;header=present + ContentType *string `type:"string"` + + // The data source for an AutoML channel. + DataSource *AutoMLDataSource `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AutoMLJobChannel) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AutoMLJobChannel) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoMLJobChannel) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoMLJobChannel"} + if s.DataSource != nil { + if err := s.DataSource.Validate(); err != nil { + invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelType sets the ChannelType field's value. +func (s *AutoMLJobChannel) SetChannelType(v string) *AutoMLJobChannel { + s.ChannelType = &v + return s +} + +// SetCompressionType sets the CompressionType field's value. +func (s *AutoMLJobChannel) SetCompressionType(v string) *AutoMLJobChannel { + s.CompressionType = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *AutoMLJobChannel) SetContentType(v string) *AutoMLJobChannel { + s.ContentType = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *AutoMLJobChannel) SetDataSource(v *AutoMLDataSource) *AutoMLJobChannel { + s.DataSource = v + return s +} + // How long a job is allowed to run, or how many candidates a job is allowed // to generate. type AutoMLJobCompletionCriteria struct { @@ -31849,11 +32122,17 @@ type AutoMLJobCompletionCriteria struct { MaxAutoMLJobRuntimeInSeconds *int64 `min:"1" type:"integer"` // The maximum number of times a training job is allowed to run. + // + // For V2 jobs (jobs created by calling CreateAutoMLJobV2), the supported value + // is 1. MaxCandidates *int64 `min:"1" type:"integer"` // The maximum time, in seconds, that each training job executed inside hyperparameter // tuning is allowed to run as part of a hyperparameter tuning job. For more // information, see the used by the action. + // + // For V2 jobs (jobs created by calling CreateAutoMLJobV2), this field controls + // the runtime of the job candidate. MaxRuntimePerTrainingJobInSeconds *int64 `min:"1" type:"integer"` } @@ -32026,7 +32305,9 @@ func (s *AutoMLJobConfig) SetSecurityConfig(v *AutoMLSecurityConfig) *AutoMLJobC return s } -// Specifies a metric to minimize or maximize as the objective of a job. +// Specifies a metric to minimize or maximize as the objective of a job. V2 +// API jobs (for example jobs created by calling CreateAutoMLJobV2), support +// Accuracy only. type AutoMLJobObjective struct { _ struct{} `type:"structure"` @@ -32471,30 +32752,103 @@ func (s *AutoMLPartialFailureReason) SetPartialFailureMessage(v string) *AutoMLP return s } -// The Amazon S3 data source. +// A collection of settings specific to the problem type used to configure an +// AutoML job using the V2 API. There must be one and only one config of the +// following type. +type AutoMLProblemTypeConfig struct { + _ struct{} `type:"structure"` + + // Settings used to configure an AutoML job using the V2 API for the image classification + // problem type. + ImageClassificationJobConfig *ImageClassificationJobConfig `type:"structure"` + + // Settings used to configure an AutoML job using the V2 API for the text classification + // problem type. + TextClassificationJobConfig *TextClassificationJobConfig `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AutoMLProblemTypeConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AutoMLProblemTypeConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoMLProblemTypeConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoMLProblemTypeConfig"} + if s.ImageClassificationJobConfig != nil { + if err := s.ImageClassificationJobConfig.Validate(); err != nil { + invalidParams.AddNested("ImageClassificationJobConfig", err.(request.ErrInvalidParams)) + } + } + if s.TextClassificationJobConfig != nil { + if err := s.TextClassificationJobConfig.Validate(); err != nil { + invalidParams.AddNested("TextClassificationJobConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetImageClassificationJobConfig sets the ImageClassificationJobConfig field's value. +func (s *AutoMLProblemTypeConfig) SetImageClassificationJobConfig(v *ImageClassificationJobConfig) *AutoMLProblemTypeConfig { + s.ImageClassificationJobConfig = v + return s +} + +// SetTextClassificationJobConfig sets the TextClassificationJobConfig field's value. +func (s *AutoMLProblemTypeConfig) SetTextClassificationJobConfig(v *TextClassificationJobConfig) *AutoMLProblemTypeConfig { + s.TextClassificationJobConfig = v + return s +} + +// Describes the Amazon S3 data source. type AutoMLS3DataSource struct { _ struct{} `type:"structure"` // The data type. // - // A ManifestFile should have the format shown below: - // - // [ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"}, - // - // "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1", - // - // "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2", - // - // ... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ] - // - // An S3Prefix should have the following format: - // - // s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE + // * If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker + // uses all objects that match the specified key name prefix for model training. + // The S3Prefix should have the following format: s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE + // + // * If you choose ManifestFile, S3Uri identifies an object that is a manifest + // file containing a list of object keys that you want SageMaker to use for + // model training. A ManifestFile should have the format shown below: [ {"prefix": + // "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"}, "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1", + // "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2", ... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" + // ] + // + // * If you choose AugmentedManifestFile, S3Uri identifies an object that + // is an augmented manifest file in JSON lines format. This file contains + // the data you want to use for model training. AugmentedManifestFile is + // available for V2 API jobs only (for example, for jobs created by calling + // CreateAutoMLJobV2). Here is a minimal, single-record example of an AugmentedManifestFile: + // {"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg", + // "label-metadata": {"class-name": "cat" } For more information on AugmentedManifestFile, + // see Provide Dataset Metadata to Training Jobs with an Augmented Manifest + // File (https://docs.aws.amazon.com/sagemaker/latest/dg/augmented-manifest.html). // // S3DataType is a required field S3DataType *string `type:"string" required:"true" enum:"AutoMLS3DataType"` - // The URL to the Amazon S3 data source. + // The URL to the Amazon S3 data source. The Uri refers to the Amazon S3 prefix + // or ManifestFile depending on the data type. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` @@ -36799,7 +37153,7 @@ type CreateAutoMLJobInput struct { // Defines the objective metric used to measure the predictive quality of an // AutoML job. You provide an AutoMLJobObjective$MetricName and Autopilot infers - // whether to minimize or maximize it. + // whether to minimize or maximize it. For , only Accuracy is supported. AutoMLJobObjective *AutoMLJobObjective `type:"structure"` // Generates possible candidates without training the models. A candidate is @@ -36826,8 +37180,8 @@ type CreateAutoMLJobInput struct { // OutputDataConfig is a required field OutputDataConfig *AutoMLOutputDataConfig `type:"structure" required:"true"` - // Defines the type of supervised learning available for the candidates. For - // more information, see Amazon SageMaker Autopilot problem types and algorithm + // Defines the type of supervised learning problem available for the candidates. + // For more information, see Amazon SageMaker Autopilot problem types and algorithm // support (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-problem-types.html). ProblemType *string `type:"string" enum:"ProblemType"` @@ -36836,8 +37190,11 @@ type CreateAutoMLJobInput struct { // RoleArn is a required field RoleArn *string `min:"20" type:"string" required:"true"` - // Each tag consists of a key and an optional value. Tag keys must be unique - // per resource. + // An array of key-value pairs. You can use tags to categorize your Amazon Web + // Services resources in different ways, for example, by purpose, owner, or + // environment. For more information, see Tagging Amazon Web ServicesResources + // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html). Tag keys + // must be unique per resource. Tags []*Tag `type:"list"` } @@ -37018,6 +37375,256 @@ func (s *CreateAutoMLJobOutput) SetAutoMLJobArn(v string) *CreateAutoMLJobOutput return s } +type CreateAutoMLJobV2Input struct { + _ struct{} `type:"structure"` + + // An array of channel objects describing the input data and their location. + // Each channel is a named input source. Similar to InputDataConfig (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateAutoMLJob.html#sagemaker-CreateAutoMLJob-request-InputDataConfig) + // supported by CreateAutoMLJob. The supported formats depend on the problem + // type: + // + // * ImageClassification: S3Prefix, ManifestFile, AugmentedManifestFile + // + // * TextClassification: S3Prefix + // + // AutoMLJobInputDataConfig is a required field + AutoMLJobInputDataConfig []*AutoMLJobChannel `min:"1" type:"list" required:"true"` + + // Identifies an Autopilot job. The name must be unique to your account and + // is case insensitive. + // + // AutoMLJobName is a required field + AutoMLJobName *string `min:"1" type:"string" required:"true"` + + // Specifies a metric to minimize or maximize as the objective of a job. For + // , only Accuracy is supported. + AutoMLJobObjective *AutoMLJobObjective `type:"structure"` + + // Defines the configuration settings of one of the supported problem types. + // + // AutoMLProblemTypeConfig is a required field + AutoMLProblemTypeConfig *AutoMLProblemTypeConfig `type:"structure" required:"true"` + + // This structure specifies how to split the data into train and validation + // datasets. + // + // If you are using the V1 API (for example CreateAutoMLJob) or the V2 API for + // Natural Language Processing problems (for example CreateAutoMLJobV2 with + // a TextClassificationJobConfig problem type), the validation and training + // datasets must contain the same headers. Also, for V1 API jobs, the validation + // dataset must be less than 2 GB in size. + DataSplitConfig *AutoMLDataSplitConfig `type:"structure"` + + // Specifies how to generate the endpoint name for an automatic one-click Autopilot + // model deployment. + ModelDeployConfig *ModelDeployConfig `type:"structure"` + + // Provides information about encryption and the Amazon S3 output path needed + // to store artifacts from an AutoML job. + // + // OutputDataConfig is a required field + OutputDataConfig *AutoMLOutputDataConfig `type:"structure" required:"true"` + + // The ARN of the role that is used to access the data. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // The security configuration for traffic encryption or Amazon VPC settings. + SecurityConfig *AutoMLSecurityConfig `type:"structure"` + + // An array of key-value pairs. You can use tags to categorize your Amazon Web + // Services resources in different ways, such as by purpose, owner, or environment. + // For more information, see Tagging Amazon Web ServicesResources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html). + // Tag keys must be unique per resource. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAutoMLJobV2Input) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAutoMLJobV2Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAutoMLJobV2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAutoMLJobV2Input"} + if s.AutoMLJobInputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("AutoMLJobInputDataConfig")) + } + if s.AutoMLJobInputDataConfig != nil && len(s.AutoMLJobInputDataConfig) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoMLJobInputDataConfig", 1)) + } + if s.AutoMLJobName == nil { + invalidParams.Add(request.NewErrParamRequired("AutoMLJobName")) + } + if s.AutoMLJobName != nil && len(*s.AutoMLJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoMLJobName", 1)) + } + if s.AutoMLProblemTypeConfig == nil { + invalidParams.Add(request.NewErrParamRequired("AutoMLProblemTypeConfig")) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + if s.AutoMLJobInputDataConfig != nil { + for i, v := range s.AutoMLJobInputDataConfig { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AutoMLJobInputDataConfig", i), err.(request.ErrInvalidParams)) + } + } + } + if s.AutoMLJobObjective != nil { + if err := s.AutoMLJobObjective.Validate(); err != nil { + invalidParams.AddNested("AutoMLJobObjective", err.(request.ErrInvalidParams)) + } + } + if s.AutoMLProblemTypeConfig != nil { + if err := s.AutoMLProblemTypeConfig.Validate(); err != nil { + invalidParams.AddNested("AutoMLProblemTypeConfig", err.(request.ErrInvalidParams)) + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.SecurityConfig != nil { + if err := s.SecurityConfig.Validate(); err != nil { + invalidParams.AddNested("SecurityConfig", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoMLJobInputDataConfig sets the AutoMLJobInputDataConfig field's value. +func (s *CreateAutoMLJobV2Input) SetAutoMLJobInputDataConfig(v []*AutoMLJobChannel) *CreateAutoMLJobV2Input { + s.AutoMLJobInputDataConfig = v + return s +} + +// SetAutoMLJobName sets the AutoMLJobName field's value. +func (s *CreateAutoMLJobV2Input) SetAutoMLJobName(v string) *CreateAutoMLJobV2Input { + s.AutoMLJobName = &v + return s +} + +// SetAutoMLJobObjective sets the AutoMLJobObjective field's value. +func (s *CreateAutoMLJobV2Input) SetAutoMLJobObjective(v *AutoMLJobObjective) *CreateAutoMLJobV2Input { + s.AutoMLJobObjective = v + return s +} + +// SetAutoMLProblemTypeConfig sets the AutoMLProblemTypeConfig field's value. +func (s *CreateAutoMLJobV2Input) SetAutoMLProblemTypeConfig(v *AutoMLProblemTypeConfig) *CreateAutoMLJobV2Input { + s.AutoMLProblemTypeConfig = v + return s +} + +// SetDataSplitConfig sets the DataSplitConfig field's value. +func (s *CreateAutoMLJobV2Input) SetDataSplitConfig(v *AutoMLDataSplitConfig) *CreateAutoMLJobV2Input { + s.DataSplitConfig = v + return s +} + +// SetModelDeployConfig sets the ModelDeployConfig field's value. +func (s *CreateAutoMLJobV2Input) SetModelDeployConfig(v *ModelDeployConfig) *CreateAutoMLJobV2Input { + s.ModelDeployConfig = v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *CreateAutoMLJobV2Input) SetOutputDataConfig(v *AutoMLOutputDataConfig) *CreateAutoMLJobV2Input { + s.OutputDataConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateAutoMLJobV2Input) SetRoleArn(v string) *CreateAutoMLJobV2Input { + s.RoleArn = &v + return s +} + +// SetSecurityConfig sets the SecurityConfig field's value. +func (s *CreateAutoMLJobV2Input) SetSecurityConfig(v *AutoMLSecurityConfig) *CreateAutoMLJobV2Input { + s.SecurityConfig = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAutoMLJobV2Input) SetTags(v []*Tag) *CreateAutoMLJobV2Input { + s.Tags = v + return s +} + +type CreateAutoMLJobV2Output struct { + _ struct{} `type:"structure"` + + // The unique ARN assigned to the AutoMLJob when it is created. + // + // AutoMLJobArn is a required field + AutoMLJobArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAutoMLJobV2Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateAutoMLJobV2Output) GoString() string { + return s.String() +} + +// SetAutoMLJobArn sets the AutoMLJobArn field's value. +func (s *CreateAutoMLJobV2Output) SetAutoMLJobArn(v string) *CreateAutoMLJobV2Output { + s.AutoMLJobArn = &v + return s +} + type CreateCodeRepositoryInput struct { _ struct{} `type:"structure"` @@ -52314,6 +52921,272 @@ func (s *DescribeAutoMLJobOutput) SetRoleArn(v string) *DescribeAutoMLJobOutput return s } +type DescribeAutoMLJobV2Input struct { + _ struct{} `type:"structure"` + + // Requests information about an AutoML V2 job using its unique name. + // + // AutoMLJobName is a required field + AutoMLJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAutoMLJobV2Input) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAutoMLJobV2Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAutoMLJobV2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAutoMLJobV2Input"} + if s.AutoMLJobName == nil { + invalidParams.Add(request.NewErrParamRequired("AutoMLJobName")) + } + if s.AutoMLJobName != nil && len(*s.AutoMLJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AutoMLJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoMLJobName sets the AutoMLJobName field's value. +func (s *DescribeAutoMLJobV2Input) SetAutoMLJobName(v string) *DescribeAutoMLJobV2Input { + s.AutoMLJobName = &v + return s +} + +type DescribeAutoMLJobV2Output struct { + _ struct{} `type:"structure"` + + // Returns the Amazon Resource Name (ARN) of the AutoML V2 job. + // + // AutoMLJobArn is a required field + AutoMLJobArn *string `min:"1" type:"string" required:"true"` + + // Returns an array of channel objects describing the input data and their location. + // + // AutoMLJobInputDataConfig is a required field + AutoMLJobInputDataConfig []*AutoMLJobChannel `min:"1" type:"list" required:"true"` + + // Returns the name of the AutoML V2 job. + // + // AutoMLJobName is a required field + AutoMLJobName *string `min:"1" type:"string" required:"true"` + + // Returns the job's objective. + AutoMLJobObjective *AutoMLJobObjective `type:"structure"` + + // Returns the secondary status of the AutoML V2 job. + // + // AutoMLJobSecondaryStatus is a required field + AutoMLJobSecondaryStatus *string `type:"string" required:"true" enum:"AutoMLJobSecondaryStatus"` + + // Returns the status of the AutoML V2 job. + // + // AutoMLJobStatus is a required field + AutoMLJobStatus *string `type:"string" required:"true" enum:"AutoMLJobStatus"` + + // Returns the configuration settings of the problem type set for the AutoML + // V2 job. + AutoMLProblemTypeConfig *AutoMLProblemTypeConfig `type:"structure"` + + // Information about the candidate produced by an AutoML training job V2, including + // its status, steps, and other properties. + BestCandidate *AutoMLCandidate `type:"structure"` + + // Returns the creation time of the AutoML V2 job. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // Returns the configuration settings of how the data are split into train and + // validation datasets. + DataSplitConfig *AutoMLDataSplitConfig `type:"structure"` + + // Returns the end time of the AutoML V2 job. + EndTime *time.Time `type:"timestamp"` + + // Returns the reason for the failure of the AutoML V2 job, when applicable. + FailureReason *string `type:"string"` + + // Returns the job's last modified time. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` + + // Indicates whether the model was deployed automatically to an endpoint and + // the name of that endpoint if deployed automatically. + ModelDeployConfig *ModelDeployConfig `type:"structure"` + + // Provides information about endpoint for the model deployment. + ModelDeployResult *ModelDeployResult `type:"structure"` + + // Returns the job's output data config. + // + // OutputDataConfig is a required field + OutputDataConfig *AutoMLOutputDataConfig `type:"structure" required:"true"` + + // Returns a list of reasons for partial failures within an AutoML V2 job. + PartialFailureReasons []*AutoMLPartialFailureReason `min:"1" type:"list"` + + // The ARN of the Identity and Access Management role that has read permission + // to the input data location and write permission to the output data location + // in Amazon S3. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // Returns the security configuration for traffic encryption or Amazon VPC settings. + SecurityConfig *AutoMLSecurityConfig `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAutoMLJobV2Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeAutoMLJobV2Output) GoString() string { + return s.String() +} + +// SetAutoMLJobArn sets the AutoMLJobArn field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLJobArn(v string) *DescribeAutoMLJobV2Output { + s.AutoMLJobArn = &v + return s +} + +// SetAutoMLJobInputDataConfig sets the AutoMLJobInputDataConfig field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLJobInputDataConfig(v []*AutoMLJobChannel) *DescribeAutoMLJobV2Output { + s.AutoMLJobInputDataConfig = v + return s +} + +// SetAutoMLJobName sets the AutoMLJobName field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLJobName(v string) *DescribeAutoMLJobV2Output { + s.AutoMLJobName = &v + return s +} + +// SetAutoMLJobObjective sets the AutoMLJobObjective field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLJobObjective(v *AutoMLJobObjective) *DescribeAutoMLJobV2Output { + s.AutoMLJobObjective = v + return s +} + +// SetAutoMLJobSecondaryStatus sets the AutoMLJobSecondaryStatus field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLJobSecondaryStatus(v string) *DescribeAutoMLJobV2Output { + s.AutoMLJobSecondaryStatus = &v + return s +} + +// SetAutoMLJobStatus sets the AutoMLJobStatus field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLJobStatus(v string) *DescribeAutoMLJobV2Output { + s.AutoMLJobStatus = &v + return s +} + +// SetAutoMLProblemTypeConfig sets the AutoMLProblemTypeConfig field's value. +func (s *DescribeAutoMLJobV2Output) SetAutoMLProblemTypeConfig(v *AutoMLProblemTypeConfig) *DescribeAutoMLJobV2Output { + s.AutoMLProblemTypeConfig = v + return s +} + +// SetBestCandidate sets the BestCandidate field's value. +func (s *DescribeAutoMLJobV2Output) SetBestCandidate(v *AutoMLCandidate) *DescribeAutoMLJobV2Output { + s.BestCandidate = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeAutoMLJobV2Output) SetCreationTime(v time.Time) *DescribeAutoMLJobV2Output { + s.CreationTime = &v + return s +} + +// SetDataSplitConfig sets the DataSplitConfig field's value. +func (s *DescribeAutoMLJobV2Output) SetDataSplitConfig(v *AutoMLDataSplitConfig) *DescribeAutoMLJobV2Output { + s.DataSplitConfig = v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeAutoMLJobV2Output) SetEndTime(v time.Time) *DescribeAutoMLJobV2Output { + s.EndTime = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeAutoMLJobV2Output) SetFailureReason(v string) *DescribeAutoMLJobV2Output { + s.FailureReason = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeAutoMLJobV2Output) SetLastModifiedTime(v time.Time) *DescribeAutoMLJobV2Output { + s.LastModifiedTime = &v + return s +} + +// SetModelDeployConfig sets the ModelDeployConfig field's value. +func (s *DescribeAutoMLJobV2Output) SetModelDeployConfig(v *ModelDeployConfig) *DescribeAutoMLJobV2Output { + s.ModelDeployConfig = v + return s +} + +// SetModelDeployResult sets the ModelDeployResult field's value. +func (s *DescribeAutoMLJobV2Output) SetModelDeployResult(v *ModelDeployResult) *DescribeAutoMLJobV2Output { + s.ModelDeployResult = v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *DescribeAutoMLJobV2Output) SetOutputDataConfig(v *AutoMLOutputDataConfig) *DescribeAutoMLJobV2Output { + s.OutputDataConfig = v + return s +} + +// SetPartialFailureReasons sets the PartialFailureReasons field's value. +func (s *DescribeAutoMLJobV2Output) SetPartialFailureReasons(v []*AutoMLPartialFailureReason) *DescribeAutoMLJobV2Output { + s.PartialFailureReasons = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeAutoMLJobV2Output) SetRoleArn(v string) *DescribeAutoMLJobV2Output { + s.RoleArn = &v + return s +} + +// SetSecurityConfig sets the SecurityConfig field's value. +func (s *DescribeAutoMLJobV2Output) SetSecurityConfig(v *AutoMLSecurityConfig) *DescribeAutoMLJobV2Output { + s.SecurityConfig = v + return s +} + type DescribeCodeRepositoryInput struct { _ struct{} `type:"structure"` @@ -71699,6 +72572,55 @@ func (s *Image) SetLastModifiedTime(v time.Time) *Image { return s } +// Stores the configuration information for the image classification problem +// of an AutoML job using the V2 API. +type ImageClassificationJobConfig struct { + _ struct{} `type:"structure"` + + // How long a job is allowed to run, or how many candidates a job is allowed + // to generate. + CompletionCriteria *AutoMLJobCompletionCriteria `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ImageClassificationJobConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ImageClassificationJobConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImageClassificationJobConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImageClassificationJobConfig"} + if s.CompletionCriteria != nil { + if err := s.CompletionCriteria.Validate(); err != nil { + invalidParams.AddNested("CompletionCriteria", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompletionCriteria sets the CompletionCriteria field's value. +func (s *ImageClassificationJobConfig) SetCompletionCriteria(v *AutoMLJobCompletionCriteria) *ImageClassificationJobConfig { + s.CompletionCriteria = v + return s +} + // Specifies whether the model container is in Amazon ECR or a private Docker // registry accessible from your Amazon Virtual Private Cloud (VPC). type ImageConfig struct { @@ -92848,8 +93770,8 @@ type OnlineStoreSecurityConfig struct { // Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon // S3 server-side encryption. // - // The caller (either IAM user or IAM role) of CreateFeatureGroup must have - // below permissions to the OnlineStore KmsKeyId: + // The caller (either user or IAM role) of CreateFeatureGroup must have below + // permissions to the OnlineStore KmsKeyId: // // * "kms:Encrypt" // @@ -95898,7 +96820,7 @@ type ProductionVariant struct { // You can use this parameter to turn on native Amazon Web Services Systems // Manager (SSM) access for a production variant behind an endpoint. By default, - // SSM access is disabled for all production variants behind an endpoints. You + // SSM access is disabled for all production variants behind an endpoint. You // can turn on or turn off SSM access for a production variant behind an existing // endpoint by creating a new endpoint configuration and calling UpdateEndpoint. EnableSSMAccess *bool `type:"boolean"` @@ -99528,7 +100450,9 @@ func (s *RepositoryAuthConfig) SetRepositoryCredentialsProviderArn(v string) *Re type ResolvedAttributes struct { _ struct{} `type:"structure"` - // Specifies a metric to minimize or maximize as the objective of a job. + // Specifies a metric to minimize or maximize as the objective of a job. V2 + // API jobs (for example jobs created by calling CreateAutoMLJobV2), support + // Accuracy only. AutoMLJobObjective *AutoMLJobObjective `type:"structure"` // How long a job is allowed to run, or how many candidates a job is allowed @@ -104324,6 +105248,81 @@ func (s *TensorBoardOutputConfig) SetS3OutputPath(v string) *TensorBoardOutputCo return s } +// Stores the configuration information for the text classification problem +// of an AutoML job using the V2 API. +type TextClassificationJobConfig struct { + _ struct{} `type:"structure"` + + // How long a job is allowed to run, or how many candidates a job is allowed + // to generate. + CompletionCriteria *AutoMLJobCompletionCriteria `type:"structure"` + + // The name of the column used to provide the sentences to be classified. It + // should not be the same as the target column. + ContentColumn *string `min:"1" type:"string"` + + // The name of the column used to provide the class labels. It should not be + // same as the content column. + TargetLabelColumn *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TextClassificationJobConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TextClassificationJobConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TextClassificationJobConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TextClassificationJobConfig"} + if s.ContentColumn != nil && len(*s.ContentColumn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContentColumn", 1)) + } + if s.TargetLabelColumn != nil && len(*s.TargetLabelColumn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetLabelColumn", 1)) + } + if s.CompletionCriteria != nil { + if err := s.CompletionCriteria.Validate(); err != nil { + invalidParams.AddNested("CompletionCriteria", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompletionCriteria sets the CompletionCriteria field's value. +func (s *TextClassificationJobConfig) SetCompletionCriteria(v *AutoMLJobCompletionCriteria) *TextClassificationJobConfig { + s.CompletionCriteria = v + return s +} + +// SetContentColumn sets the ContentColumn field's value. +func (s *TextClassificationJobConfig) SetContentColumn(v string) *TextClassificationJobConfig { + s.ContentColumn = &v + return s +} + +// SetTargetLabelColumn sets the TargetLabelColumn field's value. +func (s *TextClassificationJobConfig) SetTargetLabelColumn(v string) *TextClassificationJobConfig { + s.TargetLabelColumn = &v + return s +} + // Time series forecast settings for the SageMaker Canvas app. type TimeSeriesForecastingSettings struct { _ struct{} `type:"structure"` @@ -113507,6 +114506,9 @@ const ( // AppInstanceTypeMlG548xlarge is a AppInstanceType enum value AppInstanceTypeMlG548xlarge = "ml.g5.48xlarge" + + // AppInstanceTypeMlGeospatialInteractive is a AppInstanceType enum value + AppInstanceTypeMlGeospatialInteractive = "ml.geospatial.interactive" ) // AppInstanceType_Values returns all elements of the AppInstanceType enum @@ -113569,6 +114571,7 @@ func AppInstanceType_Values() []string { AppInstanceTypeMlG512xlarge, AppInstanceTypeMlG524xlarge, AppInstanceTypeMlG548xlarge, + AppInstanceTypeMlGeospatialInteractive, } } @@ -113929,6 +114932,9 @@ const ( // AutoMLJobSecondaryStatusModelInsightsError is a AutoMLJobSecondaryStatus enum value AutoMLJobSecondaryStatusModelInsightsError = "ModelInsightsError" + + // AutoMLJobSecondaryStatusTrainingModels is a AutoMLJobSecondaryStatus enum value + AutoMLJobSecondaryStatusTrainingModels = "TrainingModels" ) // AutoMLJobSecondaryStatus_Values returns all elements of the AutoMLJobSecondaryStatus enum @@ -113951,6 +114957,7 @@ func AutoMLJobSecondaryStatus_Values() []string { AutoMLJobSecondaryStatusModelDeploymentError, AutoMLJobSecondaryStatusGeneratingModelInsightsReport, AutoMLJobSecondaryStatusModelInsightsError, + AutoMLJobSecondaryStatusTrainingModels, } } @@ -114130,12 +115137,31 @@ func AutoMLMode_Values() []string { } } +const ( + // AutoMLProcessingUnitCpu is a AutoMLProcessingUnit enum value + AutoMLProcessingUnitCpu = "CPU" + + // AutoMLProcessingUnitGpu is a AutoMLProcessingUnit enum value + AutoMLProcessingUnitGpu = "GPU" +) + +// AutoMLProcessingUnit_Values returns all elements of the AutoMLProcessingUnit enum +func AutoMLProcessingUnit_Values() []string { + return []string{ + AutoMLProcessingUnitCpu, + AutoMLProcessingUnitGpu, + } +} + const ( // AutoMLS3DataTypeManifestFile is a AutoMLS3DataType enum value AutoMLS3DataTypeManifestFile = "ManifestFile" // AutoMLS3DataTypeS3prefix is a AutoMLS3DataType enum value AutoMLS3DataTypeS3prefix = "S3Prefix" + + // AutoMLS3DataTypeAugmentedManifestFile is a AutoMLS3DataType enum value + AutoMLS3DataTypeAugmentedManifestFile = "AugmentedManifestFile" ) // AutoMLS3DataType_Values returns all elements of the AutoMLS3DataType enum @@ -114143,6 +115169,7 @@ func AutoMLS3DataType_Values() []string { return []string{ AutoMLS3DataTypeManifestFile, AutoMLS3DataTypeS3prefix, + AutoMLS3DataTypeAugmentedManifestFile, } } diff --git a/service/sagemaker/sagemakeriface/interface.go b/service/sagemaker/sagemakeriface/interface.go index bfd4ff0c488..163ca4f02c7 100644 --- a/service/sagemaker/sagemakeriface/interface.go +++ b/service/sagemaker/sagemakeriface/interface.go @@ -100,6 +100,10 @@ type SageMakerAPI interface { CreateAutoMLJobWithContext(aws.Context, *sagemaker.CreateAutoMLJobInput, ...request.Option) (*sagemaker.CreateAutoMLJobOutput, error) CreateAutoMLJobRequest(*sagemaker.CreateAutoMLJobInput) (*request.Request, *sagemaker.CreateAutoMLJobOutput) + CreateAutoMLJobV2(*sagemaker.CreateAutoMLJobV2Input) (*sagemaker.CreateAutoMLJobV2Output, error) + CreateAutoMLJobV2WithContext(aws.Context, *sagemaker.CreateAutoMLJobV2Input, ...request.Option) (*sagemaker.CreateAutoMLJobV2Output, error) + CreateAutoMLJobV2Request(*sagemaker.CreateAutoMLJobV2Input) (*request.Request, *sagemaker.CreateAutoMLJobV2Output) + CreateCodeRepository(*sagemaker.CreateCodeRepositoryInput) (*sagemaker.CreateCodeRepositoryOutput, error) CreateCodeRepositoryWithContext(aws.Context, *sagemaker.CreateCodeRepositoryInput, ...request.Option) (*sagemaker.CreateCodeRepositoryOutput, error) CreateCodeRepositoryRequest(*sagemaker.CreateCodeRepositoryInput) (*request.Request, *sagemaker.CreateCodeRepositoryOutput) @@ -496,6 +500,10 @@ type SageMakerAPI interface { DescribeAutoMLJobWithContext(aws.Context, *sagemaker.DescribeAutoMLJobInput, ...request.Option) (*sagemaker.DescribeAutoMLJobOutput, error) DescribeAutoMLJobRequest(*sagemaker.DescribeAutoMLJobInput) (*request.Request, *sagemaker.DescribeAutoMLJobOutput) + DescribeAutoMLJobV2(*sagemaker.DescribeAutoMLJobV2Input) (*sagemaker.DescribeAutoMLJobV2Output, error) + DescribeAutoMLJobV2WithContext(aws.Context, *sagemaker.DescribeAutoMLJobV2Input, ...request.Option) (*sagemaker.DescribeAutoMLJobV2Output, error) + DescribeAutoMLJobV2Request(*sagemaker.DescribeAutoMLJobV2Input) (*request.Request, *sagemaker.DescribeAutoMLJobV2Output) + DescribeCodeRepository(*sagemaker.DescribeCodeRepositoryInput) (*sagemaker.DescribeCodeRepositoryOutput, error) DescribeCodeRepositoryWithContext(aws.Context, *sagemaker.DescribeCodeRepositoryInput, ...request.Option) (*sagemaker.DescribeCodeRepositoryOutput, error) DescribeCodeRepositoryRequest(*sagemaker.DescribeCodeRepositoryInput) (*request.Request, *sagemaker.DescribeCodeRepositoryOutput) diff --git a/service/servicediscovery/api.go b/service/servicediscovery/api.go index 7626d9274b4..37b2b50b233 100644 --- a/service/servicediscovery/api.go +++ b/service/servicediscovery/api.go @@ -92,12 +92,6 @@ func (c *ServiceDiscovery) CreateHttpNamespaceRequest(input *CreateHttpNamespace // The list of tags on the resource is over the quota. The maximum number of // tags that can be applied to a resource is 50. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateHttpNamespace func (c *ServiceDiscovery) CreateHttpNamespace(input *CreateHttpNamespaceInput) (*CreateHttpNamespaceOutput, error) { req, out := c.CreateHttpNamespaceRequest(input) @@ -201,12 +195,6 @@ func (c *ServiceDiscovery) CreatePrivateDnsNamespaceRequest(input *CreatePrivate // The list of tags on the resource is over the quota. The maximum number of // tags that can be applied to a resource is 50. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreatePrivateDnsNamespace func (c *ServiceDiscovery) CreatePrivateDnsNamespace(input *CreatePrivateDnsNamespaceInput) (*CreatePrivateDnsNamespaceOutput, error) { req, out := c.CreatePrivateDnsNamespaceRequest(input) @@ -313,12 +301,6 @@ func (c *ServiceDiscovery) CreatePublicDnsNamespaceRequest(input *CreatePublicDn // The list of tags on the resource is over the quota. The maximum number of // tags that can be applied to a resource is 50. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreatePublicDnsNamespace func (c *ServiceDiscovery) CreatePublicDnsNamespace(input *CreatePublicDnsNamespaceInput) (*CreatePublicDnsNamespaceOutput, error) { req, out := c.CreatePublicDnsNamespaceRequest(input) @@ -429,12 +411,6 @@ func (c *ServiceDiscovery) CreateServiceRequest(input *CreateServiceInput) (req // The list of tags on the resource is over the quota. The maximum number of // tags that can be applied to a resource is 50. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateService func (c *ServiceDiscovery) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) @@ -527,12 +503,6 @@ func (c *ServiceDiscovery) DeleteNamespaceRequest(input *DeleteNamespaceInput) ( // - DuplicateRequest // The operation is already in progress. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DeleteNamespace func (c *ServiceDiscovery) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNamespaceOutput, error) { req, out := c.DeleteNamespaceRequest(input) @@ -623,12 +593,6 @@ func (c *ServiceDiscovery) DeleteServiceRequest(input *DeleteServiceInput) (req // The specified resource can't be deleted because it contains other resources. // For example, you can't delete a service that contains any instances. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DeleteService func (c *ServiceDiscovery) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) @@ -725,12 +689,6 @@ func (c *ServiceDiscovery) DeregisterInstanceRequest(input *DeregisterInstanceIn // - ServiceNotFound // No service exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DeregisterInstance func (c *ServiceDiscovery) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) { req, out := c.DeregisterInstanceRequest(input) @@ -917,12 +875,6 @@ func (c *ServiceDiscovery) GetInstanceRequest(input *GetInstanceInput) (req *req // - ServiceNotFound // No service exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetInstance func (c *ServiceDiscovery) GetInstance(input *GetInstanceInput) (*GetInstanceOutput, error) { req, out := c.GetInstanceRequest(input) @@ -1021,12 +973,6 @@ func (c *ServiceDiscovery) GetInstancesHealthStatusRequest(input *GetInstancesHe // - ServiceNotFound // No service exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetInstancesHealthStatus func (c *ServiceDiscovery) GetInstancesHealthStatus(input *GetInstancesHealthStatusInput) (*GetInstancesHealthStatusOutput, error) { req, out := c.GetInstancesHealthStatusRequest(input) @@ -1250,12 +1196,6 @@ func (c *ServiceDiscovery) GetOperationRequest(input *GetOperationInput) (req *r // - OperationNotFound // No operation exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetOperation func (c *ServiceDiscovery) GetOperation(input *GetOperationInput) (*GetOperationOutput, error) { req, out := c.GetOperationRequest(input) @@ -1340,12 +1280,6 @@ func (c *ServiceDiscovery) GetServiceRequest(input *GetServiceInput) (req *reque // - ServiceNotFound // No service exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetService func (c *ServiceDiscovery) GetService(input *GetServiceInput) (*GetServiceOutput, error) { req, out := c.GetServiceRequest(input) @@ -1437,12 +1371,6 @@ func (c *ServiceDiscovery) ListInstancesRequest(input *ListInstancesInput) (req // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListInstances func (c *ServiceDiscovery) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) { req, out := c.ListInstancesRequest(input) @@ -1576,18 +1504,11 @@ func (c *ServiceDiscovery) ListNamespacesRequest(input *ListNamespacesInput) (re // API operation ListNamespaces for usage and error information. // // Returned Error Types: -// // - InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListNamespaces func (c *ServiceDiscovery) ListNamespaces(input *ListNamespacesInput) (*ListNamespacesOutput, error) { req, out := c.ListNamespacesRequest(input) @@ -1720,18 +1641,11 @@ func (c *ServiceDiscovery) ListOperationsRequest(input *ListOperationsInput) (re // API operation ListOperations for usage and error information. // // Returned Error Types: -// // - InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListOperations func (c *ServiceDiscovery) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { req, out := c.ListOperationsRequest(input) @@ -1865,18 +1779,11 @@ func (c *ServiceDiscovery) ListServicesRequest(input *ListServicesInput) (req *r // API operation ListServices for usage and error information. // // Returned Error Types: -// // - InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListServices func (c *ServiceDiscovery) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { req, out := c.ListServicesRequest(input) @@ -2012,12 +1919,6 @@ func (c *ServiceDiscovery) ListTagsForResourceRequest(input *ListTagsForResource // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListTagsForResource func (c *ServiceDiscovery) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) @@ -2145,12 +2046,6 @@ func (c *ServiceDiscovery) RegisterInstanceRequest(input *RegisterInstanceInput) // - ServiceNotFound // No service exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/RegisterInstance func (c *ServiceDiscovery) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) { req, out := c.RegisterInstanceRequest(input) @@ -2240,12 +2135,6 @@ func (c *ServiceDiscovery) TagResourceRequest(input *TagResourceInput) (req *req // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TagResource func (c *ServiceDiscovery) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) @@ -2331,12 +2220,6 @@ func (c *ServiceDiscovery) UntagResourceRequest(input *UntagResourceInput) (req // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UntagResource func (c *ServiceDiscovery) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) @@ -2428,12 +2311,6 @@ func (c *ServiceDiscovery) UpdateHttpNamespaceRequest(input *UpdateHttpNamespace // - DuplicateRequest // The operation is already in progress. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateHttpNamespace func (c *ServiceDiscovery) UpdateHttpNamespace(input *UpdateHttpNamespaceInput) (*UpdateHttpNamespaceOutput, error) { req, out := c.UpdateHttpNamespaceRequest(input) @@ -2535,12 +2412,6 @@ func (c *ServiceDiscovery) UpdateInstanceCustomHealthStatusRequest(input *Update // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateInstanceCustomHealthStatus func (c *ServiceDiscovery) UpdateInstanceCustomHealthStatus(input *UpdateInstanceCustomHealthStatusInput) (*UpdateInstanceCustomHealthStatusOutput, error) { req, out := c.UpdateInstanceCustomHealthStatusRequest(input) @@ -2632,12 +2503,6 @@ func (c *ServiceDiscovery) UpdatePrivateDnsNamespaceRequest(input *UpdatePrivate // - DuplicateRequest // The operation is already in progress. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePrivateDnsNamespace func (c *ServiceDiscovery) UpdatePrivateDnsNamespace(input *UpdatePrivateDnsNamespaceInput) (*UpdatePrivateDnsNamespaceOutput, error) { req, out := c.UpdatePrivateDnsNamespaceRequest(input) @@ -2729,12 +2594,6 @@ func (c *ServiceDiscovery) UpdatePublicDnsNamespaceRequest(input *UpdatePublicDn // - DuplicateRequest // The operation is already in progress. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePublicDnsNamespace func (c *ServiceDiscovery) UpdatePublicDnsNamespace(input *UpdatePublicDnsNamespaceInput) (*UpdatePublicDnsNamespaceOutput, error) { req, out := c.UpdatePublicDnsNamespaceRequest(input) @@ -2840,12 +2699,6 @@ func (c *ServiceDiscovery) UpdateServiceRequest(input *UpdateServiceInput) (req // - ServiceNotFound // No service exists with the specified ID. // -// - RequestLimitExceeded -// The operation can't be completed because you've reached the quota for the -// number of requests. For more information, see Cloud Map API request throttling -// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in -// the Cloud Map Developer Guide. -// // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateService func (c *ServiceDiscovery) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { req, out := c.UpdateServiceRequest(input) diff --git a/service/servicediscovery/examples_test.go b/service/servicediscovery/examples_test.go index 7ab0daef361..3c4b2dd3032 100644 --- a/service/servicediscovery/examples_test.go +++ b/service/servicediscovery/examples_test.go @@ -49,8 +49,6 @@ func ExampleServiceDiscovery_CreateHttpNamespace_shared00() { fmt.Println(servicediscovery.ErrCodeDuplicateRequest, aerr.Error()) case servicediscovery.ErrCodeTooManyTagsException: fmt.Println(servicediscovery.ErrCodeTooManyTagsException, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -89,8 +87,6 @@ func ExampleServiceDiscovery_CreatePrivateDnsNamespace_shared00() { fmt.Println(servicediscovery.ErrCodeDuplicateRequest, aerr.Error()) case servicediscovery.ErrCodeTooManyTagsException: fmt.Println(servicediscovery.ErrCodeTooManyTagsException, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -129,8 +125,6 @@ func ExampleServiceDiscovery_CreatePublicDnsNamespace_shared00() { fmt.Println(servicediscovery.ErrCodeDuplicateRequest, aerr.Error()) case servicediscovery.ErrCodeTooManyTagsException: fmt.Println(servicediscovery.ErrCodeTooManyTagsException, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -179,8 +173,6 @@ func ExampleServiceDiscovery_CreateService_shared00() { fmt.Println(servicediscovery.ErrCodeServiceAlreadyExists, aerr.Error()) case servicediscovery.ErrCodeTooManyTagsException: fmt.Println(servicediscovery.ErrCodeTooManyTagsException, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -215,8 +207,6 @@ func ExampleServiceDiscovery_DeleteNamespace_shared00() { fmt.Println(servicediscovery.ErrCodeResourceInUse, aerr.Error()) case servicediscovery.ErrCodeDuplicateRequest: fmt.Println(servicediscovery.ErrCodeDuplicateRequest, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -249,8 +239,6 @@ func ExampleServiceDiscovery_DeleteService_shared00() { fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) case servicediscovery.ErrCodeResourceInUse: fmt.Println(servicediscovery.ErrCodeResourceInUse, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -288,8 +276,6 @@ func ExampleServiceDiscovery_DeregisterInstance_shared00() { fmt.Println(servicediscovery.ErrCodeResourceInUse, aerr.Error()) case servicediscovery.ErrCodeServiceNotFound: fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -360,8 +346,6 @@ func ExampleServiceDiscovery_GetInstance_shared00() { fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) case servicediscovery.ErrCodeServiceNotFound: fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -395,8 +379,6 @@ func ExampleServiceDiscovery_GetInstancesHealthStatus_shared00() { fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) case servicediscovery.ErrCodeServiceNotFound: fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -457,8 +439,6 @@ func ExampleServiceDiscovery_GetOperation_shared00() { fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) case servicediscovery.ErrCodeOperationNotFound: fmt.Println(servicediscovery.ErrCodeOperationNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -489,8 +469,6 @@ func ExampleServiceDiscovery_GetService_shared00() { fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) case servicediscovery.ErrCodeServiceNotFound: fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -521,8 +499,6 @@ func ExampleServiceDiscovery_ListInstances_shared00() { fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -549,8 +525,6 @@ func ExampleServiceDiscovery_ListNamespaces_shared00() { switch aerr.Code() { case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -588,8 +562,6 @@ func ExampleServiceDiscovery_ListOperations_shared00() { switch aerr.Code() { case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -616,8 +588,6 @@ func ExampleServiceDiscovery_ListServices_shared00() { switch aerr.Code() { case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -648,8 +618,6 @@ func ExampleServiceDiscovery_ListTagsForResource_shared00() { fmt.Println(servicediscovery.ErrCodeResourceNotFoundException, aerr.Error()) case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -692,8 +660,6 @@ func ExampleServiceDiscovery_RegisterInstance_shared00() { fmt.Println(servicediscovery.ErrCodeResourceLimitExceeded, aerr.Error()) case servicediscovery.ErrCodeServiceNotFound: fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -736,8 +702,6 @@ func ExampleServiceDiscovery_TagResource_shared00() { fmt.Println(servicediscovery.ErrCodeTooManyTagsException, aerr.Error()) case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -772,8 +736,6 @@ func ExampleServiceDiscovery_UntagResource_shared00() { fmt.Println(servicediscovery.ErrCodeResourceNotFoundException, aerr.Error()) case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -811,8 +773,6 @@ func ExampleServiceDiscovery_UpdateInstanceCustomHealthStatus_shared00() { fmt.Println(servicediscovery.ErrCodeCustomHealthNotFound, aerr.Error()) case servicediscovery.ErrCodeInvalidInput: fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -861,8 +821,6 @@ func ExampleServiceDiscovery_UpdateService_shared00() { fmt.Println(servicediscovery.ErrCodeInvalidInput, aerr.Error()) case servicediscovery.ErrCodeServiceNotFound: fmt.Println(servicediscovery.ErrCodeServiceNotFound, aerr.Error()) - case servicediscovery.ErrCodeRequestLimitExceeded: - fmt.Println(servicediscovery.ErrCodeRequestLimitExceeded, aerr.Error()) default: fmt.Println(aerr.Error()) } diff --git a/service/textract/api.go b/service/textract/api.go index f16ee3928e2..622d6efae67 100644 --- a/service/textract/api.go +++ b/service/textract/api.go @@ -342,7 +342,7 @@ func (c *Textract) AnalyzeIDRequest(input *AnalyzeIDInput) (req *request.Request // // Analyzes identity documents for relevant information. This information is // extracted and returned as IdentityDocumentFields, which records both the -// normalized field and value of the extracted text.Unlike other Amazon Textract +// normalized field and value of the extracted text. Unlike other Amazon Textract // operations, AnalyzeID doesn't return any Geometry data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2422,9 +2422,20 @@ type Block struct { // information with two or more rows or columns, with a cell span of one // row and one column each. // + // * TABLE_TITLE - The title of a table. A title is typically a line of text + // above or below a table, or embedded as the first row of a table. + // + // * TABLE_FOOTER - The footer associated with a table. A footer is typically + // a line or lines of text below a table or embedded as the last row of a + // table. + // // * CELL - A cell within a detected table. The cell is the parent of the // block that contains the text in the cell. // + // * MERGED_CELL - A cell in a table whose content spans more than one row + // or column. The Relationships array for this cell contain data from individual + // cells. + // // * SELECTION_ELEMENT - A selection element such as an option button (radio // button) or a check box that's detected on a document page. Use the value // of SelectionStatus to determine the status of the selection element. @@ -2445,21 +2456,43 @@ type Block struct { // ColumnIndex isn't returned by DetectDocumentText and GetDocumentTextDetection. ColumnIndex *int64 `type:"integer"` - // The number of columns that a table cell spans. Currently this value is always - // 1, even if the number of columns spanned is greater than 1. ColumnSpan isn't - // returned by DetectDocumentText and GetDocumentTextDetection. + // The number of columns that a table cell spans. ColumnSpan isn't returned + // by DetectDocumentText and GetDocumentTextDetection. ColumnSpan *int64 `type:"integer"` // The confidence score that Amazon Textract has in the accuracy of the recognized // text and the accuracy of the geometry points around the recognized text. Confidence *float64 `type:"float"` - // The type of entity. The following can be returned: + // The type of entity. + // + // The following entity types can be returned by FORMS analysis: // // * KEY - An identifier for a field on the document. // // * VALUE - The field text. // + // The following entity types can be returned by TABLES analysis: + // + // * COLUMN_HEADER - Identifies a cell that is a header of a column. + // + // * TABLE_TITLE - Identifies a cell that is a title within the table. + // + // * TABLE_SECTION_TITLE - Identifies a cell that is a title of a section + // within a table. A section title is a cell that typically spans an entire + // row above a section. + // + // * TABLE_FOOTER - Identifies a cell that is a footer of a table. + // + // * TABLE_SUMMARY - Identifies a summary cell of a table. A summary cell + // can be a row of a table or an additional, smaller table that contains + // summary information for another table. + // + // * STRUCTURED_TABLE - Identifies a table with column headers where the + // content of each row corresponds to the headers. + // + // * SEMI_STRUCTURED_TABLE - Identifies a non-structured table. + // // EntityTypes isn't returned by DetectDocumentText and GetDocumentTextDetection. EntityTypes []*string `type:"list" enum:"EntityType"` @@ -2477,32 +2510,28 @@ type Block struct { // multipage documents that are in PDF or TIFF format. A scanned image (JPEG/PNG) // provided to an asynchronous operation, even if it contains multiple document // pages, is considered a single-page document. This means that for scanned - // images the value of Page is always 1. Synchronous operations operations will - // also return a Page value of 1 because every input document is considered - // to be a single-page document. + // images the value of Page is always 1. Synchronous operations will also return + // a Page value of 1 because every input document is considered to be a single-page + // document. Page *int64 `type:"integer"` // Each query contains the question you want to ask in the Text and the alias // you want to associate. Query *Query `type:"structure"` - // A list of child blocks of the current block. For example, a LINE object has - // child blocks for each WORD block that's part of the line of text. There aren't - // Relationship objects in the list for relationships that don't exist, such - // as when the current block has no child blocks. The list size can be the following: - // - // * 0 - The block has no child blocks. - // - // * 1 - The block has child blocks. + // A list of relationship objects that describe how blocks are related to each + // other. For example, a LINE block object contains a CHILD relationship type + // with the WORD blocks that make up the line of text. There aren't Relationship + // objects in the list for relationships that don't exist, such as when the + // current block has no child blocks. Relationships []*Relationship `type:"list"` // The row in which a table cell is located. The first row position is 1. RowIndex // isn't returned by DetectDocumentText and GetDocumentTextDetection. RowIndex *int64 `type:"integer"` - // The number of rows that a table cell spans. Currently this value is always - // 1, even if the number of rows spanned is greater than 1. RowSpan isn't returned - // by DetectDocumentText and GetDocumentTextDetection. + // The number of rows that a table cell spans. RowSpan isn't returned by DetectDocumentText + // and GetDocumentTextDetection. RowSpan *int64 `type:"integer"` // The selection status of a selection element, such as an option button or @@ -2935,8 +2964,9 @@ type DocumentGroup struct { // by logical boundary. SplitDocuments []*SplitDocument `type:"list"` - // The type of document that Amazon Textract has detected. See LINK for a list - // of all types returned by Textract. + // The type of document that Amazon Textract has detected. See Analyze Lending + // Response Objects (https://docs.aws.amazon.com/textract/latest/dg/lending-response-objects.html) + // for a list of all types returned by Textract. Type *string `type:"string"` // A list of any expected signatures not found in a document group. @@ -6042,12 +6072,29 @@ type Relationship struct { // from the Type element. Ids []*string `type:"list"` - // The type of relationship that the blocks in the IDs array have with the current - // block. The relationship can be VALUE or CHILD. A relationship of type VALUE - // is a list that contains the ID of the VALUE block that's associated with - // the KEY of a key-value pair. A relationship of type CHILD is a list of IDs - // that identify WORD blocks in the case of lines Cell blocks in the case of - // Tables, and WORD blocks in the case of Selection Elements. + // The type of relationship between the blocks in the IDs array and the current + // block. The following list describes the relationship types that can be returned. + // + // * VALUE - A list that contains the ID of the VALUE block that's associated + // with the KEY of a key-value pair. + // + // * CHILD - A list of IDs that identify blocks found within the current + // block object. For example, WORD blocks have a CHILD relationship to the + // LINE block type. + // + // * MERGED_CELL - A list of IDs that identify each of the MERGED_CELL block + // types in a table. + // + // * ANSWER - A list that contains the ID of the QUERY_RESULT block that’s + // associated with the corresponding QUERY block. + // + // * TABLE - A list of IDs that identify associated TABLE block types. + // + // * TABLE_TITLE - A list that contains the ID for the TABLE_TITLE block + // type in a table. + // + // * TABLE_FOOTER - A list of IDs that identify the TABLE_FOOTER block types + // in a table. Type *string `type:"string" enum:"RelationshipType"` } @@ -7183,6 +7230,12 @@ const ( // BlockTypeSignature is a BlockType enum value BlockTypeSignature = "SIGNATURE" + + // BlockTypeTableTitle is a BlockType enum value + BlockTypeTableTitle = "TABLE_TITLE" + + // BlockTypeTableFooter is a BlockType enum value + BlockTypeTableFooter = "TABLE_FOOTER" ) // BlockType_Values returns all elements of the BlockType enum @@ -7200,6 +7253,8 @@ func BlockType_Values() []string { BlockTypeQuery, BlockTypeQueryResult, BlockTypeSignature, + BlockTypeTableTitle, + BlockTypeTableFooter, } } @@ -7228,6 +7283,24 @@ const ( // EntityTypeColumnHeader is a EntityType enum value EntityTypeColumnHeader = "COLUMN_HEADER" + + // EntityTypeTableTitle is a EntityType enum value + EntityTypeTableTitle = "TABLE_TITLE" + + // EntityTypeTableFooter is a EntityType enum value + EntityTypeTableFooter = "TABLE_FOOTER" + + // EntityTypeTableSectionTitle is a EntityType enum value + EntityTypeTableSectionTitle = "TABLE_SECTION_TITLE" + + // EntityTypeTableSummary is a EntityType enum value + EntityTypeTableSummary = "TABLE_SUMMARY" + + // EntityTypeStructuredTable is a EntityType enum value + EntityTypeStructuredTable = "STRUCTURED_TABLE" + + // EntityTypeSemiStructuredTable is a EntityType enum value + EntityTypeSemiStructuredTable = "SEMI_STRUCTURED_TABLE" ) // EntityType_Values returns all elements of the EntityType enum @@ -7236,6 +7309,12 @@ func EntityType_Values() []string { EntityTypeKey, EntityTypeValue, EntityTypeColumnHeader, + EntityTypeTableTitle, + EntityTypeTableFooter, + EntityTypeTableSectionTitle, + EntityTypeTableSummary, + EntityTypeStructuredTable, + EntityTypeSemiStructuredTable, } } @@ -7305,6 +7384,15 @@ const ( // RelationshipTypeAnswer is a RelationshipType enum value RelationshipTypeAnswer = "ANSWER" + + // RelationshipTypeTable is a RelationshipType enum value + RelationshipTypeTable = "TABLE" + + // RelationshipTypeTableTitle is a RelationshipType enum value + RelationshipTypeTableTitle = "TABLE_TITLE" + + // RelationshipTypeTableFooter is a RelationshipType enum value + RelationshipTypeTableFooter = "TABLE_FOOTER" ) // RelationshipType_Values returns all elements of the RelationshipType enum @@ -7316,6 +7404,9 @@ func RelationshipType_Values() []string { RelationshipTypeMergedCell, RelationshipTypeTitle, RelationshipTypeAnswer, + RelationshipTypeTable, + RelationshipTypeTableTitle, + RelationshipTypeTableFooter, } }