diff --git a/CHANGELOG.md b/CHANGELOG.md index 47bc4d47728..005c7ef9780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +Release v1.42.33 (2022-01-12) +=== + +### Service Client Updates +* `service/ec2`: Updates service API + * Hpc6a instances are powered by a third-generation AMD EPYC processors (Milan) delivering all-core turbo frequency of 3.4 GHz +* `service/elasticache`: Updates service documentation + * Doc only update for ElastiCache +* `service/fms`: Updates service API and documentation +* `service/honeycode`: Updates service API and documentation +* `service/models.lex.v2`: Updates service API and documentation +* `service/pi`: Updates service API, documentation, and paginators + Release v1.42.32 (2022-01-11) === diff --git a/aws/version.go b/aws/version.go index 5530cb8ffcf..5d0766e1688 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.42.32" +const SDKVersion = "1.42.33" diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 62315e3360b..493d998782b 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -23636,6 +23636,7 @@ "g5g.16xlarge", "g5g.metal", "hi1.4xlarge", + "hpc6a.48xlarge", "hs1.8xlarge", "h1.2xlarge", "h1.4xlarge", diff --git a/models/apis/elasticache/2015-02-02/docs-2.json b/models/apis/elasticache/2015-02-02/docs-2.json index 6890b8d34c5..27ee921bfe4 100644 --- a/models/apis/elasticache/2015-02-02/docs-2.json +++ b/models/apis/elasticache/2015-02-02/docs-2.json @@ -61,7 +61,7 @@ "ModifyUserGroup": "

Changes the list of users that belong to the user group.

", "PurchaseReservedCacheNodesOffering": "

Allows you to purchase a reserved cache node offering. Reserved nodes are not eligible for cancellation and are non-refundable. For more information, see Managing Costs with Reserved Nodes for Redis or Managing Costs with Reserved Nodes for Memcached.

", "RebalanceSlotsInGlobalReplicationGroup": "

Redistribute slots to ensure uniform distribution across existing shards in the cluster.

", - "RebootCacheCluster": "

Reboots some, or all, of the cache nodes within a provisioned cluster. This operation applies any modified cache parameter groups to the cluster. The reboot operation takes place as soon as possible, and results in a momentary outage to the cluster. During the reboot, the cluster status is set to REBOOTING.

The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.

When the reboot is complete, a cluster event is created.

Rebooting a cluster is currently supported on Memcached and Redis (cluster mode disabled) clusters. Rebooting is not supported on Redis (cluster mode enabled) clusters.

If you make changes to parameters that require a Redis (cluster mode enabled) cluster reboot for the changes to be applied, see Rebooting a Cluster for an alternate process.

", + "RebootCacheCluster": "

Reboots some, or all, of the cache nodes within a provisioned cluster. This operation applies any modified cache parameter groups to the cluster. The reboot operation takes place as soon as possible, and results in a momentary outage to the cluster. During the reboot, the cluster status is set to REBOOTING.

The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.

When the reboot is complete, a cluster event is created.

Rebooting a cluster is currently supported on Memcached and Redis (cluster mode disabled) clusters. Rebooting is not supported on Redis (cluster mode enabled) clusters.

If you make changes to parameters that require a Redis (cluster mode enabled) cluster reboot for the changes to be applied, see Rebooting a Cluster for an alternate process.

", "RemoveTagsFromResource": "

Removes the tags identified by the TagKeys list from the named resource. A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your ElastiCache resources, with the exception of global replication group. When you add or remove tags on replication groups, those actions will be replicated to all nodes in the replication group. For more information, see Resource-level permissions.

", "ResetCacheParameterGroup": "

Modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.

", "RevokeCacheSecurityGroupIngress": "

Revokes ingress from a cache security group. Use this operation to disallow access from an Amazon EC2 security group that had been previously authorized.

", @@ -315,7 +315,7 @@ } }, "CacheNode": { - "base": "

Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "base": "

Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "refs": { "CacheNodeList$member": null } @@ -2002,7 +2002,7 @@ "BatchStopUpdateActionMessage$ServiceUpdateName": "

The unique ID of the service update

", "CacheCluster$CacheClusterId": "

The user-supplied identifier of the cluster. This identifier is a unique key that identifies a cluster.

", "CacheCluster$ClientDownloadLandingPage": "

The URL of the web page where you can download the latest ElastiCache client library.

", - "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "CacheCluster$Engine": "

The name of the cache engine (memcached or redis) to be used for this cluster.

", "CacheCluster$EngineVersion": "

The version of the cache engine that is used in this cluster.

", "CacheCluster$CacheClusterStatus": "

The current state of this cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cluster nodes, restore-failed, or snapshotting.

", @@ -2069,7 +2069,7 @@ "CreateCacheClusterMessage$CacheClusterId": "

The node group (shard) identifier. This parameter is stored as a lowercase string.

Constraints:

", "CreateCacheClusterMessage$ReplicationGroupId": "

The ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.

If the specified replication group is Multi-AZ enabled and the Availability Zone is not specified, the cluster is created in Availability Zones that provide the best spread of read replicas across Availability Zones.

This parameter is only valid if the Engine parameter is redis.

", "CreateCacheClusterMessage$PreferredAvailabilityZone": "

The EC2 Availability Zone in which the cluster is created.

All nodes belonging to this cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones.

Default: System chosen Availability Zone.

", - "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "CreateCacheClusterMessage$Engine": "

The name of the cache engine to be used for this cluster.

Valid values for this parameter are: memcached | redis

", "CreateCacheClusterMessage$EngineVersion": "

The version number of the cache engine to be used for this cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.

", "CreateCacheClusterMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this cluster. If this argument is omitted, the default parameter group for the specified engine is used. You cannot use any parameter group which has cluster-enabled='yes' when creating a cluster.

", @@ -2094,7 +2094,7 @@ "CreateReplicationGroupMessage$ReplicationGroupDescription": "

A user-created description for the replication group.

", "CreateReplicationGroupMessage$GlobalReplicationGroupId": "

The name of the Global datastore

", "CreateReplicationGroupMessage$PrimaryClusterId": "

The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of available.

This parameter is not required if NumCacheClusters, NumNodeGroups, or ReplicasPerNodeGroup is specified.

", - "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "CreateReplicationGroupMessage$Engine": "

The name of the cache engine to be used for the clusters in this replication group. Must be Redis.

", "CreateReplicationGroupMessage$EngineVersion": "

The version number of the cache engine to be used for the clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.

", "CreateReplicationGroupMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.

If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter group, we recommend that you specify the parameter group by name.

", @@ -2149,13 +2149,13 @@ "DescribeReplicationGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodeId": "

The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "DescribeReservedCacheNodesMessage$Duration": "

The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesMessage$ProductDescription": "

The product description filter value. Use this parameter to show only those reservations matching the specified product description.

", "DescribeReservedCacheNodesMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"|\"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"

", "DescribeReservedCacheNodesMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeReservedCacheNodesOfferingsMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "DescribeReservedCacheNodesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesOfferingsMessage$ProductDescription": "

The product description filter value. Use this parameter to show only the available offerings matching the specified product description.

", "DescribeReservedCacheNodesOfferingsMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\" |\"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"

", @@ -2309,14 +2309,14 @@ "ReplicationGroupPendingModifiedValues$PrimaryClusterId": "

The primary cluster ID that is applied immediately (if --apply-immediately was specified), or during the next maintenance window.

", "ReservedCacheNode$ReservedCacheNodeId": "

The unique identifier for the reservation.

", "ReservedCacheNode$ReservedCacheNodesOfferingId": "

The offering identifier.

", - "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "ReservedCacheNode$ProductDescription": "

The description of the reserved cache node.

", "ReservedCacheNode$OfferingType": "

The offering type of this reserved cache node.

", "ReservedCacheNode$State": "

The state of the reserved cache node.

", "ReservedCacheNode$ReservationARN": "

The Amazon Resource Name (ARN) of the reserved cache node.

Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582

", "ReservedCacheNodeMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "ReservedCacheNodesOffering$ReservedCacheNodesOfferingId": "

A unique identifier for the reserved cache node offering.

", - "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "ReservedCacheNodesOffering$ProductDescription": "

The cache engine used by the offering.

", "ReservedCacheNodesOffering$OfferingType": "

The offering type.

", "ReservedCacheNodesOfferingMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", @@ -2339,7 +2339,7 @@ "Snapshot$CacheClusterId": "

The user-supplied identifier of the source cluster.

", "Snapshot$SnapshotStatus": "

The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.

", "Snapshot$SnapshotSource": "

Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).

", - "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", + "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

Additional node type info

", "Snapshot$Engine": "

The name of the cache engine (memcached or redis) used by the source cluster.

", "Snapshot$EngineVersion": "

The version of the cache engine version that is used by the source cluster.

", "Snapshot$PreferredAvailabilityZone": "

The name of the Availability Zone in which the source cluster is located.

", diff --git a/models/apis/fms/2018-01-01/api-2.json b/models/apis/fms/2018-01-01/api-2.json index 4c82da9ad19..f25fcd457c5 100644 --- a/models/apis/fms/2018-01-01/api-2.json +++ b/models/apis/fms/2018-01-01/api-2.json @@ -1011,7 +1011,7 @@ }, "ManagedServiceData":{ "type":"string", - "max":4096, + "max":8192, "min":1, "pattern":".*" }, diff --git a/models/apis/fms/2018-01-01/docs-2.json b/models/apis/fms/2018-01-01/docs-2.json index fad864dd22a..e795eb44ffb 100644 --- a/models/apis/fms/2018-01-01/docs-2.json +++ b/models/apis/fms/2018-01-01/docs-2.json @@ -24,7 +24,7 @@ "ListTagsForResource": "

Retrieves the list of tags for the specified Amazon Web Services resource.

", "PutAppsList": "

Creates an Firewall Manager applications list.

", "PutNotificationChannel": "

Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs.

To perform this action outside of the console, you must configure the SNS topic to allow the Firewall Manager role AWSServiceRoleForFMS to publish SNS logs. For more information, see Firewall Manager required permissions for API actions in the Firewall Manager Developer Guide.

", - "PutPolicy": "

Creates an Firewall Manager policy.

Firewall Manager provides the following types of policies:

Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, create multiple policies. You can create multiple policies for each type.

You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.

", + "PutPolicy": "

Creates an Firewall Manager policy.

Firewall Manager provides the following types of policies:

Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, create multiple policies. You can create multiple policies for each type.

You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.

", "PutProtocolsList": "

Creates an Firewall Manager protocols list.

", "TagResource": "

Adds one or more tags to an Amazon Web Services resource.

", "UntagResource": "

Removes one or more tags from an Amazon Web Services resource.

" @@ -156,10 +156,10 @@ "NetworkFirewallInvalidRouteConfigurationViolation$IsRouteTableUsedInDifferentAZ": "

Information about whether the route table is used in another Availability Zone.

", "Policy$ExcludeResourceTags": "

If set to True, resources with the tags that are specified in the ResourceTag array are not in scope of the policy. If set to False, and the ResourceTag array is not null, only resources with the specified tags are in scope of the policy.

", "Policy$RemediationEnabled": "

Indicates if the policy should be automatically applied to new resources.

", - "Policy$DeleteUnusedFMManagedResources": "

Indicates whether Firewall Manager should delete Firewall Manager managed resources, such as web ACLs and security groups, when they are not in use by the Firewall Manager policy. By default, Firewall Manager doesn't delete unused Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies.

", + "Policy$DeleteUnusedFMManagedResources": "

Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope.

By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources.

This option is not available for Shield Advanced or WAF Classic policies.

", "PolicyComplianceDetail$EvaluationLimitExceeded": "

Indicates if over 100 resources are noncompliant with the Firewall Manager policy.

", "PolicySummary$RemediationEnabled": "

Indicates if the policy should be automatically applied to new resources.

", - "PolicySummary$DeleteUnusedFMManagedResources": "

Indicates whether Firewall Manager should delete Firewall Manager managed resources, such as web ACLs and security groups, when they are not in use by the Firewall Manager policy. By default, Firewall Manager doesn't delete unused Firewall Manager managed resources. This option is not available for Shield Advanced or WAF Classic policies.

", + "PolicySummary$DeleteUnusedFMManagedResources": "

Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope.

By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources.

This option is not available for Shield Advanced or WAF Classic policies.

", "PossibleRemediationAction$IsDefaultAction": "

Information about whether an action is taken by default.

", "SecurityGroupRemediationAction$IsDefaultAction": "

Indicates if the current action is the default action.

" } @@ -603,7 +603,7 @@ "ManagedServiceData": { "base": null, "refs": { - "SecurityServicePolicyData$ManagedServiceData": "

Details about the service that are specific to the service type, in JSON format. For service type SHIELD_ADVANCED, this is an empty string.

" + "SecurityServicePolicyData$ManagedServiceData": "

Details about the service that are specific to the service type, in JSON format.

" } }, "MemberAccounts": { @@ -1087,7 +1087,7 @@ "refs": { "ComplianceViolator$ResourceType": "

The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::CloudFront::Distribution, or AWS::NetworkFirewall::FirewallPolicy.

", "GetViolationDetailsRequest$ResourceType": "

The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance, AWS::EC2::NetworkInterface, AWS::EC2::SecurityGroup, AWS::NetworkFirewall::FirewallPolicy, and AWS::EC2::Subnet.

", - "Policy$ResourceType": "

The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. To apply this policy to multiple resource types, specify a resource type of ResourceTypeList and then specify the resource types in a ResourceTypeList.

For WAF and Shield Advanced, example resource types include AWS::ElasticLoadBalancingV2::LoadBalancer and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC.

", + "Policy$ResourceType": "

The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. To apply this policy to multiple resource types, specify a resource type of ResourceTypeList and then specify the resource types in a ResourceTypeList.

For WAF and Shield Advanced, resource types include AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::ElasticLoadBalancing::LoadBalancer, AWS::EC2::EIP, and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC.

", "PolicySummary$ResourceType": "

The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. For WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC.

", "ResourceTypeList$member": null, "ViolationDetail$ResourceType": "

The resource type that the violation details were requested for.

" diff --git a/models/apis/honeycode/2020-03-01/api-2.json b/models/apis/honeycode/2020-03-01/api-2.json index e83f84a8554..58703ffbcf3 100644 --- a/models/apis/honeycode/2020-03-01/api-2.json +++ b/models/apis/honeycode/2020-03-01/api-2.json @@ -196,6 +196,24 @@ {"shape":"ValidationException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResult"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"RequestTimeoutException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ] + }, "QueryTableRows":{ "name":"QueryTableRows", "http":{ @@ -230,6 +248,42 @@ {"shape":"ThrottlingException"}, {"shape":"ValidationException"} ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResult"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"RequestTimeoutException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResult"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"RequestTimeoutException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ] } }, "shapes":{ @@ -837,6 +891,23 @@ "workbookCursor":{"shape":"WorkbookCursor"} } }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResult":{ + "type":"structure", + "members":{ + "tags":{"shape":"TagsMap"} + } + }, "MaxResults":{ "type":"integer", "box":true, @@ -907,6 +978,12 @@ }, "exception":true }, + "ResourceArn":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^arn:aws:honeycode:.+:[0-9]{12}:.+:.+$" + }, "ResourceId":{ "type":"string", "max":36, @@ -1114,6 +1191,49 @@ "type":"list", "member":{"shape":"Table"} }, + "TagKey":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[^\\n\\r\\x00\\x08\\x0B\\x0C\\x0E\\x1F]*$" + }, + "TagKeysList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":100 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{"shape":"TagsMap"} + } + }, + "TagResourceResult":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[^\\n\\r\\x00\\x08\\x0B\\x0C\\x0E\\x1F]*$" + }, + "TagsMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":100 + }, "ThrottlingException":{ "type":"structure", "members":{ @@ -1123,6 +1243,30 @@ "exception":true }, "TimestampInMillis":{"type":"timestamp"}, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeysList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResult":{ + "type":"structure", + "members":{ + } + }, "UpdateRowData":{ "type":"structure", "required":[ diff --git a/models/apis/honeycode/2020-03-01/docs-2.json b/models/apis/honeycode/2020-03-01/docs-2.json index beab7a4eb8f..28beb2ae994 100644 --- a/models/apis/honeycode/2020-03-01/docs-2.json +++ b/models/apis/honeycode/2020-03-01/docs-2.json @@ -12,8 +12,11 @@ "ListTableColumns": "

The ListTableColumns API allows you to retrieve a list of all the columns in a table in a workbook.

", "ListTableRows": "

The ListTableRows API allows you to retrieve a list of all the rows in a table in a workbook.

", "ListTables": "

The ListTables API allows you to retrieve a list of all the tables in a workbook.

", + "ListTagsForResource": "

The ListTagsForResource API allows you to return a resource's tags.

", "QueryTableRows": "

The QueryTableRows API allows you to use a filter formula to query for specific rows in a table.

", - "StartTableDataImportJob": "

The StartTableDataImportJob API allows you to start an import job on a table. This API will only return the id of the job that was started. To find out the status of the import request, you need to call the DescribeTableDataImportJob API.

" + "StartTableDataImportJob": "

The StartTableDataImportJob API allows you to start an import job on a table. This API will only return the id of the job that was started. To find out the status of the import request, you need to call the DescribeTableDataImportJob API.

", + "TagResource": "

The TagResource API allows you to add tags to an ARN-able resource. Resource includes workbook, table, screen and screen-automation.

", + "UntagResource": "

The UntagResource API allows you to removes tags from an ARN-able resource. Resource includes workbook, table, screen and screen-automation.

" }, "shapes": { "AccessDeniedException": { @@ -376,6 +379,16 @@ "refs": { } }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResult": { + "base": null, + "refs": { + } + }, "MaxResults": { "base": null, "refs": { @@ -430,6 +443,14 @@ "refs": { } }, + "ResourceArn": { + "base": null, + "refs": { + "ListTagsForResourceRequest$resourceArn": "

The resource's Amazon Resource Name (ARN).

", + "TagResourceRequest$resourceArn": "

The resource's Amazon Resource Name (ARN).

", + "UntagResourceRequest$resourceArn": "

The resource's Amazon Resource Name (ARN).

" + } + }, "ResourceId": { "base": null, "refs": { @@ -444,7 +465,7 @@ "DescribeTableDataImportJobRequest$workbookId": "

The ID of the workbook into which data was imported.

If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.

", "DescribeTableDataImportJobRequest$tableId": "

The ID of the table into which data was imported.

If a table with the specified id could not be found, this API throws ResourceNotFoundException.

", "GetScreenDataRequest$workbookId": "

The ID of the workbook that contains the screen.

", - "GetScreenDataRequest$appId": "

The ID of the app that contains the screem.

", + "GetScreenDataRequest$appId": "

The ID of the app that contains the screen.

", "GetScreenDataRequest$screenId": "

The ID of the screen.

", "ImportColumnMap$key": null, "InvokeScreenAutomationRequest$workbookId": "

The ID of the workbook that contains the screen automation.

", @@ -643,6 +664,42 @@ "ListTablesResult$tables": "

The list of tables in the workbook.

" } }, + "TagKey": { + "base": null, + "refs": { + "TagKeysList$member": null, + "TagsMap$key": null + } + }, + "TagKeysList": { + "base": "

A list of tag keys

", + "refs": { + "UntagResourceRequest$tagKeys": "

A list of tag keys to remove from the resource.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResult": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "TagsMap$value": null + } + }, + "TagsMap": { + "base": "

A string to string map representing tags

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

The resource's tags.

", + "TagResourceRequest$tags": "

A list of tags to apply to the resource.

" + } + }, "ThrottlingException": { "base": "

Tps(transactions per second) rate reached.

", "refs": { @@ -654,6 +711,16 @@ "TableDataImportJobMetadata$submitTime": "

The timestamp when the job was submitted for import.

" } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResult": { + "base": null, + "refs": { + } + }, "UpdateRowData": { "base": "

Data needed to create a single row in a table as part of the BatchCreateTableRows request.

", "refs": { diff --git a/models/apis/models.lex.v2/2020-08-07/api-2.json b/models/apis/models.lex.v2/2020-08-07/api-2.json index 9699b66481d..65d48057615 100644 --- a/models/apis/models.lex.v2/2020-08-07/api-2.json +++ b/models/apis/models.lex.v2/2020-08-07/api-2.json @@ -301,6 +301,24 @@ {"shape":"InternalServerException"} ] }, + "DeleteCustomVocabulary":{ + "name":"DeleteCustomVocabulary", + "http":{ + "method":"DELETE", + "requestUri":"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary", + "responseCode":202 + }, + "input":{"shape":"DeleteCustomVocabularyRequest"}, + "output":{"shape":"DeleteCustomVocabularyResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"PreconditionFailedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, "DeleteExport":{ "name":"DeleteExport", "http":{ @@ -517,6 +535,23 @@ {"shape":"InternalServerException"} ] }, + "DescribeCustomVocabularyMetadata":{ + "name":"DescribeCustomVocabularyMetadata", + "http":{ + "method":"GET", + "requestUri":"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata", + "responseCode":200 + }, + "input":{"shape":"DescribeCustomVocabularyMetadataRequest"}, + "output":{"shape":"DescribeCustomVocabularyMetadataResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "DescribeExport":{ "name":"DescribeExport", "http":{ @@ -1107,6 +1142,12 @@ } }, "shapes":{ + "AdvancedRecognitionSetting":{ + "type":"structure", + "members":{ + "audioRecognitionStrategy":{"shape":"AudioRecognitionStrategy"} + } + }, "AggregatedUtterancesFilter":{ "type":"structure", "required":[ @@ -1243,6 +1284,10 @@ "max":1, "min":1 }, + "AudioRecognitionStrategy":{ + "type":"string", + "enum":["UseSlotValuesAsCustomVocabulary"] + }, "Boolean":{"type":"boolean"}, "BotAliasHistoryEvent":{ "type":"structure", @@ -2230,6 +2275,42 @@ "max":1000, "min":1 }, + "CustomVocabularyExportSpecification":{ + "type":"structure", + "required":[ + "botId", + "botVersion", + "localeId" + ], + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"BotVersion"}, + "localeId":{"shape":"LocaleId"} + } + }, + "CustomVocabularyImportSpecification":{ + "type":"structure", + "required":[ + "botId", + "botVersion", + "localeId" + ], + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"DraftBotVersion"}, + "localeId":{"shape":"LocaleId"} + } + }, + "CustomVocabularyStatus":{ + "type":"string", + "enum":[ + "Ready", + "Deleting", + "Exporting", + "Importing", + "Creating" + ] + }, "DataPrivacy":{ "type":"structure", "required":["childDirected"], @@ -2369,6 +2450,40 @@ "botStatus":{"shape":"BotStatus"} } }, + "DeleteCustomVocabularyRequest":{ + "type":"structure", + "required":[ + "botId", + "botVersion", + "localeId" + ], + "members":{ + "botId":{ + "shape":"Id", + "location":"uri", + "locationName":"botId" + }, + "botVersion":{ + "shape":"DraftBotVersion", + "location":"uri", + "locationName":"botVersion" + }, + "localeId":{ + "shape":"LocaleId", + "location":"uri", + "locationName":"localeId" + } + } + }, + "DeleteCustomVocabularyResponse":{ + "type":"structure", + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"DraftBotVersion"}, + "localeId":{"shape":"LocaleId"}, + "customVocabularyStatus":{"shape":"CustomVocabularyStatus"} + } + }, "DeleteExportRequest":{ "type":"structure", "required":["exportId"], @@ -2777,6 +2892,42 @@ "creationDateTime":{"shape":"Timestamp"} } }, + "DescribeCustomVocabularyMetadataRequest":{ + "type":"structure", + "required":[ + "botId", + "botVersion", + "localeId" + ], + "members":{ + "botId":{ + "shape":"Id", + "location":"uri", + "locationName":"botId" + }, + "botVersion":{ + "shape":"BotVersion", + "location":"uri", + "locationName":"botVersion" + }, + "localeId":{ + "shape":"LocaleId", + "location":"uri", + "locationName":"localeId" + } + } + }, + "DescribeCustomVocabularyMetadataResponse":{ + "type":"structure", + "members":{ + "botId":{"shape":"Id"}, + "botVersion":{"shape":"BotVersion"}, + "localeId":{"shape":"LocaleId"}, + "customVocabularyStatus":{"shape":"CustomVocabularyStatus"}, + "creationDateTime":{"shape":"Timestamp"}, + "lastUpdatedDateTime":{"shape":"Timestamp"} + } + }, "DescribeExportRequest":{ "type":"structure", "required":["exportId"], @@ -3070,7 +3221,8 @@ "type":"structure", "members":{ "botExportSpecification":{"shape":"BotExportSpecification"}, - "botLocaleExportSpecification":{"shape":"BotLocaleExportSpecification"} + "botLocaleExportSpecification":{"shape":"BotLocaleExportSpecification"}, + "customVocabularyExportSpecification":{"shape":"CustomVocabularyExportSpecification"} } }, "ExportSortAttribute":{ @@ -3236,7 +3388,10 @@ }, "ImportExportFileFormat":{ "type":"string", - "enum":["LexJson"] + "enum":[ + "LexJson", + "TSV" + ] }, "ImportExportFilePassword":{ "type":"string", @@ -3278,9 +3433,18 @@ "type":"structure", "members":{ "botImportSpecification":{"shape":"BotImportSpecification"}, - "botLocaleImportSpecification":{"shape":"BotLocaleImportSpecification"} + "botLocaleImportSpecification":{"shape":"BotLocaleImportSpecification"}, + "customVocabularyImportSpecification":{"shape":"CustomVocabularyImportSpecification"} } }, + "ImportResourceType":{ + "type":"string", + "enum":[ + "Bot", + "BotLocale", + "CustomVocabulary" + ] + }, "ImportSortAttribute":{ "type":"string", "enum":["LastUpdatedDateTime"] @@ -3314,7 +3478,8 @@ "importStatus":{"shape":"ImportStatus"}, "mergeStrategy":{"shape":"MergeStrategy"}, "creationDateTime":{"shape":"Timestamp"}, - "lastUpdatedDateTime":{"shape":"Timestamp"} + "lastUpdatedDateTime":{"shape":"Timestamp"}, + "importedResourceType":{"shape":"ImportResourceType"} } }, "ImportSummaryList":{ @@ -3702,7 +3867,8 @@ "sortBy":{"shape":"ExportSortBy"}, "filters":{"shape":"ExportFilters"}, "maxResults":{"shape":"MaxResults"}, - "nextToken":{"shape":"NextToken"} + "nextToken":{"shape":"NextToken"}, + "localeId":{"shape":"LocaleId"} } }, "ListExportsResponse":{ @@ -3711,7 +3877,8 @@ "botId":{"shape":"Id"}, "botVersion":{"shape":"BotVersion"}, "exportSummaries":{"shape":"ExportSummaryList"}, - "nextToken":{"shape":"NextToken"} + "nextToken":{"shape":"NextToken"}, + "localeId":{"shape":"LocaleId"} } }, "ListImportsRequest":{ @@ -3722,7 +3889,8 @@ "sortBy":{"shape":"ImportSortBy"}, "filters":{"shape":"ImportFilters"}, "maxResults":{"shape":"MaxResults"}, - "nextToken":{"shape":"NextToken"} + "nextToken":{"shape":"NextToken"}, + "localeId":{"shape":"LocaleId"} } }, "ListImportsResponse":{ @@ -3731,7 +3899,8 @@ "botId":{"shape":"Id"}, "botVersion":{"shape":"DraftBotVersion"}, "importSummaries":{"shape":"ImportSummaryList"}, - "nextToken":{"shape":"NextToken"} + "nextToken":{"shape":"NextToken"}, + "localeId":{"shape":"LocaleId"} } }, "ListIntentsRequest":{ @@ -4596,7 +4765,8 @@ "required":["resolutionStrategy"], "members":{ "resolutionStrategy":{"shape":"SlotValueResolutionStrategy"}, - "regexFilter":{"shape":"SlotValueRegexFilter"} + "regexFilter":{"shape":"SlotValueRegexFilter"}, + "advancedRecognitionSetting":{"shape":"AdvancedRecognitionSetting"} } }, "SortOrder":{ diff --git a/models/apis/models.lex.v2/2020-08-07/docs-2.json b/models/apis/models.lex.v2/2020-08-07/docs-2.json index 7c3db0ade85..8b81520a4da 100644 --- a/models/apis/models.lex.v2/2020-08-07/docs-2.json +++ b/models/apis/models.lex.v2/2020-08-07/docs-2.json @@ -18,6 +18,7 @@ "DeleteBotAlias": "

Deletes the specified bot alias.

", "DeleteBotLocale": "

Removes a locale from a bot.

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

", "DeleteBotVersion": "

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

", + "DeleteCustomVocabulary": "

Removes a custom vocabulary from the specified locale in the specified bot.

", "DeleteExport": "

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

", "DeleteImport": "

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

", "DeleteIntent": "

Removes the specified intent.

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

", @@ -31,6 +32,7 @@ "DescribeBotLocale": "

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

", "DescribeBotRecommendation": "

Provides metadata information about a bot recommendation. This information will enable you to get a description on the request inputs, to download associated transcripts after processing is complete, and to download intents and slot-types generated by the bot recommendation.

", "DescribeBotVersion": "

Provides metadata about a version of a bot.

", + "DescribeCustomVocabularyMetadata": "

Provides metadata information about a custom vocabulary.

", "DescribeExport": "

Gets information about a specific export.

", "DescribeImport": "

Gets information about a specific import.

", "DescribeIntent": "

Returns metadata about an intent.

", @@ -45,8 +47,8 @@ "ListBots": "

Gets a list of available bots.

", "ListBuiltInIntents": "

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

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

", "ListBuiltInSlotTypes": "

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

", - "ListExports": "

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

", - "ListImports": "

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

", + "ListExports": "

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

", + "ListImports": "

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

", "ListIntents": "

Get a list of intents that meet the specified criteria.

", "ListRecommendedIntents": "

Gets a list of recommended intents provided by the bot recommendation that you can use in your bot.

", "ListSlotTypes": "

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

", @@ -54,7 +56,7 @@ "ListTagsForResource": "

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

", "SearchAssociatedTranscripts": "

Search for associated transcripts that meet the specified criteria.

", "StartBotRecommendation": "

Use this to provide your transcript data, and to start the bot recommendation process.

", - "StartImport": "

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

", + "StartImport": "

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

", "TagResource": "

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

", "UntagResource": "

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

", "UpdateBot": "

Updates the configuration of an existing bot.

", @@ -68,6 +70,12 @@ "UpdateSlotType": "

Updates the configuration of an existing slot type.

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

Provides settings that enable advanced recognition settings for slot values.

", + "refs": { + "SlotValueSelectionSetting$advancedRecognitionSetting": "

Provides settings that enable advanced recognition settings for slot values.

" + } + }, "AggregatedUtterancesFilter": { "base": "

Filters responses returned by the ListAggregatedUtterances operation.

", "refs": { @@ -197,6 +205,12 @@ "ConversationLogSettings$audioLogSettings": "

The Amazon S3 settings for logging audio to an S3 bucket.

" } }, + "AudioRecognitionStrategy": { + "base": null, + "refs": { + "AdvancedRecognitionSetting$audioRecognitionStrategy": "

Enables using the slot values as a custom vocabulary for recognizing user utterances.

" + } + }, "Boolean": { "base": null, "refs": { @@ -480,9 +494,12 @@ "BotLocaleExportSpecification$botVersion": "

The version of the bot to export.

", "BotVersionLocaleDetails$sourceBotVersion": "

The version of a bot used for a bot locale.

", "BotVersionSummary$botVersion": "

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

", + "CustomVocabularyExportSpecification$botVersion": "

The version of the bot that contains the custom vocabulary to export.

", "DescribeBotAliasResponse$botVersion": "

The version of the bot associated with the bot alias.

", "DescribeBotLocaleRequest$botVersion": "

The identifier of the version of the bot associated with the locale.

", "DescribeBotLocaleResponse$botVersion": "

The identifier of the version of the bot associated with the locale.

", + "DescribeCustomVocabularyMetadataRequest$botVersion": "

The bot version of the bot to return metadata for.

", + "DescribeCustomVocabularyMetadataResponse$botVersion": "

The version of the bot that contains the custom vocabulary to describe.

", "DescribeIntentRequest$botVersion": "

The version of the bot associated with the intent.

", "DescribeSlotRequest$botVersion": "

The version of the bot associated with the slot.

", "DescribeSlotResponse$botVersion": "

The version of the bot associated with the slot.

", @@ -885,6 +902,25 @@ "CustomPayload$value": "

The string that is sent to your application.

" } }, + "CustomVocabularyExportSpecification": { + "base": "

Provides the parameters required for exporting a custom vocabulary.

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

The parameters required to export a custom vocabulary.

" + } + }, + "CustomVocabularyImportSpecification": { + "base": "

Provides the parameters required for importing a custom vocabulary.

", + "refs": { + "ImportResourceSpecification$customVocabularyImportSpecification": null + } + }, + "CustomVocabularyStatus": { + "base": null, + "refs": { + "DeleteCustomVocabularyResponse$customVocabularyStatus": "

The status of removing the custom vocabulary.

", + "DescribeCustomVocabularyMetadataResponse$customVocabularyStatus": "

The status of the custom vocabulary. If the status is Ready the custom vocabulary is ready to use.

" + } + }, "DataPrivacy": { "base": "

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

", "refs": { @@ -943,6 +979,16 @@ "refs": { } }, + "DeleteCustomVocabularyRequest": { + "base": null, + "refs": { + } + }, + "DeleteCustomVocabularyResponse": { + "base": null, + "refs": { + } + }, "DeleteExportRequest": { "base": null, "refs": { @@ -1058,6 +1104,16 @@ "refs": { } }, + "DescribeCustomVocabularyMetadataRequest": { + "base": null, + "refs": { + } + }, + "DescribeCustomVocabularyMetadataResponse": { + "base": null, + "refs": { + } + }, "DescribeExportRequest": { "base": null, "refs": { @@ -1189,8 +1245,11 @@ "CreateSlotResponse$botVersion": "

The version of the bot associated with the slot.

", "CreateSlotTypeRequest$botVersion": "

The identifier of the bot version associated with this slot type.

", "CreateSlotTypeResponse$botVersion": "

The version of the bot associated with the slot type.

", + "CustomVocabularyImportSpecification$botVersion": "

The version of the bot to import the custom vocabulary to.

", "DeleteBotLocaleRequest$botVersion": "

The version of the bot that contains the locale.

", "DeleteBotLocaleResponse$botVersion": "

The version of the bot that contained the deleted locale.

", + "DeleteCustomVocabularyRequest$botVersion": "

The version of the bot to remove the custom vocabulary from.

", + "DeleteCustomVocabularyResponse$botVersion": "

The version of the bot that the custom vocabulary was removed from.

", "DeleteIntentRequest$botVersion": "

The version of the bot associated with the intent.

", "DeleteSlotRequest$botVersion": "

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

", "DeleteSlotTypeRequest$botVersion": "

The version of the bot associated with the slot type.

", @@ -1360,8 +1419,8 @@ "AssociatedTranscriptFilter$values": "

The values to use to filter the transcript.

", "BotFilter$values": "

The value to use for filtering the list of bots.

", "BotLocaleFilter$values": "

The value to use for filtering the list of bots.

", - "ExportFilter$values": "

The values to use to filter the response.

", - "ImportFilter$values": "

The values to use to filter the response.

", + "ExportFilter$values": "

The values to use to filter the response. The values must be Bot, BotLocale, or CustomVocabulary.

", + "ImportFilter$values": "

The values to use to filter the response. The values must be Bot, BotLocale, or CustomVocabulary.

", "IntentFilter$values": "

The value to use for the filter.

", "SlotFilter$values": "

The value to use to filter the response.

", "SlotTypeFilter$values": "

The value to use to filter the response.

" @@ -1461,6 +1520,8 @@ "CreateSlotTypeResponse$slotTypeId": "

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

", "CreateSlotTypeResponse$botId": "

The identifier for the bot associated with the slot type.

", "CreateUploadUrlResponse$importId": "

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

", + "CustomVocabularyExportSpecification$botId": "

The identifier of the bot that contains the custom vocabulary to export.

", + "CustomVocabularyImportSpecification$botId": "

The identifier of the bot to import the custom vocabulary to.

", "DeleteBotAliasRequest$botId": "

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

", "DeleteBotAliasResponse$botId": "

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

", "DeleteBotLocaleRequest$botId": "

The unique identifier of the bot that contains the locale.

", @@ -1469,6 +1530,8 @@ "DeleteBotResponse$botId": "

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

", "DeleteBotVersionRequest$botId": "

The identifier of the bot that contains the version.

", "DeleteBotVersionResponse$botId": "

The identifier of the bot that is being deleted.

", + "DeleteCustomVocabularyRequest$botId": "

The unique identifier of the bot to remove the custom vocabulary from.

", + "DeleteCustomVocabularyResponse$botId": "

The identifier of the bot that the custom vocabulary was removed from.

", "DeleteExportRequest$exportId": "

The unique identifier of the export to delete.

", "DeleteExportResponse$exportId": "

The unique identifier of the deleted export.

", "DeleteImportRequest$importId": "

The unique identifier of the import to delete.

", @@ -1493,6 +1556,8 @@ "DescribeBotResponse$botId": "

The unique identifier of the bot.

", "DescribeBotVersionRequest$botId": "

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

", "DescribeBotVersionResponse$botId": "

The identifier of the bot that contains the version.

", + "DescribeCustomVocabularyMetadataRequest$botId": "

The unique identifier of the bot that contains the custom vocabulary.

", + "DescribeCustomVocabularyMetadataResponse$botId": "

The identifier of the bot that contains the custom vocabulary.

", "DescribeExportRequest$exportId": "

The unique identifier of the export to describe.

", "DescribeExportResponse$exportId": "

The unique identifier of the described export.

", "DescribeImportRequest$importId": "

The unique identifier of the import to describe.

", @@ -1592,16 +1657,16 @@ "refs": { "CreateExportRequest$fileFormat": "

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

", "CreateExportResponse$fileFormat": "

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

", - "DescribeExportResponse$fileFormat": "

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

", + "DescribeExportResponse$fileFormat": "

The file format used in the files that describe the resource.

", "ExportSummary$fileFormat": "

The file format used in the export files.

", - "UpdateExportResponse$fileFormat": "

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

" + "UpdateExportResponse$fileFormat": "

The file format used for the files that define the resource. The TSV format is required to export a custom vocabulary only; otherwise use LexJson format.

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

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

", - "StartImportRequest$filePassword": "

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

", + "StartImportRequest$filePassword": "

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

", "UpdateExportRequest$filePassword": "

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

" } }, @@ -1632,9 +1697,15 @@ "ImportResourceSpecification": { "base": "

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

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

The specifications of the imported bot or bot locale.

", - "StartImportRequest$resourceSpecification": "

Parameters for creating the bot or bot locale.

", - "StartImportResponse$resourceSpecification": "

The parameters used when importing the bot or bot locale.

" + "DescribeImportResponse$resourceSpecification": "

The specifications of the imported bot, bot locale, or custom vocabulary.

", + "StartImportRequest$resourceSpecification": "

Parameters for creating the bot, bot locale or custom vocabulary.

", + "StartImportResponse$resourceSpecification": "

The parameters used when importing the resource.

" + } + }, + "ImportResourceType": { + "base": null, + "refs": { + "ImportSummary$importedResourceType": "

The type of resource that was imported.

" } }, "ImportSortAttribute": { @@ -1655,7 +1726,7 @@ "DeleteImportResponse$importStatus": "

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

", "DescribeImportResponse$importStatus": "

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

", "ImportSummary$importStatus": "

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

", - "StartImportResponse$importStatus": "

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

" + "StartImportResponse$importStatus": "

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

" } }, "ImportSummary": { @@ -1996,8 +2067,12 @@ "CreateSlotResponse$localeId": "

The language and local specified for the slot.

", "CreateSlotTypeRequest$localeId": "

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

", "CreateSlotTypeResponse$localeId": "

The specified language and local specified for the slot type.

", + "CustomVocabularyExportSpecification$localeId": "

The locale of the bot that contains the custom vocabulary to export.

", + "CustomVocabularyImportSpecification$localeId": "

The identifier of the local to import the custom vocabulary to. The value must be en_GB.

", "DeleteBotLocaleRequest$localeId": "

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

", "DeleteBotLocaleResponse$localeId": "

The language and locale of the deleted locale.

", + "DeleteCustomVocabularyRequest$localeId": "

The locale identifier for the locale that contains the custom vocabulary to remove.

", + "DeleteCustomVocabularyResponse$localeId": "

The locale identifier for the locale that the custom vocabulary was removed from.

", "DeleteIntentRequest$localeId": "

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

", "DeleteSlotRequest$localeId": "

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

", "DeleteSlotTypeRequest$localeId": "

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

", @@ -2006,6 +2081,8 @@ "DescribeBotLocaleResponse$localeId": "

The unique identifier of the described locale.

", "DescribeBotRecommendationRequest$localeId": "

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

", "DescribeBotRecommendationResponse$localeId": "

The identifier of the language and locale of the bot recommendation to describe.

", + "DescribeCustomVocabularyMetadataRequest$localeId": "

The locale to return the custom vocabulary information for. The locale must be en_GB.

", + "DescribeCustomVocabularyMetadataResponse$localeId": "

The locale that contains the custom vocabulary to describe.

", "DescribeIntentRequest$localeId": "

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

", "DescribeIntentResponse$localeId": "

The language and locale specified for the intent.

", "DescribeSlotRequest$localeId": "

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

", @@ -2020,6 +2097,10 @@ "ListBuiltInIntentsResponse$localeId": "

The language and locale of the intents in the list.

", "ListBuiltInSlotTypesRequest$localeId": "

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

", "ListBuiltInSlotTypesResponse$localeId": "

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

", + "ListExportsRequest$localeId": "

Specifies the resources that should be exported. If you don't specify a resource type in the filters parameter, both bot locales and custom vocabularies are exported.

", + "ListExportsResponse$localeId": "

The locale specified in the request.

", + "ListImportsRequest$localeId": "

Specifies the locale that should be present in the list. If you don't specify a resource type in the filters parameter, the list contains both bot locales and custom vocabularies.

", + "ListImportsResponse$localeId": "

The locale specified in the request.

", "ListIntentsRequest$localeId": "

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

", "ListIntentsResponse$localeId": "

The language and locale of the intents in the list.

", "ListRecommendedIntentsRequest$localeId": "

The identifier of the language and locale of the recommended intents.

", @@ -2198,17 +2279,17 @@ "ListBotRecommendationsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBotRecommendations operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBotRecommendations operation request to get the next page of results.

", "ListBotVersionsRequest$nextToken": "

If the response to the ListBotVersion operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", "ListBotVersionsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBotVersions operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBotAliases operation request to get the next page of results.

", - "ListBotsRequest$nextToken": "

If the response from the ListBots operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", + "ListBotsRequest$nextToken": "

If the response from the ListBots operation contains more results than specified in the maxResults parameter, a token is returned in the response.

Use the returned token in the nextToken parameter of a ListBots request to return the next page of results. For a complete set of results, call the ListBots operation until the nextToken returned in the response is null.

", "ListBotsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBots operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBots operation request to get the next page of results.

", "ListBuiltInIntentsRequest$nextToken": "

If the response from the ListBuiltInIntents operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", "ListBuiltInIntentsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBuiltInIntents operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBotAliases operation request to get the next page of results.

", "ListBuiltInSlotTypesRequest$nextToken": "

If the response from the ListBuiltInSlotTypes operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", "ListBuiltInSlotTypesResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListBuiltInSlotTypes operation. If the nextToken field is present, you send the contents as the nextToken parameter of a LIstBuiltInSlotTypes operation request to get the next page of results.

", - "ListExportsRequest$nextToken": "

If the response from the ListExports operation contains more results that specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", + "ListExportsRequest$nextToken": "

If the response from the ListExports operation contains more results that specified in the maxResults parameter, a token is returned in the response.

Use the returned token in the nextToken parameter of a ListExports request to return the next page of results. For a complete set of results, call the ListExports operation until the nextToken returned in the response is null.

", "ListExportsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListExports operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListExports operation request to get the next page of results.

", - "ListImportsRequest$nextToken": "

If the response from the ListImports operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", + "ListImportsRequest$nextToken": "

If the response from the ListImports operation contains more results than specified in the maxResults parameter, a token is returned in the response.

Use the returned token in the nextToken parameter of a ListImports request to return the next page of results. For a complete set of results, call the ListImports operation until the nextToken returned in the response is null.

", "ListImportsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListImports operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListImports operation request to get the next page of results.

", - "ListIntentsRequest$nextToken": "

If the response from the ListIntents operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", + "ListIntentsRequest$nextToken": "

If the response from the ListIntents operation contains more results than specified in the maxResults parameter, a token is returned in the response.

Use the returned token in the nextToken parameter of a ListIntents request to return the next page of results. For a complete set of results, call the ListIntents operation until the nextToken returned in the response is null.

", "ListIntentsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListIntents operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListIntents operation request to get the next page of results.

", "ListRecommendedIntentsRequest$nextToken": "

If the response from the ListRecommendedIntents operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.

", "ListRecommendedIntentsResponse$nextToken": "

A token that indicates whether there are more results to return in a response to the ListRecommendedIntents operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListRecommendedIntents operation request to get the next page of results.

", @@ -2998,6 +3079,8 @@ "DescribeBotResponse$creationDateTime": "

A timestamp of the date and time that the bot was created.

", "DescribeBotResponse$lastUpdatedDateTime": "

A timestamp of the date and time that the bot was last updated.

", "DescribeBotVersionResponse$creationDateTime": "

A timestamp of the date and time that the bot version was created.

", + "DescribeCustomVocabularyMetadataResponse$creationDateTime": "

The date and time that the custom vocabulary was created.

", + "DescribeCustomVocabularyMetadataResponse$lastUpdatedDateTime": "

The date and time that the custom vocabulary was last updated.

", "DescribeExportResponse$creationDateTime": "

The date and time that the export was created.

", "DescribeExportResponse$lastUpdatedDateTime": "

The last date and time that the export was updated.

", "DescribeImportResponse$creationDateTime": "

The date and time that the import was created.

", diff --git a/models/apis/pi/2018-02-27/api-2.json b/models/apis/pi/2018-02-27/api-2.json index 8cb458830da..bfe4e2c04b4 100644 --- a/models/apis/pi/2018-02-27/api-2.json +++ b/models/apis/pi/2018-02-27/api-2.json @@ -42,6 +42,20 @@ {"shape":"NotAuthorizedException"} ] }, + "GetResourceMetadata":{ + "name":"GetResourceMetadata", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResourceMetadataRequest"}, + "output":{"shape":"GetResourceMetadataResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"InternalServiceError"}, + {"shape":"NotAuthorizedException"} + ] + }, "GetResourceMetrics":{ "name":"GetResourceMetrics", "http":{ @@ -55,9 +69,48 @@ {"shape":"InternalServiceError"}, {"shape":"NotAuthorizedException"} ] + }, + "ListAvailableResourceDimensions":{ + "name":"ListAvailableResourceDimensions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAvailableResourceDimensionsRequest"}, + "output":{"shape":"ListAvailableResourceDimensionsResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"InternalServiceError"}, + {"shape":"NotAuthorizedException"} + ] + }, + "ListAvailableResourceMetrics":{ + "name":"ListAvailableResourceMetrics", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAvailableResourceMetricsRequest"}, + "output":{"shape":"ListAvailableResourceMetricsResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"InternalServiceError"}, + {"shape":"NotAuthorizedException"} + ] } }, "shapes":{ + "AdditionalMetricsList":{ + "type":"list", + "member":{"shape":"RequestString"}, + "max":30, + "min":1 + }, + "AdditionalMetricsMap":{ + "type":"map", + "key":{"shape":"RequestString"}, + "value":{"shape":"Double"} + }, "DataPoint":{ "type":"structure", "required":[ @@ -91,6 +144,7 @@ "Metric":{"shape":"RequestString"}, "PeriodInSeconds":{"shape":"Integer"}, "GroupBy":{"shape":"DimensionGroup"}, + "AdditionalMetrics":{"shape":"AdditionalMetricsList"}, "PartitionBy":{"shape":"DimensionGroup"}, "Filter":{"shape":"MetricQueryFilterMap"}, "MaxResults":{"shape":"MaxResults"}, @@ -107,6 +161,11 @@ "NextToken":{"shape":"NextToken"} } }, + "Description":{ + "type":"string", + "max":2048, + "min":1 + }, "DetailStatus":{ "type":"string", "enum":[ @@ -115,6 +174,16 @@ "UNAVAILABLE" ] }, + "DimensionDetail":{ + "type":"structure", + "members":{ + "Identifier":{"shape":"String"} + } + }, + "DimensionDetailList":{ + "type":"list", + "member":{"shape":"DimensionDetail"} + }, "DimensionGroup":{ "type":"structure", "required":["Group"], @@ -124,11 +193,23 @@ "Limit":{"shape":"Limit"} } }, + "DimensionGroupDetail":{ + "type":"structure", + "members":{ + "Group":{"shape":"String"}, + "Dimensions":{"shape":"DimensionDetailList"} + } + }, + "DimensionGroupDetailList":{ + "type":"list", + "member":{"shape":"DimensionGroupDetail"} + }, "DimensionKeyDescription":{ "type":"structure", "members":{ "Dimensions":{"shape":"DimensionMap"}, "Total":{"shape":"Double"}, + "AdditionalMetrics":{"shape":"AdditionalMetricsMap"}, "Partitions":{"shape":"MetricValuesList"} } }, @@ -153,8 +234,36 @@ "key":{"shape":"RequestString"}, "value":{"shape":"RequestString"} }, + "DimensionsMetricList":{ + "type":"list", + "member":{"shape":"RequestString"}, + "max":5, + "min":1 + }, "Double":{"type":"double"}, "ErrorString":{"type":"string"}, + "FeatureMetadata":{ + "type":"structure", + "members":{ + "Status":{"shape":"FeatureStatus"} + } + }, + "FeatureMetadataMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"FeatureMetadata"} + }, + "FeatureStatus":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED", + "UNSUPPORTED", + "ENABLED_PENDING_REBOOT", + "DISABLED_PENDING_REBOOT", + "UNKNOWN" + ] + }, "GetDimensionKeyDetailsRequest":{ "type":"structure", "required":[ @@ -177,6 +286,24 @@ "Dimensions":{"shape":"DimensionKeyDetailList"} } }, + "GetResourceMetadataRequest":{ + "type":"structure", + "required":[ + "ServiceType", + "Identifier" + ], + "members":{ + "ServiceType":{"shape":"ServiceType"}, + "Identifier":{"shape":"RequestString"} + } + }, + "GetResourceMetadataResponse":{ + "type":"structure", + "members":{ + "Identifier":{"shape":"String"}, + "Features":{"shape":"FeatureMetadataMap"} + } + }, "GetResourceMetricsRequest":{ "type":"structure", "required":[ @@ -235,11 +362,66 @@ "max":10, "min":1 }, + "ListAvailableResourceDimensionsRequest":{ + "type":"structure", + "required":[ + "ServiceType", + "Identifier", + "Metrics" + ], + "members":{ + "ServiceType":{"shape":"ServiceType"}, + "Identifier":{"shape":"RequestString"}, + "Metrics":{"shape":"DimensionsMetricList"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAvailableResourceDimensionsResponse":{ + "type":"structure", + "members":{ + "MetricDimensions":{"shape":"MetricDimensionsList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAvailableResourceMetricsRequest":{ + "type":"structure", + "required":[ + "ServiceType", + "Identifier", + "MetricTypes" + ], + "members":{ + "ServiceType":{"shape":"ServiceType"}, + "Identifier":{"shape":"RequestString"}, + "MetricTypes":{"shape":"MetricTypeList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListAvailableResourceMetricsResponse":{ + "type":"structure", + "members":{ + "Metrics":{"shape":"ResponseResourceMetricList"}, + "NextToken":{"shape":"NextToken"} + } + }, "MaxResults":{ "type":"integer", "max":20, "min":0 }, + "MetricDimensionGroups":{ + "type":"structure", + "members":{ + "Metric":{"shape":"String"}, + "Groups":{"shape":"DimensionGroupDetailList"} + } + }, + "MetricDimensionsList":{ + "type":"list", + "member":{"shape":"MetricDimensionGroups"} + }, "MetricKeyDataPoints":{ "type":"structure", "members":{ @@ -271,6 +453,10 @@ "max":15, "min":1 }, + "MetricTypeList":{ + "type":"list", + "member":{"shape":"RequestString"} + }, "MetricValuesList":{ "type":"list", "member":{"shape":"Double"} @@ -317,6 +503,14 @@ "type":"list", "member":{"shape":"ResponsePartitionKey"} }, + "ResponseResourceMetric":{ + "type":"structure", + "members":{ + "Metric":{"shape":"String"}, + "Description":{"shape":"Description"}, + "Unit":{"shape":"String"} + } + }, "ResponseResourceMetricKey":{ "type":"structure", "required":["Metric"], @@ -325,9 +519,16 @@ "Dimensions":{"shape":"DimensionMap"} } }, + "ResponseResourceMetricList":{ + "type":"list", + "member":{"shape":"ResponseResourceMetric"} + }, "ServiceType":{ "type":"string", - "enum":["RDS"] + "enum":[ + "RDS", + "DOCDB" + ] }, "String":{ "type":"string", diff --git a/models/apis/pi/2018-02-27/docs-2.json b/models/apis/pi/2018-02-27/docs-2.json index c822018e527..63c9b5ae6a8 100644 --- a/models/apis/pi/2018-02-27/docs-2.json +++ b/models/apis/pi/2018-02-27/docs-2.json @@ -1,12 +1,27 @@ { "version": "2.0", - "service": "Amazon RDS Performance Insights

Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on data captured from a running DB instance. The guide provides detailed information about Performance Insights data types, parameters and errors.

When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific view of DB load.

DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include SQL, Wait event, User, and Host.

", + "service": "Amazon RDS Performance Insights

Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on data captured from a running DB instance. The guide provides detailed information about Performance Insights data types, parameters and errors.

When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon CloudWatch provides the authoritative source for Amazon Web Services service-vended monitoring metrics. Performance Insights offers a domain-specific view of DB load.

DB load is measured as average active sessions. Performance Insights provides the data to API consumers as a two-dimensional time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include SQL, Wait event, User, and Host.

", "operations": { - "DescribeDimensionKeys": "

For a specific time period, retrieve the top N dimension keys for a metric.

Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

", - "GetDimensionKeyDetails": "

Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text.

", - "GetResourceMetrics": "

Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide specific dimension groups and dimensions, and provide aggregation and filtering criteria for each group.

Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

" + "DescribeDimensionKeys": "

For a specific time period, retrieve the top N dimension keys for a metric.

Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

", + "GetDimensionKeyDetails": "

Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statementcassociated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text.

", + "GetResourceMetadata": "

Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.

", + "GetResourceMetrics": "

Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide specific dimension groups and dimensions, and provide aggregation and filtering criteria for each group.

Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

", + "ListAvailableResourceDimensions": "

Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance.

", + "ListAvailableResourceMetrics": "

Retrieve metrics of the specified types that can be queried for a specified DB instance.

" }, "shapes": { + "AdditionalMetricsList": { + "base": null, + "refs": { + "DescribeDimensionKeysRequest$AdditionalMetrics": "

Additional metrics for the top N dimension keys. If the specified dimension group in the GroupBy parameter is db.sql_tokenized, you can specify per-SQL metrics to get the values for the top N SQL digests. The response syntax is \"AdditionalMetrics\" : { \"string\" : \"string\" }.

" + } + }, + "AdditionalMetricsMap": { + "base": null, + "refs": { + "DimensionKeyDescription$AdditionalMetrics": "

A map that contains the value for each additional metric.

" + } + }, "DataPoint": { "base": "

A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.

", "refs": { @@ -29,22 +44,52 @@ "refs": { } }, + "Description": { + "base": null, + "refs": { + "ResponseResourceMetric$Description": "

The description of the metric.

" + } + }, "DetailStatus": { "base": null, "refs": { "DimensionKeyDetail$Status": "

The status of the dimension detail data. Possible values include the following:

" } }, + "DimensionDetail": { + "base": "

The information about a dimension.

", + "refs": { + "DimensionDetailList$member": null + } + }, + "DimensionDetailList": { + "base": null, + "refs": { + "DimensionGroupDetail$Dimensions": "

The dimensions within a dimension group.

" + } + }, "DimensionGroup": { "base": "

A logical grouping of Performance Insights metrics for a related subject area. For example, the db.sql dimension group consists of the following dimensions: db.sql.id, db.sql.db_id, db.sql.statement, and db.sql.tokenized_id.

Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

", "refs": { - "DescribeDimensionKeysRequest$GroupBy": "

A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.

", - "DescribeDimensionKeysRequest$PartitionBy": "

For each dimension specified in GroupBy, specify a secondary dimension to further subdivide the partition keys in the response.

", + "DescribeDimensionKeysRequest$GroupBy": "

A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.

", + "DescribeDimensionKeysRequest$PartitionBy": "

For each dimension specified in GroupBy, specify a secondary dimension to further subdivide the partition keys in the response.

", "MetricQuery$GroupBy": "

A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return all of the dimensions within that group, unless you provide the names of specific dimensions within that group. You can also request that Performance Insights return a limited number of values for a dimension.

" } }, + "DimensionGroupDetail": { + "base": "

Information about dimensions within a dimension group.

", + "refs": { + "DimensionGroupDetailList$member": null + } + }, + "DimensionGroupDetailList": { + "base": null, + "refs": { + "MetricDimensionGroups$Groups": "

The available dimension groups for a metric type.

" + } + }, "DimensionKeyDescription": { - "base": "

An array of descriptions and aggregated values for each dimension within a dimension group.

", + "base": "

An object that includes the requested dimension key values and aggregated metric values within a dimension group.

", "refs": { "DimensionKeyDescriptionList$member": null } @@ -71,15 +116,22 @@ "base": null, "refs": { "DimensionKeyDescription$Dimensions": "

A map of name-value pairs for the dimensions in the group.

", - "ResponsePartitionKey$Dimensions": "

A dimension map that contains the dimension(s) for this partition.

", + "ResponsePartitionKey$Dimensions": "

A dimension map that contains the dimensions for this partition.

", "ResponseResourceMetricKey$Dimensions": "

The valid dimensions for the metric.

" } }, + "DimensionsMetricList": { + "base": null, + "refs": { + "ListAvailableResourceDimensionsRequest$Metrics": "

The types of metrics for which to retrieve dimensions. Valid values include db.load.

" + } + }, "Double": { "base": null, "refs": { + "AdditionalMetricsMap$value": null, "DataPoint$Value": "

The actual value associated with a particular Timestamp.

", - "DimensionKeyDescription$Total": "

The aggregated metric value for the dimension(s), over the requested time range.

", + "DimensionKeyDescription$Total": "

The aggregated metric value for the dimensions, over the requested time range.

", "MetricValuesList$member": null } }, @@ -91,6 +143,24 @@ "NotAuthorizedException$Message": null } }, + "FeatureMetadata": { + "base": "

The metadata for a feature. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.

", + "refs": { + "FeatureMetadataMap$value": null + } + }, + "FeatureMetadataMap": { + "base": null, + "refs": { + "GetResourceMetadataResponse$Features": "

The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.

" + } + }, + "FeatureStatus": { + "base": null, + "refs": { + "FeatureMetadata$Status": "

The status of the feature on the DB instance. Possible values include the following:

" + } + }, "GetDimensionKeyDetailsRequest": { "base": null, "refs": { @@ -101,6 +171,16 @@ "refs": { } }, + "GetResourceMetadataRequest": { + "base": null, + "refs": { + } + }, + "GetResourceMetadataResponse": { + "base": null, + "refs": { + } + }, "GetResourceMetricsRequest": { "base": null, "refs": { @@ -115,10 +195,10 @@ "base": null, "refs": { "DataPoint$Timestamp": "

The time, in epoch format, associated with a particular Value.

", - "DescribeDimensionKeysRequest$StartTime": "

The date and time specifying the beginning of the requested time series data. You must specify a StartTime within the past 7 days. The value specified is inclusive, which means that data points equal to or greater than StartTime are returned.

The value for StartTime must be earlier than the value for EndTime.

", + "DescribeDimensionKeysRequest$StartTime": "

The date and time specifying the beginning of the requested time series data. You must specify a StartTime within the past 7 days. The value specified is inclusive, which means that data points equal to or greater than StartTime are returned.

The value for StartTime must be earlier than the value for EndTime.

", "DescribeDimensionKeysRequest$EndTime": "

The date and time specifying the end of the requested time series data. The value specified is exclusive, which means that data points less than (but not equal to) EndTime are returned.

The value for EndTime must be later than the value for StartTime.

", - "DescribeDimensionKeysResponse$AlignedStartTime": "

The start time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

", - "DescribeDimensionKeysResponse$AlignedEndTime": "

The end time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

", + "DescribeDimensionKeysResponse$AlignedStartTime": "

The start time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

", + "DescribeDimensionKeysResponse$AlignedEndTime": "

The end time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

", "GetResourceMetricsRequest$StartTime": "

The date and time specifying the beginning of the requested time series data. You can't specify a StartTime that's earlier than 7 days ago. The value specified is inclusive - data points equal to or greater than StartTime will be returned.

The value for StartTime must be earlier than the value for EndTime.

", "GetResourceMetricsRequest$EndTime": "

The date and time specifying the end of the requested time series data. The value specified is exclusive - data points less than (but not equal to) EndTime will be returned.

The value for EndTime must be later than the value for StartTime.

", "GetResourceMetricsResponse$AlignedStartTime": "

The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

", @@ -128,13 +208,13 @@ "IdentifierString": { "base": null, "refs": { - "GetDimensionKeyDetailsRequest$Identifier": "

The ID for a data source from which to gather dimension data. This ID must be immutable and unique within an AWS Region. When a DB instance is the data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

" + "GetDimensionKeyDetailsRequest$Identifier": "

The ID for a data source from which to gather dimension data. This ID must be immutable and unique within an Amazon Web Services Region. When a DB instance is the data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

" } }, "Integer": { "base": null, "refs": { - "DescribeDimensionKeysRequest$PeriodInSeconds": "

The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:

If you don't specify PeriodInSeconds, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.

", + "DescribeDimensionKeysRequest$PeriodInSeconds": "

The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:

If you don't specify PeriodInSeconds, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.

", "GetResourceMetricsRequest$PeriodInSeconds": "

The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:

If you don't specify PeriodInSeconds, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response.

" } }, @@ -154,11 +234,45 @@ "DimensionGroup$Limit": "

The maximum number of items to fetch for this dimension group.

" } }, + "ListAvailableResourceDimensionsRequest": { + "base": null, + "refs": { + } + }, + "ListAvailableResourceDimensionsResponse": { + "base": null, + "refs": { + } + }, + "ListAvailableResourceMetricsRequest": { + "base": null, + "refs": { + } + }, + "ListAvailableResourceMetricsResponse": { + "base": null, + "refs": { + } + }, "MaxResults": { "base": null, "refs": { "DescribeDimensionKeysRequest$MaxResults": "

The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.

", - "GetResourceMetricsRequest$MaxResults": "

The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.

" + "GetResourceMetricsRequest$MaxResults": "

The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.

", + "ListAvailableResourceDimensionsRequest$MaxResults": "

The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.

", + "ListAvailableResourceMetricsRequest$MaxResults": "

The maximum number of items to return. If the MaxRecords value is less than the number of existing items, the response includes a pagination token.

" + } + }, + "MetricDimensionGroups": { + "base": "

The available dimension information for a metric type.

", + "refs": { + "MetricDimensionsList$member": null + } + }, + "MetricDimensionsList": { + "base": null, + "refs": { + "ListAvailableResourceDimensionsResponse$MetricDimensions": "

The dimension information returned for requested metric types.

" } }, "MetricKeyDataPoints": { @@ -174,7 +288,7 @@ } }, "MetricQuery": { - "base": "

A single query to be processed. You must provide the metric to query. If no other parameters are specified, Performance Insights returns all of the data points for that metric. You can optionally request that the data points be aggregated by dimension group ( GroupBy), and return only those data points that match your criteria (Filter).

", + "base": "

A single query to be processed. You must provide the metric to query. If no other parameters are specified, Performance Insights returns all data points for the specified metric. Optionally, you can request that the data points be aggregated by dimension group (GroupBy), and return only those data points that match your criteria (Filter).

", "refs": { "MetricQueryList$member": null } @@ -192,6 +306,12 @@ "GetResourceMetricsRequest$MetricQueries": "

An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.

" } }, + "MetricTypeList": { + "base": null, + "refs": { + "ListAvailableResourceMetricsRequest$MetricTypes": "

The types of metrics to return in the response. Valid values in the array include the following:

" + } + }, "MetricValuesList": { "base": null, "refs": { @@ -201,10 +321,14 @@ "NextToken": { "base": null, "refs": { - "DescribeDimensionKeysRequest$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", - "DescribeDimensionKeysResponse$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", + "DescribeDimensionKeysRequest$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", + "DescribeDimensionKeysResponse$NextToken": "

A pagination token that indicates the response didn’t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value.

", "GetResourceMetricsRequest$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", - "GetResourceMetricsResponse$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

" + "GetResourceMetricsResponse$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", + "ListAvailableResourceDimensionsRequest$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", + "ListAvailableResourceDimensionsResponse$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", + "ListAvailableResourceMetricsRequest$NextToken": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

", + "ListAvailableResourceMetricsResponse$NextToken": "

A pagination token that indicates the response didn’t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value.

" } }, "NotAuthorizedException": { @@ -215,17 +339,24 @@ "RequestString": { "base": null, "refs": { - "DescribeDimensionKeysRequest$Identifier": "

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A

", - "DescribeDimensionKeysRequest$Metric": "

The name of a Performance Insights metric to be measured.

Valid values for Metric are:

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

", - "DimensionGroup$Group": "

The name of the dimension group. Valid values are:

", + "AdditionalMetricsList$member": null, + "AdditionalMetricsMap$key": null, + "DescribeDimensionKeysRequest$Identifier": "

An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A.

", + "DescribeDimensionKeysRequest$Metric": "

The name of a Performance Insights metric to be measured.

Valid values for Metric are:

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

", + "DimensionGroup$Group": "

The name of the dimension group. Valid values are:

", "DimensionMap$key": null, "DimensionMap$value": null, + "DimensionsMetricList$member": null, "GetDimensionKeyDetailsRequest$Group": "

The name of the dimension group. The only valid value is db.sql. Performance Insights searches the specified group for the dimension group ID.

", "GetDimensionKeyDetailsRequest$GroupIdentifier": "

The ID of the dimension group from which to retrieve dimension details. For dimension group db.sql, the group ID is db.sql.id.

", - "GetResourceMetricsRequest$Identifier": "

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A.

", + "GetResourceMetadataRequest$Identifier": "

An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

", + "GetResourceMetricsRequest$Identifier": "

An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A.

", + "ListAvailableResourceDimensionsRequest$Identifier": "

An immutable identifier for a data source that is unique within an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ.

", + "ListAvailableResourceMetricsRequest$Identifier": "

An immutable identifier for a data source that is unique within an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ.

", "MetricQuery$Metric": "

The name of a Performance Insights metric to be measured.

Valid values for Metric are:

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

", "MetricQueryFilterMap$key": null, "MetricQueryFilterMap$value": null, + "MetricTypeList$member": null, "RequestStringList$member": null, "RequestedDimensionList$member": null } @@ -233,13 +364,13 @@ "RequestStringList": { "base": null, "refs": { - "DimensionGroup$Dimensions": "

A list of specific dimensions from a dimension group. If this parameter is not present, then it signifies that all of the dimensions in the group were requested, or are present in the response.

Valid values for elements in the Dimensions array are:

" + "DimensionGroup$Dimensions": "

A list of specific dimensions from a dimension group. If this parameter is not present, then it signifies that all of the dimensions in the group were requested, or are present in the response.

Valid values for elements in the Dimensions array are:

" } }, "RequestedDimensionList": { "base": null, "refs": { - "GetDimensionKeyDetailsRequest$RequestedDimensions": "

A list of dimensions to retrieve the detail data for within the given dimension group. For the dimension group db.sql, specify either the full dimension name db.sql.statement or the short dimension name statement. If you don't specify this parameter, Performance Insights returns all dimension data within the specified dimension group.

" + "GetDimensionKeyDetailsRequest$RequestedDimensions": "

A list of dimensions to retrieve the detail data for within the given dimension group. For the dimension group db.sql, specify either the full dimension name db.sql.statement or the short dimension name statement. If you don't specify this parameter, Performance Insights returns all dimension data within the specified dimension group.

" } }, "ResponsePartitionKey": { @@ -251,29 +382,51 @@ "ResponsePartitionKeyList": { "base": null, "refs": { - "DescribeDimensionKeysResponse$PartitionKeys": "

If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions.

" + "DescribeDimensionKeysResponse$PartitionKeys": "

If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions.

" + } + }, + "ResponseResourceMetric": { + "base": "

An object that contains the full name, description, and unit of a metric.

", + "refs": { + "ResponseResourceMetricList$member": null } }, "ResponseResourceMetricKey": { "base": "

An object describing a Performance Insights metric and one or more dimensions for that metric.

", "refs": { - "MetricKeyDataPoints$Key": "

The dimension(s) to which the data points apply.

" + "MetricKeyDataPoints$Key": "

The dimensions to which the data points apply.

" + } + }, + "ResponseResourceMetricList": { + "base": null, + "refs": { + "ListAvailableResourceMetricsResponse$Metrics": "

An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.

" } }, "ServiceType": { "base": null, "refs": { - "DescribeDimensionKeysRequest$ServiceType": "

The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType is RDS.

", - "GetDimensionKeyDetailsRequest$ServiceType": "

The AWS service for which Performance Insights returns data. The only valid value is RDS.

", - "GetResourceMetricsRequest$ServiceType": "

The AWS service for which Performance Insights returns metrics. The only valid value for ServiceType is RDS.

" + "DescribeDimensionKeysRequest$ServiceType": "

The Amazon Web Services service for which Performance Insights will return metrics. The only valid value for ServiceType is RDS.

", + "GetDimensionKeyDetailsRequest$ServiceType": "

The Amazon Web Services service for which Performance Insights returns data. The only valid value is RDS.

", + "GetResourceMetadataRequest$ServiceType": "

The Amazon Web Services service for which Performance Insights returns metrics.

", + "GetResourceMetricsRequest$ServiceType": "

The Amazon Web Services service for which Performance Insights returns metrics. The only valid value for ServiceType is RDS.

", + "ListAvailableResourceDimensionsRequest$ServiceType": "

The Amazon Web Services service for which Performance Insights returns metrics.

", + "ListAvailableResourceMetricsRequest$ServiceType": "

The Amazon Web Services service for which Performance Insights returns metrics.

" } }, "String": { "base": null, "refs": { + "DimensionDetail$Identifier": "

The identifier of a dimension.

", + "DimensionGroupDetail$Group": "

The name of the dimension group.

", "DimensionKeyDetail$Value": "

The value of the dimension detail data. For the db.sql.statement dimension, this value is either the full or truncated SQL query, depending on the return status.

", "DimensionKeyDetail$Dimension": "

The full name of the dimension. The full name includes the group name and key name. The only valid value is db.sql.statement.

", - "GetResourceMetricsResponse$Identifier": "

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use a DB instance as a data source, you specify its DbiResourceId value - for example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A

", + "FeatureMetadataMap$key": null, + "GetResourceMetadataResponse$Identifier": "

An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

", + "GetResourceMetricsResponse$Identifier": "

An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use a DB instance as a data source, you specify its DbiResourceId value - for example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A

", + "MetricDimensionGroups$Metric": "

The metric type to which the dimension information belongs.

", + "ResponseResourceMetric$Metric": "

The full name of the metric.

", + "ResponseResourceMetric$Unit": "

The unit of the metric.

", "ResponseResourceMetricKey$Metric": "

The name of a Performance Insights metric to be measured.

Valid values for Metric are:

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

" } } diff --git a/models/apis/pi/2018-02-27/paginators-1.json b/models/apis/pi/2018-02-27/paginators-1.json index 5677bd8e4a2..8392da5c25b 100644 --- a/models/apis/pi/2018-02-27/paginators-1.json +++ b/models/apis/pi/2018-02-27/paginators-1.json @@ -1,4 +1,24 @@ { "pagination": { + "DescribeDimensionKeys": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "GetResourceMetrics": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListAvailableResourceDimensions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListAvailableResourceMetrics": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } } } diff --git a/service/ec2/api.go b/service/ec2/api.go index 846f1c8d39d..23c33c61977 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -162146,6 +162146,9 @@ const ( // InstanceTypeHi14xlarge is a InstanceType enum value InstanceTypeHi14xlarge = "hi1.4xlarge" + // InstanceTypeHpc6a48xlarge is a InstanceType enum value + InstanceTypeHpc6a48xlarge = "hpc6a.48xlarge" + // InstanceTypeHs18xlarge is a InstanceType enum value InstanceTypeHs18xlarge = "hs1.8xlarge" @@ -163250,6 +163253,7 @@ func InstanceType_Values() []string { InstanceTypeG5g16xlarge, InstanceTypeG5gMetal, InstanceTypeHi14xlarge, + InstanceTypeHpc6a48xlarge, InstanceTypeHs18xlarge, InstanceTypeH12xlarge, InstanceTypeH14xlarge, diff --git a/service/elasticache/api.go b/service/elasticache/api.go index 0693703160c..23454f25e12 100644 --- a/service/elasticache/api.go +++ b/service/elasticache/api.go @@ -6935,7 +6935,7 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) // enabled) clusters. // // If you make changes to parameters that require a Redis (cluster mode enabled) -// cluster reboot for the changes to be applied, see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html) +// cluster reboot for the changes to be applied, see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/nodes.rebooting.html) // for an alternate process. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -8036,7 +8036,7 @@ type CacheCluster struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and for Memcached engine version + // only for Redis engine version 6.0 onward and for Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -8476,7 +8476,7 @@ func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available -// only for Redis engine version 5.0.6 onward and for Memcached engine version +// only for Redis engine version 6.0 onward and for Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -9625,7 +9625,7 @@ type CreateCacheClusterInput struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and Memcached engine version + // only for Redis engine version 6.0 onward and Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -10590,7 +10590,7 @@ type CreateReplicationGroupInput struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and Memcached engine version + // only for Redis engine version 6.0 onward and Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -14051,7 +14051,7 @@ type DescribeReservedCacheNodesInput struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and for Memcached engine version + // only for Redis engine version 6.0 onward and for Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -14216,7 +14216,7 @@ type DescribeReservedCacheNodesOfferingsInput struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and for Memcached engine version + // only for Redis engine version 6.0 onward and for Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -19994,7 +19994,7 @@ type ReservedCacheNode struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and Memcached engine version + // only for Redis engine version 6.0 onward and Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -20184,7 +20184,7 @@ type ReservedCacheNodesOffering struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and Memcached engine version + // only for Redis engine version 6.0 onward and Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not @@ -20832,7 +20832,7 @@ type Snapshot struct { // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available - // only for Redis engine version 5.0.6 onward and Memcached engine version + // only for Redis engine version 6.0 onward and Memcached engine version // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not diff --git a/service/fms/api.go b/service/fms/api.go index 5ea8b008d97..be1e4e656a2 100644 --- a/service/fms/api.go +++ b/service/fms/api.go @@ -7264,11 +7264,17 @@ func (s *PartialMatch) SetTargetViolationReasons(v []*string) *PartialMatch { type Policy struct { _ struct{} `type:"structure"` - // Indicates whether Firewall Manager should delete Firewall Manager managed - // resources, such as web ACLs and security groups, when they are not in use - // by the Firewall Manager policy. By default, Firewall Manager doesn't delete - // unused Firewall Manager managed resources. This option is not available for - // Shield Advanced or WAF Classic policies. + // Indicates whether Firewall Manager should automatically remove protections + // from resources that leave the policy scope and clean up resources that Firewall + // Manager is managing for accounts when those accounts leave policy scope. + // For example, Firewall Manager will disassociate a Firewall Manager managed + // web ACL from a protected customer resource when the customer resource leaves + // policy scope. + // + // By default, Firewall Manager doesn't remove protections or delete Firewall + // Manager managed resources. + // + // This option is not available for Shield Advanced or WAF Classic policies. DeleteUnusedFMManagedResources *bool `type:"boolean"` // Specifies the Amazon Web Services account IDs and Organizations organizational @@ -7354,13 +7360,13 @@ type Policy struct { // To apply this policy to multiple resource types, specify a resource type // of ResourceTypeList and then specify the resource types in a ResourceTypeList. // - // For WAF and Shield Advanced, example resource types include AWS::ElasticLoadBalancingV2::LoadBalancer - // and AWS::CloudFront::Distribution. For a security group common policy, valid - // values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security - // group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, - // and AWS::EC2::Instance. For a security group usage audit policy, the value - // is AWS::EC2::SecurityGroup. For an Network Firewall policy or DNS Firewall - // policy, the value is AWS::EC2::VPC. + // For WAF and Shield Advanced, resource types include AWS::ElasticLoadBalancingV2::LoadBalancer, + // AWS::ElasticLoadBalancing::LoadBalancer, AWS::EC2::EIP, and AWS::CloudFront::Distribution. + // For a security group common policy, valid values are AWS::EC2::NetworkInterface + // and AWS::EC2::Instance. For a security group content audit policy, valid + // values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. + // For a security group usage audit policy, the value is AWS::EC2::SecurityGroup. + // For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC. // // ResourceType is a required field ResourceType *string `min:"1" type:"string" required:"true"` @@ -7703,11 +7709,17 @@ func (s *PolicyComplianceStatus) SetPolicyOwner(v string) *PolicyComplianceStatu type PolicySummary struct { _ struct{} `type:"structure"` - // Indicates whether Firewall Manager should delete Firewall Manager managed - // resources, such as web ACLs and security groups, when they are not in use - // by the Firewall Manager policy. By default, Firewall Manager doesn't delete - // unused Firewall Manager managed resources. This option is not available for - // Shield Advanced or WAF Classic policies. + // Indicates whether Firewall Manager should automatically remove protections + // from resources that leave the policy scope and clean up resources that Firewall + // Manager is managing for accounts when those accounts leave policy scope. + // For example, Firewall Manager will disassociate a Firewall Manager managed + // web ACL from a protected customer resource when the customer resource leaves + // policy scope. + // + // By default, Firewall Manager doesn't remove protections or delete Firewall + // Manager managed resources. + // + // This option is not available for Shield Advanced or WAF Classic policies. DeleteUnusedFMManagedResources *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the specified policy. @@ -9150,7 +9162,7 @@ type SecurityServicePolicyData struct { _ struct{} `type:"structure"` // Details about the service that are specific to the service type, in JSON - // format. For service type SHIELD_ADVANCED, this is an empty string. + // format. // // * Example: DNS_FIREWALL "{\"type\":\"DNS_FIREWALL\",\"preProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-1\",\"priority\":10}],\"postProcessRuleGroups\":[{\"ruleGroupId\":\"rslvr-frg-2\",\"priority\":9911}]}" // Valid values for preProcessRuleGroups are between 1 and 99. Valid values @@ -9159,6 +9171,17 @@ type SecurityServicePolicyData struct { // * Example: NETWORK_FIREWALL "{\"type\":\"NETWORK_FIREWALL\",\"networkFirewallStatelessRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-1:1234567891011:stateless-rulegroup/rulegroup2\",\"priority\":10}],\"networkFirewallStatelessDefaultActions\":[\"aws:pass\",\"custom1\"],\"networkFirewallStatelessFragmentDefaultActions\":[\"custom2\",\"aws:pass\"],\"networkFirewallStatelessCustomActions\":[{\"actionName\":\"custom1\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"dimension1\"}]}}},{\"actionName\":\"custom2\",\"actionDefinition\":{\"publishMetricAction\":{\"dimensions\":[{\"value\":\"dimension2\"}]}}}],\"networkFirewallStatefulRuleGroupReferences\":[{\"resourceARN\":\"arn:aws:network-firewall:us-west-1:1234567891011:stateful-rulegroup/rulegroup1\"}],\"networkFirewallOrchestrationConfig\":{\"singleFirewallEndpointPerVPC\":true,\"allowedIPV4CidrList\":[\"10.24.34.0/28\"]} // }" // + // * Specification for SHIELD_ADVANCED for Amazon CloudFront distributions + // "{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": {\"automaticResponseStatus\":\"ENABLED|IGNORED|DISABLED\", + // \"automaticResponseAction\":\"BLOCK|COUNT\"}, \"overrideCustomerWebaclClassic\":true|false}" + // For example: "{\"type\":\"SHIELD_ADVANCED\",\"automaticResponseConfiguration\": + // {\"automaticResponseStatus\":\"ENABLED\", \"automaticResponseAction\":\"COUNT\"}}" + // The default value for automaticResponseStatus is IGNORED. The value for + // automaticResponseAction is only required when automaticResponseStatus + // is set to ENABLED. The default value for overrideCustomerWebaclClassic + // is false. For other resource types that you can protect with a Shield + // Advanced policy, this ManagedServiceData configuration is an empty string. + // // * Example: WAFV2 "{\"type\":\"WAFV2\",\"preProcessRuleGroups\":[{\"ruleGroupArn\":null,\"overrideAction\":{\"type\":\"NONE\"},\"managedRuleGroupIdentifier\":{\"version\":null,\"vendorName\":\"AWS\",\"managedRuleGroupName\":\"AWSManagedRulesAmazonIpReputationList\"},\"ruleGroupType\":\"ManagedRuleGroup\",\"excludeRules\":[{\"name\":\"NoUserAgent_HEADER\"}]}],\"postProcessRuleGroups\":[],\"defaultAction\":{\"type\":\"ALLOW\"},\"overrideCustomerWebACLAssociation\":false,\"loggingConfiguration\":{\"logDestinationConfigs\":[\"arn:aws:firehose:us-west-2:12345678912:deliverystream/aws-waf-logs-fms-admin-destination\"],\"redactedFields\":[{\"redactedFieldType\":\"SingleHeader\",\"redactedFieldValue\":\"Cookies\"},{\"redactedFieldType\":\"Method\"}]}}" // In the loggingConfiguration, you can specify one logDestinationConfigs, // you can optionally provide up to 20 redactedFields, and the RedactedFieldType diff --git a/service/honeycode/api.go b/service/honeycode/api.go index cbb67ee9eda..6458a44bd0a 100644 --- a/service/honeycode/api.go +++ b/service/honeycode/api.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opBatchCreateTableRows = "BatchCreateTableRows" @@ -1242,6 +1243,107 @@ func (c *Honeycode) ListTablesPagesWithContext(ctx aws.Context, input *ListTable 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/honeycode-2020-03-01/ListTagsForResource +func (c *Honeycode) 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 Honeycode. +// +// The ListTagsForResource API allows you to return a resource's tags. +// +// 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 Honeycode's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You do not have sufficient access to perform this action. Check that the +// workbook is owned by you and your IAM policy allows access to the resource +// in the request. +// +// * InternalServerException +// There were unexpected errors from the server. +// +// * RequestTimeoutException +// The request timed out. +// +// * ResourceNotFoundException +// A Workbook, Table, App, Screen or Screen Automation was not found with the +// given ID. +// +// * ServiceUnavailableException +// Remote service is unreachable. +// +// * ThrottlingException +// Tps(transactions per second) rate reached. +// +// * ValidationException +// Request is invalid. The message in the response contains details on why the +// request is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/ListTagsForResource +func (c *Honeycode) 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 *Honeycode) 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 opQueryTableRows = "QueryTableRows" // QueryTableRowsRequest generates a "aws/request.Request" representing the @@ -1503,6 +1605,212 @@ func (c *Honeycode) StartTableDataImportJobWithContext(ctx aws.Context, input *S 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/honeycode-2020-03-01/TagResource +func (c *Honeycode) 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 Honeycode. +// +// The TagResource API allows you to add tags to an ARN-able resource. Resource +// includes workbook, table, screen and screen-automation. +// +// 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 Honeycode's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You do not have sufficient access to perform this action. Check that the +// workbook is owned by you and your IAM policy allows access to the resource +// in the request. +// +// * InternalServerException +// There were unexpected errors from the server. +// +// * RequestTimeoutException +// The request timed out. +// +// * ResourceNotFoundException +// A Workbook, Table, App, Screen or Screen Automation was not found with the +// given ID. +// +// * ServiceUnavailableException +// Remote service is unreachable. +// +// * ThrottlingException +// Tps(transactions per second) rate reached. +// +// * ValidationException +// Request is invalid. The message in the response contains details on why the +// request is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/TagResource +func (c *Honeycode) 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 *Honeycode) 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/honeycode-2020-03-01/UntagResource +func (c *Honeycode) 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 Honeycode. +// +// The UntagResource API allows you to removes tags from an ARN-able resource. +// Resource includes workbook, table, screen and screen-automation. +// +// 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 Honeycode's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You do not have sufficient access to perform this action. Check that the +// workbook is owned by you and your IAM policy allows access to the resource +// in the request. +// +// * InternalServerException +// There were unexpected errors from the server. +// +// * RequestTimeoutException +// The request timed out. +// +// * ResourceNotFoundException +// A Workbook, Table, App, Screen or Screen Automation was not found with the +// given ID. +// +// * ServiceUnavailableException +// Remote service is unreachable. +// +// * ThrottlingException +// Tps(transactions per second) rate reached. +// +// * ValidationException +// Request is invalid. The message in the response contains details on why the +// request is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/UntagResource +func (c *Honeycode) 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 *Honeycode) 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() +} + // You do not have sufficient access to perform this action. Check that the // workbook is owned by you and your IAM policy allows access to the resource // in the request. @@ -3109,7 +3417,7 @@ func (s *Filter) SetFormula(v string) *Filter { type GetScreenDataInput struct { _ struct{} `type:"structure"` - // The ID of the app that contains the screem. + // The ID of the app that contains the screen. // // AppId is a required field AppId *string `locationName:"appId" min:"36" type:"string" required:"true"` @@ -4233,6 +4541,86 @@ func (s *ListTablesOutput) SetWorkbookCursor(v int64) *ListTablesOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The resource's Amazon Resource Name (ARN). + // + // 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"` + + // The resource's tags. + 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 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 +} + type QueryTableRowsInput struct { _ struct{} `type:"structure"` @@ -5226,6 +5614,91 @@ func (s *TableRow) SetRowId(v string) *TableRow { return s } +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The resource's Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // A list of tags to apply to the resource. + // + // 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() +} + // Tps(transactions per second) rate reached. type ThrottlingException struct { _ struct{} `type:"structure"` @@ -5290,6 +5763,91 @@ func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The resource's Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // A list of tag keys to remove from the resource. + // + // 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() +} + // Data needed to create a single row in a table as part of the BatchCreateTableRows // request. type UpdateRowData struct { diff --git a/service/honeycode/honeycodeiface/interface.go b/service/honeycode/honeycodeiface/interface.go index 599f85f144a..b57b4dea8a0 100644 --- a/service/honeycode/honeycodeiface/interface.go +++ b/service/honeycode/honeycodeiface/interface.go @@ -109,6 +109,10 @@ type HoneycodeAPI interface { ListTablesPages(*honeycode.ListTablesInput, func(*honeycode.ListTablesOutput, bool) bool) error ListTablesPagesWithContext(aws.Context, *honeycode.ListTablesInput, func(*honeycode.ListTablesOutput, bool) bool, ...request.Option) error + ListTagsForResource(*honeycode.ListTagsForResourceInput) (*honeycode.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *honeycode.ListTagsForResourceInput, ...request.Option) (*honeycode.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*honeycode.ListTagsForResourceInput) (*request.Request, *honeycode.ListTagsForResourceOutput) + QueryTableRows(*honeycode.QueryTableRowsInput) (*honeycode.QueryTableRowsOutput, error) QueryTableRowsWithContext(aws.Context, *honeycode.QueryTableRowsInput, ...request.Option) (*honeycode.QueryTableRowsOutput, error) QueryTableRowsRequest(*honeycode.QueryTableRowsInput) (*request.Request, *honeycode.QueryTableRowsOutput) @@ -119,6 +123,14 @@ type HoneycodeAPI interface { StartTableDataImportJob(*honeycode.StartTableDataImportJobInput) (*honeycode.StartTableDataImportJobOutput, error) StartTableDataImportJobWithContext(aws.Context, *honeycode.StartTableDataImportJobInput, ...request.Option) (*honeycode.StartTableDataImportJobOutput, error) StartTableDataImportJobRequest(*honeycode.StartTableDataImportJobInput) (*request.Request, *honeycode.StartTableDataImportJobOutput) + + TagResource(*honeycode.TagResourceInput) (*honeycode.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *honeycode.TagResourceInput, ...request.Option) (*honeycode.TagResourceOutput, error) + TagResourceRequest(*honeycode.TagResourceInput) (*request.Request, *honeycode.TagResourceOutput) + + UntagResource(*honeycode.UntagResourceInput) (*honeycode.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *honeycode.UntagResourceInput, ...request.Option) (*honeycode.UntagResourceOutput, error) + UntagResourceRequest(*honeycode.UntagResourceInput) (*request.Request, *honeycode.UntagResourceOutput) } var _ HoneycodeAPI = (*honeycode.Honeycode)(nil) diff --git a/service/lexmodelsv2/api.go b/service/lexmodelsv2/api.go index 9948955522d..3c7fef1532e 100644 --- a/service/lexmodelsv2/api.go +++ b/service/lexmodelsv2/api.go @@ -1658,6 +1658,104 @@ func (c *LexModelsV2) DeleteBotVersionWithContext(ctx aws.Context, input *Delete return out, req.Send() } +const opDeleteCustomVocabulary = "DeleteCustomVocabulary" + +// DeleteCustomVocabularyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCustomVocabulary 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 DeleteCustomVocabulary for more information on using the DeleteCustomVocabulary +// 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 DeleteCustomVocabularyRequest method. +// req, resp := client.DeleteCustomVocabularyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabulary +func (c *LexModelsV2) DeleteCustomVocabularyRequest(input *DeleteCustomVocabularyInput) (req *request.Request, output *DeleteCustomVocabularyOutput) { + op := &request.Operation{ + Name: opDeleteCustomVocabulary, + HTTPMethod: "DELETE", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary", + } + + if input == nil { + input = &DeleteCustomVocabularyInput{} + } + + output = &DeleteCustomVocabularyOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCustomVocabulary API operation for Amazon Lex Model Building V2. +// +// Removes a custom vocabulary from the specified locale in the specified bot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lex Model Building V2's +// API operation DeleteCustomVocabulary for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// Your request rate is too high. Reduce the frequency of requests. +// +// * ServiceQuotaExceededException +// You have reached a quota for your bot. +// +// * ValidationException +// One of the input parameters in your request isn't valid. Check the parameters +// and try your request again. +// +// * PreconditionFailedException +// Your request couldn't be completed because one or more request fields aren't +// valid. Check the fields in your request and try again. +// +// * ConflictException +// The action that you tried to perform couldn't be completed because the resource +// is in a conflicting state. For example, deleting a bot that is in the CREATING +// state. Try your request again. +// +// * InternalServerException +// The service encountered an unexpected condition. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabulary +func (c *LexModelsV2) DeleteCustomVocabulary(input *DeleteCustomVocabularyInput) (*DeleteCustomVocabularyOutput, error) { + req, out := c.DeleteCustomVocabularyRequest(input) + return out, req.Send() +} + +// DeleteCustomVocabularyWithContext is the same as DeleteCustomVocabulary with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCustomVocabulary for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LexModelsV2) DeleteCustomVocabularyWithContext(ctx aws.Context, input *DeleteCustomVocabularyInput, opts ...request.Option) (*DeleteCustomVocabularyOutput, error) { + req, out := c.DeleteCustomVocabularyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteExport = "DeleteExport" // DeleteExportRequest generates a "aws/request.Request" representing the @@ -2894,6 +2992,99 @@ func (c *LexModelsV2) DescribeBotVersionWithContext(ctx aws.Context, input *Desc return out, req.Send() } +const opDescribeCustomVocabularyMetadata = "DescribeCustomVocabularyMetadata" + +// DescribeCustomVocabularyMetadataRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCustomVocabularyMetadata 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 DescribeCustomVocabularyMetadata for more information on using the DescribeCustomVocabularyMetadata +// 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 DescribeCustomVocabularyMetadataRequest method. +// req, resp := client.DescribeCustomVocabularyMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadata +func (c *LexModelsV2) DescribeCustomVocabularyMetadataRequest(input *DescribeCustomVocabularyMetadataInput) (req *request.Request, output *DescribeCustomVocabularyMetadataOutput) { + op := &request.Operation{ + Name: opDescribeCustomVocabularyMetadata, + HTTPMethod: "GET", + HTTPPath: "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata", + } + + if input == nil { + input = &DescribeCustomVocabularyMetadataInput{} + } + + output = &DescribeCustomVocabularyMetadataOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCustomVocabularyMetadata API operation for Amazon Lex Model Building V2. +// +// Provides metadata information about a custom vocabulary. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Lex Model Building V2's +// API operation DescribeCustomVocabularyMetadata for usage and error information. +// +// Returned Error Types: +// * ThrottlingException +// Your request rate is too high. Reduce the frequency of requests. +// +// * ServiceQuotaExceededException +// You have reached a quota for your bot. +// +// * ValidationException +// One of the input parameters in your request isn't valid. Check the parameters +// and try your request again. +// +// * ResourceNotFoundException +// You asked to describe a resource that doesn't exist. Check the resource that +// you are requesting and try again. +// +// * InternalServerException +// The service encountered an unexpected condition. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadata +func (c *LexModelsV2) DescribeCustomVocabularyMetadata(input *DescribeCustomVocabularyMetadataInput) (*DescribeCustomVocabularyMetadataOutput, error) { + req, out := c.DescribeCustomVocabularyMetadataRequest(input) + return out, req.Send() +} + +// DescribeCustomVocabularyMetadataWithContext is the same as DescribeCustomVocabularyMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCustomVocabularyMetadata for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LexModelsV2) DescribeCustomVocabularyMetadataWithContext(ctx aws.Context, input *DescribeCustomVocabularyMetadataInput, opts ...request.Option) (*DescribeCustomVocabularyMetadataOutput, error) { + req, out := c.DescribeCustomVocabularyMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeExport = "DescribeExport" // DescribeExportRequest generates a "aws/request.Request" representing the @@ -4700,8 +4891,8 @@ func (c *LexModelsV2) ListExportsRequest(input *ListExportsInput) (req *request. // ListExports API operation for Amazon Lex Model Building V2. // -// Lists the exports for a bot or bot locale. Exports are kept in the list for -// 7 days. +// Lists the exports for a bot, bot locale, or custom vocabulary. Exports are +// kept in the list for 7 days. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4845,8 +5036,8 @@ func (c *LexModelsV2) ListImportsRequest(input *ListImportsInput) (req *request. // ListImports API operation for Amazon Lex Model Building V2. // -// Lists the imports for a bot or bot locale. Imports are kept in the list for -// 7 days. +// Lists the imports for a bot, bot locale, or custom vocabulary. Imports are +// kept in the list for 7 days. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5869,8 +6060,8 @@ func (c *LexModelsV2) StartImportRequest(input *StartImportInput) (req *request. // StartImport API operation for Amazon Lex Model Building V2. // -// Starts importing a bot or bot locale from a zip archive that you uploaded -// to an S3 bucket. +// Starts importing a bot, bot locale, or custom vocabulary from a zip archive +// that you uploaded to an S3 bucket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7003,6 +7194,39 @@ func (c *LexModelsV2) UpdateSlotTypeWithContext(ctx aws.Context, input *UpdateSl return out, req.Send() } +// Provides settings that enable advanced recognition settings for slot values. +type AdvancedRecognitionSetting struct { + _ struct{} `type:"structure"` + + // Enables using the slot values as a custom vocabulary for recognizing user + // utterances. + AudioRecognitionStrategy *string `locationName:"audioRecognitionStrategy" type:"string" enum:"AudioRecognitionStrategy"` +} + +// 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 AdvancedRecognitionSetting) 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 AdvancedRecognitionSetting) GoString() string { + return s.String() +} + +// SetAudioRecognitionStrategy sets the AudioRecognitionStrategy field's value. +func (s *AdvancedRecognitionSetting) SetAudioRecognitionStrategy(v string) *AdvancedRecognitionSetting { + s.AudioRecognitionStrategy = &v + return s +} + // Filters responses returned by the ListAggregatedUtterances operation. type AggregatedUtterancesFilter struct { _ struct{} `type:"structure"` @@ -12252,6 +12476,169 @@ func (s *CustomPayload) SetValue(v string) *CustomPayload { return s } +// Provides the parameters required for exporting a custom vocabulary. +type CustomVocabularyExportSpecification struct { + _ struct{} `type:"structure"` + + // The identifier of the bot that contains the custom vocabulary to export. + // + // BotId is a required field + BotId *string `locationName:"botId" min:"10" type:"string" required:"true"` + + // The version of the bot that contains the custom vocabulary to export. + // + // BotVersion is a required field + BotVersion *string `locationName:"botVersion" min:"1" type:"string" required:"true"` + + // The locale of the bot that contains the custom vocabulary to export. + // + // LocaleId is a required field + LocaleId *string `locationName:"localeId" 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 CustomVocabularyExportSpecification) 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 CustomVocabularyExportSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CustomVocabularyExportSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CustomVocabularyExportSpecification"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *CustomVocabularyExportSpecification) SetBotId(v string) *CustomVocabularyExportSpecification { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *CustomVocabularyExportSpecification) SetBotVersion(v string) *CustomVocabularyExportSpecification { + s.BotVersion = &v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *CustomVocabularyExportSpecification) SetLocaleId(v string) *CustomVocabularyExportSpecification { + s.LocaleId = &v + return s +} + +// Provides the parameters required for importing a custom vocabulary. +type CustomVocabularyImportSpecification struct { + _ struct{} `type:"structure"` + + // The identifier of the bot to import the custom vocabulary to. + // + // BotId is a required field + BotId *string `locationName:"botId" min:"10" type:"string" required:"true"` + + // The version of the bot to import the custom vocabulary to. + // + // BotVersion is a required field + BotVersion *string `locationName:"botVersion" min:"5" type:"string" required:"true"` + + // The identifier of the local to import the custom vocabulary to. The value + // must be en_GB. + // + // LocaleId is a required field + LocaleId *string `locationName:"localeId" 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 CustomVocabularyImportSpecification) 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 CustomVocabularyImportSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CustomVocabularyImportSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CustomVocabularyImportSpecification"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 5 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 5)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *CustomVocabularyImportSpecification) SetBotId(v string) *CustomVocabularyImportSpecification { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *CustomVocabularyImportSpecification) SetBotVersion(v string) *CustomVocabularyImportSpecification { + s.BotVersion = &v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *CustomVocabularyImportSpecification) SetLocaleId(v string) *CustomVocabularyImportSpecification { + s.LocaleId = &v + return s +} + // By default, data stored by Amazon Lex is encrypted. The DataPrivacy structure // provides settings that determine how Amazon Lex handles special cases of // securing the data for your bot. @@ -12802,11 +13189,144 @@ func (s *DeleteBotVersionInput) Validate() error { if s.BotId != nil && len(*s.BotId) < 10 { invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) } - if s.BotVersion == nil { - invalidParams.Add(request.NewErrParamRequired("BotVersion")) + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *DeleteBotVersionInput) SetBotId(v string) *DeleteBotVersionInput { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *DeleteBotVersionInput) SetBotVersion(v string) *DeleteBotVersionInput { + s.BotVersion = &v + return s +} + +// SetSkipResourceInUseCheck sets the SkipResourceInUseCheck field's value. +func (s *DeleteBotVersionInput) SetSkipResourceInUseCheck(v bool) *DeleteBotVersionInput { + s.SkipResourceInUseCheck = &v + return s +} + +type DeleteBotVersionOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the bot that is being deleted. + BotId *string `locationName:"botId" min:"10" type:"string"` + + // The current status of the bot. + BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + + // The version of the bot that is being deleted. + BotVersion *string `locationName:"botVersion" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteBotVersionOutput) 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 DeleteBotVersionOutput) GoString() string { + return s.String() +} + +// SetBotId sets the BotId field's value. +func (s *DeleteBotVersionOutput) SetBotId(v string) *DeleteBotVersionOutput { + s.BotId = &v + return s +} + +// SetBotStatus sets the BotStatus field's value. +func (s *DeleteBotVersionOutput) SetBotStatus(v string) *DeleteBotVersionOutput { + s.BotStatus = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *DeleteBotVersionOutput) SetBotVersion(v string) *DeleteBotVersionOutput { + s.BotVersion = &v + return s +} + +type DeleteCustomVocabularyInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the bot to remove the custom vocabulary from. + // + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` + + // The version of the bot to remove the custom vocabulary from. + // + // BotVersion is a required field + BotVersion *string `location:"uri" locationName:"botVersion" min:"5" type:"string" required:"true"` + + // The locale identifier for the locale that contains the custom vocabulary + // to remove. + // + // LocaleId is a required field + LocaleId *string `location:"uri" locationName:"localeId" 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 DeleteCustomVocabularyInput) 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 DeleteCustomVocabularyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCustomVocabularyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCustomVocabularyInput"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 5 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 5)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) } - if s.BotVersion != nil && len(*s.BotVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + if s.LocaleId != nil && len(*s.LocaleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) } if invalidParams.Len() > 0 { @@ -12816,34 +13336,38 @@ func (s *DeleteBotVersionInput) Validate() error { } // SetBotId sets the BotId field's value. -func (s *DeleteBotVersionInput) SetBotId(v string) *DeleteBotVersionInput { +func (s *DeleteCustomVocabularyInput) SetBotId(v string) *DeleteCustomVocabularyInput { s.BotId = &v return s } // SetBotVersion sets the BotVersion field's value. -func (s *DeleteBotVersionInput) SetBotVersion(v string) *DeleteBotVersionInput { +func (s *DeleteCustomVocabularyInput) SetBotVersion(v string) *DeleteCustomVocabularyInput { s.BotVersion = &v return s } -// SetSkipResourceInUseCheck sets the SkipResourceInUseCheck field's value. -func (s *DeleteBotVersionInput) SetSkipResourceInUseCheck(v bool) *DeleteBotVersionInput { - s.SkipResourceInUseCheck = &v +// SetLocaleId sets the LocaleId field's value. +func (s *DeleteCustomVocabularyInput) SetLocaleId(v string) *DeleteCustomVocabularyInput { + s.LocaleId = &v return s } -type DeleteBotVersionOutput struct { +type DeleteCustomVocabularyOutput struct { _ struct{} `type:"structure"` - // The identifier of the bot that is being deleted. + // The identifier of the bot that the custom vocabulary was removed from. BotId *string `locationName:"botId" min:"10" type:"string"` - // The current status of the bot. - BotStatus *string `locationName:"botStatus" type:"string" enum:"BotStatus"` + // The version of the bot that the custom vocabulary was removed from. + BotVersion *string `locationName:"botVersion" min:"5" type:"string"` - // The version of the bot that is being deleted. - BotVersion *string `locationName:"botVersion" min:"1" type:"string"` + // The status of removing the custom vocabulary. + CustomVocabularyStatus *string `locationName:"customVocabularyStatus" type:"string" enum:"CustomVocabularyStatus"` + + // The locale identifier for the locale that the custom vocabulary was removed + // from. + LocaleId *string `locationName:"localeId" type:"string"` } // String returns the string representation. @@ -12851,7 +13375,7 @@ type DeleteBotVersionOutput 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 DeleteBotVersionOutput) String() string { +func (s DeleteCustomVocabularyOutput) String() string { return awsutil.Prettify(s) } @@ -12860,25 +13384,31 @@ func (s DeleteBotVersionOutput) 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 DeleteBotVersionOutput) GoString() string { +func (s DeleteCustomVocabularyOutput) GoString() string { return s.String() } // SetBotId sets the BotId field's value. -func (s *DeleteBotVersionOutput) SetBotId(v string) *DeleteBotVersionOutput { +func (s *DeleteCustomVocabularyOutput) SetBotId(v string) *DeleteCustomVocabularyOutput { s.BotId = &v return s } -// SetBotStatus sets the BotStatus field's value. -func (s *DeleteBotVersionOutput) SetBotStatus(v string) *DeleteBotVersionOutput { - s.BotStatus = &v +// SetBotVersion sets the BotVersion field's value. +func (s *DeleteCustomVocabularyOutput) SetBotVersion(v string) *DeleteCustomVocabularyOutput { + s.BotVersion = &v return s } -// SetBotVersion sets the BotVersion field's value. -func (s *DeleteBotVersionOutput) SetBotVersion(v string) *DeleteBotVersionOutput { - s.BotVersion = &v +// SetCustomVocabularyStatus sets the CustomVocabularyStatus field's value. +func (s *DeleteCustomVocabularyOutput) SetCustomVocabularyStatus(v string) *DeleteCustomVocabularyOutput { + s.CustomVocabularyStatus = &v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *DeleteCustomVocabularyOutput) SetLocaleId(v string) *DeleteCustomVocabularyOutput { + s.LocaleId = &v return s } @@ -14822,6 +15352,167 @@ func (s *DescribeBotVersionOutput) SetRoleArn(v string) *DescribeBotVersionOutpu return s } +type DescribeCustomVocabularyMetadataInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the bot that contains the custom vocabulary. + // + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" min:"10" type:"string" required:"true"` + + // The bot version of the bot to return metadata for. + // + // BotVersion is a required field + BotVersion *string `location:"uri" locationName:"botVersion" min:"1" type:"string" required:"true"` + + // The locale to return the custom vocabulary information for. The locale must + // be en_GB. + // + // LocaleId is a required field + LocaleId *string `location:"uri" locationName:"localeId" 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 DescribeCustomVocabularyMetadataInput) 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 DescribeCustomVocabularyMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCustomVocabularyMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCustomVocabularyMetadataInput"} + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 10)) + } + if s.BotVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BotVersion")) + } + if s.BotVersion != nil && len(*s.BotVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotVersion", 1)) + } + if s.LocaleId == nil { + invalidParams.Add(request.NewErrParamRequired("LocaleId")) + } + if s.LocaleId != nil && len(*s.LocaleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocaleId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBotId sets the BotId field's value. +func (s *DescribeCustomVocabularyMetadataInput) SetBotId(v string) *DescribeCustomVocabularyMetadataInput { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *DescribeCustomVocabularyMetadataInput) SetBotVersion(v string) *DescribeCustomVocabularyMetadataInput { + s.BotVersion = &v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *DescribeCustomVocabularyMetadataInput) SetLocaleId(v string) *DescribeCustomVocabularyMetadataInput { + s.LocaleId = &v + return s +} + +type DescribeCustomVocabularyMetadataOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the bot that contains the custom vocabulary. + BotId *string `locationName:"botId" min:"10" type:"string"` + + // The version of the bot that contains the custom vocabulary to describe. + BotVersion *string `locationName:"botVersion" min:"1" type:"string"` + + // The date and time that the custom vocabulary was created. + CreationDateTime *time.Time `locationName:"creationDateTime" type:"timestamp"` + + // The status of the custom vocabulary. If the status is Ready the custom vocabulary + // is ready to use. + CustomVocabularyStatus *string `locationName:"customVocabularyStatus" type:"string" enum:"CustomVocabularyStatus"` + + // The date and time that the custom vocabulary was last updated. + LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` + + // The locale that contains the custom vocabulary to describe. + LocaleId *string `locationName:"localeId" 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 DescribeCustomVocabularyMetadataOutput) 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 DescribeCustomVocabularyMetadataOutput) GoString() string { + return s.String() +} + +// SetBotId sets the BotId field's value. +func (s *DescribeCustomVocabularyMetadataOutput) SetBotId(v string) *DescribeCustomVocabularyMetadataOutput { + s.BotId = &v + return s +} + +// SetBotVersion sets the BotVersion field's value. +func (s *DescribeCustomVocabularyMetadataOutput) SetBotVersion(v string) *DescribeCustomVocabularyMetadataOutput { + s.BotVersion = &v + return s +} + +// SetCreationDateTime sets the CreationDateTime field's value. +func (s *DescribeCustomVocabularyMetadataOutput) SetCreationDateTime(v time.Time) *DescribeCustomVocabularyMetadataOutput { + s.CreationDateTime = &v + return s +} + +// SetCustomVocabularyStatus sets the CustomVocabularyStatus field's value. +func (s *DescribeCustomVocabularyMetadataOutput) SetCustomVocabularyStatus(v string) *DescribeCustomVocabularyMetadataOutput { + s.CustomVocabularyStatus = &v + return s +} + +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *DescribeCustomVocabularyMetadataOutput) SetLastUpdatedDateTime(v time.Time) *DescribeCustomVocabularyMetadataOutput { + s.LastUpdatedDateTime = &v + return s +} + +// SetLocaleId sets the LocaleId field's value. +func (s *DescribeCustomVocabularyMetadataOutput) SetLocaleId(v string) *DescribeCustomVocabularyMetadataOutput { + s.LocaleId = &v + return s +} + type DescribeExportInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -14892,7 +15583,7 @@ type DescribeExportOutput struct { // could not be completed. FailureReasons []*string `locationName:"failureReasons" type:"list"` - // The file format used in the files that describe the bot or bot locale. + // The file format used in the files that describe the resource. FileFormat *string `locationName:"fileFormat" type:"string" enum:"ImportExportFileFormat"` // The last date and time that the export was updated. @@ -15049,7 +15740,7 @@ type DescribeImportOutput struct { // resources are not overwritten and the import fails. MergeStrategy *string `locationName:"mergeStrategy" type:"string" enum:"MergeStrategy"` - // The specifications of the imported bot or bot locale. + // The specifications of the imported bot, bot locale, or custom vocabulary. ResourceSpecification *ImportResourceSpecification `locationName:"resourceSpecification" type:"structure"` } @@ -16154,7 +16845,8 @@ type ExportFilter struct { // Operator is a required field Operator *string `locationName:"operator" type:"string" required:"true" enum:"ExportFilterOperator"` - // The values to use to filter the response. + // The values to use to filter the response. The values must be Bot, BotLocale, + // or CustomVocabulary. // // Values is a required field Values []*string `locationName:"values" min:"1" type:"list" required:"true"` @@ -16229,6 +16921,9 @@ type ExportResourceSpecification struct { // Parameters for exporting a bot locale. BotLocaleExportSpecification *BotLocaleExportSpecification `locationName:"botLocaleExportSpecification" type:"structure"` + + // The parameters required to export a custom vocabulary. + CustomVocabularyExportSpecification *CustomVocabularyExportSpecification `locationName:"customVocabularyExportSpecification" type:"structure"` } // String returns the string representation. @@ -16262,6 +16957,11 @@ func (s *ExportResourceSpecification) Validate() error { invalidParams.AddNested("BotLocaleExportSpecification", err.(request.ErrInvalidParams)) } } + if s.CustomVocabularyExportSpecification != nil { + if err := s.CustomVocabularyExportSpecification.Validate(); err != nil { + invalidParams.AddNested("CustomVocabularyExportSpecification", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -16281,6 +16981,12 @@ func (s *ExportResourceSpecification) SetBotLocaleExportSpecification(v *BotLoca return s } +// SetCustomVocabularyExportSpecification sets the CustomVocabularyExportSpecification field's value. +func (s *ExportResourceSpecification) SetCustomVocabularyExportSpecification(v *CustomVocabularyExportSpecification) *ExportResourceSpecification { + s.CustomVocabularyExportSpecification = v + return s +} + // Provides information about sorting a list of exports. type ExportSortBy struct { _ struct{} `type:"structure"` @@ -17070,7 +17776,8 @@ type ImportFilter struct { // Operator is a required field Operator *string `locationName:"operator" type:"string" required:"true" enum:"ImportFilterOperator"` - // The values to use to filter the response. + // The values to use to filter the response. The values must be Bot, BotLocale, + // or CustomVocabulary. // // Values is a required field Values []*string `locationName:"values" min:"1" type:"list" required:"true"` @@ -17145,6 +17852,9 @@ type ImportResourceSpecification struct { // Parameters for importing a bot locale. BotLocaleImportSpecification *BotLocaleImportSpecification `locationName:"botLocaleImportSpecification" type:"structure"` + + // Provides the parameters required for importing a custom vocabulary. + CustomVocabularyImportSpecification *CustomVocabularyImportSpecification `locationName:"customVocabularyImportSpecification" type:"structure"` } // String returns the string representation. @@ -17178,6 +17888,11 @@ func (s *ImportResourceSpecification) Validate() error { invalidParams.AddNested("BotLocaleImportSpecification", err.(request.ErrInvalidParams)) } } + if s.CustomVocabularyImportSpecification != nil { + if err := s.CustomVocabularyImportSpecification.Validate(); err != nil { + invalidParams.AddNested("CustomVocabularyImportSpecification", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -17197,6 +17912,12 @@ func (s *ImportResourceSpecification) SetBotLocaleImportSpecification(v *BotLoca return s } +// SetCustomVocabularyImportSpecification sets the CustomVocabularyImportSpecification field's value. +func (s *ImportResourceSpecification) SetCustomVocabularyImportSpecification(v *CustomVocabularyImportSpecification) *ImportResourceSpecification { + s.CustomVocabularyImportSpecification = v + return s +} + // Provides information for sorting a list of imports. type ImportSortBy struct { _ struct{} `type:"structure"` @@ -17278,6 +17999,9 @@ type ImportSummary struct { // The name that you gave the imported resource. ImportedResourceName *string `locationName:"importedResourceName" min:"1" type:"string"` + // The type of resource that was imported. + ImportedResourceType *string `locationName:"importedResourceType" type:"string" enum:"ImportResourceType"` + // The date and time that the import was last updated. LastUpdatedDateTime *time.Time `locationName:"lastUpdatedDateTime" type:"timestamp"` @@ -17334,6 +18058,12 @@ func (s *ImportSummary) SetImportedResourceName(v string) *ImportSummary { return s } +// SetImportedResourceType sets the ImportedResourceType field's value. +func (s *ImportSummary) SetImportedResourceType(v string) *ImportSummary { + s.ImportedResourceType = &v + return s +} + // SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. func (s *ImportSummary) SetLastUpdatedDateTime(v time.Time) *ImportSummary { s.LastUpdatedDateTime = &v @@ -19046,8 +19776,11 @@ type ListBotsInput struct { MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // If the response from the ListBots operation contains more results than specified - // in the maxResults parameter, a token is returned in the response. Use that - // token in the nextToken parameter to return the next page of results. + // in the maxResults parameter, a token is returned in the response. + // + // Use the returned token in the nextToken parameter of a ListBots request to + // return the next page of results. For a complete set of results, call the + // ListBots operation until the nextToken returned in the response is null. NextToken *string `locationName:"nextToken" type:"string"` // Specifies sorting parameters for the list of bots. You can specify that the @@ -19482,6 +20215,11 @@ type ListExportsInput struct { // filter and one string to filter on. Filters []*ExportFilter `locationName:"filters" min:"1" type:"list"` + // Specifies the resources that should be exported. If you don't specify a resource + // type in the filters parameter, both bot locales and custom vocabularies are + // exported. + LocaleId *string `locationName:"localeId" type:"string"` + // The maximum number of exports to return in each page of results. If there // are fewer results than the max page size, only the actual number of results // are returned. @@ -19489,7 +20227,10 @@ type ListExportsInput struct { // If the response from the ListExports operation contains more results that // specified in the maxResults parameter, a token is returned in the response. - // Use that token in the nextToken parameter to return the next page of results. + // + // Use the returned token in the nextToken parameter of a ListExports request + // to return the next page of results. For a complete set of results, call the + // ListExports operation until the nextToken returned in the response is null. NextToken *string `locationName:"nextToken" type:"string"` // Determines the field that the list of exports is sorted by. You can sort @@ -19570,6 +20311,12 @@ func (s *ListExportsInput) SetFilters(v []*ExportFilter) *ListExportsInput { return s } +// SetLocaleId sets the LocaleId field's value. +func (s *ListExportsInput) SetLocaleId(v string) *ListExportsInput { + s.LocaleId = &v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListExportsInput) SetMaxResults(v int64) *ListExportsInput { s.MaxResults = &v @@ -19603,6 +20350,9 @@ type ListExportsOutput struct { // to get the next page of results. ExportSummaries []*ExportSummary `locationName:"exportSummaries" type:"list"` + // The locale specified in the request. + LocaleId *string `locationName:"localeId" type:"string"` + // A token that indicates whether there are more results to return in a response // to the ListExports operation. If the nextToken field is present, you send // the contents as the nextToken parameter of a ListExports operation request @@ -19646,6 +20396,12 @@ func (s *ListExportsOutput) SetExportSummaries(v []*ExportSummary) *ListExportsO return s } +// SetLocaleId sets the LocaleId field's value. +func (s *ListExportsOutput) SetLocaleId(v string) *ListExportsOutput { + s.LocaleId = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListExportsOutput) SetNextToken(v string) *ListExportsOutput { s.NextToken = &v @@ -19666,6 +20422,11 @@ type ListImportsInput struct { // filter and one string to filter on. Filters []*ImportFilter `locationName:"filters" min:"1" type:"list"` + // Specifies the locale that should be present in the list. If you don't specify + // a resource type in the filters parameter, the list contains both bot locales + // and custom vocabularies. + LocaleId *string `locationName:"localeId" type:"string"` + // The maximum number of imports to return in each page of results. If there // are fewer results than the max page size, only the actual number of results // are returned. @@ -19673,7 +20434,10 @@ type ListImportsInput struct { // If the response from the ListImports operation contains more results than // specified in the maxResults parameter, a token is returned in the response. - // Use that token in the nextToken parameter to return the next page of results. + // + // Use the returned token in the nextToken parameter of a ListImports request + // to return the next page of results. For a complete set of results, call the + // ListImports operation until the nextToken returned in the response is null. NextToken *string `locationName:"nextToken" type:"string"` // Determines the field that the list of imports is sorted by. You can sort @@ -19754,6 +20518,12 @@ func (s *ListImportsInput) SetFilters(v []*ImportFilter) *ListImportsInput { return s } +// SetLocaleId sets the LocaleId field's value. +func (s *ListImportsInput) SetLocaleId(v string) *ListImportsInput { + s.LocaleId = &v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListImportsInput) SetMaxResults(v int64) *ListImportsInput { s.MaxResults = &v @@ -19787,6 +20557,9 @@ type ListImportsOutput struct { // to get the next page of results. ImportSummaries []*ImportSummary `locationName:"importSummaries" type:"list"` + // The locale specified in the request. + LocaleId *string `locationName:"localeId" type:"string"` + // A token that indicates whether there are more results to return in a response // to the ListImports operation. If the nextToken field is present, you send // the contents as the nextToken parameter of a ListImports operation request @@ -19830,6 +20603,12 @@ func (s *ListImportsOutput) SetImportSummaries(v []*ImportSummary) *ListImportsO return s } +// SetLocaleId sets the LocaleId field's value. +func (s *ListImportsOutput) SetLocaleId(v string) *ListImportsOutput { + s.LocaleId = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListImportsOutput) SetNextToken(v string) *ListImportsOutput { s.NextToken = &v @@ -19868,7 +20647,10 @@ type ListIntentsInput struct { // If the response from the ListIntents operation contains more results than // specified in the maxResults parameter, a token is returned in the response. - // Use that token in the nextToken parameter to return the next page of results. + // + // Use the returned token in the nextToken parameter of a ListIntents request + // to return the next page of results. For a complete set of results, call the + // ListIntents operation until the nextToken returned in the response is null. NextToken *string `locationName:"nextToken" type:"string"` // Determines the sort order for the response from the ListIntents operation. @@ -23455,6 +24237,9 @@ func (s *SlotValueRegexFilter) SetPattern(v string) *SlotValueRegexFilter { type SlotValueSelectionSetting struct { _ struct{} `type:"structure"` + // Provides settings that enable advanced recognition settings for slot values. + AdvancedRecognitionSetting *AdvancedRecognitionSetting `locationName:"advancedRecognitionSetting" type:"structure"` + // A regular expression used to validate the value of a slot. RegexFilter *SlotValueRegexFilter `locationName:"regexFilter" type:"structure"` @@ -23510,6 +24295,12 @@ func (s *SlotValueSelectionSetting) Validate() error { return nil } +// SetAdvancedRecognitionSetting sets the AdvancedRecognitionSetting field's value. +func (s *SlotValueSelectionSetting) SetAdvancedRecognitionSetting(v *AdvancedRecognitionSetting) *SlotValueSelectionSetting { + s.AdvancedRecognitionSetting = v + return s +} + // SetRegexFilter sets the RegexFilter field's value. func (s *SlotValueSelectionSetting) SetRegexFilter(v *SlotValueRegexFilter) *SlotValueSelectionSetting { s.RegexFilter = v @@ -23748,9 +24539,9 @@ func (s *StartBotRecommendationOutput) SetTranscriptSourceSetting(v *TranscriptS type StartImportInput struct { _ struct{} `type:"structure"` - // The password used to encrypt the zip archive that contains the bot or bot - // locale definition. You should always encrypt the zip archive to protect it - // during transit between your site and Amazon Lex. + // The password used to encrypt the zip archive that contains the resource definition. + // You should always encrypt the zip archive to protect it during transit between + // your site and Amazon Lex. // // FilePassword is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartImportInput's @@ -23771,7 +24562,7 @@ type StartImportInput struct { // MergeStrategy is a required field MergeStrategy *string `locationName:"mergeStrategy" type:"string" required:"true" enum:"MergeStrategy"` - // Parameters for creating the bot or bot locale. + // Parameters for creating the bot, bot locale or custom vocabulary. // // ResourceSpecification is a required field ResourceSpecification *ImportResourceSpecification `locationName:"resourceSpecification" type:"structure" required:"true"` @@ -23858,8 +24649,8 @@ type StartImportOutput struct { // A unique identifier for the import. ImportId *string `locationName:"importId" min:"10" type:"string"` - // The current status of the import. When the status is Complete the bot or - // bot alias is ready to use. + // The current status of the import. When the status is Complete the bot, bot + // alias, or custom vocabulary is ready to use. ImportStatus *string `locationName:"importStatus" type:"string" enum:"ImportStatus"` // The strategy used when there was a name conflict between the imported resource @@ -23867,7 +24658,7 @@ type StartImportOutput struct { // resources are not overwritten and the import fails. MergeStrategy *string `locationName:"mergeStrategy" type:"string" enum:"MergeStrategy"` - // The parameters used when importing the bot or bot locale. + // The parameters used when importing the resource. ResourceSpecification *ImportResourceSpecification `locationName:"resourceSpecification" type:"structure"` } @@ -25582,7 +26373,8 @@ type UpdateExportOutput struct { // is available for download. ExportStatus *string `locationName:"exportStatus" type:"string" enum:"ExportStatus"` - // The file format used for the files that define the resource. + // The file format used for the files that define the resource. The TSV format + // is required to export a custom vocabulary only; otherwise use LexJson format. FileFormat *string `locationName:"fileFormat" type:"string" enum:"ImportExportFileFormat"` // The date and time that the export was last updated. @@ -27269,6 +28061,18 @@ func AssociatedTranscriptFilterName_Values() []string { } } +const ( + // AudioRecognitionStrategyUseSlotValuesAsCustomVocabulary is a AudioRecognitionStrategy enum value + AudioRecognitionStrategyUseSlotValuesAsCustomVocabulary = "UseSlotValuesAsCustomVocabulary" +) + +// AudioRecognitionStrategy_Values returns all elements of the AudioRecognitionStrategy enum +func AudioRecognitionStrategy_Values() []string { + return []string{ + AudioRecognitionStrategyUseSlotValuesAsCustomVocabulary, + } +} + const ( // BotAliasStatusCreating is a BotAliasStatus enum value BotAliasStatusCreating = "Creating" @@ -27525,6 +28329,34 @@ func BuiltInSlotTypeSortAttribute_Values() []string { } } +const ( + // CustomVocabularyStatusReady is a CustomVocabularyStatus enum value + CustomVocabularyStatusReady = "Ready" + + // CustomVocabularyStatusDeleting is a CustomVocabularyStatus enum value + CustomVocabularyStatusDeleting = "Deleting" + + // CustomVocabularyStatusExporting is a CustomVocabularyStatus enum value + CustomVocabularyStatusExporting = "Exporting" + + // CustomVocabularyStatusImporting is a CustomVocabularyStatus enum value + CustomVocabularyStatusImporting = "Importing" + + // CustomVocabularyStatusCreating is a CustomVocabularyStatus enum value + CustomVocabularyStatusCreating = "Creating" +) + +// CustomVocabularyStatus_Values returns all elements of the CustomVocabularyStatus enum +func CustomVocabularyStatus_Values() []string { + return []string{ + CustomVocabularyStatusReady, + CustomVocabularyStatusDeleting, + CustomVocabularyStatusExporting, + CustomVocabularyStatusImporting, + CustomVocabularyStatusCreating, + } +} + const ( // EffectAllow is a Effect enum value EffectAllow = "Allow" @@ -27608,12 +28440,16 @@ func ExportStatus_Values() []string { const ( // ImportExportFileFormatLexJson is a ImportExportFileFormat enum value ImportExportFileFormatLexJson = "LexJson" + + // ImportExportFileFormatTsv is a ImportExportFileFormat enum value + ImportExportFileFormatTsv = "TSV" ) // ImportExportFileFormat_Values returns all elements of the ImportExportFileFormat enum func ImportExportFileFormat_Values() []string { return []string{ ImportExportFileFormatLexJson, + ImportExportFileFormatTsv, } } @@ -27645,6 +28481,26 @@ func ImportFilterOperator_Values() []string { } } +const ( + // ImportResourceTypeBot is a ImportResourceType enum value + ImportResourceTypeBot = "Bot" + + // ImportResourceTypeBotLocale is a ImportResourceType enum value + ImportResourceTypeBotLocale = "BotLocale" + + // ImportResourceTypeCustomVocabulary is a ImportResourceType enum value + ImportResourceTypeCustomVocabulary = "CustomVocabulary" +) + +// ImportResourceType_Values returns all elements of the ImportResourceType enum +func ImportResourceType_Values() []string { + return []string{ + ImportResourceTypeBot, + ImportResourceTypeBotLocale, + ImportResourceTypeCustomVocabulary, + } +} + const ( // ImportSortAttributeLastUpdatedDateTime is a ImportSortAttribute enum value ImportSortAttributeLastUpdatedDateTime = "LastUpdatedDateTime" diff --git a/service/lexmodelsv2/lexmodelsv2iface/interface.go b/service/lexmodelsv2/lexmodelsv2iface/interface.go index 18b547c5587..483d819460c 100644 --- a/service/lexmodelsv2/lexmodelsv2iface/interface.go +++ b/service/lexmodelsv2/lexmodelsv2iface/interface.go @@ -124,6 +124,10 @@ type LexModelsV2API interface { DeleteBotVersionWithContext(aws.Context, *lexmodelsv2.DeleteBotVersionInput, ...request.Option) (*lexmodelsv2.DeleteBotVersionOutput, error) DeleteBotVersionRequest(*lexmodelsv2.DeleteBotVersionInput) (*request.Request, *lexmodelsv2.DeleteBotVersionOutput) + DeleteCustomVocabulary(*lexmodelsv2.DeleteCustomVocabularyInput) (*lexmodelsv2.DeleteCustomVocabularyOutput, error) + DeleteCustomVocabularyWithContext(aws.Context, *lexmodelsv2.DeleteCustomVocabularyInput, ...request.Option) (*lexmodelsv2.DeleteCustomVocabularyOutput, error) + DeleteCustomVocabularyRequest(*lexmodelsv2.DeleteCustomVocabularyInput) (*request.Request, *lexmodelsv2.DeleteCustomVocabularyOutput) + DeleteExport(*lexmodelsv2.DeleteExportInput) (*lexmodelsv2.DeleteExportOutput, error) DeleteExportWithContext(aws.Context, *lexmodelsv2.DeleteExportInput, ...request.Option) (*lexmodelsv2.DeleteExportOutput, error) DeleteExportRequest(*lexmodelsv2.DeleteExportInput) (*request.Request, *lexmodelsv2.DeleteExportOutput) @@ -176,6 +180,10 @@ type LexModelsV2API interface { DescribeBotVersionWithContext(aws.Context, *lexmodelsv2.DescribeBotVersionInput, ...request.Option) (*lexmodelsv2.DescribeBotVersionOutput, error) DescribeBotVersionRequest(*lexmodelsv2.DescribeBotVersionInput) (*request.Request, *lexmodelsv2.DescribeBotVersionOutput) + DescribeCustomVocabularyMetadata(*lexmodelsv2.DescribeCustomVocabularyMetadataInput) (*lexmodelsv2.DescribeCustomVocabularyMetadataOutput, error) + DescribeCustomVocabularyMetadataWithContext(aws.Context, *lexmodelsv2.DescribeCustomVocabularyMetadataInput, ...request.Option) (*lexmodelsv2.DescribeCustomVocabularyMetadataOutput, error) + DescribeCustomVocabularyMetadataRequest(*lexmodelsv2.DescribeCustomVocabularyMetadataInput) (*request.Request, *lexmodelsv2.DescribeCustomVocabularyMetadataOutput) + DescribeExport(*lexmodelsv2.DescribeExportInput) (*lexmodelsv2.DescribeExportOutput, error) DescribeExportWithContext(aws.Context, *lexmodelsv2.DescribeExportInput, ...request.Option) (*lexmodelsv2.DescribeExportOutput, error) DescribeExportRequest(*lexmodelsv2.DescribeExportInput) (*request.Request, *lexmodelsv2.DescribeExportOutput) diff --git a/service/pi/api.go b/service/pi/api.go index e5b0a6c9888..d87da6c0771 100644 --- a/service/pi/api.go +++ b/service/pi/api.go @@ -43,6 +43,12 @@ func (c *PI) DescribeDimensionKeysRequest(input *DescribeDimensionKeysInput) (re Name: opDescribeDimensionKeys, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -100,6 +106,58 @@ func (c *PI) DescribeDimensionKeysWithContext(ctx aws.Context, input *DescribeDi return out, req.Send() } +// DescribeDimensionKeysPages iterates over the pages of a DescribeDimensionKeys operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeDimensionKeys 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 DescribeDimensionKeys operation. +// pageNum := 0 +// err := client.DescribeDimensionKeysPages(params, +// func(page *pi.DescribeDimensionKeysOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PI) DescribeDimensionKeysPages(input *DescribeDimensionKeysInput, fn func(*DescribeDimensionKeysOutput, bool) bool) error { + return c.DescribeDimensionKeysPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeDimensionKeysPagesWithContext same as DescribeDimensionKeysPages 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 *PI) DescribeDimensionKeysPagesWithContext(ctx aws.Context, input *DescribeDimensionKeysInput, fn func(*DescribeDimensionKeysOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeDimensionKeysInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeDimensionKeysRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeDimensionKeysOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opGetDimensionKeyDetails = "GetDimensionKeyDetails" // GetDimensionKeyDetailsRequest generates a "aws/request.Request" representing the @@ -146,7 +204,7 @@ func (c *PI) GetDimensionKeyDetailsRequest(input *GetDimensionKeyDetailsInput) ( // // Get the attributes of the specified dimension group for a DB instance or // data source. For example, if you specify a SQL ID, GetDimensionKeyDetails -// retrieves the full text of the dimension db.sql.statement associated with +// retrieves the full text of the dimension db.sql.statementcassociated with // this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys // don't support retrieval of large SQL statement text. // @@ -189,6 +247,92 @@ func (c *PI) GetDimensionKeyDetailsWithContext(ctx aws.Context, input *GetDimens return out, req.Send() } +const opGetResourceMetadata = "GetResourceMetadata" + +// GetResourceMetadataRequest generates a "aws/request.Request" representing the +// client's request for the GetResourceMetadata 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 GetResourceMetadata for more information on using the GetResourceMetadata +// 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 GetResourceMetadataRequest method. +// req, resp := client.GetResourceMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadata +func (c *PI) GetResourceMetadataRequest(input *GetResourceMetadataInput) (req *request.Request, output *GetResourceMetadataOutput) { + op := &request.Operation{ + Name: opGetResourceMetadata, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResourceMetadataInput{} + } + + output = &GetResourceMetadataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourceMetadata API operation for AWS Performance Insights. +// +// Retrieve the metadata for different features. For example, the metadata might +// indicate that a feature is turned on or off on a specific DB instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Performance Insights's +// API operation GetResourceMetadata for usage and error information. +// +// Returned Error Types: +// * InvalidArgumentException +// One of the arguments provided is invalid for this request. +// +// * InternalServiceError +// The request failed due to an unknown error. +// +// * NotAuthorizedException +// The user is not authorized to perform this request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetadata +func (c *PI) GetResourceMetadata(input *GetResourceMetadataInput) (*GetResourceMetadataOutput, error) { + req, out := c.GetResourceMetadataRequest(input) + return out, req.Send() +} + +// GetResourceMetadataWithContext is the same as GetResourceMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourceMetadata 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 *PI) GetResourceMetadataWithContext(ctx aws.Context, input *GetResourceMetadataInput, opts ...request.Option) (*GetResourceMetadataOutput, error) { + req, out := c.GetResourceMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetResourceMetrics = "GetResourceMetrics" // GetResourceMetricsRequest generates a "aws/request.Request" representing the @@ -220,6 +364,12 @@ func (c *PI) GetResourceMetricsRequest(input *GetResourceMetricsInput) (req *req Name: opGetResourceMetrics, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -279,94 +429,440 @@ func (c *PI) GetResourceMetricsWithContext(ctx aws.Context, input *GetResourceMe return out, req.Send() } -// A timestamp, and a single numerical value, which together represent a measurement -// at a particular point in time. -type DataPoint struct { - _ struct{} `type:"structure"` +// GetResourceMetricsPages iterates over the pages of a GetResourceMetrics operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetResourceMetrics 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 GetResourceMetrics operation. +// pageNum := 0 +// err := client.GetResourceMetricsPages(params, +// func(page *pi.GetResourceMetricsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PI) GetResourceMetricsPages(input *GetResourceMetricsInput, fn func(*GetResourceMetricsOutput, bool) bool) error { + return c.GetResourceMetricsPagesWithContext(aws.BackgroundContext(), input, fn) +} - // The time, in epoch format, associated with a particular Value. - // - // Timestamp is a required field - Timestamp *time.Time `type:"timestamp" required:"true"` +// GetResourceMetricsPagesWithContext same as GetResourceMetricsPages 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 *PI) GetResourceMetricsPagesWithContext(ctx aws.Context, input *GetResourceMetricsInput, fn func(*GetResourceMetricsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetResourceMetricsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetResourceMetricsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } - // The actual value associated with a particular Timestamp. - // - // Value is a required field - Value *float64 `type:"double" required:"true"` + for p.Next() { + if !fn(p.Page().(*GetResourceMetricsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() } -// String returns the string representation. +const opListAvailableResourceDimensions = "ListAvailableResourceDimensions" + +// ListAvailableResourceDimensionsRequest generates a "aws/request.Request" representing the +// client's request for the ListAvailableResourceDimensions 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 DataPoint) 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 ListAvailableResourceDimensions for more information on using the ListAvailableResourceDimensions +// 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 ListAvailableResourceDimensionsRequest method. +// req, resp := client.ListAvailableResourceDimensionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceDimensions +func (c *PI) ListAvailableResourceDimensionsRequest(input *ListAvailableResourceDimensionsInput) (req *request.Request, output *ListAvailableResourceDimensionsOutput) { + op := &request.Operation{ + Name: opListAvailableResourceDimensions, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAvailableResourceDimensionsInput{} + } + + output = &ListAvailableResourceDimensionsOutput{} + req = c.newRequest(op, input, output) + return } -// GoString returns the string representation. +// ListAvailableResourceDimensions API operation for AWS Performance Insights. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DataPoint) GoString() string { - return s.String() +// Retrieve the dimensions that can be queried for each specified metric type +// on a specified DB instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Performance Insights's +// API operation ListAvailableResourceDimensions for usage and error information. +// +// Returned Error Types: +// * InvalidArgumentException +// One of the arguments provided is invalid for this request. +// +// * InternalServiceError +// The request failed due to an unknown error. +// +// * NotAuthorizedException +// The user is not authorized to perform this request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceDimensions +func (c *PI) ListAvailableResourceDimensions(input *ListAvailableResourceDimensionsInput) (*ListAvailableResourceDimensionsOutput, error) { + req, out := c.ListAvailableResourceDimensionsRequest(input) + return out, req.Send() } -// SetTimestamp sets the Timestamp field's value. -func (s *DataPoint) SetTimestamp(v time.Time) *DataPoint { - s.Timestamp = &v - return s +// ListAvailableResourceDimensionsWithContext is the same as ListAvailableResourceDimensions with the addition of +// the ability to pass a context and additional request options. +// +// See ListAvailableResourceDimensions 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 *PI) ListAvailableResourceDimensionsWithContext(ctx aws.Context, input *ListAvailableResourceDimensionsInput, opts ...request.Option) (*ListAvailableResourceDimensionsOutput, error) { + req, out := c.ListAvailableResourceDimensionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// SetValue sets the Value field's value. -func (s *DataPoint) SetValue(v float64) *DataPoint { - s.Value = &v - return s +// ListAvailableResourceDimensionsPages iterates over the pages of a ListAvailableResourceDimensions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAvailableResourceDimensions 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 ListAvailableResourceDimensions operation. +// pageNum := 0 +// err := client.ListAvailableResourceDimensionsPages(params, +// func(page *pi.ListAvailableResourceDimensionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PI) ListAvailableResourceDimensionsPages(input *ListAvailableResourceDimensionsInput, fn func(*ListAvailableResourceDimensionsOutput, bool) bool) error { + return c.ListAvailableResourceDimensionsPagesWithContext(aws.BackgroundContext(), input, fn) } -type DescribeDimensionKeysInput struct { - _ struct{} `type:"structure"` +// ListAvailableResourceDimensionsPagesWithContext same as ListAvailableResourceDimensionsPages 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 *PI) ListAvailableResourceDimensionsPagesWithContext(ctx aws.Context, input *ListAvailableResourceDimensionsInput, fn func(*ListAvailableResourceDimensionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAvailableResourceDimensionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAvailableResourceDimensionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } - // The date and time specifying the end of the requested time series data. The - // value specified is exclusive, which means that data points less than (but - // not equal to) EndTime are returned. - // - // The value for EndTime must be later than the value for StartTime. - // - // EndTime is a required field - EndTime *time.Time `type:"timestamp" required:"true"` + for p.Next() { + if !fn(p.Page().(*ListAvailableResourceDimensionsOutput), !p.HasNextPage()) { + break + } + } - // One or more filters to apply in the request. Restrictions: - // - // * Any number of filters by the same dimension, as specified in the GroupBy - // or Partition parameters. - // - // * A single filter for any other dimension in this dimension group. - Filter map[string]*string `type:"map"` + return p.Err() +} - // A specification for how to aggregate the data points from a query result. - // You must specify a valid dimension group. Performance Insights returns all - // dimensions within this group, unless you provide the names of specific dimensions - // within this group. You can also request that Performance Insights return - // a limited number of values for a dimension. - // - // GroupBy is a required field - GroupBy *DimensionGroup `type:"structure" required:"true"` +const opListAvailableResourceMetrics = "ListAvailableResourceMetrics" - // An immutable, AWS Region-unique identifier for a data source. Performance - // Insights gathers metrics from this data source. - // - // To use an Amazon RDS instance as a data source, you specify its DbiResourceId - // value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A - // - // Identifier is a required field - Identifier *string `type:"string" required:"true"` +// ListAvailableResourceMetricsRequest generates a "aws/request.Request" representing the +// client's request for the ListAvailableResourceMetrics 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 ListAvailableResourceMetrics for more information on using the ListAvailableResourceMetrics +// 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 ListAvailableResourceMetricsRequest method. +// req, resp := client.ListAvailableResourceMetricsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceMetrics +func (c *PI) ListAvailableResourceMetricsRequest(input *ListAvailableResourceMetricsInput) (req *request.Request, output *ListAvailableResourceMetricsOutput) { + op := &request.Operation{ + Name: opListAvailableResourceMetrics, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } - // The maximum number of items to return in the response. If more items exist - // than the specified MaxRecords value, a pagination token is included in the - // response so that the remaining results can be retrieved. - MaxResults *int64 `type:"integer"` + if input == nil { + input = &ListAvailableResourceMetricsInput{} + } + + output = &ListAvailableResourceMetricsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAvailableResourceMetrics API operation for AWS Performance Insights. +// +// Retrieve metrics of the specified types that can be queried for a specified +// DB instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Performance Insights's +// API operation ListAvailableResourceMetrics for usage and error information. +// +// Returned Error Types: +// * InvalidArgumentException +// One of the arguments provided is invalid for this request. +// +// * InternalServiceError +// The request failed due to an unknown error. +// +// * NotAuthorizedException +// The user is not authorized to perform this request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListAvailableResourceMetrics +func (c *PI) ListAvailableResourceMetrics(input *ListAvailableResourceMetricsInput) (*ListAvailableResourceMetricsOutput, error) { + req, out := c.ListAvailableResourceMetricsRequest(input) + return out, req.Send() +} + +// ListAvailableResourceMetricsWithContext is the same as ListAvailableResourceMetrics with the addition of +// the ability to pass a context and additional request options. +// +// See ListAvailableResourceMetrics 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 *PI) ListAvailableResourceMetricsWithContext(ctx aws.Context, input *ListAvailableResourceMetricsInput, opts ...request.Option) (*ListAvailableResourceMetricsOutput, error) { + req, out := c.ListAvailableResourceMetricsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAvailableResourceMetricsPages iterates over the pages of a ListAvailableResourceMetrics operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAvailableResourceMetrics 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 ListAvailableResourceMetrics operation. +// pageNum := 0 +// err := client.ListAvailableResourceMetricsPages(params, +// func(page *pi.ListAvailableResourceMetricsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PI) ListAvailableResourceMetricsPages(input *ListAvailableResourceMetricsInput, fn func(*ListAvailableResourceMetricsOutput, bool) bool) error { + return c.ListAvailableResourceMetricsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAvailableResourceMetricsPagesWithContext same as ListAvailableResourceMetricsPages 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 *PI) ListAvailableResourceMetricsPagesWithContext(ctx aws.Context, input *ListAvailableResourceMetricsInput, fn func(*ListAvailableResourceMetricsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAvailableResourceMetricsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAvailableResourceMetricsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAvailableResourceMetricsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +// A timestamp, and a single numerical value, which together represent a measurement +// at a particular point in time. +type DataPoint struct { + _ struct{} `type:"structure"` + + // The time, in epoch format, associated with a particular Value. + // + // Timestamp is a required field + Timestamp *time.Time `type:"timestamp" required:"true"` + + // The actual value associated with a particular Timestamp. + // + // Value is a required field + Value *float64 `type:"double" 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 DataPoint) 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 DataPoint) GoString() string { + return s.String() +} + +// SetTimestamp sets the Timestamp field's value. +func (s *DataPoint) SetTimestamp(v time.Time) *DataPoint { + s.Timestamp = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DataPoint) SetValue(v float64) *DataPoint { + s.Value = &v + return s +} + +type DescribeDimensionKeysInput struct { + _ struct{} `type:"structure"` + + // Additional metrics for the top N dimension keys. If the specified dimension + // group in the GroupBy parameter is db.sql_tokenized, you can specify per-SQL + // metrics to get the values for the top N SQL digests. The response syntax + // is "AdditionalMetrics" : { "string" : "string" }. + AdditionalMetrics []*string `min:"1" type:"list"` + + // The date and time specifying the end of the requested time series data. The + // value specified is exclusive, which means that data points less than (but + // not equal to) EndTime are returned. + // + // The value for EndTime must be later than the value for StartTime. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" required:"true"` + + // One or more filters to apply in the request. Restrictions: + // + // * Any number of filters by the same dimension, as specified in the GroupBy + // or Partition parameters. + // + // * A single filter for any other dimension in this dimension group. + Filter map[string]*string `type:"map"` + + // A specification for how to aggregate the data points from a query result. + // You must specify a valid dimension group. Performance Insights returns all + // dimensions within this group, unless you provide the names of specific dimensions + // within this group. You can also request that Performance Insights return + // a limited number of values for a dimension. + // + // GroupBy is a required field + GroupBy *DimensionGroup `type:"structure" required:"true"` + + // An immutable, Amazon Web Services Region-unique identifier for a data source. + // Performance Insights gathers metrics from this data source. + // + // To use an Amazon RDS instance as a data source, you specify its DbiResourceId + // value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A. + // + // Identifier is a required field + Identifier *string `type:"string" required:"true"` + + // The maximum number of items to return in the response. If more items exist + // than the specified MaxRecords value, a pagination token is included in the + // response so that the remaining results can be retrieved. + MaxResults *int64 `type:"integer"` // The name of a Performance Insights metric to be measured. // @@ -416,8 +912,8 @@ type DescribeDimensionKeysInput struct { // response. PeriodInSeconds *int64 `type:"integer"` - // The AWS service for which Performance Insights will return metrics. The only - // valid value for ServiceType is RDS. + // The Amazon Web Services service for which Performance Insights will return + // metrics. The only valid value for ServiceType is RDS. // // ServiceType is a required field ServiceType *string `type:"string" required:"true" enum:"ServiceType"` @@ -454,6 +950,9 @@ func (s DescribeDimensionKeysInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeDimensionKeysInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeDimensionKeysInput"} + if s.AdditionalMetrics != nil && len(s.AdditionalMetrics) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalMetrics", 1)) + } if s.EndTime == nil { invalidParams.Add(request.NewErrParamRequired("EndTime")) } @@ -492,6 +991,12 @@ func (s *DescribeDimensionKeysInput) Validate() error { return nil } +// SetAdditionalMetrics sets the AdditionalMetrics field's value. +func (s *DescribeDimensionKeysInput) SetAdditionalMetrics(v []*string) *DescribeDimensionKeysInput { + s.AdditionalMetrics = v + return s +} + // SetEndTime sets the EndTime field's value. func (s *DescribeDimensionKeysInput) SetEndTime(v time.Time) *DescribeDimensionKeysInput { s.EndTime = &v @@ -574,9 +1079,10 @@ type DescribeDimensionKeysOutput struct { // The dimension keys that were requested. Keys []*DimensionKeyDescription `type:"list"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the token, up to - // the value specified by MaxRecords. + // A pagination token that indicates the response didn’t return all available + // records because MaxRecords was specified in the previous request. To get + // the remaining records, specify NextToken in a separate request with this + // value. NextToken *string `min:"1" type:"string"` // If PartitionBy was present in the request, PartitionKeys contains the breakdown @@ -632,6 +1138,38 @@ func (s *DescribeDimensionKeysOutput) SetPartitionKeys(v []*ResponsePartitionKey return s } +// The information about a dimension. +type DimensionDetail struct { + _ struct{} `type:"structure"` + + // The identifier of a dimension. + Identifier *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 DimensionDetail) 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 DimensionDetail) GoString() string { + return s.String() +} + +// SetIdentifier sets the Identifier field's value. +func (s *DimensionDetail) SetIdentifier(v string) *DimensionDetail { + s.Identifier = &v + return s +} + // A logical grouping of Performance Insights metrics for a related subject // area. For example, the db.sql dimension group consists of the following dimensions: // db.sql.id, db.sql.db_id, db.sql.statement, and db.sql.tokenized_id. @@ -655,8 +1193,8 @@ type DimensionGroup struct { // * db.host.name - The host name of the connected client (all engines) // // * db.name - The name of the database to which the client is connected - // (only Aurora PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL, and - // MariaDB) + // (only Aurora PostgreSQL, Amazon RDS PostgreSQL, Aurora MySQL, Amazon RDS + // MySQL, and MariaDB) // // * db.session_type.name - The type of the current session (only Aurora // PostgreSQL and RDS PostgreSQL) @@ -694,7 +1232,8 @@ type DimensionGroup struct { // The name of the dimension group. Valid values are: // // * db - The name of the database to which the client is connected (only - // Aurora PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB) + // Aurora PostgreSQL, Amazon RDS PostgreSQL, Aurora MySQL, Amazon RDS MySQL, + // and MariaDB) // // * db.application - The name of the application that is connected to the // database (only Aurora PostgreSQL and RDS PostgreSQL) @@ -778,11 +1317,55 @@ func (s *DimensionGroup) SetLimit(v int64) *DimensionGroup { return s } -// An array of descriptions and aggregated values for each dimension within -// a dimension group. +// Information about dimensions within a dimension group. +type DimensionGroupDetail struct { + _ struct{} `type:"structure"` + + // The dimensions within a dimension group. + Dimensions []*DimensionDetail `type:"list"` + + // The name of the dimension group. + Group *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 DimensionGroupDetail) 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 DimensionGroupDetail) GoString() string { + return s.String() +} + +// SetDimensions sets the Dimensions field's value. +func (s *DimensionGroupDetail) SetDimensions(v []*DimensionDetail) *DimensionGroupDetail { + s.Dimensions = v + return s +} + +// SetGroup sets the Group field's value. +func (s *DimensionGroupDetail) SetGroup(v string) *DimensionGroupDetail { + s.Group = &v + return s +} + +// An object that includes the requested dimension key values and aggregated +// metric values within a dimension group. type DimensionKeyDescription struct { _ struct{} `type:"structure"` + // A map that contains the value for each additional metric. + AdditionalMetrics map[string]*float64 `type:"map"` + // A map of name-value pairs for the dimensions in the group. Dimensions map[string]*string `type:"map"` @@ -790,8 +1373,7 @@ type DimensionKeyDescription struct { // were. Partitions []*float64 `type:"list"` - // The aggregated metric value for the dimension(s), over the requested time - // range. + // The aggregated metric value for the dimensions, over the requested time range. Total *float64 `type:"double"` } @@ -813,6 +1395,12 @@ func (s DimensionKeyDescription) GoString() string { return s.String() } +// SetAdditionalMetrics sets the AdditionalMetrics field's value. +func (s *DimensionKeyDescription) SetAdditionalMetrics(v map[string]*float64) *DimensionKeyDescription { + s.AdditionalMetrics = v + return s +} + // SetDimensions sets the Dimensions field's value. func (s *DimensionKeyDescription) SetDimensions(v map[string]*string) *DimensionKeyDescription { s.Dimensions = v @@ -893,6 +1481,54 @@ func (s *DimensionKeyDetail) SetValue(v string) *DimensionKeyDetail { return s } +// The metadata for a feature. For example, the metadata might indicate that +// a feature is turned on or off on a specific DB instance. +type FeatureMetadata struct { + _ struct{} `type:"structure"` + + // The status of the feature on the DB instance. Possible values include the + // following: + // + // * ENABLED: the feature is enabled on the instance. + // + // * DISABLED: the feature is disabled on the instance. + // + // * UNSUPPORTED: the feature isn't supported on the instance. + // + // * ENABLED_PENDING_REBOOT: the feature is enabled on the instance but requires + // a reboot to take effect. + // + // * DISABLED_PENDING_REBOOT: the feature is disabled on the instance but + // requires a reboot to take effect. + // + // * UNKNOWN: the feature status couldn't be determined. + Status *string `type:"string" enum:"FeatureStatus"` +} + +// 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 FeatureMetadata) 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 FeatureMetadata) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *FeatureMetadata) SetStatus(v string) *FeatureMetadata { + s.Status = &v + return s +} + type GetDimensionKeyDetailsInput struct { _ struct{} `type:"structure"` @@ -909,8 +1545,9 @@ type GetDimensionKeyDetailsInput struct { GroupIdentifier *string `type:"string" required:"true"` // The ID for a data source from which to gather dimension data. This ID must - // be immutable and unique within an AWS Region. When a DB instance is the data - // source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X. + // be immutable and unique within an Amazon Web Services Region. When a DB instance + // is the data source, specify its DbiResourceId value. For example, specify + // db-ABCDEFGHIJKLMNOPQRSTU1VW2X. // // Identifier is a required field Identifier *string `type:"string" required:"true"` @@ -922,8 +1559,8 @@ type GetDimensionKeyDetailsInput struct { // the specified dimension group. RequestedDimensions []*string `min:"1" type:"list"` - // The AWS service for which Performance Insights returns data. The only valid - // value is RDS. + // The Amazon Web Services service for which Performance Insights returns data. + // The only valid value is RDS. // // ServiceType is a required field ServiceType *string `type:"string" required:"true" enum:"ServiceType"` @@ -1033,23 +1670,130 @@ func (s *GetDimensionKeyDetailsOutput) SetDimensions(v []*DimensionKeyDetail) *G return s } -type GetResourceMetricsInput struct { +type GetResourceMetadataInput struct { _ struct{} `type:"structure"` - // The date and time specifying the end of the requested time series data. The - // value specified is exclusive - data points less than (but not equal to) EndTime - // will be returned. - // - // The value for EndTime must be later than the value for StartTime. - // - // EndTime is a required field - EndTime *time.Time `type:"timestamp" required:"true"` - - // An immutable, AWS Region-unique identifier for a data source. Performance - // Insights gathers metrics from this data source. - // + // An immutable identifier for a data source that is unique for an Amazon Web + // Services Region. Performance Insights gathers metrics from this data source. // To use a DB instance as a data source, specify its DbiResourceId value. For - // example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A. + // example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X. + // + // Identifier is a required field + Identifier *string `type:"string" required:"true"` + + // The Amazon Web Services service for which Performance Insights returns metrics. + // + // ServiceType is a required field + ServiceType *string `type:"string" required:"true" enum:"ServiceType"` +} + +// 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 GetResourceMetadataInput) 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 GetResourceMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourceMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceMetadataInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.ServiceType == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentifier sets the Identifier field's value. +func (s *GetResourceMetadataInput) SetIdentifier(v string) *GetResourceMetadataInput { + s.Identifier = &v + return s +} + +// SetServiceType sets the ServiceType field's value. +func (s *GetResourceMetadataInput) SetServiceType(v string) *GetResourceMetadataInput { + s.ServiceType = &v + return s +} + +type GetResourceMetadataOutput struct { + _ struct{} `type:"structure"` + + // The metadata for different features. For example, the metadata might indicate + // that a feature is turned on or off on a specific DB instance. + Features map[string]*FeatureMetadata `type:"map"` + + // An immutable identifier for a data source that is unique for an Amazon Web + // Services Region. Performance Insights gathers metrics from this data source. + // To use a DB instance as a data source, specify its DbiResourceId value. For + // example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X. + Identifier *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 GetResourceMetadataOutput) 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 GetResourceMetadataOutput) GoString() string { + return s.String() +} + +// SetFeatures sets the Features field's value. +func (s *GetResourceMetadataOutput) SetFeatures(v map[string]*FeatureMetadata) *GetResourceMetadataOutput { + s.Features = v + return s +} + +// SetIdentifier sets the Identifier field's value. +func (s *GetResourceMetadataOutput) SetIdentifier(v string) *GetResourceMetadataOutput { + s.Identifier = &v + return s +} + +type GetResourceMetricsInput struct { + _ struct{} `type:"structure"` + + // The date and time specifying the end of the requested time series data. The + // value specified is exclusive - data points less than (but not equal to) EndTime + // will be returned. + // + // The value for EndTime must be later than the value for StartTime. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" required:"true"` + + // An immutable, Amazon Web Services Region-unique identifier for a data source. + // Performance Insights gathers metrics from this data source. + // + // To use a DB instance as a data source, specify its DbiResourceId value. For + // example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A. // // Identifier is a required field Identifier *string `type:"string" required:"true"` @@ -1089,8 +1833,8 @@ type GetResourceMetricsInput struct { // the response. PeriodInSeconds *int64 `type:"integer"` - // The AWS service for which Performance Insights returns metrics. The only - // valid value for ServiceType is RDS. + // The Amazon Web Services service for which Performance Insights returns metrics. + // The only valid value for ServiceType is RDS. // // ServiceType is a required field ServiceType *string `type:"string" required:"true" enum:"ServiceType"` @@ -1164,77 +1908,371 @@ func (s *GetResourceMetricsInput) Validate() error { return nil } -// SetEndTime sets the EndTime field's value. -func (s *GetResourceMetricsInput) SetEndTime(v time.Time) *GetResourceMetricsInput { - s.EndTime = &v - return s -} - +// SetEndTime sets the EndTime field's value. +func (s *GetResourceMetricsInput) SetEndTime(v time.Time) *GetResourceMetricsInput { + s.EndTime = &v + return s +} + +// SetIdentifier sets the Identifier field's value. +func (s *GetResourceMetricsInput) SetIdentifier(v string) *GetResourceMetricsInput { + s.Identifier = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetResourceMetricsInput) SetMaxResults(v int64) *GetResourceMetricsInput { + s.MaxResults = &v + return s +} + +// SetMetricQueries sets the MetricQueries field's value. +func (s *GetResourceMetricsInput) SetMetricQueries(v []*MetricQuery) *GetResourceMetricsInput { + s.MetricQueries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceMetricsInput) SetNextToken(v string) *GetResourceMetricsInput { + s.NextToken = &v + return s +} + +// SetPeriodInSeconds sets the PeriodInSeconds field's value. +func (s *GetResourceMetricsInput) SetPeriodInSeconds(v int64) *GetResourceMetricsInput { + s.PeriodInSeconds = &v + return s +} + +// SetServiceType sets the ServiceType field's value. +func (s *GetResourceMetricsInput) SetServiceType(v string) *GetResourceMetricsInput { + s.ServiceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetResourceMetricsInput) SetStartTime(v time.Time) *GetResourceMetricsInput { + s.StartTime = &v + return s +} + +type GetResourceMetricsOutput struct { + _ struct{} `type:"structure"` + + // The end time for the returned metrics, after alignment to a granular boundary + // (as specified by PeriodInSeconds). AlignedEndTime will be greater than or + // equal to the value of the user-specified Endtime. + AlignedEndTime *time.Time `type:"timestamp"` + + // The start time for the returned metrics, after alignment to a granular boundary + // (as specified by PeriodInSeconds). AlignedStartTime will be less than or + // equal to the value of the user-specified StartTime. + AlignedStartTime *time.Time `type:"timestamp"` + + // An immutable, Amazon Web Services Region-unique identifier for a data source. + // Performance Insights gathers metrics from this data source. + // + // To use a DB instance as a data source, you specify its DbiResourceId value + // - for example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A + Identifier *string `type:"string"` + + // An array of metric results,, where each array element contains all of the + // data points for a particular dimension. + MetricList []*MetricKeyDataPoints `type:"list"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the token, up to + // the value specified by MaxRecords. + NextToken *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 GetResourceMetricsOutput) 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 GetResourceMetricsOutput) GoString() string { + return s.String() +} + +// SetAlignedEndTime sets the AlignedEndTime field's value. +func (s *GetResourceMetricsOutput) SetAlignedEndTime(v time.Time) *GetResourceMetricsOutput { + s.AlignedEndTime = &v + return s +} + +// SetAlignedStartTime sets the AlignedStartTime field's value. +func (s *GetResourceMetricsOutput) SetAlignedStartTime(v time.Time) *GetResourceMetricsOutput { + s.AlignedStartTime = &v + return s +} + +// SetIdentifier sets the Identifier field's value. +func (s *GetResourceMetricsOutput) SetIdentifier(v string) *GetResourceMetricsOutput { + s.Identifier = &v + return s +} + +// SetMetricList sets the MetricList field's value. +func (s *GetResourceMetricsOutput) SetMetricList(v []*MetricKeyDataPoints) *GetResourceMetricsOutput { + s.MetricList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceMetricsOutput) SetNextToken(v string) *GetResourceMetricsOutput { + s.NextToken = &v + return s +} + +// The request failed due to an unknown error. +type InternalServiceError 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 InternalServiceError) 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 InternalServiceError) GoString() string { + return s.String() +} + +func newErrorInternalServiceError(v protocol.ResponseMetadata) error { + return &InternalServiceError{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServiceError) Code() string { + return "InternalServiceError" +} + +// Message returns the exception's message. +func (s *InternalServiceError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServiceError) OrigErr() error { + return nil +} + +func (s *InternalServiceError) 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 *InternalServiceError) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServiceError) RequestID() string { + return s.RespMetadata.RequestID +} + +// One of the arguments provided is invalid for this request. +type InvalidArgumentException 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 InvalidArgumentException) 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 InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s *InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidArgumentException) OrigErr() error { + return nil +} + +func (s *InvalidArgumentException) 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 *InvalidArgumentException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidArgumentException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListAvailableResourceDimensionsInput struct { + _ struct{} `type:"structure"` + + // An immutable identifier for a data source that is unique within an Amazon + // Web Services Region. Performance Insights gathers metrics from this data + // source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId + // value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ. + // + // Identifier is a required field + Identifier *string `type:"string" required:"true"` + + // The maximum number of items to return in the response. If more items exist + // than the specified MaxRecords value, a pagination token is included in the + // response so that the remaining results can be retrieved. + MaxResults *int64 `type:"integer"` + + // The types of metrics for which to retrieve dimensions. Valid values include + // db.load. + // + // Metrics is a required field + Metrics []*string `min:"1" type:"list" required:"true"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the token, up to + // the value specified by MaxRecords. + NextToken *string `min:"1" type:"string"` + + // The Amazon Web Services service for which Performance Insights returns metrics. + // + // ServiceType is a required field + ServiceType *string `type:"string" required:"true" enum:"ServiceType"` +} + +// 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 ListAvailableResourceDimensionsInput) 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 ListAvailableResourceDimensionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAvailableResourceDimensionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAvailableResourceDimensionsInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Metrics == nil { + invalidParams.Add(request.NewErrParamRequired("Metrics")) + } + if s.Metrics != nil && len(s.Metrics) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Metrics", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.ServiceType == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetIdentifier sets the Identifier field's value. -func (s *GetResourceMetricsInput) SetIdentifier(v string) *GetResourceMetricsInput { +func (s *ListAvailableResourceDimensionsInput) SetIdentifier(v string) *ListAvailableResourceDimensionsInput { s.Identifier = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *GetResourceMetricsInput) SetMaxResults(v int64) *GetResourceMetricsInput { +func (s *ListAvailableResourceDimensionsInput) SetMaxResults(v int64) *ListAvailableResourceDimensionsInput { s.MaxResults = &v return s } -// SetMetricQueries sets the MetricQueries field's value. -func (s *GetResourceMetricsInput) SetMetricQueries(v []*MetricQuery) *GetResourceMetricsInput { - s.MetricQueries = v +// SetMetrics sets the Metrics field's value. +func (s *ListAvailableResourceDimensionsInput) SetMetrics(v []*string) *ListAvailableResourceDimensionsInput { + s.Metrics = v return s } // SetNextToken sets the NextToken field's value. -func (s *GetResourceMetricsInput) SetNextToken(v string) *GetResourceMetricsInput { +func (s *ListAvailableResourceDimensionsInput) SetNextToken(v string) *ListAvailableResourceDimensionsInput { s.NextToken = &v return s } -// SetPeriodInSeconds sets the PeriodInSeconds field's value. -func (s *GetResourceMetricsInput) SetPeriodInSeconds(v int64) *GetResourceMetricsInput { - s.PeriodInSeconds = &v - return s -} - // SetServiceType sets the ServiceType field's value. -func (s *GetResourceMetricsInput) SetServiceType(v string) *GetResourceMetricsInput { +func (s *ListAvailableResourceDimensionsInput) SetServiceType(v string) *ListAvailableResourceDimensionsInput { s.ServiceType = &v return s } -// SetStartTime sets the StartTime field's value. -func (s *GetResourceMetricsInput) SetStartTime(v time.Time) *GetResourceMetricsInput { - s.StartTime = &v - return s -} - -type GetResourceMetricsOutput struct { +type ListAvailableResourceDimensionsOutput struct { _ struct{} `type:"structure"` - // The end time for the returned metrics, after alignment to a granular boundary - // (as specified by PeriodInSeconds). AlignedEndTime will be greater than or - // equal to the value of the user-specified Endtime. - AlignedEndTime *time.Time `type:"timestamp"` - - // The start time for the returned metrics, after alignment to a granular boundary - // (as specified by PeriodInSeconds). AlignedStartTime will be less than or - // equal to the value of the user-specified StartTime. - AlignedStartTime *time.Time `type:"timestamp"` - - // An immutable, AWS Region-unique identifier for a data source. Performance - // Insights gathers metrics from this data source. - // - // To use a DB instance as a data source, you specify its DbiResourceId value - // - for example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A - Identifier *string `type:"string"` - - // An array of metric results,, where each array element contains all of the - // data points for a particular dimension. - MetricList []*MetricKeyDataPoints `type:"list"` + // The dimension information returned for requested metric types. + MetricDimensions []*MetricDimensionGroups `type:"list"` // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the token, up to @@ -1247,7 +2285,7 @@ type GetResourceMetricsOutput 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 GetResourceMetricsOutput) String() string { +func (s ListAvailableResourceDimensionsOutput) String() string { return awsutil.Prettify(s) } @@ -1256,46 +2294,60 @@ func (s GetResourceMetricsOutput) 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 GetResourceMetricsOutput) GoString() string { +func (s ListAvailableResourceDimensionsOutput) GoString() string { return s.String() } -// SetAlignedEndTime sets the AlignedEndTime field's value. -func (s *GetResourceMetricsOutput) SetAlignedEndTime(v time.Time) *GetResourceMetricsOutput { - s.AlignedEndTime = &v +// SetMetricDimensions sets the MetricDimensions field's value. +func (s *ListAvailableResourceDimensionsOutput) SetMetricDimensions(v []*MetricDimensionGroups) *ListAvailableResourceDimensionsOutput { + s.MetricDimensions = v return s } -// SetAlignedStartTime sets the AlignedStartTime field's value. -func (s *GetResourceMetricsOutput) SetAlignedStartTime(v time.Time) *GetResourceMetricsOutput { - s.AlignedStartTime = &v +// SetNextToken sets the NextToken field's value. +func (s *ListAvailableResourceDimensionsOutput) SetNextToken(v string) *ListAvailableResourceDimensionsOutput { + s.NextToken = &v return s } -// SetIdentifier sets the Identifier field's value. -func (s *GetResourceMetricsOutput) SetIdentifier(v string) *GetResourceMetricsOutput { - s.Identifier = &v - return s -} +type ListAvailableResourceMetricsInput struct { + _ struct{} `type:"structure"` -// SetMetricList sets the MetricList field's value. -func (s *GetResourceMetricsOutput) SetMetricList(v []*MetricKeyDataPoints) *GetResourceMetricsOutput { - s.MetricList = v - return s -} + // An immutable identifier for a data source that is unique within an Amazon + // Web Services Region. Performance Insights gathers metrics from this data + // source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId + // value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ. + // + // Identifier is a required field + Identifier *string `type:"string" required:"true"` -// SetNextToken sets the NextToken field's value. -func (s *GetResourceMetricsOutput) SetNextToken(v string) *GetResourceMetricsOutput { - s.NextToken = &v - return s -} + // The maximum number of items to return. If the MaxRecords value is less than + // the number of existing items, the response includes a pagination token. + MaxResults *int64 `type:"integer"` -// The request failed due to an unknown error. -type InternalServiceError struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The types of metrics to return in the response. Valid values in the array + // include the following: + // + // * os (OS counter metrics) + // + // * db (DB load metrics) + // + // * db.sql.stats (per-SQL metrics) + // + // * db.sql_tokenized.stats (per-SQL digest metrics) + // + // MetricTypes is a required field + MetricTypes []*string `type:"list" required:"true"` - Message_ *string `locationName:"Message" type:"string"` + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the token, up to + // the value specified by MaxRecords. + NextToken *string `min:"1" type:"string"` + + // The Amazon Web Services service for which Performance Insights returns metrics. + // + // ServiceType is a required field + ServiceType *string `type:"string" required:"true" enum:"ServiceType"` } // String returns the string representation. @@ -1303,7 +2355,7 @@ type InternalServiceError 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 InternalServiceError) String() string { +func (s ListAvailableResourceMetricsInput) String() string { return awsutil.Prettify(s) } @@ -1312,54 +2364,74 @@ func (s InternalServiceError) 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 InternalServiceError) GoString() string { +func (s ListAvailableResourceMetricsInput) GoString() string { return s.String() } -func newErrorInternalServiceError(v protocol.ResponseMetadata) error { - return &InternalServiceError{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAvailableResourceMetricsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAvailableResourceMetricsInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.MetricTypes == nil { + invalidParams.Add(request.NewErrParamRequired("MetricTypes")) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.ServiceType == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceType")) } -} -// Code returns the exception type name. -func (s *InternalServiceError) Code() string { - return "InternalServiceError" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *InternalServiceError) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetIdentifier sets the Identifier field's value. +func (s *ListAvailableResourceMetricsInput) SetIdentifier(v string) *ListAvailableResourceMetricsInput { + s.Identifier = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServiceError) OrigErr() error { - return nil +// SetMaxResults sets the MaxResults field's value. +func (s *ListAvailableResourceMetricsInput) SetMaxResults(v int64) *ListAvailableResourceMetricsInput { + s.MaxResults = &v + return s } -func (s *InternalServiceError) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetMetricTypes sets the MetricTypes field's value. +func (s *ListAvailableResourceMetricsInput) SetMetricTypes(v []*string) *ListAvailableResourceMetricsInput { + s.MetricTypes = v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServiceError) StatusCode() int { - return s.RespMetadata.StatusCode +// SetNextToken sets the NextToken field's value. +func (s *ListAvailableResourceMetricsInput) SetNextToken(v string) *ListAvailableResourceMetricsInput { + s.NextToken = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServiceError) RequestID() string { - return s.RespMetadata.RequestID +// SetServiceType sets the ServiceType field's value. +func (s *ListAvailableResourceMetricsInput) SetServiceType(v string) *ListAvailableResourceMetricsInput { + s.ServiceType = &v + return s } -// One of the arguments provided is invalid for this request. -type InvalidArgumentException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type ListAvailableResourceMetricsOutput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // An array of metrics available to query. Each array element contains the full + // name, description, and unit of the metric. + Metrics []*ResponseResourceMetric `type:"list"` + + // A pagination token that indicates the response didn’t return all available + // records because MaxRecords was specified in the previous request. To get + // the remaining records, specify NextToken in a separate request with this + // value. + NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -1367,7 +2439,7 @@ type InvalidArgumentException 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 InvalidArgumentException) String() string { +func (s ListAvailableResourceMetricsOutput) String() string { return awsutil.Prettify(s) } @@ -1376,46 +2448,61 @@ func (s InvalidArgumentException) 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 InvalidArgumentException) GoString() string { +func (s ListAvailableResourceMetricsOutput) GoString() string { return s.String() } -func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { - return &InvalidArgumentException{ - RespMetadata: v, - } +// SetMetrics sets the Metrics field's value. +func (s *ListAvailableResourceMetricsOutput) SetMetrics(v []*ResponseResourceMetric) *ListAvailableResourceMetricsOutput { + s.Metrics = v + return s } -// Code returns the exception type name. -func (s *InvalidArgumentException) Code() string { - return "InvalidArgumentException" +// SetNextToken sets the NextToken field's value. +func (s *ListAvailableResourceMetricsOutput) SetNextToken(v string) *ListAvailableResourceMetricsOutput { + s.NextToken = &v + return s } -// Message returns the exception's message. -func (s *InvalidArgumentException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// The available dimension information for a metric type. +type MetricDimensionGroups struct { + _ struct{} `type:"structure"` + + // The available dimension groups for a metric type. + Groups []*DimensionGroupDetail `type:"list"` + + // The metric type to which the dimension information belongs. + Metric *string `type:"string"` } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidArgumentException) OrigErr() error { - return nil +// 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 MetricDimensionGroups) String() string { + return awsutil.Prettify(s) } -func (s *InvalidArgumentException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// 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 MetricDimensionGroups) GoString() string { + return s.String() } -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidArgumentException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetGroups sets the Groups field's value. +func (s *MetricDimensionGroups) SetGroups(v []*DimensionGroupDetail) *MetricDimensionGroups { + s.Groups = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InvalidArgumentException) RequestID() string { - return s.RespMetadata.RequestID +// SetMetric sets the Metric field's value. +func (s *MetricDimensionGroups) SetMetric(v string) *MetricDimensionGroups { + s.Metric = &v + return s } // A time-ordered series of data points, corresponding to a dimension of a Performance @@ -1427,7 +2514,7 @@ type MetricKeyDataPoints struct { // of time. DataPoints []*DataPoint `type:"list"` - // The dimension(s) to which the data points apply. + // The dimensions to which the data points apply. Key *ResponseResourceMetricKey `type:"structure"` } @@ -1462,10 +2549,10 @@ func (s *MetricKeyDataPoints) SetKey(v *ResponseResourceMetricKey) *MetricKeyDat } // A single query to be processed. You must provide the metric to query. If -// no other parameters are specified, Performance Insights returns all of the -// data points for that metric. You can optionally request that the data points -// be aggregated by dimension group ( GroupBy), and return only those data points -// that match your criteria (Filter). +// no other parameters are specified, Performance Insights returns all data +// points for the specified metric. Optionally, you can request that the data +// points be aggregated by dimension group (GroupBy), and return only those +// data points that match your criteria (Filter). type MetricQuery struct { _ struct{} `type:"structure"` @@ -1628,7 +2715,7 @@ func (s *NotAuthorizedException) RequestID() string { type ResponsePartitionKey struct { _ struct{} `type:"structure"` - // A dimension map that contains the dimension(s) for this partition. + // A dimension map that contains the dimensions for this partition. // // Dimensions is a required field Dimensions map[string]*string `type:"map" required:"true"` @@ -1658,6 +2745,56 @@ func (s *ResponsePartitionKey) SetDimensions(v map[string]*string) *ResponsePart return s } +// An object that contains the full name, description, and unit of a metric. +type ResponseResourceMetric struct { + _ struct{} `type:"structure"` + + // The description of the metric. + Description *string `min:"1" type:"string"` + + // The full name of the metric. + Metric *string `type:"string"` + + // The unit of the metric. + Unit *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 ResponseResourceMetric) 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 ResponseResourceMetric) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *ResponseResourceMetric) SetDescription(v string) *ResponseResourceMetric { + s.Description = &v + return s +} + +// SetMetric sets the Metric field's value. +func (s *ResponseResourceMetric) SetMetric(v string) *ResponseResourceMetric { + s.Metric = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *ResponseResourceMetric) SetUnit(v string) *ResponseResourceMetric { + s.Unit = &v + return s +} + // An object describing a Performance Insights metric and one or more dimensions // for that metric. type ResponseResourceMetricKey struct { @@ -1737,14 +2874,50 @@ func DetailStatus_Values() []string { } } +const ( + // FeatureStatusEnabled is a FeatureStatus enum value + FeatureStatusEnabled = "ENABLED" + + // FeatureStatusDisabled is a FeatureStatus enum value + FeatureStatusDisabled = "DISABLED" + + // FeatureStatusUnsupported is a FeatureStatus enum value + FeatureStatusUnsupported = "UNSUPPORTED" + + // FeatureStatusEnabledPendingReboot is a FeatureStatus enum value + FeatureStatusEnabledPendingReboot = "ENABLED_PENDING_REBOOT" + + // FeatureStatusDisabledPendingReboot is a FeatureStatus enum value + FeatureStatusDisabledPendingReboot = "DISABLED_PENDING_REBOOT" + + // FeatureStatusUnknown is a FeatureStatus enum value + FeatureStatusUnknown = "UNKNOWN" +) + +// FeatureStatus_Values returns all elements of the FeatureStatus enum +func FeatureStatus_Values() []string { + return []string{ + FeatureStatusEnabled, + FeatureStatusDisabled, + FeatureStatusUnsupported, + FeatureStatusEnabledPendingReboot, + FeatureStatusDisabledPendingReboot, + FeatureStatusUnknown, + } +} + const ( // ServiceTypeRds is a ServiceType enum value ServiceTypeRds = "RDS" + + // ServiceTypeDocdb is a ServiceType enum value + ServiceTypeDocdb = "DOCDB" ) // ServiceType_Values returns all elements of the ServiceType enum func ServiceType_Values() []string { return []string{ ServiceTypeRds, + ServiceTypeDocdb, } } diff --git a/service/pi/doc.go b/service/pi/doc.go index 43b42c6fa99..129f6e477a9 100644 --- a/service/pi/doc.go +++ b/service/pi/doc.go @@ -10,10 +10,11 @@ // // When Performance Insights is enabled, the Amazon RDS Performance Insights // API provides visibility into the performance of your DB instance. Amazon -// CloudWatch provides the authoritative source for AWS service-vended monitoring -// metrics. Performance Insights offers a domain-specific view of DB load. +// CloudWatch provides the authoritative source for Amazon Web Services service-vended +// monitoring metrics. Performance Insights offers a domain-specific view of +// DB load. // -// DB load is measured as Average Active Sessions. Performance Insights provides +// DB load is measured as average active sessions. Performance Insights provides // the data to API consumers as a two-dimensional time-series dataset. The time // dimension provides DB load data for each time point in the queried time range. // Each time point decomposes overall load in relation to the requested dimensions, diff --git a/service/pi/piiface/interface.go b/service/pi/piiface/interface.go index a55df5518be..825a615076e 100644 --- a/service/pi/piiface/interface.go +++ b/service/pi/piiface/interface.go @@ -64,13 +64,37 @@ type PIAPI interface { DescribeDimensionKeysWithContext(aws.Context, *pi.DescribeDimensionKeysInput, ...request.Option) (*pi.DescribeDimensionKeysOutput, error) DescribeDimensionKeysRequest(*pi.DescribeDimensionKeysInput) (*request.Request, *pi.DescribeDimensionKeysOutput) + DescribeDimensionKeysPages(*pi.DescribeDimensionKeysInput, func(*pi.DescribeDimensionKeysOutput, bool) bool) error + DescribeDimensionKeysPagesWithContext(aws.Context, *pi.DescribeDimensionKeysInput, func(*pi.DescribeDimensionKeysOutput, bool) bool, ...request.Option) error + GetDimensionKeyDetails(*pi.GetDimensionKeyDetailsInput) (*pi.GetDimensionKeyDetailsOutput, error) GetDimensionKeyDetailsWithContext(aws.Context, *pi.GetDimensionKeyDetailsInput, ...request.Option) (*pi.GetDimensionKeyDetailsOutput, error) GetDimensionKeyDetailsRequest(*pi.GetDimensionKeyDetailsInput) (*request.Request, *pi.GetDimensionKeyDetailsOutput) + GetResourceMetadata(*pi.GetResourceMetadataInput) (*pi.GetResourceMetadataOutput, error) + GetResourceMetadataWithContext(aws.Context, *pi.GetResourceMetadataInput, ...request.Option) (*pi.GetResourceMetadataOutput, error) + GetResourceMetadataRequest(*pi.GetResourceMetadataInput) (*request.Request, *pi.GetResourceMetadataOutput) + GetResourceMetrics(*pi.GetResourceMetricsInput) (*pi.GetResourceMetricsOutput, error) GetResourceMetricsWithContext(aws.Context, *pi.GetResourceMetricsInput, ...request.Option) (*pi.GetResourceMetricsOutput, error) GetResourceMetricsRequest(*pi.GetResourceMetricsInput) (*request.Request, *pi.GetResourceMetricsOutput) + + GetResourceMetricsPages(*pi.GetResourceMetricsInput, func(*pi.GetResourceMetricsOutput, bool) bool) error + GetResourceMetricsPagesWithContext(aws.Context, *pi.GetResourceMetricsInput, func(*pi.GetResourceMetricsOutput, bool) bool, ...request.Option) error + + ListAvailableResourceDimensions(*pi.ListAvailableResourceDimensionsInput) (*pi.ListAvailableResourceDimensionsOutput, error) + ListAvailableResourceDimensionsWithContext(aws.Context, *pi.ListAvailableResourceDimensionsInput, ...request.Option) (*pi.ListAvailableResourceDimensionsOutput, error) + ListAvailableResourceDimensionsRequest(*pi.ListAvailableResourceDimensionsInput) (*request.Request, *pi.ListAvailableResourceDimensionsOutput) + + ListAvailableResourceDimensionsPages(*pi.ListAvailableResourceDimensionsInput, func(*pi.ListAvailableResourceDimensionsOutput, bool) bool) error + ListAvailableResourceDimensionsPagesWithContext(aws.Context, *pi.ListAvailableResourceDimensionsInput, func(*pi.ListAvailableResourceDimensionsOutput, bool) bool, ...request.Option) error + + ListAvailableResourceMetrics(*pi.ListAvailableResourceMetricsInput) (*pi.ListAvailableResourceMetricsOutput, error) + ListAvailableResourceMetricsWithContext(aws.Context, *pi.ListAvailableResourceMetricsInput, ...request.Option) (*pi.ListAvailableResourceMetricsOutput, error) + ListAvailableResourceMetricsRequest(*pi.ListAvailableResourceMetricsInput) (*request.Request, *pi.ListAvailableResourceMetricsOutput) + + ListAvailableResourceMetricsPages(*pi.ListAvailableResourceMetricsInput, func(*pi.ListAvailableResourceMetricsOutput, bool) bool) error + ListAvailableResourceMetricsPagesWithContext(aws.Context, *pi.ListAvailableResourceMetricsInput, func(*pi.ListAvailableResourceMetricsOutput, bool) bool, ...request.Option) error } var _ PIAPI = (*pi.PI)(nil)