diff --git a/CHANGELOG.md b/CHANGELOG.md index a89aec7e1f..f6256398cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +Release v1.44.45 (2022-06-29) +=== + +### Service Client Updates +* `service/appstream`: Updates service API and documentation + * Includes support for StreamingExperienceSettings in CreateStack and UpdateStack APIs +* `service/elasticloadbalancingv2`: Updates service documentation +* `service/elasticmapreduce`: Updates service API and documentation + * This release introduces additional optional parameter "Throughput" to VolumeSpecification to enable user to configure throughput for gp3 ebs volumes. +* `service/medialive`: Updates service API and documentation + * This release adds support for automatic renewal of MediaLive reservations at the end of each reservation term. Automatic renewal is optional. This release also adds support for labelling accessibility-focused audio and caption tracks in HLS outputs. +* `service/redshift-serverless`: Adds new service +* `service/sagemaker`: Updates service API and documentation + * This release adds: UpdateFeatureGroup, UpdateFeatureMetadata, DescribeFeatureMetadata APIs; FeatureMetadata type in Search API; LastModifiedTime, LastUpdateStatus, OnlineStoreTotalSizeBytes in DescribeFeatureGroup API. +* `service/translate`: Updates service API, documentation, and paginators + Release v1.44.44 (2022-06-28) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 9deff77197..f31b5040cd 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -1506,6 +1506,42 @@ var awsPartition = partition{ }, }, }, + "api.iotdeviceadvisor": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "ap-northeast-1", + }: endpoint{ + Hostname: "api.iotdeviceadvisor.ap-northeast-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ap-northeast-1", + }, + }, + endpointKey{ + Region: "eu-west-1", + }: endpoint{ + Hostname: "api.iotdeviceadvisor.eu-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "eu-west-1", + }, + }, + endpointKey{ + Region: "us-east-1", + }: endpoint{ + Hostname: "api.iotdeviceadvisor.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + endpointKey{ + Region: "us-west-2", + }: endpoint{ + Hostname: "api.iotdeviceadvisor.us-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, + }, + }, "api.iotwireless": service{ Endpoints: serviceEndpoints{ endpointKey{ @@ -4044,6 +4080,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, @@ -15164,6 +15203,14 @@ var awsPartition = partition{ Region: "eu-north-1", }, }, + endpointKey{ + Region: "eu-south-1", + }: endpoint{ + Hostname: "oidc.eu-south-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "eu-south-1", + }, + }, endpointKey{ Region: "eu-west-1", }: endpoint{ @@ -16792,6 +16839,43 @@ var awsPartition = partition{ }, }, }, + "redshift-serverless": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "ap-northeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-northeast-2", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-2", + }: endpoint{}, + endpointKey{ + Region: "eu-central-1", + }: endpoint{}, + endpointKey{ + Region: "eu-north-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-2", + }: endpoint{}, + endpointKey{ + Region: "us-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-east-2", + }: endpoint{}, + endpointKey{ + Region: "us-west-2", + }: endpoint{}, + }, + }, "rekognition": service{ Endpoints: serviceEndpoints{ endpointKey{ @@ -28152,6 +28236,15 @@ var awsusgovPartition = partition{ }, "lakeformation": service{ Endpoints: serviceEndpoints{ + endpointKey{ + Region: "fips-us-gov-east-1", + }: endpoint{ + Hostname: "lakeformation-fips.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "fips-us-gov-west-1", }: endpoint{ @@ -28161,6 +28254,15 @@ var awsusgovPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "us-gov-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-gov-east-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "lakeformation-fips.us-gov-east-1.amazonaws.com", + }, endpointKey{ Region: "us-gov-west-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index f6bfa5fcd2..d85f3436b8 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.44" +const SDKVersion = "1.44.45" diff --git a/models/apis/appstream/2016-12-01/api-2.json b/models/apis/appstream/2016-12-01/api-2.json index 27612a0704..60afb69d0a 100644 --- a/models/apis/appstream/2016-12-01/api-2.json +++ b/models/apis/appstream/2016-12-01/api-2.json @@ -1428,7 +1428,8 @@ "ApplicationSettings":{"shape":"ApplicationSettings"}, "Tags":{"shape":"Tags"}, "AccessEndpoints":{"shape":"AccessEndpointList"}, - "EmbedHostDomains":{"shape":"EmbedHostDomains"} + "EmbedHostDomains":{"shape":"EmbedHostDomains"}, + "StreamingExperienceSettings":{"shape":"StreamingExperienceSettings"} } }, "CreateStackResult":{ @@ -2518,6 +2519,13 @@ "member":{"shape":"PlatformType"}, "max":4 }, + "PreferredProtocol":{ + "type":"string", + "enum":[ + "TCP", + "UDP" + ] + }, "RedirectURL":{ "type":"string", "max":1000 @@ -2707,7 +2715,8 @@ "UserSettings":{"shape":"UserSettingList"}, "ApplicationSettings":{"shape":"ApplicationSettingsResponse"}, "AccessEndpoints":{"shape":"AccessEndpointList"}, - "EmbedHostDomains":{"shape":"EmbedHostDomains"} + "EmbedHostDomains":{"shape":"EmbedHostDomains"}, + "StreamingExperienceSettings":{"shape":"StreamingExperienceSettings"} } }, "StackAttribute":{ @@ -2723,7 +2732,8 @@ "USER_SETTINGS", "EMBED_HOST_DOMAINS", "IAM_ROLE_ARN", - "ACCESS_ENDPOINTS" + "ACCESS_ENDPOINTS", + "STREAMING_EXPERIENCE_SETTINGS" ] }, "StackAttributes":{ @@ -2831,6 +2841,12 @@ "DESKTOP" ] }, + "StreamingExperienceSettings":{ + "type":"structure", + "members":{ + "PreferredProtocol":{"shape":"PreferredProtocol"} + } + }, "StreamingUrlUserId":{ "type":"string", "max":32, @@ -3034,7 +3050,8 @@ "UserSettings":{"shape":"UserSettingList"}, "ApplicationSettings":{"shape":"ApplicationSettings"}, "AccessEndpoints":{"shape":"AccessEndpointList"}, - "EmbedHostDomains":{"shape":"EmbedHostDomains"} + "EmbedHostDomains":{"shape":"EmbedHostDomains"}, + "StreamingExperienceSettings":{"shape":"StreamingExperienceSettings"} } }, "UpdateStackResult":{ diff --git a/models/apis/appstream/2016-12-01/docs-2.json b/models/apis/appstream/2016-12-01/docs-2.json index 7b357ece56..313e47d1d5 100644 --- a/models/apis/appstream/2016-12-01/docs-2.json +++ b/models/apis/appstream/2016-12-01/docs-2.json @@ -64,7 +64,7 @@ "UpdateApplication": "

Updates the specified application.

", "UpdateDirectoryConfig": "

Updates the specified Directory Config object in AppStream 2.0. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.

", "UpdateEntitlement": "

Updates the specified entitlement.

", - "UpdateFleet": "

Updates the specified fleet.

If the fleet is in the STOPPED state, you can update any attribute except the fleet name.

If the fleet is in the RUNNING state, you can update the following based on the fleet type:

If the fleet is in the STARTING or STOPPED state, you can't update it.

", + "UpdateFleet": "

Updates the specified fleet.

If the fleet is in the STOPPED state, you can update any attribute except the fleet name.

If the fleet is in the RUNNING state, you can update the following based on the fleet type:

If the fleet is in the STARTING or STOPPED state, you can't update it.

", "UpdateImagePermissions": "

Adds or updates permissions for the specified private image.

", "UpdateStack": "

Updates the specified fields for the specified stack.

" }, @@ -1343,6 +1343,12 @@ "CreateApplicationRequest$Platforms": "

The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.

" } }, + "PreferredProtocol": { + "base": null, + "refs": { + "StreamingExperienceSettings$PreferredProtocol": "

The preferred protocol that you want to use while streaming your application.

" + } + }, "RedirectURL": { "base": null, "refs": { @@ -1603,6 +1609,14 @@ "UpdateFleetRequest$StreamView": "

The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP is specified, only the windows of applications opened by users display. When DESKTOP is specified, the standard desktop that is provided by the operating system displays.

The default value is APP.

" } }, + "StreamingExperienceSettings": { + "base": "

The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

", + "refs": { + "CreateStackRequest$StreamingExperienceSettings": "

The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

", + "Stack$StreamingExperienceSettings": "

The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

", + "UpdateStackRequest$StreamingExperienceSettings": "

The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

" + } + }, "StreamingUrlUserId": { "base": null, "refs": { diff --git a/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json b/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json index 1ae2b95802..21ac104f35 100644 --- a/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json +++ b/models/apis/elasticloadbalancingv2/2015-12-01/docs-2.json @@ -27,7 +27,7 @@ "ModifyListener": "

Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.

Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the security policy and default certificate properties. If you change the protocol from HTTP to HTTPS, or from TCP to TLS, you must add the security policy and default certificate properties.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

", "ModifyLoadBalancerAttributes": "

Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.

", "ModifyRule": "

Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

", - "ModifyTargetGroup": "

Modifies the health checks used when evaluating the health state of the targets in the specified target group.

", + "ModifyTargetGroup": "

Modifies the health checks used when evaluating the health state of the targets in the specified target group.

If the protocol of the target group is TCP, TLS, UDP, or TCP_UDP, you can't modify the health check protocol, interval, timeout, or success codes.

", "ModifyTargetGroupAttributes": "

Modifies the specified attributes of the specified target group.

", "RegisterTargets": "

Registers the specified targets with the specified target group.

If the target is an EC2 instance, it must be in the running state when you register it.

By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.

With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.

", "RemoveListenerCertificates": "

Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.

", @@ -655,8 +655,8 @@ "HealthCheckIntervalSeconds": { "base": null, "refs": { - "CreateTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. If the target group protocol is TCP, TLS, UDP, or TCP_UDP, the supported values are 10 and 30 seconds. If the target group protocol is HTTP or HTTPS, the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 seconds.

", - "ModifyTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. For TCP health checks, the supported values are 10 or 30 seconds.

With Network Load Balancers, you can't modify this setting.

", + "CreateTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. If the target group protocol is HTTP or HTTPS, the default is 30 seconds. If the target group protocol is TCP, TLS, UDP, or TCP_UDP, the supported values are 10 and 30 seconds and the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 seconds.

", + "ModifyTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. For TCP health checks, the supported values are 10 or 30 seconds.

", "TargetGroup$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target.

" } }, @@ -684,7 +684,7 @@ "base": null, "refs": { "CreateTargetGroupInput$HealthCheckTimeoutSeconds": "

The amount of time, in seconds, during which no response from a target means a failed health check. For target groups with a protocol of HTTP, HTTPS, or GENEVE, the default is 5 seconds. For target groups with a protocol of TCP or TLS, this value must be 6 seconds for HTTP health checks and 10 seconds for TCP and HTTPS health checks. If the target type is lambda, the default is 30 seconds.

", - "ModifyTargetGroupInput$HealthCheckTimeoutSeconds": "

[HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.

With Network Load Balancers, you can't modify this setting.

", + "ModifyTargetGroupInput$HealthCheckTimeoutSeconds": "

[HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.

", "TargetGroup$HealthCheckTimeoutSeconds": "

The amount of time, in seconds, during which no response means a failed health check.

" } }, @@ -902,7 +902,7 @@ "LoadBalancerAttributeKey": { "base": null, "refs": { - "LoadBalancerAttribute$Key": "

The name of the attribute.

The following attribute is supported by all load balancers:

The following attributes are supported by both Application Load Balancers and Network Load Balancers:

The following attributes are supported by only Application Load Balancers:

The following attribute is supported by Network Load Balancers and Gateway Load Balancers:

" + "LoadBalancerAttribute$Key": "

The name of the attribute.

The following attribute is supported by all load balancers:

The following attributes are supported by both Application Load Balancers and Network Load Balancers:

The following attributes are supported by only Application Load Balancers:

The following attribute is supported by Network Load Balancers and Gateway Load Balancers:

" } }, "LoadBalancerAttributeValue": { @@ -995,7 +995,7 @@ "base": "

The codes to use when checking for a successful response from a target. If the protocol version is gRPC, these are gRPC codes. Otherwise, these are HTTP codes.

", "refs": { "CreateTargetGroupInput$Matcher": "

[HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.

", - "ModifyTargetGroupInput$Matcher": "

[HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.

With Network Load Balancers, you can't modify this setting.

", + "ModifyTargetGroupInput$Matcher": "

[HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.

", "TargetGroup$Matcher": "

The HTTP or gRPC codes to use when checking for a successful response from a target.

" } }, @@ -1129,7 +1129,7 @@ "CreateTargetGroupInput$HealthCheckProtocol": "

The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

", "Listener$Protocol": "

The protocol for connections from clients to the load balancer.

", "ModifyListenerInput$Protocol": "

The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

", - "ModifyTargetGroupInput$HealthCheckProtocol": "

The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

With Network Load Balancers, you can't modify this setting.

", + "ModifyTargetGroupInput$HealthCheckProtocol": "

The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

", "TargetGroup$Protocol": "

The protocol to use for routing traffic to the targets.

", "TargetGroup$HealthCheckProtocol": "

The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

" } @@ -1274,7 +1274,7 @@ } }, "RuleCondition": { - "base": "

Information about a condition for a rule.

Each rule can optionally include up to one of each of the following conditions: http-request-method, host-header, path-pattern, and source-ip. Each rule can also optionally include one or more of each of the following conditions: http-header and query-string.

", + "base": "

Information about a condition for a rule.

Each rule can optionally include up to one of each of the following conditions: http-request-method, host-header, path-pattern, and source-ip. Each rule can also optionally include one or more of each of the following conditions: http-header and query-string. Note that the value for a condition cannot be empty.

", "refs": { "RuleConditionList$member": null } @@ -1463,7 +1463,7 @@ "SubnetMappings": { "base": null, "refs": { - "CreateLoadBalancerInput$SubnetMappings": "

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

[Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.

", + "CreateLoadBalancerInput$SubnetMappings": "

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both.

[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

[Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.

", "SetSubnetsInput$SubnetMappings": "

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

" } }, @@ -1475,7 +1475,7 @@ "Subnets": { "base": null, "refs": { - "CreateLoadBalancerInput$Subnets": "

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

[Application Load Balancers] You must specify subnets from at least two Availability Zones.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones.

[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.

", + "CreateLoadBalancerInput$Subnets": "

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets.

[Application Load Balancers] You must specify subnets from at least two Availability Zones.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones.

[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.

", "SetSubnetsInput$Subnets": "

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

[Application Load Balancers] You must specify subnets from at least two Availability Zones.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones.

" } }, diff --git a/models/apis/elasticmapreduce/2009-03-31/api-2.json b/models/apis/elasticmapreduce/2009-03-31/api-2.json index 409f959b8c..16bb90d26d 100644 --- a/models/apis/elasticmapreduce/2009-03-31/api-2.json +++ b/models/apis/elasticmapreduce/2009-03-31/api-2.json @@ -3019,6 +3019,10 @@ "JobFlowIds":{"shape":"XmlStringList"} } }, + "ThroughputVal":{ + "type":"integer", + "min":0 + }, "Unit":{ "type":"string", "enum":[ @@ -3086,7 +3090,8 @@ "members":{ "VolumeType":{"shape":"String"}, "Iops":{"shape":"Integer"}, - "SizeInGB":{"shape":"Integer"} + "SizeInGB":{"shape":"Integer"}, + "Throughput":{"shape":"ThroughputVal"} } }, "WholeNumber":{ diff --git a/models/apis/elasticmapreduce/2009-03-31/docs-2.json b/models/apis/elasticmapreduce/2009-03-31/docs-2.json index ed1a186c11..c92ddec06e 100644 --- a/models/apis/elasticmapreduce/2009-03-31/docs-2.json +++ b/models/apis/elasticmapreduce/2009-03-31/docs-2.json @@ -602,7 +602,7 @@ } }, "EbsBlockDeviceConfig": { - "base": "

Configuration of requested EBS block device associated with the instance group with count of volumes that will be associated to every instance.

", + "base": "

Configuration of requested EBS block device associated with the instance group with count of volumes that are associated to every instance.

", "refs": { "EbsBlockDeviceConfigList$member": null } @@ -1067,7 +1067,7 @@ "ComputeLimits$MaximumCapacityUnits": "

The upper boundary of EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

", "ComputeLimits$MaximumOnDemandCapacityUnits": "

The upper boundary of On-Demand EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances.

", "ComputeLimits$MaximumCoreCapacityUnits": "

The upper boundary of EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.

", - "EbsBlockDeviceConfig$VolumesPerInstance": "

Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group

", + "EbsBlockDeviceConfig$VolumesPerInstance": "

Number of EBS volumes with a specific volume configuration that are associated with every instance in the instance group

", "InstanceGroup$RequestedInstanceCount": "

The target number of instances for the instance group.

", "InstanceGroup$RunningInstanceCount": "

The number of instances currently running in this instance group.

", "InstanceGroupConfig$InstanceCount": "

Target number of instances for the instance group.

", @@ -2051,6 +2051,12 @@ "refs": { } }, + "ThroughputVal": { + "base": null, + "refs": { + "VolumeSpecification$Throughput": "

The throughput, in mebibyte per second (MiB/s). This optional parameter can be a number from 125 - 1000 and is valid only for gp3 volumes.

" + } + }, "Unit": { "base": null, "refs": { @@ -2068,10 +2074,10 @@ } }, "VolumeSpecification": { - "base": "

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", + "base": "

EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an EC2 instance in the cluster.

", "refs": { - "EbsBlockDevice$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

", - "EbsBlockDeviceConfig$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.

" + "EbsBlockDevice$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an EC2 instance in the cluster.

", + "EbsBlockDeviceConfig$VolumeSpecification": "

EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an EC2 instance in the cluster.

" } }, "WholeNumber": { diff --git a/models/apis/medialive/2017-10-14/api-2.json b/models/apis/medialive/2017-10-14/api-2.json index 4de281cf52..f105c6b601 100644 --- a/models/apis/medialive/2017-10-14/api-2.json +++ b/models/apis/medialive/2017-10-14/api-2.json @@ -2355,6 +2355,13 @@ } } }, + "AccessibilityType": { + "type": "string", + "enum": [ + "DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES", + "IMPLEMENTS_ACCESSIBILITY_FEATURES" + ] + }, "AfdSignaling": { "type": "string", "enum": [ @@ -2542,7 +2549,7 @@ "locationName": "languageCodeControl" }, "Name": { - "shape": "__string", + "shape": "__stringMax255", "locationName": "name" }, "RemixSettings": { @@ -3377,6 +3384,10 @@ "CaptionDescription": { "type": "structure", "members": { + "Accessibility": { + "shape": "AccessibilityType", + "locationName": "accessibility" + }, "CaptionSelectorName": { "shape": "__string", "locationName": "captionSelectorName" @@ -4611,6 +4622,10 @@ "shape": "__string", "locationName": "region" }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" + }, "ReservationId": { "shape": "__string", "locationName": "reservationId" @@ -5231,6 +5246,10 @@ "shape": "__string", "locationName": "region" }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" + }, "ReservationId": { "shape": "__string", "locationName": "reservationId" @@ -5304,7 +5323,8 @@ "type": "string", "enum": [ "UP_TO_DATE", - "NOT_UP_TO_DATE" + "NOT_UP_TO_DATE", + "UPDATING" ] }, "DvbNitSettings": { @@ -7962,7 +7982,7 @@ "locationName": "passwordParam" }, "Uri": { - "shape": "__string", + "shape": "__stringMax2048", "locationName": "uri" }, "Username": { @@ -10577,6 +10597,10 @@ "shape": "__string", "locationName": "name" }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" + }, "RequestId": { "shape": "__string", "locationName": "requestId", @@ -10611,6 +10635,10 @@ "location": "uri", "locationName": "offeringId" }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" + }, "RequestId": { "shape": "__string", "locationName": "requestId", @@ -10701,6 +10729,19 @@ "ChannelMappings" ] }, + "RenewalSettings": { + "type": "structure", + "members": { + "AutomaticRenewal": { + "shape": "ReservationAutomaticRenewal", + "locationName": "automaticRenewal" + }, + "RenewalCount": { + "shape": "__integerMin1", + "locationName": "renewalCount" + } + } + }, "Reservation": { "type": "structure", "members": { @@ -10752,6 +10793,10 @@ "shape": "__string", "locationName": "region" }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" + }, "ReservationId": { "shape": "__string", "locationName": "reservationId" @@ -10778,6 +10823,14 @@ } } }, + "ReservationAutomaticRenewal": { + "type": "string", + "enum": [ + "DISABLED", + "ENABLED", + "UNAVAILABLE" + ] + }, "ReservationCodec": { "type": "string", "enum": [ @@ -12666,6 +12719,10 @@ "Name": { "shape": "__string", "locationName": "name" + }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" } } }, @@ -12676,6 +12733,10 @@ "shape": "__string", "locationName": "name" }, + "RenewalSettings": { + "shape": "RenewalSettings", + "locationName": "renewalSettings" + }, "ReservationId": { "shape": "__string", "location": "uri", @@ -13563,6 +13624,14 @@ "type": "string", "max": 1000 }, + "__stringMax2048": { + "type": "string", + "max": 2048 + }, + "__stringMax255": { + "type": "string", + "max": 255 + }, "__stringMax256": { "type": "string", "max": 256 diff --git a/models/apis/medialive/2017-10-14/docs-2.json b/models/apis/medialive/2017-10-14/docs-2.json index a98a876fa8..0dbd541c53 100644 --- a/models/apis/medialive/2017-10-14/docs-2.json +++ b/models/apis/medialive/2017-10-14/docs-2.json @@ -150,6 +150,12 @@ "refs": { } }, + "AccessibilityType": { + "base": "Accessibility Type", + "refs": { + "CaptionDescription$Accessibility": "Indicates whether the caption track implements accessibility features such as written descriptions of spoken dialog, music, and sounds." + } + }, "AfdSignaling": { "base": "Afd Signaling", "refs": { @@ -2708,6 +2714,14 @@ "AudioDescription$RemixSettings": "Settings that control how input audio channels are remixed into the output audio channels." } }, + "RenewalSettings": { + "base": "The Renewal settings for Reservations", + "refs": { + "PurchaseOffering$RenewalSettings": "Renewal settings for the reservation", + "Reservation$RenewalSettings": "Renewal settings for the reservation", + "UpdateReservation$RenewalSettings": "Renewal settings for the reservation" + } + }, "Reservation": { "base": "Reserved resources available to use", "refs": { @@ -2716,6 +2730,12 @@ "__listOfReservation$member": null } }, + "ReservationAutomaticRenewal": { + "base": "Automatic Renewal Status for Reservation", + "refs": { + "RenewalSettings$AutomaticRenewal": "Automatic renewal status for the reservation" + } + }, "ReservationCodec": { "base": "Codec, 'MPEG2', 'AVC', 'HEVC', or 'AUDIO'", "refs": { @@ -3731,6 +3751,7 @@ "Mpeg2Settings$FramerateNumerator": "The framerate numerator. For example, 24000. The framerate is the numerator divided by the denominator. For example, 24000 / 1001 = 23.976 FPS.", "MsSmoothGroupSettings$FragmentLength": "Length of mp4 fragments to generate (in seconds). Fragment length must be compatible with GOP size and framerate.", "PurchaseOffering$Count": "Number of resources", + "RenewalSettings$RenewalCount": "Count for the reservation renewal", "RtmpOutputSettings$ConnectionRetryInterval": "Number of seconds to wait before retrying a connection to the Flash Media server if the connection is lost.", "Scte27SourceSettings$Pid": "The pid field is used in conjunction with the caption selector languageCode field as follows:\n - Specify PID and Language: Extracts captions from that PID; the language is \"informational\".\n - Specify PID and omit Language: Extracts the specified PID.\n - Omit PID and specify Language: Extracts the specified language, whichever PID that happens to be.\n - Omit PID and omit Language: Valid only if source is DVB-Sub that is being passed through; all languages will be passed through.", "StaticImageActivateScheduleActionSettings$Height": "The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay.", @@ -4552,6 +4573,18 @@ "EbuTtDDestinationSettings$CopyrightHolder": "Complete this field if you want to include the name of the copyright holder in the copyright tag in the captions metadata." } }, + "__stringMax2048": { + "base": null, + "refs": { + "InputLocation$Uri": "Uniform Resource Identifier - This should be a path to a file accessible to the Live system (eg. a http:// URI) depending on the output type. For example, a RTMP destination should have a uri simliar to: \"rtmp://fmsserver/live\"." + } + }, + "__stringMax255": { + "base": null, + "refs": { + "AudioDescription$Name": "The name of this AudioDescription. Outputs will use this name to uniquely identify this AudioDescription. Description names should be unique within this Live Event." + } + }, "__stringMax256": { "base": null, "refs": { diff --git a/models/apis/redshift-serverless/2021-04-21/api-2.json b/models/apis/redshift-serverless/2021-04-21/api-2.json new file mode 100644 index 0000000000..b1cf11e73c --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/api-2.json @@ -0,0 +1,1687 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2021-04-21", + "endpointPrefix":"redshift-serverless", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"Redshift Serverless", + "serviceId":"Redshift Serverless", + "signatureVersion":"v4", + "signingName":"redshift-serverless", + "targetPrefix":"RedshiftServerless", + "uid":"redshift-serverless-2021-04-21" + }, + "operations":{ + "ConvertRecoveryPointToSnapshot":{ + "name":"ConvertRecoveryPointToSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ConvertRecoveryPointToSnapshotRequest"}, + "output":{"shape":"ConvertRecoveryPointToSnapshotResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, + "CreateEndpointAccess":{ + "name":"CreateEndpointAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateEndpointAccessRequest"}, + "output":{"shape":"CreateEndpointAccessResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "idempotent":true + }, + "CreateNamespace":{ + "name":"CreateNamespace", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateNamespaceRequest"}, + "output":{"shape":"CreateNamespaceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"TooManyTagsException"} + ], + "idempotent":true + }, + "CreateSnapshot":{ + "name":"CreateSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSnapshotRequest"}, + "output":{"shape":"CreateSnapshotResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "idempotent":true + }, + "CreateUsageLimit":{ + "name":"CreateUsageLimit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateUsageLimitRequest"}, + "output":{"shape":"CreateUsageLimitResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "idempotent":true + }, + "CreateWorkgroup":{ + "name":"CreateWorkgroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateWorkgroupRequest"}, + "output":{"shape":"CreateWorkgroupResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InsufficientCapacityException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"TooManyTagsException"} + ], + "idempotent":true + }, + "DeleteEndpointAccess":{ + "name":"DeleteEndpointAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteEndpointAccessRequest"}, + "output":{"shape":"DeleteEndpointAccessResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ], + "idempotent":true + }, + "DeleteNamespace":{ + "name":"DeleteNamespace", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteNamespaceRequest"}, + "output":{"shape":"DeleteNamespaceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ], + "idempotent":true + }, + "DeleteResourcePolicy":{ + "name":"DeleteResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResourcePolicyRequest"}, + "output":{"shape":"DeleteResourcePolicyResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "DeleteSnapshot":{ + "name":"DeleteSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSnapshotRequest"}, + "output":{"shape":"DeleteSnapshotResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ], + "idempotent":true + }, + "DeleteUsageLimit":{ + "name":"DeleteUsageLimit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteUsageLimitRequest"}, + "output":{"shape":"DeleteUsageLimitResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ], + "idempotent":true + }, + "DeleteWorkgroup":{ + "name":"DeleteWorkgroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteWorkgroupRequest"}, + "output":{"shape":"DeleteWorkgroupResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ], + "idempotent":true + }, + "GetCredentials":{ + "name":"GetCredentials", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCredentialsRequest"}, + "output":{"shape":"GetCredentialsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "GetEndpointAccess":{ + "name":"GetEndpointAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetEndpointAccessRequest"}, + "output":{"shape":"GetEndpointAccessResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "GetNamespace":{ + "name":"GetNamespace", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetNamespaceRequest"}, + "output":{"shape":"GetNamespaceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "GetRecoveryPoint":{ + "name":"GetRecoveryPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRecoveryPointRequest"}, + "output":{"shape":"GetRecoveryPointResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "GetResourcePolicy":{ + "name":"GetResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResourcePolicyRequest"}, + "output":{"shape":"GetResourcePolicyResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "GetSnapshot":{ + "name":"GetSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetSnapshotRequest"}, + "output":{"shape":"GetSnapshotResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "GetUsageLimit":{ + "name":"GetUsageLimit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetUsageLimitRequest"}, + "output":{"shape":"GetUsageLimitResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "GetWorkgroup":{ + "name":"GetWorkgroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetWorkgroupRequest"}, + "output":{"shape":"GetWorkgroupResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "ListEndpointAccess":{ + "name":"ListEndpointAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListEndpointAccessRequest"}, + "output":{"shape":"ListEndpointAccessResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "ListNamespaces":{ + "name":"ListNamespaces", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListNamespacesRequest"}, + "output":{"shape":"ListNamespacesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"} + ] + }, + "ListRecoveryPoints":{ + "name":"ListRecoveryPoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRecoveryPointsRequest"}, + "output":{"shape":"ListRecoveryPointsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"} + ] + }, + "ListSnapshots":{ + "name":"ListSnapshots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSnapshotsRequest"}, + "output":{"shape":"ListSnapshotsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListUsageLimits":{ + "name":"ListUsageLimits", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListUsageLimitsRequest"}, + "output":{"shape":"ListUsageLimitsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InvalidPaginationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "ListWorkgroups":{ + "name":"ListWorkgroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListWorkgroupsRequest"}, + "output":{"shape":"ListWorkgroupsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"} + ] + }, + "PutResourcePolicy":{ + "name":"PutResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutResourcePolicyRequest"}, + "output":{"shape":"PutResourcePolicyResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, + "RestoreFromRecoveryPoint":{ + "name":"RestoreFromRecoveryPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RestoreFromRecoveryPointRequest"}, + "output":{"shape":"RestoreFromRecoveryPointResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "RestoreFromSnapshot":{ + "name":"RestoreFromSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RestoreFromSnapshotRequest"}, + "output":{"shape":"RestoreFromSnapshotResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "idempotent":true + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ThrottlingException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateEndpointAccess":{ + "name":"UpdateEndpointAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateEndpointAccessRequest"}, + "output":{"shape":"UpdateEndpointAccessResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ] + }, + "UpdateNamespace":{ + "name":"UpdateNamespace", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateNamespaceRequest"}, + "output":{"shape":"UpdateNamespaceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "UpdateSnapshot":{ + "name":"UpdateSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateSnapshotRequest"}, + "output":{"shape":"UpdateSnapshotResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "UpdateUsageLimit":{ + "name":"UpdateUsageLimit", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateUsageLimitRequest"}, + "output":{"shape":"UpdateUsageLimitResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + }, + "UpdateWorkgroup":{ + "name":"UpdateWorkgroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateWorkgroupRequest"}, + "output":{"shape":"UpdateWorkgroupResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"InsufficientCapacityException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "code":{"shape":"String"}, + "message":{"shape":"String"} + }, + "exception":true + }, + "AccountIdList":{ + "type":"list", + "member":{"shape":"String"} + }, + "AmazonResourceName":{ + "type":"string", + "max":1011, + "min":1 + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "ConfigParameter":{ + "type":"structure", + "members":{ + "parameterKey":{"shape":"ParameterKey"}, + "parameterValue":{"shape":"ParameterValue"} + } + }, + "ConfigParameterList":{ + "type":"list", + "member":{"shape":"ConfigParameter"} + }, + "ConflictException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "ConvertRecoveryPointToSnapshotRequest":{ + "type":"structure", + "required":[ + "recoveryPointId", + "snapshotName" + ], + "members":{ + "recoveryPointId":{"shape":"String"}, + "retentionPeriod":{"shape":"Integer"}, + "snapshotName":{"shape":"String"} + } + }, + "ConvertRecoveryPointToSnapshotResponse":{ + "type":"structure", + "members":{ + "snapshot":{"shape":"Snapshot"} + } + }, + "CreateEndpointAccessRequest":{ + "type":"structure", + "required":[ + "endpointName", + "subnetIds", + "workgroupName" + ], + "members":{ + "endpointName":{"shape":"String"}, + "subnetIds":{"shape":"SubnetIdList"}, + "vpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, + "workgroupName":{"shape":"String"} + } + }, + "CreateEndpointAccessResponse":{ + "type":"structure", + "members":{ + "endpoint":{"shape":"EndpointAccess"} + } + }, + "CreateNamespaceRequest":{ + "type":"structure", + "required":["namespaceName"], + "members":{ + "adminUserPassword":{"shape":"DbPassword"}, + "adminUsername":{"shape":"DbUser"}, + "dbName":{"shape":"String"}, + "defaultIamRoleArn":{"shape":"String"}, + "iamRoles":{"shape":"IamRoleArnList"}, + "kmsKeyId":{"shape":"String"}, + "logExports":{"shape":"LogExportList"}, + "namespaceName":{"shape":"NamespaceName"}, + "tags":{"shape":"TagList"} + } + }, + "CreateNamespaceResponse":{ + "type":"structure", + "members":{ + "namespace":{"shape":"Namespace"} + } + }, + "CreateSnapshotRequest":{ + "type":"structure", + "required":[ + "namespaceName", + "snapshotName" + ], + "members":{ + "namespaceName":{"shape":"String"}, + "retentionPeriod":{"shape":"Integer"}, + "snapshotName":{"shape":"String"} + } + }, + "CreateSnapshotResponse":{ + "type":"structure", + "members":{ + "snapshot":{"shape":"Snapshot"} + } + }, + "CreateUsageLimitRequest":{ + "type":"structure", + "required":[ + "amount", + "resourceArn", + "usageType" + ], + "members":{ + "amount":{"shape":"Long"}, + "breachAction":{"shape":"UsageLimitBreachAction"}, + "period":{"shape":"UsageLimitPeriod"}, + "resourceArn":{"shape":"String"}, + "usageType":{"shape":"UsageLimitUsageType"} + } + }, + "CreateUsageLimitResponse":{ + "type":"structure", + "members":{ + "usageLimit":{"shape":"UsageLimit"} + } + }, + "CreateWorkgroupRequest":{ + "type":"structure", + "required":[ + "namespaceName", + "workgroupName" + ], + "members":{ + "baseCapacity":{"shape":"Integer"}, + "configParameters":{"shape":"ConfigParameterList"}, + "enhancedVpcRouting":{"shape":"Boolean"}, + "namespaceName":{"shape":"NamespaceName"}, + "publiclyAccessible":{"shape":"Boolean"}, + "securityGroupIds":{"shape":"SecurityGroupIdList"}, + "subnetIds":{"shape":"SubnetIdList"}, + "tags":{"shape":"TagList"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "CreateWorkgroupResponse":{ + "type":"structure", + "members":{ + "workgroup":{"shape":"Workgroup"} + } + }, + "DbName":{"type":"string"}, + "DbPassword":{ + "type":"string", + "sensitive":true + }, + "DbUser":{ + "type":"string", + "sensitive":true + }, + "DeleteEndpointAccessRequest":{ + "type":"structure", + "required":["endpointName"], + "members":{ + "endpointName":{"shape":"String"} + } + }, + "DeleteEndpointAccessResponse":{ + "type":"structure", + "members":{ + "endpoint":{"shape":"EndpointAccess"} + } + }, + "DeleteNamespaceRequest":{ + "type":"structure", + "required":["namespaceName"], + "members":{ + "finalSnapshotName":{"shape":"String"}, + "finalSnapshotRetentionPeriod":{"shape":"Integer"}, + "namespaceName":{"shape":"NamespaceName"} + } + }, + "DeleteNamespaceResponse":{ + "type":"structure", + "required":["namespace"], + "members":{ + "namespace":{"shape":"Namespace"} + } + }, + "DeleteResourcePolicyRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{"shape":"String"} + } + }, + "DeleteResourcePolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteSnapshotRequest":{ + "type":"structure", + "required":["snapshotName"], + "members":{ + "snapshotName":{"shape":"String"} + } + }, + "DeleteSnapshotResponse":{ + "type":"structure", + "members":{ + "snapshot":{"shape":"Snapshot"} + } + }, + "DeleteUsageLimitRequest":{ + "type":"structure", + "required":["usageLimitId"], + "members":{ + "usageLimitId":{"shape":"String"} + } + }, + "DeleteUsageLimitResponse":{ + "type":"structure", + "members":{ + "usageLimit":{"shape":"UsageLimit"} + } + }, + "DeleteWorkgroupRequest":{ + "type":"structure", + "required":["workgroupName"], + "members":{ + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "DeleteWorkgroupResponse":{ + "type":"structure", + "required":["workgroup"], + "members":{ + "workgroup":{"shape":"Workgroup"} + } + }, + "Double":{ + "type":"double", + "box":true + }, + "Endpoint":{ + "type":"structure", + "members":{ + "address":{"shape":"String"}, + "port":{"shape":"Integer"}, + "vpcEndpoints":{"shape":"VpcEndpointList"} + } + }, + "EndpointAccess":{ + "type":"structure", + "members":{ + "address":{"shape":"String"}, + "endpointArn":{"shape":"String"}, + "endpointCreateTime":{"shape":"SyntheticTimestamp_date_time"}, + "endpointName":{"shape":"String"}, + "endpointStatus":{"shape":"String"}, + "port":{"shape":"Integer"}, + "subnetIds":{"shape":"SubnetIdList"}, + "vpcEndpoint":{"shape":"VpcEndpoint"}, + "vpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, + "workgroupName":{"shape":"String"} + } + }, + "EndpointAccessList":{ + "type":"list", + "member":{"shape":"EndpointAccess"} + }, + "GetCredentialsRequest":{ + "type":"structure", + "required":["workgroupName"], + "members":{ + "dbName":{"shape":"DbName"}, + "durationSeconds":{"shape":"Integer"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "GetCredentialsResponse":{ + "type":"structure", + "members":{ + "dbPassword":{"shape":"DbPassword"}, + "dbUser":{"shape":"DbUser"}, + "expiration":{"shape":"Timestamp"}, + "nextRefreshTime":{"shape":"Timestamp"} + } + }, + "GetEndpointAccessRequest":{ + "type":"structure", + "required":["endpointName"], + "members":{ + "endpointName":{"shape":"String"} + } + }, + "GetEndpointAccessResponse":{ + "type":"structure", + "members":{ + "endpoint":{"shape":"EndpointAccess"} + } + }, + "GetNamespaceRequest":{ + "type":"structure", + "required":["namespaceName"], + "members":{ + "namespaceName":{"shape":"NamespaceName"} + } + }, + "GetNamespaceResponse":{ + "type":"structure", + "required":["namespace"], + "members":{ + "namespace":{"shape":"Namespace"} + } + }, + "GetRecoveryPointRequest":{ + "type":"structure", + "required":["recoveryPointId"], + "members":{ + "recoveryPointId":{"shape":"String"} + } + }, + "GetRecoveryPointResponse":{ + "type":"structure", + "members":{ + "recoveryPoint":{"shape":"RecoveryPoint"} + } + }, + "GetResourcePolicyRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{"shape":"String"} + } + }, + "GetResourcePolicyResponse":{ + "type":"structure", + "members":{ + "resourcePolicy":{"shape":"ResourcePolicy"} + } + }, + "GetSnapshotRequest":{ + "type":"structure", + "members":{ + "ownerAccount":{"shape":"String"}, + "snapshotArn":{"shape":"String"}, + "snapshotName":{"shape":"String"} + } + }, + "GetSnapshotResponse":{ + "type":"structure", + "members":{ + "snapshot":{"shape":"Snapshot"} + } + }, + "GetUsageLimitRequest":{ + "type":"structure", + "required":["usageLimitId"], + "members":{ + "usageLimitId":{"shape":"String"} + } + }, + "GetUsageLimitResponse":{ + "type":"structure", + "members":{ + "usageLimit":{"shape":"UsageLimit"} + } + }, + "GetWorkgroupRequest":{ + "type":"structure", + "required":["workgroupName"], + "members":{ + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "GetWorkgroupResponse":{ + "type":"structure", + "required":["workgroup"], + "members":{ + "workgroup":{"shape":"Workgroup"} + } + }, + "IamRoleArn":{"type":"string"}, + "IamRoleArnList":{ + "type":"list", + "member":{"shape":"IamRoleArn"} + }, + "InsufficientCapacityException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "exception":true, + "retryable":{"throttling":false} + }, + "Integer":{ + "type":"integer", + "box":true + }, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "InvalidPaginationException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "KmsKeyId":{"type":"string"}, + "ListEndpointAccessRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"ListEndpointAccessRequestMaxResultsInteger", + "box":true + }, + "nextToken":{"shape":"String"}, + "vpcId":{"shape":"String"}, + "workgroupName":{"shape":"String"} + } + }, + "ListEndpointAccessRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListEndpointAccessResponse":{ + "type":"structure", + "required":["endpoints"], + "members":{ + "endpoints":{"shape":"EndpointAccessList"}, + "nextToken":{"shape":"String"} + } + }, + "ListNamespacesRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"ListNamespacesRequestMaxResultsInteger", + "box":true + }, + "nextToken":{"shape":"String"} + } + }, + "ListNamespacesRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListNamespacesResponse":{ + "type":"structure", + "required":["namespaces"], + "members":{ + "namespaces":{"shape":"NamespaceList"}, + "nextToken":{"shape":"String"} + } + }, + "ListRecoveryPointsRequest":{ + "type":"structure", + "members":{ + "endTime":{"shape":"Timestamp"}, + "maxResults":{ + "shape":"ListRecoveryPointsRequestMaxResultsInteger", + "box":true + }, + "namespaceName":{"shape":"NamespaceName"}, + "nextToken":{"shape":"String"}, + "startTime":{"shape":"Timestamp"} + } + }, + "ListRecoveryPointsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListRecoveryPointsResponse":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"String"}, + "recoveryPoints":{"shape":"RecoveryPointList"} + } + }, + "ListSnapshotsRequest":{ + "type":"structure", + "members":{ + "endTime":{"shape":"Timestamp"}, + "maxResults":{ + "shape":"ListSnapshotsRequestMaxResultsInteger", + "box":true + }, + "namespaceArn":{"shape":"String"}, + "namespaceName":{"shape":"String"}, + "nextToken":{"shape":"String"}, + "ownerAccount":{"shape":"String"}, + "startTime":{"shape":"Timestamp"} + } + }, + "ListSnapshotsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListSnapshotsResponse":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"String"}, + "snapshots":{"shape":"SnapshotList"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{"shape":"AmazonResourceName"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"TagList"} + } + }, + "ListUsageLimitsRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"ListUsageLimitsRequestMaxResultsInteger", + "box":true + }, + "nextToken":{"shape":"PaginationToken"}, + "resourceArn":{"shape":"String"}, + "usageType":{"shape":"UsageLimitUsageType"} + } + }, + "ListUsageLimitsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListUsageLimitsResponse":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "usageLimits":{"shape":"UsageLimits"} + } + }, + "ListWorkgroupsRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"ListWorkgroupsRequestMaxResultsInteger", + "box":true + }, + "nextToken":{"shape":"String"} + } + }, + "ListWorkgroupsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListWorkgroupsResponse":{ + "type":"structure", + "required":["workgroups"], + "members":{ + "nextToken":{"shape":"String"}, + "workgroups":{"shape":"WorkgroupList"} + } + }, + "LogExport":{ + "type":"string", + "enum":[ + "useractivitylog", + "userlog", + "connectionlog" + ] + }, + "LogExportList":{ + "type":"list", + "member":{"shape":"LogExport"}, + "max":16, + "min":0 + }, + "Long":{ + "type":"long", + "box":true + }, + "Namespace":{ + "type":"structure", + "members":{ + "adminUsername":{"shape":"DbUser"}, + "creationDate":{"shape":"SyntheticTimestamp_date_time"}, + "dbName":{"shape":"String"}, + "defaultIamRoleArn":{"shape":"String"}, + "iamRoles":{"shape":"IamRoleArnList"}, + "kmsKeyId":{"shape":"String"}, + "logExports":{"shape":"LogExportList"}, + "namespaceArn":{"shape":"String"}, + "namespaceId":{"shape":"String"}, + "namespaceName":{"shape":"NamespaceName"}, + "status":{"shape":"NamespaceStatus"} + } + }, + "NamespaceList":{ + "type":"list", + "member":{"shape":"Namespace"} + }, + "NamespaceName":{ + "type":"string", + "max":64, + "min":3, + "pattern":"^[a-z0-9-]+$" + }, + "NamespaceStatus":{ + "type":"string", + "enum":[ + "AVAILABLE", + "MODIFYING", + "DELETING" + ] + }, + "NetworkInterface":{ + "type":"structure", + "members":{ + "availabilityZone":{"shape":"String"}, + "networkInterfaceId":{"shape":"String"}, + "privateIpAddress":{"shape":"String"}, + "subnetId":{"shape":"String"} + } + }, + "NetworkInterfaceList":{ + "type":"list", + "member":{"shape":"NetworkInterface"} + }, + "PaginationToken":{ + "type":"string", + "max":1024, + "min":8 + }, + "ParameterKey":{"type":"string"}, + "ParameterValue":{"type":"string"}, + "PutResourcePolicyRequest":{ + "type":"structure", + "required":[ + "policy", + "resourceArn" + ], + "members":{ + "policy":{"shape":"String"}, + "resourceArn":{"shape":"String"} + } + }, + "PutResourcePolicyResponse":{ + "type":"structure", + "members":{ + "resourcePolicy":{"shape":"ResourcePolicy"} + } + }, + "RecoveryPoint":{ + "type":"structure", + "members":{ + "namespaceName":{"shape":"NamespaceName"}, + "recoveryPointCreateTime":{"shape":"SyntheticTimestamp_date_time"}, + "recoveryPointId":{"shape":"String"}, + "totalSizeInMegaBytes":{"shape":"Double"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "RecoveryPointList":{ + "type":"list", + "member":{"shape":"RecoveryPoint"} + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "resourceName":{"shape":"AmazonResourceName"} + }, + "exception":true + }, + "ResourcePolicy":{ + "type":"structure", + "members":{ + "policy":{"shape":"String"}, + "resourceArn":{"shape":"String"} + } + }, + "RestoreFromRecoveryPointRequest":{ + "type":"structure", + "required":[ + "namespaceName", + "recoveryPointId", + "workgroupName" + ], + "members":{ + "namespaceName":{"shape":"NamespaceName"}, + "recoveryPointId":{"shape":"String"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "RestoreFromRecoveryPointResponse":{ + "type":"structure", + "members":{ + "namespace":{"shape":"Namespace"}, + "recoveryPointId":{"shape":"String"} + } + }, + "RestoreFromSnapshotRequest":{ + "type":"structure", + "required":[ + "namespaceName", + "workgroupName" + ], + "members":{ + "namespaceName":{"shape":"NamespaceName"}, + "ownerAccount":{"shape":"String"}, + "snapshotArn":{"shape":"String"}, + "snapshotName":{"shape":"String"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "RestoreFromSnapshotResponse":{ + "type":"structure", + "members":{ + "namespace":{"shape":"Namespace"}, + "ownerAccount":{"shape":"String"}, + "snapshotName":{"shape":"String"} + } + }, + "SecurityGroupId":{"type":"string"}, + "SecurityGroupIdList":{ + "type":"list", + "member":{"shape":"SecurityGroupId"} + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "Snapshot":{ + "type":"structure", + "members":{ + "accountsWithProvisionedRestoreAccess":{"shape":"AccountIdList"}, + "accountsWithRestoreAccess":{"shape":"AccountIdList"}, + "actualIncrementalBackupSizeInMegaBytes":{"shape":"Double"}, + "adminUsername":{"shape":"String"}, + "backupProgressInMegaBytes":{"shape":"Double"}, + "currentBackupRateInMegaBytesPerSecond":{"shape":"Double"}, + "elapsedTimeInSeconds":{"shape":"Long"}, + "estimatedSecondsToCompletion":{"shape":"Long"}, + "kmsKeyId":{"shape":"KmsKeyId"}, + "namespaceArn":{"shape":"String"}, + "namespaceName":{"shape":"String"}, + "ownerAccount":{"shape":"String"}, + "snapshotArn":{"shape":"String"}, + "snapshotCreateTime":{"shape":"SyntheticTimestamp_date_time"}, + "snapshotName":{"shape":"String"}, + "snapshotRemainingDays":{"shape":"Integer"}, + "snapshotRetentionPeriod":{"shape":"Integer"}, + "snapshotRetentionStartTime":{"shape":"SyntheticTimestamp_date_time"}, + "status":{"shape":"SnapshotStatus"}, + "totalBackupSizeInMegaBytes":{"shape":"Double"} + } + }, + "SnapshotList":{ + "type":"list", + "member":{"shape":"Snapshot"} + }, + "SnapshotStatus":{ + "type":"string", + "enum":[ + "AVAILABLE", + "CREATING", + "DELETED", + "CANCELLED", + "FAILED", + "COPYING" + ] + }, + "String":{"type":"string"}, + "SubnetId":{"type":"string"}, + "SubnetIdList":{ + "type":"list", + "member":{"shape":"SubnetId"} + }, + "SyntheticTimestamp_date_time":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "Tag":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{"shape":"AmazonResourceName"}, + "tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "code":{"shape":"String"}, + "message":{"shape":"String"} + }, + "exception":true, + "retryable":{"throttling":false} + }, + "Timestamp":{"type":"timestamp"}, + "TooManyTagsException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"}, + "resourceName":{"shape":"AmazonResourceName"} + }, + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{"shape":"AmazonResourceName"}, + "tagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateEndpointAccessRequest":{ + "type":"structure", + "required":["endpointName"], + "members":{ + "endpointName":{"shape":"String"}, + "vpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"} + } + }, + "UpdateEndpointAccessResponse":{ + "type":"structure", + "members":{ + "endpoint":{"shape":"EndpointAccess"} + } + }, + "UpdateNamespaceRequest":{ + "type":"structure", + "required":["namespaceName"], + "members":{ + "adminUserPassword":{"shape":"DbPassword"}, + "adminUsername":{"shape":"DbUser"}, + "defaultIamRoleArn":{"shape":"String"}, + "iamRoles":{"shape":"IamRoleArnList"}, + "kmsKeyId":{"shape":"String"}, + "logExports":{"shape":"LogExportList"}, + "namespaceName":{"shape":"NamespaceName"} + } + }, + "UpdateNamespaceResponse":{ + "type":"structure", + "required":["namespace"], + "members":{ + "namespace":{"shape":"Namespace"} + } + }, + "UpdateSnapshotRequest":{ + "type":"structure", + "required":["snapshotName"], + "members":{ + "retentionPeriod":{"shape":"Integer"}, + "snapshotName":{"shape":"String"} + } + }, + "UpdateSnapshotResponse":{ + "type":"structure", + "members":{ + "snapshot":{"shape":"Snapshot"} + } + }, + "UpdateUsageLimitRequest":{ + "type":"structure", + "required":["usageLimitId"], + "members":{ + "amount":{"shape":"Long"}, + "breachAction":{"shape":"UsageLimitBreachAction"}, + "usageLimitId":{"shape":"String"} + } + }, + "UpdateUsageLimitResponse":{ + "type":"structure", + "members":{ + "usageLimit":{"shape":"UsageLimit"} + } + }, + "UpdateWorkgroupRequest":{ + "type":"structure", + "required":["workgroupName"], + "members":{ + "baseCapacity":{"shape":"Integer"}, + "configParameters":{"shape":"ConfigParameterList"}, + "enhancedVpcRouting":{"shape":"Boolean"}, + "publiclyAccessible":{"shape":"Boolean"}, + "securityGroupIds":{"shape":"SecurityGroupIdList"}, + "subnetIds":{"shape":"SubnetIdList"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "UpdateWorkgroupResponse":{ + "type":"structure", + "required":["workgroup"], + "members":{ + "workgroup":{"shape":"Workgroup"} + } + }, + "UsageLimit":{ + "type":"structure", + "members":{ + "amount":{"shape":"Long"}, + "breachAction":{"shape":"UsageLimitBreachAction"}, + "period":{"shape":"UsageLimitPeriod"}, + "resourceArn":{"shape":"String"}, + "usageLimitArn":{"shape":"String"}, + "usageLimitId":{"shape":"String"}, + "usageType":{"shape":"UsageLimitUsageType"} + } + }, + "UsageLimitBreachAction":{ + "type":"string", + "enum":[ + "log", + "emit-metric", + "deactivate" + ] + }, + "UsageLimitPeriod":{ + "type":"string", + "enum":[ + "daily", + "weekly", + "monthly" + ] + }, + "UsageLimitUsageType":{ + "type":"string", + "enum":[ + "serverless-compute", + "cross-region-datasharing" + ] + }, + "UsageLimits":{ + "type":"list", + "member":{"shape":"UsageLimit"}, + "max":100, + "min":1 + }, + "ValidationException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, + "VpcEndpoint":{ + "type":"structure", + "members":{ + "networkInterfaces":{"shape":"NetworkInterfaceList"}, + "vpcEndpointId":{"shape":"String"}, + "vpcId":{"shape":"String"} + } + }, + "VpcEndpointList":{ + "type":"list", + "member":{"shape":"VpcEndpoint"} + }, + "VpcSecurityGroupId":{"type":"string"}, + "VpcSecurityGroupIdList":{ + "type":"list", + "member":{"shape":"VpcSecurityGroupId"} + }, + "VpcSecurityGroupMembership":{ + "type":"structure", + "members":{ + "status":{"shape":"String"}, + "vpcSecurityGroupId":{"shape":"VpcSecurityGroupId"} + } + }, + "VpcSecurityGroupMembershipList":{ + "type":"list", + "member":{"shape":"VpcSecurityGroupMembership"} + }, + "Workgroup":{ + "type":"structure", + "members":{ + "baseCapacity":{"shape":"Integer"}, + "configParameters":{"shape":"ConfigParameterList"}, + "creationDate":{"shape":"SyntheticTimestamp_date_time"}, + "endpoint":{"shape":"Endpoint"}, + "enhancedVpcRouting":{"shape":"Boolean"}, + "namespaceName":{"shape":"String"}, + "publiclyAccessible":{"shape":"Boolean"}, + "securityGroupIds":{"shape":"SecurityGroupIdList"}, + "status":{"shape":"WorkgroupStatus"}, + "subnetIds":{"shape":"SubnetIdList"}, + "workgroupArn":{"shape":"String"}, + "workgroupId":{"shape":"String"}, + "workgroupName":{"shape":"WorkgroupName"} + } + }, + "WorkgroupList":{ + "type":"list", + "member":{"shape":"Workgroup"} + }, + "WorkgroupName":{ + "type":"string", + "max":64, + "min":3, + "pattern":"^[a-z0-9-]+$" + }, + "WorkgroupStatus":{ + "type":"string", + "enum":[ + "CREATING", + "AVAILABLE", + "MODIFYING", + "DELETING" + ] + } + } +} diff --git a/models/apis/redshift-serverless/2021-04-21/docs-2.json b/models/apis/redshift-serverless/2021-04-21/docs-2.json new file mode 100644 index 0000000000..358e8aab15 --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/docs-2.json @@ -0,0 +1,1075 @@ +{ + "version": "2.0", + "service": "

This is prerelease documentation for Amazon Redshift Serverless, which is in preview release. The documentation and the feature are both subject to change. We recommend that you use this feature only in test environments, and not in production environments. For preview terms and conditions, see Beta Service Participation in Amazon Web Services Service Terms.

This is an interface reference for Amazon Redshift Serverless. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.

Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you focus on using your data to acquire new insights for your business and customers.

To learn more about Amazon Redshift Serverless, see What is Amazon Redshift Serverless.

", + "operations": { + "ConvertRecoveryPointToSnapshot": "

Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.

", + "CreateEndpointAccess": "

Creates an Amazon Redshift Serverless managed VPC endpoint.

", + "CreateNamespace": "

Creates a namespace in Amazon Redshift Serverless.

", + "CreateSnapshot": "

Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.

", + "CreateUsageLimit": "

Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.

", + "CreateWorkgroup": "

Creates an workgroup in Amazon Redshift Serverless.

", + "DeleteEndpointAccess": "

Deletes an Amazon Redshift Serverless managed VPC endpoint.

", + "DeleteNamespace": "

Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.

", + "DeleteResourcePolicy": "

Deletes the specified resource policy.

", + "DeleteSnapshot": "

Deletes a snapshot from Amazon Redshift Serverless.

", + "DeleteUsageLimit": "

Deletes a usage limit from Amazon Redshift Serverless.

", + "DeleteWorkgroup": "

Deletes a workgroup.

", + "GetCredentials": "

Returns a database user name and temporary password with temporary authorization to log in to Amazon Redshift Serverless.

By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).

 <p> The Identity and Access Management (IAM) user or role that runs GetCredentials must have an IAM policy attached that allows access to all necessary actions and resources. </p> <p> If the <code>DbName</code> parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.</p> 
", + "GetEndpointAccess": "

Returns information, such as the name, about a VPC endpoint.

", + "GetNamespace": "

Returns information about a namespace in Amazon Redshift Serverless.

", + "GetRecoveryPoint": "

Returns information about a recovery point.

", + "GetResourcePolicy": "

Returns a resource policy.

", + "GetSnapshot": "

Returns information about a specific snapshot.

", + "GetUsageLimit": "

Returns information about a usage limit.

", + "GetWorkgroup": "

Returns information about a specific workgroup.

", + "ListEndpointAccess": "

Returns an array of EndpointAccess objects and relevant information.

", + "ListNamespaces": "

Returns information about a list of specified namespaces.

", + "ListRecoveryPoints": "

Returns an array of recovery points.

", + "ListSnapshots": "

Returns a list of snapshots.

", + "ListTagsForResource": "

Lists the tags assigned to a resource.

", + "ListUsageLimits": "

Lists all usage limits within Amazon Redshift Serverless.

", + "ListWorkgroups": "

Returns information about a list of specified workgroups.

", + "PutResourcePolicy": "

Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

", + "RestoreFromRecoveryPoint": "

Restore the data from a recovery point.

", + "RestoreFromSnapshot": "

Restores a namespace from a snapshot.

", + "TagResource": "

Assigns one or more tags to a resource.

", + "UntagResource": "

Removes a tag or set of tags from a resource.

", + "UpdateEndpointAccess": "

Updates an Amazon Redshift Serverless managed endpoint.

", + "UpdateNamespace": "

Updates a namespace with the specified settings.

", + "UpdateSnapshot": "

Updates a snapshot.

", + "UpdateUsageLimit": "

Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.

", + "UpdateWorkgroup": "

Updates a workgroup with the specified configuration settings.

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

You do not have sufficient access to perform this action.

", + "refs": { + } + }, + "AccountIdList": { + "base": null, + "refs": { + "Snapshot$accountsWithProvisionedRestoreAccess": "

All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.

", + "Snapshot$accountsWithRestoreAccess": "

All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.

" + } + }, + "AmazonResourceName": { + "base": null, + "refs": { + "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to list tags for.

", + "ResourceNotFoundException$resourceName": "

The name of the resource that could not be found.

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to tag.

", + "TooManyTagsException$resourceName": "

The name of the resource that exceeded the number of tags allowed for a resource.

", + "UntagResourceRequest$resourceArn": "

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

" + } + }, + "Boolean": { + "base": null, + "refs": { + "CreateWorkgroupRequest$enhancedVpcRouting": "

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.

", + "CreateWorkgroupRequest$publiclyAccessible": "

A value that specifies whether the workgroup can be accessed from a public network.

", + "UpdateWorkgroupRequest$enhancedVpcRouting": "

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

", + "UpdateWorkgroupRequest$publiclyAccessible": "

A value that specifies whether the workgroup can be accessible from a public network.

", + "Workgroup$enhancedVpcRouting": "

The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

", + "Workgroup$publiclyAccessible": "

A value that specifies whether the workgroup can be accessible from a public network

" + } + }, + "ConfigParameter": { + "base": "

An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.

", + "refs": { + "ConfigParameterList$member": null + } + }, + "ConfigParameterList": { + "base": null, + "refs": { + "CreateWorkgroupRequest$configParameters": "

An array of parameters to set for more control over a serverless database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

", + "UpdateWorkgroupRequest$configParameters": "

An array of parameters to set for advanced control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

", + "Workgroup$configParameters": "

An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" + } + }, + "ConflictException": { + "base": "

The submitted action has conflicts.

", + "refs": { + } + }, + "ConvertRecoveryPointToSnapshotRequest": { + "base": null, + "refs": { + } + }, + "ConvertRecoveryPointToSnapshotResponse": { + "base": null, + "refs": { + } + }, + "CreateEndpointAccessRequest": { + "base": null, + "refs": { + } + }, + "CreateEndpointAccessResponse": { + "base": null, + "refs": { + } + }, + "CreateNamespaceRequest": { + "base": null, + "refs": { + } + }, + "CreateNamespaceResponse": { + "base": null, + "refs": { + } + }, + "CreateSnapshotRequest": { + "base": null, + "refs": { + } + }, + "CreateSnapshotResponse": { + "base": null, + "refs": { + } + }, + "CreateUsageLimitRequest": { + "base": null, + "refs": { + } + }, + "CreateUsageLimitResponse": { + "base": null, + "refs": { + } + }, + "CreateWorkgroupRequest": { + "base": null, + "refs": { + } + }, + "CreateWorkgroupResponse": { + "base": null, + "refs": { + } + }, + "DbName": { + "base": null, + "refs": { + "GetCredentialsRequest$dbName": "

The name of the database to get temporary authorization to log on to.

Constraints:

" + } + }, + "DbPassword": { + "base": null, + "refs": { + "CreateNamespaceRequest$adminUserPassword": "

The password of the administrator for the first database created in the namespace.

", + "GetCredentialsResponse$dbPassword": "

A temporary password that authorizes the user name returned by DbUser to log on to the database DbName.

", + "UpdateNamespaceRequest$adminUserPassword": "

The password of the administrator for the first database created in the namespace.

" + } + }, + "DbUser": { + "base": null, + "refs": { + "CreateNamespaceRequest$adminUsername": "

The username of the administrator for the first database created in the namespace.

", + "GetCredentialsResponse$dbUser": "

A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC.

", + "Namespace$adminUsername": "

The username of the administrator for the first database created in the namespace.

", + "UpdateNamespaceRequest$adminUsername": "

The username of the administrator for the first database created in the namespace.

" + } + }, + "DeleteEndpointAccessRequest": { + "base": null, + "refs": { + } + }, + "DeleteEndpointAccessResponse": { + "base": null, + "refs": { + } + }, + "DeleteNamespaceRequest": { + "base": null, + "refs": { + } + }, + "DeleteNamespaceResponse": { + "base": null, + "refs": { + } + }, + "DeleteResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteResourcePolicyResponse": { + "base": null, + "refs": { + } + }, + "DeleteSnapshotRequest": { + "base": null, + "refs": { + } + }, + "DeleteSnapshotResponse": { + "base": null, + "refs": { + } + }, + "DeleteUsageLimitRequest": { + "base": null, + "refs": { + } + }, + "DeleteUsageLimitResponse": { + "base": null, + "refs": { + } + }, + "DeleteWorkgroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteWorkgroupResponse": { + "base": null, + "refs": { + } + }, + "Double": { + "base": null, + "refs": { + "RecoveryPoint$totalSizeInMegaBytes": "

The total size of the data in the recovery point in megabytes.

", + "Snapshot$actualIncrementalBackupSizeInMegaBytes": "

The size of the incremental backup in megabytes.

", + "Snapshot$backupProgressInMegaBytes": "

The size in megabytes of the data that has been backed up to a snapshot.

", + "Snapshot$currentBackupRateInMegaBytesPerSecond": "

The rate at which data is backed up into a snapshot in megabytes per second.

", + "Snapshot$totalBackupSizeInMegaBytes": "

The total size, in megabytes, of how big the snapshot is.

" + } + }, + "Endpoint": { + "base": "

The VPC endpoint object.

", + "refs": { + "Workgroup$endpoint": "

The endpoint that is created from the workgroup.

" + } + }, + "EndpointAccess": { + "base": "

Information about an Amazon Redshift Serverless VPC endpoint.

", + "refs": { + "CreateEndpointAccessResponse$endpoint": "

The created VPC endpoint.

", + "DeleteEndpointAccessResponse$endpoint": "

The deleted VPC endpoint.

", + "EndpointAccessList$member": null, + "GetEndpointAccessResponse$endpoint": "

The returned VPC endpoint.

", + "UpdateEndpointAccessResponse$endpoint": "

The updated VPC endpoint.

" + } + }, + "EndpointAccessList": { + "base": null, + "refs": { + "ListEndpointAccessResponse$endpoints": "

The returned VPC endpoints.

" + } + }, + "GetCredentialsRequest": { + "base": null, + "refs": { + } + }, + "GetCredentialsResponse": { + "base": null, + "refs": { + } + }, + "GetEndpointAccessRequest": { + "base": null, + "refs": { + } + }, + "GetEndpointAccessResponse": { + "base": null, + "refs": { + } + }, + "GetNamespaceRequest": { + "base": null, + "refs": { + } + }, + "GetNamespaceResponse": { + "base": null, + "refs": { + } + }, + "GetRecoveryPointRequest": { + "base": null, + "refs": { + } + }, + "GetRecoveryPointResponse": { + "base": null, + "refs": { + } + }, + "GetResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "GetResourcePolicyResponse": { + "base": null, + "refs": { + } + }, + "GetSnapshotRequest": { + "base": null, + "refs": { + } + }, + "GetSnapshotResponse": { + "base": null, + "refs": { + } + }, + "GetUsageLimitRequest": { + "base": null, + "refs": { + } + }, + "GetUsageLimitResponse": { + "base": null, + "refs": { + } + }, + "GetWorkgroupRequest": { + "base": null, + "refs": { + } + }, + "GetWorkgroupResponse": { + "base": null, + "refs": { + } + }, + "IamRoleArn": { + "base": null, + "refs": { + "IamRoleArnList$member": null + } + }, + "IamRoleArnList": { + "base": null, + "refs": { + "CreateNamespaceRequest$iamRoles": "

A list of IAM roles to associate with the namespace.

", + "Namespace$iamRoles": "

A list of IAM roles to associate with the namespace.

", + "UpdateNamespaceRequest$iamRoles": "

A list of IAM roles to associate with the namespace.

" + } + }, + "InsufficientCapacityException": { + "base": "

There is an insufficient capacity to perform the action.

", + "refs": { + } + }, + "Integer": { + "base": null, + "refs": { + "ConvertRecoveryPointToSnapshotRequest$retentionPeriod": "

How long to retain the snapshot.

", + "CreateSnapshotRequest$retentionPeriod": "

How long to retain the created snapshot.

", + "CreateWorkgroupRequest$baseCapacity": "

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

", + "DeleteNamespaceRequest$finalSnapshotRetentionPeriod": "

How long to retain the final snapshot.

", + "Endpoint$port": "

The port that Amazon Redshift Serverless listens on.

", + "EndpointAccess$port": "

The port number on which Amazon Redshift Serverless accepts incoming connections.

", + "GetCredentialsRequest$durationSeconds": "

The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds.

", + "Snapshot$snapshotRemainingDays": "

The amount of days until the snapshot is deleted.

", + "Snapshot$snapshotRetentionPeriod": "

The period of time, in days, of how long the snapshot is retained.

", + "UpdateSnapshotRequest$retentionPeriod": "

The new retention period of the snapshot.

", + "UpdateWorkgroupRequest$baseCapacity": "

The new base data warehouse capacity in Redshift Processing Units (RPUs).

", + "Workgroup$baseCapacity": "

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

" + } + }, + "InternalServerException": { + "base": "

The request processing has failed because of an unknown error, exception or failure.

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

The provided pagination token is invalid.

", + "refs": { + } + }, + "KmsKeyId": { + "base": null, + "refs": { + "Snapshot$kmsKeyId": "

The unique identifier of the KMS key used to encrypt the snapshot.

" + } + }, + "ListEndpointAccessRequest": { + "base": null, + "refs": { + } + }, + "ListEndpointAccessRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListEndpointAccessRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" + } + }, + "ListEndpointAccessResponse": { + "base": null, + "refs": { + } + }, + "ListNamespacesRequest": { + "base": null, + "refs": { + } + }, + "ListNamespacesRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListNamespacesRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" + } + }, + "ListNamespacesResponse": { + "base": null, + "refs": { + } + }, + "ListRecoveryPointsRequest": { + "base": null, + "refs": { + } + }, + "ListRecoveryPointsRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListRecoveryPointsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" + } + }, + "ListRecoveryPointsResponse": { + "base": null, + "refs": { + } + }, + "ListSnapshotsRequest": { + "base": null, + "refs": { + } + }, + "ListSnapshotsRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListSnapshotsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" + } + }, + "ListSnapshotsResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "ListUsageLimitsRequest": { + "base": null, + "refs": { + } + }, + "ListUsageLimitsRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListUsageLimitsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 100.

" + } + }, + "ListUsageLimitsResponse": { + "base": null, + "refs": { + } + }, + "ListWorkgroupsRequest": { + "base": null, + "refs": { + } + }, + "ListWorkgroupsRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListWorkgroupsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" + } + }, + "ListWorkgroupsResponse": { + "base": null, + "refs": { + } + }, + "LogExport": { + "base": null, + "refs": { + "LogExportList$member": null + } + }, + "LogExportList": { + "base": null, + "refs": { + "CreateNamespaceRequest$logExports": "

The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.

", + "Namespace$logExports": "

The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.

", + "UpdateNamespaceRequest$logExports": "

The types of logs the namespace can export. The export types are userlog, connectionlog, and useractivitylog.

" + } + }, + "Long": { + "base": null, + "refs": { + "CreateUsageLimitRequest$amount": "

The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

", + "Snapshot$elapsedTimeInSeconds": "

The amount of time it took to back up data into a snapshot.

", + "Snapshot$estimatedSecondsToCompletion": "

The estimated amount of seconds until the snapshot completes backup.

", + "UpdateUsageLimitRequest$amount": "

The new limit amount. For more information about this parameter.

", + "UsageLimit$amount": "

The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.

" + } + }, + "Namespace": { + "base": "

A collection of database objects and users.

", + "refs": { + "CreateNamespaceResponse$namespace": "

The created namespace object.

", + "DeleteNamespaceResponse$namespace": "

The deleted namespace object.

", + "GetNamespaceResponse$namespace": "

The returned namespace object.

", + "NamespaceList$member": null, + "RestoreFromRecoveryPointResponse$namespace": "

The namespace that data was restored into.

", + "RestoreFromSnapshotResponse$namespace": null, + "UpdateNamespaceResponse$namespace": "

A list of tag instances.

" + } + }, + "NamespaceList": { + "base": null, + "refs": { + "ListNamespacesResponse$namespaces": "

The list of returned namespaces.

" + } + }, + "NamespaceName": { + "base": null, + "refs": { + "CreateNamespaceRequest$namespaceName": "

The name of the namespace.

", + "CreateWorkgroupRequest$namespaceName": "

The name of the namespace to associate with the workgroup.

", + "DeleteNamespaceRequest$namespaceName": "

The name of the namespace to delete.

", + "GetNamespaceRequest$namespaceName": "

The name of the namespace to retrieve information for.

", + "ListRecoveryPointsRequest$namespaceName": "

The name of the namespace to list recovery points for.

", + "Namespace$namespaceName": "

The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.

", + "RecoveryPoint$namespaceName": "

The name of the namespace the recovery point is associated with.

", + "RestoreFromRecoveryPointRequest$namespaceName": "

The name of the namespace to restore data into.

", + "RestoreFromSnapshotRequest$namespaceName": "

The name of the namespace to restore the snapshot to.

", + "UpdateNamespaceRequest$namespaceName": "

The name of the namespace.

" + } + }, + "NamespaceStatus": { + "base": null, + "refs": { + "Namespace$status": "

The status of the namespace.

" + } + }, + "NetworkInterface": { + "base": "

Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.

", + "refs": { + "NetworkInterfaceList$member": null + } + }, + "NetworkInterfaceList": { + "base": null, + "refs": { + "VpcEndpoint$networkInterfaces": "

One or more network interfaces of the endpoint. Also known as an interface endpoint.

" + } + }, + "PaginationToken": { + "base": null, + "refs": { + "ListUsageLimitsRequest$nextToken": "

If your initial ListUsageLimits operation returns a nextToken, you can include the returned nextToken in subsequent ListUsageLimits operations, which returns results in the next page.

", + "ListUsageLimitsResponse$nextToken": "

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + } + }, + "ParameterKey": { + "base": null, + "refs": { + "ConfigParameter$parameterKey": "

The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" + } + }, + "ParameterValue": { + "base": null, + "refs": { + "ConfigParameter$parameterValue": "

The value of the parameter to set.

" + } + }, + "PutResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "PutResourcePolicyResponse": { + "base": null, + "refs": { + } + }, + "RecoveryPoint": { + "base": "

The automatically created recovery point of a namespace. Recovery points are created every 30 minutes and kept for 24 hours.

", + "refs": { + "GetRecoveryPointResponse$recoveryPoint": "

The returned recovery point object.

", + "RecoveryPointList$member": null + } + }, + "RecoveryPointList": { + "base": null, + "refs": { + "ListRecoveryPointsResponse$recoveryPoints": "

The returned recovery point objects.

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

The resource could not be found.

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

The resource policy object. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

", + "refs": { + "GetResourcePolicyResponse$resourcePolicy": "

The returned resource policy.

", + "PutResourcePolicyResponse$resourcePolicy": "

The policy that was created or updated.

" + } + }, + "RestoreFromRecoveryPointRequest": { + "base": null, + "refs": { + } + }, + "RestoreFromRecoveryPointResponse": { + "base": null, + "refs": { + } + }, + "RestoreFromSnapshotRequest": { + "base": null, + "refs": { + } + }, + "RestoreFromSnapshotResponse": { + "base": null, + "refs": { + } + }, + "SecurityGroupId": { + "base": null, + "refs": { + "SecurityGroupIdList$member": null + } + }, + "SecurityGroupIdList": { + "base": null, + "refs": { + "CreateWorkgroupRequest$securityGroupIds": "

An array of security group IDs to associate with the workgroup.

", + "UpdateWorkgroupRequest$securityGroupIds": "

An array of security group IDs to associate with the workgroup.

", + "Workgroup$securityGroupIds": "

An array of security group IDs to associate with the workgroup.

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

The service limit was exceeded.

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

A snapshot object that contains databases.

", + "refs": { + "ConvertRecoveryPointToSnapshotResponse$snapshot": "

The snapshot converted from the recovery point.

", + "CreateSnapshotResponse$snapshot": "

The created snapshot object.

", + "DeleteSnapshotResponse$snapshot": "

The deleted snapshot object.

", + "GetSnapshotResponse$snapshot": "

The returned snapshot object.

", + "SnapshotList$member": null, + "UpdateSnapshotResponse$snapshot": "

The updated snapshot object.

" + } + }, + "SnapshotList": { + "base": null, + "refs": { + "ListSnapshotsResponse$snapshots": "

All of the returned snapshot objects.

" + } + }, + "SnapshotStatus": { + "base": null, + "refs": { + "Snapshot$status": "

The status of the snapshot.

" + } + }, + "String": { + "base": null, + "refs": { + "AccessDeniedException$code": null, + "AccessDeniedException$message": null, + "AccountIdList$member": null, + "ConflictException$message": null, + "ConvertRecoveryPointToSnapshotRequest$recoveryPointId": "

The unique identifier of the recovery point.

", + "ConvertRecoveryPointToSnapshotRequest$snapshotName": "

The name of the snapshot.

", + "CreateEndpointAccessRequest$endpointName": "

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The name can't contain two consecutive hyphens or end with a hyphen.

", + "CreateEndpointAccessRequest$workgroupName": "

The name of the workgroup to associate with the VPC endpoint.

", + "CreateNamespaceRequest$dbName": "

The name of the first database created in the namespace.

", + "CreateNamespaceRequest$defaultIamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

", + "CreateNamespaceRequest$kmsKeyId": "

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

", + "CreateSnapshotRequest$namespaceName": "

The namespace to create a snapshot for.

", + "CreateSnapshotRequest$snapshotName": "

The name of the snapshot.

", + "CreateUsageLimitRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

", + "DeleteEndpointAccessRequest$endpointName": "

The name of the VPC endpoint to delete.

", + "DeleteNamespaceRequest$finalSnapshotName": "

The name of the snapshot to be created before the namespace is deleted.

", + "DeleteResourcePolicyRequest$resourceArn": "

The Amazon Resource Name (ARN) of the policy to delete.

", + "DeleteSnapshotRequest$snapshotName": "

The name of the snapshot to be deleted.

", + "DeleteUsageLimitRequest$usageLimitId": "

The unique identifier of the usage limit to delete.

", + "Endpoint$address": "

The DNS address of the VPC endpoint.

", + "EndpointAccess$address": "

The DNS address of the endpoint.

", + "EndpointAccess$endpointArn": "

The Amazon Resource Name (ARN) of the VPC endpoint.

", + "EndpointAccess$endpointName": "

The name of the VPC endpoint.

", + "EndpointAccess$endpointStatus": "

The status of the VPC endpoint.

", + "EndpointAccess$workgroupName": "

The name of the workgroup associated with the endpoint.

", + "GetEndpointAccessRequest$endpointName": "

The name of the VPC endpoint to return information for.

", + "GetRecoveryPointRequest$recoveryPointId": "

The unique identifier of the recovery point to return information for.

", + "GetResourcePolicyRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to return.

", + "GetSnapshotRequest$ownerAccount": "

The owner Amazon Web Services account of a snapshot shared with another user.

", + "GetSnapshotRequest$snapshotArn": "

The Amazon Resource Name (ARN) of the snapshot to return.

", + "GetSnapshotRequest$snapshotName": "

The name of the snapshot to return.

", + "GetUsageLimitRequest$usageLimitId": "

The unique identifier of the usage limit to return information for.

", + "InsufficientCapacityException$message": null, + "InternalServerException$message": null, + "InvalidPaginationException$message": null, + "ListEndpointAccessRequest$nextToken": "

If your initial ListEndpointAccess operation returns a nextToken, you can include the returned nextToken in subsequent ListEndpointAccess operations, which returns results in the next page.

", + "ListEndpointAccessRequest$vpcId": "

The unique identifier of the virtual private cloud with access to Amazon Redshift Serverless.

", + "ListEndpointAccessRequest$workgroupName": "

The name of the workgroup associated with the VPC endpoint to return.

", + "ListEndpointAccessResponse$nextToken": "

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListNamespacesRequest$nextToken": "

If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.

", + "ListNamespacesResponse$nextToken": "

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListRecoveryPointsRequest$nextToken": "

If your initial ListRecoveryPoints operation returns a nextToken, you can include the returned nextToken in subsequent ListRecoveryPoints operations, which returns results in the next page.

", + "ListRecoveryPointsResponse$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListSnapshotsRequest$namespaceArn": "

The Amazon Resource Name (ARN) of the namespace from which to list all snapshots.

", + "ListSnapshotsRequest$namespaceName": "

The namespace from which to list all snapshots.

", + "ListSnapshotsRequest$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListSnapshotsRequest$ownerAccount": "

The owner Amazon Web Services account of the snapshot.

", + "ListSnapshotsResponse$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListUsageLimitsRequest$resourceArn": "

The Amazon Resource Name (ARN) associated with the resource whose usage limits you want to list.

", + "ListWorkgroupsRequest$nextToken": "

If your initial ListWorkgroups operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.

", + "ListWorkgroupsResponse$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.

", + "Namespace$dbName": "

The name of the first database created in the namespace.

", + "Namespace$defaultIamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

", + "Namespace$kmsKeyId": "

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

", + "Namespace$namespaceArn": "

The Amazon Resource Name (ARN) associated with a namespace.

", + "Namespace$namespaceId": "

The unique identifier of a namespace.

", + "NetworkInterface$availabilityZone": "

The availability Zone.

", + "NetworkInterface$networkInterfaceId": "

The unique identifier of the network interface.

", + "NetworkInterface$privateIpAddress": "

The IPv4 address of the network interface within the subnet.

", + "NetworkInterface$subnetId": "

The unique identifier of the subnet.

", + "PutResourcePolicyRequest$policy": "

The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.

\"{\\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\" : [{ \\\"Sid\\\": \\\"AllowUserRestoreFromSnapshot\\\", \\\"Principal\\\":{\\\"AWS\\\": [\\\"739247239426\\\"]}, \\\"Action\\\": [\\\"redshift-serverless:RestoreFromSnapshot\\\"] , \\\"Effect\\\": \\\"Allow\\\" }]}\"

", + "PutResourcePolicyRequest$resourceArn": "

The Amazon Resource Name (ARN) of the account to create or update a resource policy for.

", + "RecoveryPoint$recoveryPointId": "

The unique identifier of the recovery point.

", + "ResourceNotFoundException$message": null, + "ResourcePolicy$policy": "

The resource policy.

", + "ResourcePolicy$resourceArn": "

The Amazon Resource Name (ARN) of the policy.

", + "RestoreFromRecoveryPointRequest$recoveryPointId": "

The unique identifier of the recovery point to restore from.

", + "RestoreFromRecoveryPointResponse$recoveryPointId": "

The unique identifier of the recovery point used for the restore.

", + "RestoreFromSnapshotRequest$ownerAccount": "

The Amazon Web Services account that owns the snapshot.

", + "RestoreFromSnapshotRequest$snapshotArn": "

The Amazon Resource Name (ARN) of the snapshot to restore from.

", + "RestoreFromSnapshotRequest$snapshotName": "

The name of the snapshot to restore from.

", + "RestoreFromSnapshotResponse$ownerAccount": "

The owner Amazon Web Services; account of the snapshot that was restored.

", + "RestoreFromSnapshotResponse$snapshotName": "

The name of the snapshot used to restore the namespace.

", + "ServiceQuotaExceededException$message": null, + "Snapshot$adminUsername": "

The username of the database within a snapshot.

", + "Snapshot$namespaceArn": "

The Amazon Resource Name (ARN) of the namespace the snapshot was created from.

", + "Snapshot$namespaceName": "

The name of the namepsace.

", + "Snapshot$ownerAccount": "

The owner Amazon Web Services; account of the snapshot.

", + "Snapshot$snapshotArn": "

The Amazon Resource Name (ARN) of the snapshot.

", + "Snapshot$snapshotName": "

The name of the snapshot.

", + "ThrottlingException$code": null, + "ThrottlingException$message": null, + "TooManyTagsException$message": null, + "UpdateEndpointAccessRequest$endpointName": "

The name of the VPC endpoint to update.

", + "UpdateNamespaceRequest$defaultIamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

", + "UpdateNamespaceRequest$kmsKeyId": "

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

", + "UpdateSnapshotRequest$snapshotName": "

The name of the snapshot.

", + "UpdateUsageLimitRequest$usageLimitId": "

The identifier of the usage limit to update.

", + "UsageLimit$resourceArn": "

The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.

", + "UsageLimit$usageLimitArn": "

The Amazon Resource Name (ARN) of the resource associated with the usage limit.

", + "UsageLimit$usageLimitId": "

The identifier of the usage limit.

", + "ValidationException$message": null, + "VpcEndpoint$vpcEndpointId": "

The connection endpoint ID for connecting to Amazon Redshift Serverless.

", + "VpcEndpoint$vpcId": "

The VPC identifier that the endpoint is associated with.

", + "VpcSecurityGroupMembership$status": "

The status of the VPC security group.

", + "Workgroup$namespaceName": "

The namespace the workgroup is associated with.

", + "Workgroup$workgroupArn": "

The Amazon Resource Name (ARN) that links to the workgroup.

", + "Workgroup$workgroupId": "

The unique identifier of the workgroup.

" + } + }, + "SubnetId": { + "base": null, + "refs": { + "SubnetIdList$member": null + } + }, + "SubnetIdList": { + "base": null, + "refs": { + "CreateEndpointAccessRequest$subnetIds": "

The unique identifers of subnets from which Amazon Redshift Serverless chooses one to deploy a VPC endpoint.

", + "CreateWorkgroupRequest$subnetIds": "

An array of VPC subnet IDs to associate with the workgroup.

", + "EndpointAccess$subnetIds": "

The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.

", + "UpdateWorkgroupRequest$subnetIds": "

An array of VPC subnet IDs to associate with the workgroup.

", + "Workgroup$subnetIds": "

An array of subnet IDs the workgroup is associated with.

" + } + }, + "SyntheticTimestamp_date_time": { + "base": null, + "refs": { + "EndpointAccess$endpointCreateTime": "

The time that the endpoint was created.

", + "Namespace$creationDate": "

The date of when the namespace was created.

", + "RecoveryPoint$recoveryPointCreateTime": "

The time the recovery point is created.

", + "Snapshot$snapshotCreateTime": "

The timestamp of when the snapshot was created.

", + "Snapshot$snapshotRetentionStartTime": "

The timestamp of when data within the snapshot started getting retained.

", + "Workgroup$creationDate": "

The creation date of the workgroup.

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

A map of key-value pairs.

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

The key to use in the tag.

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

The tag or set of tags to remove from the resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateNamespaceRequest$tags": "

A list of tag instances.

", + "CreateWorkgroupRequest$tags": "

A array of tag instances.

", + "ListTagsForResourceResponse$tags": "

A map of the key-value pairs assigned to the resource.

", + "TagResourceRequest$tags": "

The map of the key-value pairs used to tag the resource.

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

The value of the tag.

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

The request was denied due to request throttling.

", + "refs": { + } + }, + "Timestamp": { + "base": null, + "refs": { + "GetCredentialsResponse$expiration": "

The date and time the password in DbPassword expires.

", + "GetCredentialsResponse$nextRefreshTime": "

The date and time of when the DbUser and DbPassword authorization refreshes.

", + "ListRecoveryPointsRequest$endTime": "

The time when creation of the recovery point finished.

", + "ListRecoveryPointsRequest$startTime": "

The time when the recovery point's creation was initiated.

", + "ListSnapshotsRequest$endTime": "

The timestamp showing when the snapshot creation finished.

", + "ListSnapshotsRequest$startTime": "

The time when the creation of the snapshot was initiated.

" + } + }, + "TooManyTagsException": { + "base": "

The request exceeded the number of tags allowed for a resource.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateEndpointAccessRequest": { + "base": null, + "refs": { + } + }, + "UpdateEndpointAccessResponse": { + "base": null, + "refs": { + } + }, + "UpdateNamespaceRequest": { + "base": null, + "refs": { + } + }, + "UpdateNamespaceResponse": { + "base": null, + "refs": { + } + }, + "UpdateSnapshotRequest": { + "base": null, + "refs": { + } + }, + "UpdateSnapshotResponse": { + "base": null, + "refs": { + } + }, + "UpdateUsageLimitRequest": { + "base": null, + "refs": { + } + }, + "UpdateUsageLimitResponse": { + "base": null, + "refs": { + } + }, + "UpdateWorkgroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateWorkgroupResponse": { + "base": null, + "refs": { + } + }, + "UsageLimit": { + "base": "

The usage limit object.

", + "refs": { + "CreateUsageLimitResponse$usageLimit": "

The returned usage limit object.

", + "DeleteUsageLimitResponse$usageLimit": "

The deleted usage limit object.

", + "GetUsageLimitResponse$usageLimit": "

The returned usage limit object.

", + "UpdateUsageLimitResponse$usageLimit": "

The updated usage limit object.

", + "UsageLimits$member": null + } + }, + "UsageLimitBreachAction": { + "base": null, + "refs": { + "CreateUsageLimitRequest$breachAction": "

The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.

", + "UpdateUsageLimitRequest$breachAction": "

The new action that Amazon Redshift Serverless takes when the limit is reached.

", + "UsageLimit$breachAction": "

The action that Amazon Redshift Serverless takes when the limit is reached.

" + } + }, + "UsageLimitPeriod": { + "base": null, + "refs": { + "CreateUsageLimitRequest$period": "

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

", + "UsageLimit$period": "

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

" + } + }, + "UsageLimitUsageType": { + "base": null, + "refs": { + "CreateUsageLimitRequest$usageType": "

The type of Amazon Redshift Serverless usage to create a usage limit for.

", + "ListUsageLimitsRequest$usageType": "

The Amazon Redshift Serverless feature whose limits you want to see.

", + "UsageLimit$usageType": "

The Amazon Redshift Serverless feature to limit.

" + } + }, + "UsageLimits": { + "base": null, + "refs": { + "ListUsageLimitsResponse$usageLimits": "

An array of returned usage limit objects.

" + } + }, + "ValidationException": { + "base": "

The input failed to satisfy the constraints specified by an AWS service.

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

The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.

", + "refs": { + "EndpointAccess$vpcEndpoint": "

The connection endpoint for connecting to Amazon Redshift Serverless.

", + "VpcEndpointList$member": null + } + }, + "VpcEndpointList": { + "base": null, + "refs": { + "Endpoint$vpcEndpoints": "

An array of VpcEndpoint objects.

" + } + }, + "VpcSecurityGroupId": { + "base": null, + "refs": { + "VpcSecurityGroupIdList$member": null, + "VpcSecurityGroupMembership$vpcSecurityGroupId": "

The unique identifier of the VPC security group.

" + } + }, + "VpcSecurityGroupIdList": { + "base": null, + "refs": { + "CreateEndpointAccessRequest$vpcSecurityGroupIds": "

The unique identifiers of the security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

", + "UpdateEndpointAccessRequest$vpcSecurityGroupIds": "

The list of VPC security groups associated with the endpoint after the endpoint is modified.

" + } + }, + "VpcSecurityGroupMembership": { + "base": "

Describes the members of a VPC security group.

", + "refs": { + "VpcSecurityGroupMembershipList$member": null + } + }, + "VpcSecurityGroupMembershipList": { + "base": null, + "refs": { + "EndpointAccess$vpcSecurityGroups": "

The security groups associated with the endpoint.

" + } + }, + "Workgroup": { + "base": "

The collection of computing resources from which an endpoint is created.

", + "refs": { + "CreateWorkgroupResponse$workgroup": "

The created workgroup object.

", + "DeleteWorkgroupResponse$workgroup": "

The deleted workgroup object.

", + "GetWorkgroupResponse$workgroup": "

The returned workgroup object.

", + "UpdateWorkgroupResponse$workgroup": "

The updated workgroup object.

", + "WorkgroupList$member": null + } + }, + "WorkgroupList": { + "base": null, + "refs": { + "ListWorkgroupsResponse$workgroups": "

The returned array of workgroups.

" + } + }, + "WorkgroupName": { + "base": null, + "refs": { + "CreateWorkgroupRequest$workgroupName": "

The name of the created workgroup.

", + "DeleteWorkgroupRequest$workgroupName": "

The name of the workgroup to be deleted.

", + "GetCredentialsRequest$workgroupName": "

The name of the workgroup associated with the database.

", + "GetWorkgroupRequest$workgroupName": "

The name of the workgroup to return information for.

", + "RecoveryPoint$workgroupName": "

The name of the workgroup the recovery point is associated with.

", + "RestoreFromRecoveryPointRequest$workgroupName": "

The name of the workgroup used to restore data.

", + "RestoreFromSnapshotRequest$workgroupName": "

The name of the workgroup used to restore the snapshot.

", + "UpdateWorkgroupRequest$workgroupName": "

The name of the workgroup to update.

", + "Workgroup$workgroupName": "

The name of the workgroup.

" + } + }, + "WorkgroupStatus": { + "base": null, + "refs": { + "Workgroup$status": "

The status of the workgroup.

" + } + } + } +} diff --git a/models/apis/redshift-serverless/2021-04-21/examples-1.json b/models/apis/redshift-serverless/2021-04-21/examples-1.json new file mode 100644 index 0000000000..0ea7e3b0bb --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/redshift-serverless/2021-04-21/paginators-1.json b/models/apis/redshift-serverless/2021-04-21/paginators-1.json new file mode 100644 index 0000000000..cf5163d450 --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/paginators-1.json @@ -0,0 +1,40 @@ +{ + "pagination": { + "ListEndpointAccess": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "endpoints" + }, + "ListNamespaces": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "namespaces" + }, + "ListRecoveryPoints": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "recoveryPoints" + }, + "ListSnapshots": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "snapshots" + }, + "ListUsageLimits": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "usageLimits" + }, + "ListWorkgroups": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "workgroups" + } + } +} diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 18fc07ee4d..9058ad6fde 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -1248,6 +1248,18 @@ {"shape":"ResourceNotFound"} ] }, + "DescribeFeatureMetadata":{ + "name":"DescribeFeatureMetadata", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFeatureMetadataRequest"}, + "output":{"shape":"DescribeFeatureMetadataResponse"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "DescribeFlowDefinition":{ "name":"DescribeFlowDefinition", "http":{ @@ -2611,6 +2623,29 @@ {"shape":"ResourceNotFound"} ] }, + "UpdateFeatureGroup":{ + "name":"UpdateFeatureGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateFeatureGroupRequest"}, + "output":{"shape":"UpdateFeatureGroupResponse"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, + "UpdateFeatureMetadata":{ + "name":"UpdateFeatureMetadata", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateFeatureMetadataRequest"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "UpdateImage":{ "name":"UpdateImage", "http":{ @@ -6790,14 +6825,49 @@ "EventTimeFeatureName":{"shape":"FeatureName"}, "FeatureDefinitions":{"shape":"FeatureDefinitions"}, "CreationTime":{"shape":"CreationTime"}, + "LastModifiedTime":{"shape":"LastModifiedTime"}, "OnlineStoreConfig":{"shape":"OnlineStoreConfig"}, "OfflineStoreConfig":{"shape":"OfflineStoreConfig"}, "RoleArn":{"shape":"RoleArn"}, "FeatureGroupStatus":{"shape":"FeatureGroupStatus"}, "OfflineStoreStatus":{"shape":"OfflineStoreStatus"}, + "LastUpdateStatus":{"shape":"LastUpdateStatus"}, "FailureReason":{"shape":"FailureReason"}, "Description":{"shape":"Description"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "OnlineStoreTotalSizeBytes":{"shape":"OnlineStoreTotalSizeBytes"} + } + }, + "DescribeFeatureMetadataRequest":{ + "type":"structure", + "required":[ + "FeatureGroupName", + "FeatureName" + ], + "members":{ + "FeatureGroupName":{"shape":"FeatureGroupName"}, + "FeatureName":{"shape":"FeatureName"} + } + }, + "DescribeFeatureMetadataResponse":{ + "type":"structure", + "required":[ + "FeatureGroupArn", + "FeatureGroupName", + "FeatureName", + "FeatureType", + "CreationTime", + "LastModifiedTime" + ], + "members":{ + "FeatureGroupArn":{"shape":"FeatureGroupArn"}, + "FeatureGroupName":{"shape":"FeatureGroupName"}, + "FeatureName":{"shape":"FeatureName"}, + "FeatureType":{"shape":"FeatureType"}, + "CreationTime":{"shape":"CreationTime"}, + "LastModifiedTime":{"shape":"LastModifiedTime"}, + "Description":{"shape":"FeatureDescription"}, + "Parameters":{"shape":"FeatureParameters"} } }, "DescribeFlowDefinitionRequest":{ @@ -8490,6 +8560,12 @@ "type":"string", "max":1024 }, + "FeatureAdditions":{ + "type":"list", + "member":{"shape":"FeatureDefinition"}, + "max":100, + "min":1 + }, "FeatureDefinition":{ "type":"structure", "members":{ @@ -8503,6 +8579,12 @@ "max":2500, "min":1 }, + "FeatureDescription":{ + "type":"string", + "max":255, + "min":0, + "pattern":".*" + }, "FeatureGroup":{ "type":"structure", "members":{ @@ -8512,11 +8594,13 @@ "EventTimeFeatureName":{"shape":"FeatureName"}, "FeatureDefinitions":{"shape":"FeatureDefinitions"}, "CreationTime":{"shape":"CreationTime"}, + "LastModifiedTime":{"shape":"LastModifiedTime"}, "OnlineStoreConfig":{"shape":"OnlineStoreConfig"}, "OfflineStoreConfig":{"shape":"OfflineStoreConfig"}, "RoleArn":{"shape":"RoleArn"}, "FeatureGroupStatus":{"shape":"FeatureGroupStatus"}, "OfflineStoreStatus":{"shape":"OfflineStoreStatus"}, + "LastUpdateStatus":{"shape":"LastUpdateStatus"}, "FailureReason":{"shape":"FailureReason"}, "Description":{"shape":"Description"}, "Tags":{"shape":"TagList"} @@ -8588,12 +8672,60 @@ "OfflineStoreStatus":{"shape":"OfflineStoreStatus"} } }, + "FeatureMetadata":{ + "type":"structure", + "members":{ + "FeatureGroupArn":{"shape":"FeatureGroupArn"}, + "FeatureGroupName":{"shape":"FeatureGroupName"}, + "FeatureName":{"shape":"FeatureName"}, + "FeatureType":{"shape":"FeatureType"}, + "CreationTime":{"shape":"CreationTime"}, + "LastModifiedTime":{"shape":"LastModifiedTime"}, + "Description":{"shape":"FeatureDescription"}, + "Parameters":{"shape":"FeatureParameters"} + } + }, "FeatureName":{ "type":"string", "max":64, "min":1, "pattern":"^[a-zA-Z0-9]([-_]*[a-zA-Z0-9]){0,63}" }, + "FeatureParameter":{ + "type":"structure", + "members":{ + "Key":{"shape":"FeatureParameterKey"}, + "Value":{"shape":"FeatureParameterValue"} + } + }, + "FeatureParameterAdditions":{ + "type":"list", + "member":{"shape":"FeatureParameter"}, + "max":25 + }, + "FeatureParameterKey":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$" + }, + "FeatureParameterRemovals":{ + "type":"list", + "member":{"shape":"FeatureParameterKey"}, + "max":25 + }, + "FeatureParameterValue":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$" + }, + "FeatureParameters":{ + "type":"list", + "member":{"shape":"FeatureParameter"}, + "max":25, + "min":0 + }, "FeatureType":{ "type":"string", "enum":[ @@ -10016,6 +10148,22 @@ } }, "LastModifiedTime":{"type":"timestamp"}, + "LastUpdateStatus":{ + "type":"structure", + "required":["Status"], + "members":{ + "Status":{"shape":"LastUpdateStatusValue"}, + "FailureReason":{"shape":"FailureReason"} + } + }, + "LastUpdateStatusValue":{ + "type":"string", + "enum":[ + "Successful", + "Failed", + "InProgress" + ] + }, "LifecycleConfigArns":{ "type":"list", "member":{"shape":"StudioLifecycleConfigArn"} @@ -12741,6 +12889,7 @@ "KmsKeyId":{"shape":"KmsKeyId"} } }, + "OnlineStoreTotalSizeBytes":{"type":"long"}, "Operator":{ "type":"string", "enum":[ @@ -14327,7 +14476,8 @@ "Pipeline", "PipelineExecution", "FeatureGroup", - "Project" + "Project", + "FeatureMetadata" ] }, "ResponseMIMEType":{ @@ -14520,7 +14670,8 @@ "Pipeline":{"shape":"Pipeline"}, "PipelineExecution":{"shape":"PipelineExecution"}, "FeatureGroup":{"shape":"FeatureGroup"}, - "Project":{"shape":"Project"} + "Project":{"shape":"Project"}, + "FeatureMetadata":{"shape":"FeatureMetadata"} } }, "SearchRequest":{ @@ -16275,6 +16426,35 @@ "ExperimentArn":{"shape":"ExperimentArn"} } }, + "UpdateFeatureGroupRequest":{ + "type":"structure", + "required":["FeatureGroupName"], + "members":{ + "FeatureGroupName":{"shape":"FeatureGroupName"}, + "FeatureAdditions":{"shape":"FeatureAdditions"} + } + }, + "UpdateFeatureGroupResponse":{ + "type":"structure", + "required":["FeatureGroupArn"], + "members":{ + "FeatureGroupArn":{"shape":"FeatureGroupArn"} + } + }, + "UpdateFeatureMetadataRequest":{ + "type":"structure", + "required":[ + "FeatureGroupName", + "FeatureName" + ], + "members":{ + "FeatureGroupName":{"shape":"FeatureGroupName"}, + "FeatureName":{"shape":"FeatureName"}, + "Description":{"shape":"FeatureDescription"}, + "ParameterAdditions":{"shape":"FeatureParameterAdditions"}, + "ParameterRemovals":{"shape":"FeatureParameterRemovals"} + } + }, "UpdateImageRequest":{ "type":"structure", "required":["ImageName"], diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json index 3c3bb68ff3..451c224c96 100644 --- a/models/apis/sagemaker/2017-07-24/docs-2.json +++ b/models/apis/sagemaker/2017-07-24/docs-2.json @@ -109,6 +109,7 @@ "DescribeEndpointConfig": "

Returns the description of an endpoint configuration created using the CreateEndpointConfig API.

", "DescribeExperiment": "

Provides a list of an experiment's properties.

", "DescribeFeatureGroup": "

Use this operation to describe a FeatureGroup. The response includes information on the creation time, FeatureGroup name, the unique identifier for each FeatureGroup, and more.

", + "DescribeFeatureMetadata": "

Shows the metadata for a feature within a feature group.

", "DescribeFlowDefinition": "

Returns information about the specified flow definition.

", "DescribeHumanTaskUi": "

Returns information about the requested human task user interface (worker task template).

", "DescribeHyperParameterTuningJob": "

Gets a description of a hyperparameter tuning job.

", @@ -239,6 +240,8 @@ "UpdateEndpoint": "

Deploys the new EndpointConfig specified in the request, switches to using newly created endpoint, and then deletes resources provisioned for the endpoint using the previous EndpointConfig (there is no availability loss).

When SageMaker receives the request, it sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

You must not delete an EndpointConfig in use by an endpoint that is live or while the UpdateEndpoint or CreateEndpoint operations are being performed on the endpoint. To update an endpoint, you must create a new EndpointConfig.

If you delete the EndpointConfig of an endpoint that is active or being created or updated you may lose visibility into the instance type the endpoint is using. The endpoint must be deleted in order to stop incurring charges.

", "UpdateEndpointWeightsAndCapacities": "

Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint. When it receives the request, SageMaker sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

", "UpdateExperiment": "

Adds, updates, or removes the description of an experiment. Updates the display name of an experiment.

", + "UpdateFeatureGroup": "

Updates the feature group.

", + "UpdateFeatureMetadata": "

Updates the description and parameters of the feature group.

", "UpdateImage": "

Updates the properties of a SageMaker image. To change the image's tags, use the AddTags and DeleteTags APIs.

", "UpdateModelPackage": "

Updates a versioned model.

", "UpdateMonitoringSchedule": "

Updates a previously created schedule.

", @@ -1738,7 +1741,7 @@ "base": null, "refs": { "FileSource$ContentDigest": "

The digest of the file source.

", - "MetricsSource$ContentDigest": "

" + "MetricsSource$ContentDigest": "

The hash key used for the metrics source.

" } }, "ContentType": { @@ -1748,7 +1751,7 @@ "Channel$ContentType": "

The MIME type of the data.

", "ContentTypes$member": null, "FileSource$ContentType": "

The type of content stored in the file source.

", - "MetricsSource$ContentType": "

", + "MetricsSource$ContentType": "

The metric source content type.

", "TransformInput$ContentType": "

The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job.

" } }, @@ -2272,6 +2275,7 @@ "DescribeCompilationJobResponse$CreationTime": "

The time that the model compilation job was created.

", "DescribeDomainResponse$CreationTime": "

The creation time.

", "DescribeFeatureGroupResponse$CreationTime": "

A timestamp indicating when SageMaker created the FeatureGroup.

", + "DescribeFeatureMetadataResponse$CreationTime": "

A timestamp indicating when the feature was created.

", "DescribeInferenceRecommendationsJobResponse$CreationTime": "

A timestamp that shows when the job was created.

", "DescribeModelPackageGroupOutput$CreationTime": "

The time that the model group was created.

", "DescribeModelPackageOutput$CreationTime": "

A timestamp specifying when the model package was created.

", @@ -2280,6 +2284,7 @@ "DescribeUserProfileResponse$CreationTime": "

The creation time.

", "DomainDetails$CreationTime": "

The creation time.

", "FeatureGroup$CreationTime": "

The time a FeatureGroup was created.

", + "FeatureMetadata$CreationTime": "

A timestamp indicating when the feature was created.

", "InferenceRecommendationsJob$CreationTime": "

A timestamp that shows when the job was created.

", "ListAlgorithmsInput$CreationTimeAfter": "

A filter that returns only algorithms created after the specified time (timestamp).

", "ListAlgorithmsInput$CreationTimeBefore": "

A filter that returns only algorithms created before the specified time (timestamp).

", @@ -2965,6 +2970,16 @@ "refs": { } }, + "DescribeFeatureMetadataRequest": { + "base": null, + "refs": { + } + }, + "DescribeFeatureMetadataResponse": { + "base": null, + "refs": { + } + }, "DescribeFlowDefinitionRequest": { "base": null, "refs": { @@ -4279,6 +4294,7 @@ "ImageVersion$FailureReason": "

When a create or delete operation fails, the reason for the failure.

", "InferenceRecommendationsJob$FailureReason": "

If the job fails, provides information why the job failed.

", "LabelingJobSummary$FailureReason": "

If the LabelingJobStatus field is Failed, this field contains a description of the error.

", + "LastUpdateStatus$FailureReason": "

If the update wasn't successful, indicates the reason why it failed.

", "MonitoringExecutionSummary$FailureReason": "

Contains the reason a monitoring job failed, if it failed.

", "MonitoringSchedule$FailureReason": "

If the monitoring schedule failed, the reason it failed.

", "PipelineExecutionStep$FailureReason": "

The reason why the step failed execution. This is only returned if the step failed its execution.

", @@ -4292,9 +4308,16 @@ "TransformJobSummary$FailureReason": "

If the transform job failed, the reason it failed.

" } }, + "FeatureAdditions": { + "base": null, + "refs": { + "UpdateFeatureGroupRequest$FeatureAdditions": "

A list of the features that you're adding to the feature group.

" + } + }, "FeatureDefinition": { "base": "

A list of features. You must include FeatureName and FeatureType. Valid feature FeatureTypes are Integral, Fractional and String.

", "refs": { + "FeatureAdditions$member": null, "FeatureDefinitions$member": null } }, @@ -4306,6 +4329,14 @@ "FeatureGroup$FeatureDefinitions": "

A list of Features. Each Feature must include a FeatureName and a FeatureType.

Valid FeatureTypes are Integral, Fractional and String.

FeatureNames cannot be any of the following: is_deleted, write_time, api_invocation_time.

You can create up to 2,500 FeatureDefinitions per FeatureGroup.

" } }, + "FeatureDescription": { + "base": null, + "refs": { + "DescribeFeatureMetadataResponse$Description": "

The description you added to describe the feature.

", + "FeatureMetadata$Description": "

An optional description that you specify to better describe the feature.

", + "UpdateFeatureMetadataRequest$Description": "

A description that you can write to better describe the feature.

" + } + }, "FeatureGroup": { "base": "

Amazon SageMaker Feature Store stores features in a collection called Feature Group. A Feature Group can be visualized as a table which has rows, with a unique identifier for each row where each column in the table is a feature. In principle, a Feature Group is composed of features and values per features.

", "refs": { @@ -4317,8 +4348,11 @@ "refs": { "CreateFeatureGroupResponse$FeatureGroupArn": "

The Amazon Resource Name (ARN) of the FeatureGroup. This is a unique identifier for the feature group.

", "DescribeFeatureGroupResponse$FeatureGroupArn": "

The Amazon Resource Name (ARN) of the FeatureGroup.

", + "DescribeFeatureMetadataResponse$FeatureGroupArn": "

The Amazon Resource Number (ARN) of the feature group that contains the feature.

", "FeatureGroup$FeatureGroupArn": "

The Amazon Resource Name (ARN) of a FeatureGroup.

", - "FeatureGroupSummary$FeatureGroupArn": "

Unique identifier for the FeatureGroup.

" + "FeatureGroupSummary$FeatureGroupArn": "

Unique identifier for the FeatureGroup.

", + "FeatureMetadata$FeatureGroupArn": "

The Amazon Resource Number (ARN) of the feature group.

", + "UpdateFeatureGroupResponse$FeatureGroupArn": "

The Amazon Resource Number (ARN) of the feature group that you're updating.

" } }, "FeatureGroupMaxResults": { @@ -4334,9 +4368,14 @@ "DeleteFeatureGroupRequest$FeatureGroupName": "

The name of the FeatureGroup you want to delete. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.

", "DescribeFeatureGroupRequest$FeatureGroupName": "

The name of the FeatureGroup you want described.

", "DescribeFeatureGroupResponse$FeatureGroupName": "

he name of the FeatureGroup.

", + "DescribeFeatureMetadataRequest$FeatureGroupName": "

The name of the feature group containing the feature.

", + "DescribeFeatureMetadataResponse$FeatureGroupName": "

The name of the feature group that you've specified.

", "FeatureGroup$FeatureGroupName": "

The name of the FeatureGroup.

", "FeatureGroupSummary$FeatureGroupName": "

The name of FeatureGroup.

", - "ProcessingFeatureStoreOutput$FeatureGroupName": "

The name of the Amazon SageMaker FeatureGroup to use as the destination for processing job output. Note that your processing script is responsible for putting records into your Feature Store.

" + "FeatureMetadata$FeatureGroupName": "

The name of the feature group containing the feature.

", + "ProcessingFeatureStoreOutput$FeatureGroupName": "

The name of the Amazon SageMaker FeatureGroup to use as the destination for processing job output. Note that your processing script is responsible for putting records into your Feature Store.

", + "UpdateFeatureGroupRequest$FeatureGroupName": "

The name of the feature group that you're updating.

", + "UpdateFeatureMetadataRequest$FeatureGroupName": "

The name of the feature group containing the feature that you're updating.

" } }, "FeatureGroupNameContains": { @@ -4378,6 +4417,12 @@ "FeatureGroupSummaries$member": null } }, + "FeatureMetadata": { + "base": "

The metadata for a feature. It can either be metadata that you specify, or metadata that is updated automatically.

", + "refs": { + "SearchRecord$FeatureMetadata": "

The feature metadata used to search through the features.

" + } + }, "FeatureName": { "base": null, "refs": { @@ -4385,15 +4430,60 @@ "CreateFeatureGroupRequest$EventTimeFeatureName": "

The name of the feature that stores the EventTime of a Record in a FeatureGroup.

An EventTime is a point in time when a new event occurs that corresponds to the creation or update of a Record in a FeatureGroup. All Records in the FeatureGroup must have a corresponding EventTime.

An EventTime can be a String or Fractional.

", "DescribeFeatureGroupResponse$RecordIdentifierFeatureName": "

The name of the Feature used for RecordIdentifier, whose value uniquely identifies a record stored in the feature store.

", "DescribeFeatureGroupResponse$EventTimeFeatureName": "

The name of the feature that stores the EventTime of a Record in a FeatureGroup.

An EventTime is a point in time when a new event occurs that corresponds to the creation or update of a Record in a FeatureGroup. All Records in the FeatureGroup have a corresponding EventTime.

", + "DescribeFeatureMetadataRequest$FeatureName": "

The name of the feature.

", + "DescribeFeatureMetadataResponse$FeatureName": "

The name of the feature that you've specified.

", "FeatureDefinition$FeatureName": "

The name of a feature. The type must be a string. FeatureName cannot be any of the following: is_deleted, write_time, api_invocation_time.

", "FeatureGroup$RecordIdentifierFeatureName": "

The name of the Feature whose value uniquely identifies a Record defined in the FeatureGroup FeatureDefinitions.

", - "FeatureGroup$EventTimeFeatureName": "

The name of the feature that stores the EventTime of a Record in a FeatureGroup.

A EventTime is point in time when a new event occurs that corresponds to the creation or update of a Record in FeatureGroup. All Records in the FeatureGroup must have a corresponding EventTime.

" + "FeatureGroup$EventTimeFeatureName": "

The name of the feature that stores the EventTime of a Record in a FeatureGroup.

A EventTime is point in time when a new event occurs that corresponds to the creation or update of a Record in FeatureGroup. All Records in the FeatureGroup must have a corresponding EventTime.

", + "FeatureMetadata$FeatureName": "

The name of feature.

", + "UpdateFeatureMetadataRequest$FeatureName": "

The name of the feature that you're updating.

" + } + }, + "FeatureParameter": { + "base": "

A key-value pair that you specify to describe the feature.

", + "refs": { + "FeatureParameterAdditions$member": null, + "FeatureParameters$member": null + } + }, + "FeatureParameterAdditions": { + "base": null, + "refs": { + "UpdateFeatureMetadataRequest$ParameterAdditions": "

A list of key-value pairs that you can add to better describe the feature.

" + } + }, + "FeatureParameterKey": { + "base": null, + "refs": { + "FeatureParameter$Key": "

A key that must contain a value to describe the feature.

", + "FeatureParameterRemovals$member": null + } + }, + "FeatureParameterRemovals": { + "base": null, + "refs": { + "UpdateFeatureMetadataRequest$ParameterRemovals": "

A list of parameter keys that you can specify to remove parameters that describe your feature.

" + } + }, + "FeatureParameterValue": { + "base": null, + "refs": { + "FeatureParameter$Value": "

The value that belongs to a key.

" + } + }, + "FeatureParameters": { + "base": null, + "refs": { + "DescribeFeatureMetadataResponse$Parameters": "

The key-value pairs that you added to describe the feature.

", + "FeatureMetadata$Parameters": "

Optional key-value pairs that you specify to better describe the feature.

" } }, "FeatureType": { "base": null, "refs": { - "FeatureDefinition$FeatureType": "

The value type of a feature. Valid values are Integral, Fractional, or String.

" + "DescribeFeatureMetadataResponse$FeatureType": "

The data type of the feature.

", + "FeatureDefinition$FeatureType": "

The value type of a feature. Valid values are Integral, Fractional, or String.

", + "FeatureMetadata$FeatureType": "

The data type of the feature.

" } }, "FileSource": { @@ -5181,7 +5271,7 @@ "CreateModelPackageInput$InferenceSpecification": "

Specifies details about inference jobs that can be run with models based on this model package, including the following:

", "DescribeAlgorithmOutput$InferenceSpecification": "

Details about inference jobs that the algorithm runs.

", "DescribeModelPackageOutput$InferenceSpecification": "

Details about inference jobs that can be run with models based on this model package.

", - "ModelPackage$InferenceSpecification": null + "ModelPackage$InferenceSpecification": "

Defines how to perform inference generation after a training job is run.

" } }, "InferenceSpecificationName": { @@ -5622,11 +5712,15 @@ "DescribeCodeRepositoryOutput$LastModifiedTime": "

The date and time that the repository was last changed.

", "DescribeCompilationJobResponse$LastModifiedTime": "

The time that the status of the model compilation job was last modified.

", "DescribeDomainResponse$LastModifiedTime": "

The last modified time.

", + "DescribeFeatureGroupResponse$LastModifiedTime": "

A timestamp indicating when the feature group was last updated.

", + "DescribeFeatureMetadataResponse$LastModifiedTime": "

A timestamp indicating when the metadata for the feature group was modified. For example, if you add a parameter describing the feature, the timestamp changes to reflect the last time you

", "DescribeInferenceRecommendationsJobResponse$LastModifiedTime": "

A timestamp that shows when the job was last modified.

", "DescribeNotebookInstanceLifecycleConfigOutput$LastModifiedTime": "

A timestamp that tells when the lifecycle configuration was last modified.

", "DescribeNotebookInstanceOutput$LastModifiedTime": "

A timestamp. Use this parameter to retrieve the time when the notebook instance was last modified.

", "DescribeUserProfileResponse$LastModifiedTime": "

The last modified time.

", "DomainDetails$LastModifiedTime": "

The last modified time.

", + "FeatureGroup$LastModifiedTime": "

A timestamp indicating the last time you updated the feature group.

", + "FeatureMetadata$LastModifiedTime": "

A timestamp indicating when the feature was last modified.

", "InferenceRecommendationsJob$LastModifiedTime": "

A timestamp that shows when the job was last modified.

", "ListCompilationJobsRequest$LastModifiedTimeAfter": "

A filter that returns the model compilation jobs that were modified after a specified time.

", "ListCompilationJobsRequest$LastModifiedTimeBefore": "

A filter that returns the model compilation jobs that were modified before a specified time.

", @@ -5641,6 +5735,19 @@ "UserProfileDetails$LastModifiedTime": "

The last modified time.

" } }, + "LastUpdateStatus": { + "base": "

A value that indicates whether the update was successful.

", + "refs": { + "DescribeFeatureGroupResponse$LastUpdateStatus": "

A value indicating whether the update made to the feature group was successful.

", + "FeatureGroup$LastUpdateStatus": "

A value that indicates whether the feature group was updated successfully.

" + } + }, + "LastUpdateStatusValue": { + "base": null, + "refs": { + "LastUpdateStatus$Status": "

A value that indicates whether the update was made successful.

" + } + }, "LifecycleConfigArns": { "base": null, "refs": { @@ -6557,7 +6664,7 @@ "DescribeModelPackageOutput$MetadataProperties": null, "DescribeTrialComponentResponse$MetadataProperties": null, "DescribeTrialResponse$MetadataProperties": null, - "ModelPackage$MetadataProperties": null, + "ModelPackage$MetadataProperties": "

Metadata properties of the tracking entity, trial, or trial component.

", "Trial$MetadataProperties": null, "TrialComponent$MetadataProperties": null } @@ -6633,18 +6740,18 @@ } }, "MetricsSource": { - "base": "

", + "base": "

Details about the metrics source.

", "refs": { "Bias$Report": "

The bias report for a model

", - "Bias$PreTrainingReport": null, - "Bias$PostTrainingReport": null, - "DriftCheckBias$PreTrainingConstraints": null, - "DriftCheckBias$PostTrainingConstraints": null, - "DriftCheckExplainability$Constraints": null, - "DriftCheckModelDataQuality$Statistics": null, - "DriftCheckModelDataQuality$Constraints": null, - "DriftCheckModelQuality$Statistics": null, - "DriftCheckModelQuality$Constraints": null, + "Bias$PreTrainingReport": "

The pre-training bias report for a model.

", + "Bias$PostTrainingReport": "

The post-training bias report for a model.

", + "DriftCheckBias$PreTrainingConstraints": "

The pre-training constraints.

", + "DriftCheckBias$PostTrainingConstraints": "

The post-training constraints.

", + "DriftCheckExplainability$Constraints": "

The drift check explainability constraints.

", + "DriftCheckModelDataQuality$Statistics": "

The drift check model data quality statistics.

", + "DriftCheckModelDataQuality$Constraints": "

The drift check model data quality constraints.

", + "DriftCheckModelQuality$Statistics": "

The drift check model quality statistics.

", + "DriftCheckModelQuality$Constraints": "

The drift check model quality constraints.

", "Explainability$Report": "

The explainability report for a model.

", "ModelDataQuality$Statistics": "

Data quality statistics for a model.

", "ModelDataQuality$Constraints": "

Data quality constraints for a model.

", @@ -6967,7 +7074,7 @@ "base": "

Specifies the validation and image scan statuses of the model package.

", "refs": { "DescribeModelPackageOutput$ModelPackageStatusDetails": "

Details about the current status of the model package.

", - "ModelPackage$ModelPackageStatusDetails": null + "ModelPackage$ModelPackageStatusDetails": "

Specifies the validation and image scan statuses of the model package.

" } }, "ModelPackageStatusItem": { @@ -7024,7 +7131,7 @@ "refs": { "CreateModelPackageInput$ValidationSpecification": "

Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.

", "DescribeModelPackageOutput$ValidationSpecification": "

Configurations for one or more transform jobs that SageMaker runs to test the model package.

", - "ModelPackage$ValidationSpecification": null + "ModelPackage$ValidationSpecification": "

Specifies batch transform jobs that SageMaker runs to validate your model package.

" } }, "ModelPackageVersion": { @@ -7928,6 +8035,12 @@ "OnlineStoreConfig$SecurityConfig": "

Use to specify KMS Key ID (KMSKeyId) for at-rest encryption of your OnlineStore.

" } }, + "OnlineStoreTotalSizeBytes": { + "base": null, + "refs": { + "DescribeFeatureGroupResponse$OnlineStoreTotalSizeBytes": "

The size of the OnlineStore in bytes.

" + } + }, "Operator": { "base": null, "refs": { @@ -9439,7 +9552,7 @@ "LabelingJobOutput$OutputDatasetS3Uri": "

The Amazon S3 bucket location of the manifest file for labeled data.

", "LabelingJobOutputConfig$S3OutputPath": "

The Amazon S3 location to write output data.

", "LabelingJobS3DataSource$ManifestS3Uri": "

The Amazon S3 location of the manifest file that describes the input data objects.

The input manifest file referenced in ManifestS3Uri must contain one of the following keys: source-ref or source. The value of the keys are interpreted as follows:

If you are a new user of Ground Truth, it is recommended you review Use an Input Manifest File in the Amazon SageMaker Developer Guide to learn how to create an input manifest file.

", - "MetricsSource$S3Uri": "

", + "MetricsSource$S3Uri": "

The S3 URI for the metrics source.

", "ModelArtifacts$S3ModelArtifacts": "

The path of the S3 object that contains the model artifacts. For example, s3://bucket-name/keynameprefix/model.tar.gz.

", "ModelBiasAppSpecification$ConfigUri": "

JSON formatted S3 file that defines bias parameters. For more information on this JSON configuration file, see Configure bias parameters.

", "ModelExplainabilityAppSpecification$ConfigUri": "

JSON formatted S3 file that defines explainability parameters. For more information on this JSON configuration file, see Configure model explainability parameters.

", @@ -9822,7 +9935,7 @@ "refs": { "CreateModelPackageInput$SourceAlgorithmSpecification": "

Details about the algorithm that was used to create the model package.

", "DescribeModelPackageOutput$SourceAlgorithmSpecification": "

Details about the algorithm that was used to create the model package.

", - "ModelPackage$SourceAlgorithmSpecification": null + "ModelPackage$SourceAlgorithmSpecification": "

A list of algorithms that were used to create a model package.

" } }, "SourceIpConfig": { @@ -11506,6 +11619,21 @@ "refs": { } }, + "UpdateFeatureGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateFeatureGroupResponse": { + "base": null, + "refs": { + } + }, + "UpdateFeatureMetadataRequest": { + "base": null, + "refs": { + } + }, "UpdateImageRequest": { "base": null, "refs": { @@ -11684,8 +11812,8 @@ "DescribeTrialResponse$LastModifiedBy": "

Who last modified the trial.

", "Experiment$CreatedBy": "

Who created the experiment.

", "Experiment$LastModifiedBy": null, - "ModelPackage$CreatedBy": null, - "ModelPackage$LastModifiedBy": null, + "ModelPackage$CreatedBy": "

Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.

", + "ModelPackage$LastModifiedBy": "

Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.

", "ModelPackageGroup$CreatedBy": null, "Pipeline$CreatedBy": null, "Pipeline$LastModifiedBy": null, diff --git a/models/apis/translate/2017-07-01/api-2.json b/models/apis/translate/2017-07-01/api-2.json index fff2383447..dd0766366c 100644 --- a/models/apis/translate/2017-07-01/api-2.json +++ b/models/apis/translate/2017-07-01/api-2.json @@ -118,6 +118,21 @@ {"shape":"InternalServerException"} ] }, + "ListLanguages":{ + "name":"ListLanguages", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLanguagesRequest"}, + "output":{"shape":"ListLanguagesResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"UnsupportedDisplayLanguageCodeException"}, + {"shape":"InternalServerException"} + ] + }, "ListParallelData":{ "name":"ListParallelData", "http":{ @@ -353,6 +368,21 @@ "MULTI" ] }, + "DisplayLanguageCode":{ + "type":"string", + "enum":[ + "de", + "en", + "es", + "fr", + "it", + "ja", + "ko", + "pt", + "zh", + "zh-TW" + ] + }, "EncryptionKey":{ "type":"structure", "required":[ @@ -514,6 +544,17 @@ "STOPPED" ] }, + "Language":{ + "type":"structure", + "required":[ + "LanguageName", + "LanguageCode" + ], + "members":{ + "LanguageName":{"shape":"LocalizedNameString"}, + "LanguageCode":{"shape":"LanguageCodeString"} + } + }, "LanguageCodeString":{ "type":"string", "max":5, @@ -523,6 +564,10 @@ "type":"list", "member":{"shape":"LanguageCodeString"} }, + "LanguagesList":{ + "type":"list", + "member":{"shape":"Language"} + }, "LimitExceededException":{ "type":"structure", "members":{ @@ -530,6 +575,22 @@ }, "exception":true }, + "ListLanguagesRequest":{ + "type":"structure", + "members":{ + "DisplayLanguageCode":{"shape":"DisplayLanguageCode"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListLanguagesResponse":{ + "type":"structure", + "members":{ + "Languages":{"shape":"LanguagesList"}, + "DisplayLanguageCode":{"shape":"DisplayLanguageCode"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListParallelDataRequest":{ "type":"structure", "members":{ @@ -573,6 +634,11 @@ "NextToken":{"shape":"NextToken"} } }, + "LocalizedNameString":{ + "type":"string", + "max":256, + "min":1 + }, "Long":{"type":"long"}, "MaxResultsInteger":{ "type":"integer", @@ -920,6 +986,14 @@ } }, "UnboundedLengthString":{"type":"string"}, + "UnsupportedDisplayLanguageCodeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "DisplayLanguageCode":{"shape":"LanguageCodeString"} + }, + "exception":true + }, "UnsupportedLanguagePairException":{ "type":"structure", "members":{ diff --git a/models/apis/translate/2017-07-01/docs-2.json b/models/apis/translate/2017-07-01/docs-2.json index 012ae4ae2b..9a639f6478 100644 --- a/models/apis/translate/2017-07-01/docs-2.json +++ b/models/apis/translate/2017-07-01/docs-2.json @@ -8,7 +8,8 @@ "DescribeTextTranslationJob": "

Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.

", "GetParallelData": "

Provides information about a parallel data resource.

", "GetTerminology": "

Retrieves a custom terminology.

", - "ImportTerminology": "

Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.

", + "ImportTerminology": "

Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.

", + "ListLanguages": "

Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.

", "ListParallelData": "

Provides a list of your parallel data resources in Amazon Translate.

", "ListTerminologies": "

Provides a list of custom terminologies associated with your account.

", "ListTextTranslationJobs": "

Gets a list of the batch translation jobs that you have submitted.

", @@ -40,7 +41,7 @@ "base": null, "refs": { "CreateParallelDataRequest$ClientToken": "

A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.

", - "StartTextTranslationJobRequest$ClientToken": "

A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.

", + "StartTextTranslationJobRequest$ClientToken": "

A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK.

", "UpdateParallelDataRequest$ClientToken": "

A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.

" } }, @@ -113,10 +114,17 @@ "Directionality": { "base": null, "refs": { - "TerminologyData$Directionality": "

The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).

UNI

The terminology resource has one source language (for example, the first column in a CSV file), and all of its other languages are target languages.

MULTI

Any language in the terminology resource can be the source language or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains terms in English and Spanish, then it can be used for jobs that translate English to Spanish and jobs that translate Spanish to English.

When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.

", + "TerminologyData$Directionality": "

The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).

UNI

The terminology resource has one source language (for example, the first column in a CSV file), and all of its other languages are target languages.

MULTI

Any language in the terminology resource can be the source language or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains English and Spanish terms, it can be used for jobs that translate English to Spanish and Spanish to English.

When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.

", "TerminologyProperties$Directionality": "

The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).

UNI

The terminology resource has one source language (the first column in a CSV file), and all of its other languages are target languages.

MULTI

Any language in the terminology resource can be the source language.

" } }, + "DisplayLanguageCode": { + "base": null, + "refs": { + "ListLanguagesRequest$DisplayLanguageCode": "

The language code for the language to use to display the language names in the response. The language code is en by default.

", + "ListLanguagesResponse$DisplayLanguageCode": "

The language code passed in with the request.

" + } + }, "EncryptionKey": { "base": "

The encryption key used to encrypt this object.

", "refs": { @@ -142,7 +150,7 @@ "Formality": { "base": null, "refs": { - "TranslationSettings$Formality": null + "TranslationSettings$Formality": "

You can optionally specify the desired level of formality for real-time translations to supported target languages. The formality setting controls the level of formal language usage (also known as register) in the translation output. You can set the value to informal or formal. If you don't specify a value for formality, or if the target language doesn't support formality, the translation will ignore the formality setting.

Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the StartTextTranslationJob API throws an exception (InvalidRequestException).

For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.

" } }, "GetParallelDataRequest": { @@ -185,7 +193,7 @@ "InputDataConfig": { "base": "

The input configuration properties for requesting a batch translation job.

", "refs": { - "StartTextTranslationJobRequest$InputDataConfig": "

Specifies the format and S3 location of the input documents for the translation job.

", + "StartTextTranslationJobRequest$InputDataConfig": "

Specifies the format and location of the input documents for the translation job.

", "TextTranslationJobProperties$InputDataConfig": "

The input configuration properties that were specified when the job was requested.

" } }, @@ -206,17 +214,17 @@ } }, "InvalidFilterException": { - "base": "

The filter specified for the operation is invalid. Specify a different filter.

", + "base": "

The filter specified for the operation is not valid. Specify a different filter.

", "refs": { } }, "InvalidParameterValueException": { - "base": "

The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and then retry your operation.

", + "base": "

The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation.

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

The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.

", + "base": "

The request that you made is not valid. Check your request to determine why it's not valid and then retry the request.

", "refs": { } }, @@ -253,20 +261,28 @@ "TextTranslationJobProperties$JobStatus": "

The status of the translation job.

" } }, + "Language": { + "base": "

A supported language.

", + "refs": { + "LanguagesList$member": null + } + }, "LanguageCodeString": { "base": null, "refs": { "DetectedLanguageLowConfidenceException$DetectedLanguageCode": "

The language code of the auto-detected language from Amazon Comprehend.

", + "Language$LanguageCode": "

Language code for the supported language.

", "LanguageCodeStringList$member": null, "ParallelDataProperties$SourceLanguageCode": "

The source language of the translations in the parallel data file.

", "StartTextTranslationJobRequest$SourceLanguageCode": "

The language code of the input language. For a list of language codes, see what-is-languages.

Amazon Translate does not automatically detect a source language during batch translation jobs.

", "TargetLanguageCodeStringList$member": null, "TerminologyProperties$SourceLanguageCode": "

The language code for the source text of the translation request for which the custom terminology is being used.

", "TextTranslationJobProperties$SourceLanguageCode": "

The language code of the language of the source text. The language must be a language supported by Amazon Translate.

", - "TranslateTextRequest$SourceLanguageCode": "

The language code for the language of the source text. The language must be a language supported by Amazon Translate. For a list of language codes, see what-is-languages.

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

", + "TranslateTextRequest$SourceLanguageCode": "

The language code for the language of the source text. The language must be a language supported by Amazon Translate. For a list of language codes, see what-is-languages.

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

If you specify auto, you must send the TranslateText request in a region that supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not supported.

", "TranslateTextRequest$TargetLanguageCode": "

The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.

", "TranslateTextResponse$SourceLanguageCode": "

The language code for the language of the source text.

", "TranslateTextResponse$TargetLanguageCode": "

The language code for the language of the target text.

", + "UnsupportedDisplayLanguageCodeException$DisplayLanguageCode": "

Language code passed in with the request.

", "UnsupportedLanguagePairException$SourceLanguageCode": "

The language code for the language of the input text.

", "UnsupportedLanguagePairException$TargetLanguageCode": "

The language code for the language of the translated text.

" } @@ -278,11 +294,27 @@ "TerminologyProperties$TargetLanguageCodes": "

The language codes for the target languages available with the custom terminology resource. All possible target languages are returned in array.

" } }, + "LanguagesList": { + "base": null, + "refs": { + "ListLanguagesResponse$Languages": "

The list of supported languages.

" + } + }, "LimitExceededException": { "base": "

The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit.

", "refs": { } }, + "ListLanguagesRequest": { + "base": null, + "refs": { + } + }, + "ListLanguagesResponse": { + "base": null, + "refs": { + } + }, "ListParallelDataRequest": { "base": null, "refs": { @@ -313,6 +345,12 @@ "refs": { } }, + "LocalizedNameString": { + "base": null, + "refs": { + "Language$LanguageName": "

Language name of the supported language.

" + } + }, "Long": { "base": null, "refs": { @@ -325,6 +363,7 @@ "MaxResultsInteger": { "base": null, "refs": { + "ListLanguagesRequest$MaxResults": "

The maximum number of results to return in each response.

", "ListParallelDataRequest$MaxResults": "

The maximum number of parallel data resources returned for each request.

", "ListTerminologiesRequest$MaxResults": "

The maximum number of custom terminologies returned per list request.

", "ListTextTranslationJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default value is 100.

" @@ -339,6 +378,8 @@ "NextToken": { "base": null, "refs": { + "ListLanguagesRequest$NextToken": "

Include the NextToken value to fetch the next group of supported languages.

", + "ListLanguagesResponse$NextToken": "

If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.

", "ListParallelDataRequest$NextToken": "

A string that specifies the next page of results to return in a paginated response.

", "ListParallelDataResponse$NextToken": "

The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

", "ListTerminologiesRequest$NextToken": "

If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies.

", @@ -371,9 +412,9 @@ "ParallelDataDataLocation": { "base": "

The location of the most recent parallel data input file that was successfully imported into Amazon Translate.

", "refs": { - "GetParallelDataResponse$DataLocation": "

The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", - "GetParallelDataResponse$AuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a parallel data resource. The location is returned as a presigned URL to that has a 30 minute expiration.

", - "GetParallelDataResponse$LatestUpdateAttemptAuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to update a parallel data resource. The location is returned as a presigned URL to that has a 30 minute expiration.

" + "GetParallelDataResponse$DataLocation": "

The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", + "GetParallelDataResponse$AuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a parallel data resource. The location is returned as a presigned URL to that has a 30-minute expiration.

", + "GetParallelDataResponse$LatestUpdateAttemptAuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to update a parallel data resource. The location is returned as a presigned URL to that has a 30-minute expiration.

" } }, "ParallelDataFormat": { @@ -409,7 +450,7 @@ "Profanity": { "base": null, "refs": { - "TranslationSettings$Profanity": "

Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation output.

To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.

Amazon Translate does not detect profanity in all of its supported languages. For languages that support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.

" + "TranslationSettings$Profanity": "

Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation output.

To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.

Amazon Translate doesn't detect profanity in all of its supported languages. For languages that support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.

" } }, "ResourceName": { @@ -449,13 +490,13 @@ "S3Uri": { "base": null, "refs": { - "InputDataConfig$S3Uri": "

The URI of the AWS S3 folder that contains the input file. The folder must be in the same Region as the API endpoint you are calling.

", + "InputDataConfig$S3Uri": "

The URI of the AWS S3 folder that contains the input files. Amazon Translate translates all the files in the folder. The folder must be in the same Region as the API endpoint you are calling.

The URI can also point to a single input document, or it can provide the prefix for a collection of input documents. For example. if you use the URI S3://bucketName/prefix and the prefix is a single file, Amazon Translate uses that files as input. If more than one file begins with the prefix, Amazon Translate uses all of them as input.

", "OutputDataConfig$S3Uri": "

The URI of the S3 folder that contains a translation job's output file. The folder must be in the same Region as the API endpoint that you are calling.

", "ParallelDataConfig$S3Uri": "

The URI of the Amazon S3 folder that contains the parallel data input file. The folder must be in the same Region as the API endpoint you are calling.

" } }, "ServiceUnavailableException": { - "base": "

The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your request.

", + "base": "

The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request.

", "refs": { } }, @@ -491,16 +532,17 @@ "InvalidRequestException$Message": null, "LimitExceededException$Message": null, "ParallelDataDataLocation$RepositoryType": "

Describes the repository that contains the parallel data input file.

", - "ParallelDataDataLocation$Location": "

The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30 minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", + "ParallelDataDataLocation$Location": "

The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30-minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", "ResourceNotFoundException$Message": null, "ServiceUnavailableException$Message": null, "Term$SourceText": "

The source text of the term being translated by the custom terminology.

", "Term$TargetText": "

The target text of the term being translated by the custom terminology.

", "TerminologyDataLocation$RepositoryType": "

The repository type for the custom terminology data.

", - "TerminologyDataLocation$Location": "

The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", + "TerminologyDataLocation$Location": "

The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration .

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", "TextSizeLimitExceededException$Message": null, "TooManyRequestsException$Message": null, "TranslateTextResponse$TranslatedText": "

The translated text.

", + "UnsupportedDisplayLanguageCodeException$Message": null, "UnsupportedLanguagePairException$Message": null } }, @@ -530,7 +572,7 @@ } }, "TerminologyData": { - "base": "

The data associated with the custom terminology.

", + "base": "

The data associated with the custom terminology. For information about the custom terminology file, see Creating a Custom Terminology.

", "refs": { "ImportTerminologyRequest$TerminologyData": "

The terminology data for the custom terminology being imported.

" } @@ -538,7 +580,7 @@ "TerminologyDataFormat": { "base": null, "refs": { - "GetTerminologyRequest$TerminologyDataFormat": "

The data format of the custom terminology being retrieved.

If you don't specify this parameter, Amazon Translate returns a file that has the same format as the file that was imported to create the terminology.

If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as that of the input file that was imported to create it. Otherwise, Amazon Translate throws an error.

", + "GetTerminologyRequest$TerminologyDataFormat": "

The data format of the custom terminology being retrieved.

If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.

If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.

", "TerminologyData$Format": "

The data format of the custom terminology.

", "TerminologyProperties$Format": "

The format of the custom terminology input file.

" } @@ -546,8 +588,8 @@ "TerminologyDataLocation": { "base": "

The location of the custom terminology data.

", "refs": { - "GetTerminologyResponse$TerminologyDataLocation": "

The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", - "GetTerminologyResponse$AuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.

", + "GetTerminologyResponse$TerminologyDataLocation": "

The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

", + "GetTerminologyResponse$AuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30-minute expiration.

", "ImportTerminologyResponse$AuxiliaryDataLocation": "

The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.

" } }, @@ -628,9 +670,9 @@ "TranslationSettings": { "base": "

Settings that configure the translation output.

", "refs": { - "StartTextTranslationJobRequest$Settings": "

Settings to configure your translation output, including the option to mask profane words and phrases.

", + "StartTextTranslationJobRequest$Settings": "

Settings to configure your translation output, including the option to mask profane words and phrases. StartTextTranslationJob does not support the formality setting.

", "TextTranslationJobProperties$Settings": "

Settings that configure the translation output.

", - "TranslateTextRequest$Settings": "

Settings to configure your translation output, including the option to mask profane words and phrases.

", + "TranslateTextRequest$Settings": "

Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.

", "TranslateTextResponse$AppliedSettings": "

Settings that configure the translation output.

" } }, @@ -642,6 +684,11 @@ "TextTranslationJobProperties$Message": "

An explanation of any errors that may have occurred during the translation job.

" } }, + "UnsupportedDisplayLanguageCodeException": { + "base": "

Requested display language code is not supported.

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

Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see how-to-error-msg.

", "refs": { diff --git a/models/apis/translate/2017-07-01/paginators-1.json b/models/apis/translate/2017-07-01/paginators-1.json index 7447f8e1bf..220c2f41ae 100644 --- a/models/apis/translate/2017-07-01/paginators-1.json +++ b/models/apis/translate/2017-07-01/paginators-1.json @@ -1,5 +1,10 @@ { "pagination": { + "ListLanguages": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken" + }, "ListParallelData": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 704a134e19..7c72f601c6 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -864,6 +864,34 @@ } } }, + "api.iotdeviceadvisor" : { + "endpoints" : { + "ap-northeast-1" : { + "credentialScope" : { + "region" : "ap-northeast-1" + }, + "hostname" : "api.iotdeviceadvisor.ap-northeast-1.amazonaws.com" + }, + "eu-west-1" : { + "credentialScope" : { + "region" : "eu-west-1" + }, + "hostname" : "api.iotdeviceadvisor.eu-west-1.amazonaws.com" + }, + "us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "api.iotdeviceadvisor.us-east-1.amazonaws.com" + }, + "us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "api.iotdeviceadvisor.us-west-2.amazonaws.com" + } + } + }, "api.iotwireless" : { "endpoints" : { "ap-northeast-1" : { @@ -2191,6 +2219,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, "ca-central-1" : { }, "eu-central-1" : { }, "eu-north-1" : { }, @@ -8878,6 +8907,12 @@ }, "hostname" : "oidc.eu-north-1.amazonaws.com" }, + "eu-south-1" : { + "credentialScope" : { + "region" : "eu-south-1" + }, + "hostname" : "oidc.eu-south-1.amazonaws.com" + }, "eu-west-1" : { "credentialScope" : { "region" : "eu-west-1" @@ -9815,6 +9850,21 @@ } } }, + "redshift-serverless" : { + "endpoints" : { + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "eu-central-1" : { }, + "eu-north-1" : { }, + "eu-west-1" : { }, + "eu-west-2" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-2" : { } + } + }, "rekognition" : { "endpoints" : { "ap-northeast-1" : { }, @@ -17045,6 +17095,13 @@ }, "lakeformation" : { "endpoints" : { + "fips-us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "deprecated" : true, + "hostname" : "lakeformation-fips.us-gov-east-1.amazonaws.com" + }, "fips-us-gov-west-1" : { "credentialScope" : { "region" : "us-gov-west-1" @@ -17052,6 +17109,12 @@ "deprecated" : true, "hostname" : "lakeformation-fips.us-gov-west-1.amazonaws.com" }, + "us-gov-east-1" : { + "variants" : [ { + "hostname" : "lakeformation-fips.us-gov-east-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, "us-gov-west-1" : { "variants" : [ { "hostname" : "lakeformation-fips.us-gov-west-1.amazonaws.com", diff --git a/service/appstream/api.go b/service/appstream/api.go index 9052acc98c..9b9769aacd 100644 --- a/service/appstream/api.go +++ b/service/appstream/api.go @@ -5644,8 +5644,8 @@ func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Re // and DisconnectTimeoutInSeconds attributes. // // * Elastic fleet type You can update the DisplayName, IdleDisconnectTimeoutInSeconds, -// DisconnectTimeoutInSeconds, MaxConcurrentSessions, and UsbDeviceFilterStrings -// attributes. +// DisconnectTimeoutInSeconds, MaxConcurrentSessions, SessionScriptS3Location +// and UsbDeviceFilterStrings attributes. // // If the fleet is in the STARTING or STOPPED state, you can't update it. // @@ -8620,6 +8620,10 @@ type CreateStackInput struct { // The storage connectors to enable. StorageConnectors []*StorageConnector `type:"list"` + // The streaming protocol you want your stack to prefer. This can be UDP or + // TCP. Currently, UDP is only supported in the Windows native client. + StreamingExperienceSettings *StreamingExperienceSettings `type:"structure"` + // The tags to associate with the stack. A tag is a key-value pair, and the // value is optional. For example, Environment=Test. If you do not specify a // value, Environment=. @@ -8772,6 +8776,12 @@ func (s *CreateStackInput) SetStorageConnectors(v []*StorageConnector) *CreateSt return s } +// SetStreamingExperienceSettings sets the StreamingExperienceSettings field's value. +func (s *CreateStackInput) SetStreamingExperienceSettings(v *StreamingExperienceSettings) *CreateStackInput { + s.StreamingExperienceSettings = v + return s +} + // SetTags sets the Tags field's value. func (s *CreateStackInput) SetTags(v map[string]*string) *CreateStackInput { s.Tags = v @@ -15406,6 +15416,10 @@ type Stack struct { // The storage connectors to enable. StorageConnectors []*StorageConnector `type:"list"` + // The streaming protocol you want your stack to prefer. This can be UDP or + // TCP. Currently, UDP is only supported in the Windows native client. + StreamingExperienceSettings *StreamingExperienceSettings `type:"structure"` + // The actions that are enabled or disabled for users during their streaming // sessions. By default these actions are enabled. UserSettings []*UserSetting `min:"1" type:"list"` @@ -15501,6 +15515,12 @@ func (s *Stack) SetStorageConnectors(v []*StorageConnector) *Stack { return s } +// SetStreamingExperienceSettings sets the StreamingExperienceSettings field's value. +func (s *Stack) SetStreamingExperienceSettings(v *StreamingExperienceSettings) *Stack { + s.StreamingExperienceSettings = v + return s +} + // SetUserSettings sets the UserSettings field's value. func (s *Stack) SetUserSettings(v []*UserSetting) *Stack { s.UserSettings = v @@ -15931,6 +15951,39 @@ func (s *StorageConnector) SetResourceIdentifier(v string) *StorageConnector { return s } +// The streaming protocol you want your stack to prefer. This can be UDP or +// TCP. Currently, UDP is only supported in the Windows native client. +type StreamingExperienceSettings struct { + _ struct{} `type:"structure"` + + // The preferred protocol that you want to use while streaming your application. + PreferredProtocol *string `type:"string" enum:"PreferredProtocol"` +} + +// 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 StreamingExperienceSettings) 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 StreamingExperienceSettings) GoString() string { + return s.String() +} + +// SetPreferredProtocol sets the PreferredProtocol field's value. +func (s *StreamingExperienceSettings) SetPreferredProtocol(v string) *StreamingExperienceSettings { + s.PreferredProtocol = &v + return s +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -17049,6 +17102,10 @@ type UpdateStackInput struct { // The storage connectors to enable. StorageConnectors []*StorageConnector `type:"list"` + // The streaming protocol you want your stack to prefer. This can be UDP or + // TCP. Currently, UDP is only supported in the Windows native client. + StreamingExperienceSettings *StreamingExperienceSettings `type:"structure"` + // The actions that are enabled or disabled for users during their streaming // sessions. By default, these actions are enabled. UserSettings []*UserSetting `min:"1" type:"list"` @@ -17198,6 +17255,12 @@ func (s *UpdateStackInput) SetStorageConnectors(v []*StorageConnector) *UpdateSt return s } +// SetStreamingExperienceSettings sets the StreamingExperienceSettings field's value. +func (s *UpdateStackInput) SetStreamingExperienceSettings(v *StreamingExperienceSettings) *UpdateStackInput { + s.StreamingExperienceSettings = v + return s +} + // SetUserSettings sets the UserSettings field's value. func (s *UpdateStackInput) SetUserSettings(v []*UserSetting) *UpdateStackInput { s.UserSettings = v @@ -18163,6 +18226,22 @@ func PlatformType_Values() []string { } } +const ( + // PreferredProtocolTcp is a PreferredProtocol enum value + PreferredProtocolTcp = "TCP" + + // PreferredProtocolUdp is a PreferredProtocol enum value + PreferredProtocolUdp = "UDP" +) + +// PreferredProtocol_Values returns all elements of the PreferredProtocol enum +func PreferredProtocol_Values() []string { + return []string{ + PreferredProtocolTcp, + PreferredProtocolUdp, + } +} + const ( // SessionConnectionStateConnected is a SessionConnectionState enum value SessionConnectionStateConnected = "CONNECTED" @@ -18233,6 +18312,9 @@ const ( // StackAttributeAccessEndpoints is a StackAttribute enum value StackAttributeAccessEndpoints = "ACCESS_ENDPOINTS" + + // StackAttributeStreamingExperienceSettings is a StackAttribute enum value + StackAttributeStreamingExperienceSettings = "STREAMING_EXPERIENCE_SETTINGS" ) // StackAttribute_Values returns all elements of the StackAttribute enum @@ -18249,6 +18331,7 @@ func StackAttribute_Values() []string { StackAttributeEmbedHostDomains, StackAttributeIamRoleArn, StackAttributeAccessEndpoints, + StackAttributeStreamingExperienceSettings, } } diff --git a/service/elbv2/api.go b/service/elbv2/api.go index 251d0d9d84..dc239aee7f 100644 --- a/service/elbv2/api.go +++ b/service/elbv2/api.go @@ -2666,6 +2666,9 @@ func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *re // Modifies the health checks used when evaluating the health state of the targets // in the specified target group. // +// If the protocol of the target group is TCP, TLS, UDP, or TCP_UDP, you can't +// modify the health check protocol, interval, timeout, or success codes. +// // 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. @@ -4474,7 +4477,7 @@ type CreateLoadBalancerInput struct { SecurityGroups []*string `type:"list"` // The IDs of the public subnets. You can specify only one subnet per Availability - // Zone. You must specify either subnets or subnet mappings. + // Zone. You must specify either subnets or subnet mappings, but not both. // // [Application Load Balancers] You must specify subnets from at least two Availability // Zones. You cannot specify Elastic IP addresses for your subnets. @@ -4496,7 +4499,8 @@ type CreateLoadBalancerInput struct { SubnetMappings []*SubnetMapping `type:"list"` // The IDs of the public subnets. You can specify only one subnet per Availability - // Zone. You must specify either subnets or subnet mappings. + // Zone. You must specify either subnets or subnet mappings, but not both. To + // specify an Elastic IP address, specify subnet mappings instead of subnets. // // [Application Load Balancers] You must specify subnets from at least two Availability // Zones. @@ -4812,10 +4816,11 @@ type CreateTargetGroupInput struct { HealthCheckEnabled *bool `type:"boolean"` // The approximate amount of time, in seconds, between health checks of an individual - // target. If the target group protocol is TCP, TLS, UDP, or TCP_UDP, the supported - // values are 10 and 30 seconds. If the target group protocol is HTTP or HTTPS, - // the default is 30 seconds. If the target group protocol is GENEVE, the default - // is 10 seconds. If the target type is lambda, the default is 35 seconds. + // target. If the target group protocol is HTTP or HTTPS, the default is 30 + // seconds. If the target group protocol is TCP, TLS, UDP, or TCP_UDP, the supported + // values are 10 and 30 seconds and the default is 30 seconds. If the target + // group protocol is GENEVE, the default is 10 seconds. If the target type is + // lambda, the default is 35 seconds. HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"` // [HTTP/HTTPS health checks] The destination for health checks on the targets. @@ -7251,7 +7256,7 @@ type LoadBalancerAttribute struct { // * access_logs.s3.prefix - The prefix for the location in the S3 bucket // for the access logs. // - // * ipv6.deny-all-igw-traffic - Blocks internet gateway (IGW) access to + // * ipv6.deny_all_igw_traffic - Blocks internet gateway (IGW) access to // the load balancer. It is set to false for internet-facing load balancers // and true for internal load balancers, preventing unintended access to // your internal load balancer through an internet gateway. @@ -7270,6 +7275,11 @@ type LoadBalancerAttribute struct { // HTTP headers with invalid header fields are removed by the load balancer // (true) or routed to targets (false). The default is false. // + // * routing.http.preserve_host_header.enabled - Indicates whether the Application + // Load Balancer should preserve the Host header in the HTTP request and + // send it to the target without any change. The possible values are true + // and false. The default is false. + // // * routing.http.x_amzn_tls_version_and_cipher_suite.enabled - Indicates // whether the two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), // which contain information about the negotiated TLS version and cipher @@ -7285,6 +7295,18 @@ type LoadBalancerAttribute struct { // to the load balancer. The possible values are true and false. The default // is false. // + // * routing.http.xff_header_processing.mode - Enables you to modify, preserve, + // or remove the X-Forwarded-For header in the HTTP request before the Application + // Load Balancer sends the request to the target. The possible values are + // append, preserve, and remove. The default is append. If the value is append, + // the Application Load Balancer adds the client IP address (of the last + // hop) to the X-Forwarded-For header in the HTTP request before it sends + // it to targets. If the value is preserve the Application Load Balancer + // preserves the X-Forwarded-For header in the HTTP request, and sends it + // to targets without any change. If the value is remove, the Application + // Load Balancer removes the X-Forwarded-For header in the HTTP request before + // it sends it to targets. + // // * routing.http2.enabled - Indicates whether HTTP/2 is enabled. The possible // values are true and false. The default is true. Elastic Load Balancing // requires that message header names contain only alphanumeric characters @@ -7899,8 +7921,6 @@ type ModifyTargetGroupInput struct { // The approximate amount of time, in seconds, between health checks of an individual // target. For TCP health checks, the supported values are 10 or 30 seconds. - // - // With Network Load Balancers, you can't modify this setting. HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"` // [HTTP/HTTPS health checks] The destination for health checks on the targets. @@ -7921,14 +7941,10 @@ type ModifyTargetGroupInput struct { // is supported for health checks only if the protocol of the target group is // TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP protocols are // not supported for health checks. - // - // With Network Load Balancers, you can't modify this setting. HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"` // [HTTP/HTTPS health checks] The amount of time, in seconds, during which no // response means a failed health check. - // - // With Network Load Balancers, you can't modify this setting. HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"` // The number of consecutive health checks successes required before considering @@ -7937,8 +7953,6 @@ type ModifyTargetGroupInput struct { // [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for // a successful response from a target. - // - // With Network Load Balancers, you can't modify this setting. Matcher *Matcher `type:"structure"` // The Amazon Resource Name (ARN) of the target group. @@ -8674,7 +8688,8 @@ func (s *Rule) SetRuleArn(v string) *Rule { // Each rule can optionally include up to one of each of the following conditions: // http-request-method, host-header, path-pattern, and source-ip. Each rule // can also optionally include one or more of each of the following conditions: -// http-header and query-string. +// http-header and query-string. Note that the value for a condition cannot +// be empty. type RuleCondition struct { _ struct{} `type:"structure"` diff --git a/service/emr/api.go b/service/emr/api.go index 3375e587eb..93e8cf101e 100644 --- a/service/emr/api.go +++ b/service/emr/api.go @@ -8552,8 +8552,9 @@ type EbsBlockDevice struct { // The device name that is exposed to the instance, such as /dev/sdh. Device *string `type:"string"` - // EBS volume specifications such as volume type, IOPS, and size (GiB) that - // will be requested for the EBS volume attached to an EC2 instance in the cluster. + // EBS volume specifications such as volume type, IOPS, size (GiB) and throughput + // (MiB/s) that are requested for the EBS volume attached to an EC2 instance + // in the cluster. VolumeSpecification *VolumeSpecification `type:"structure"` } @@ -8588,17 +8589,18 @@ func (s *EbsBlockDevice) SetVolumeSpecification(v *VolumeSpecification) *EbsBloc } // Configuration of requested EBS block device associated with the instance -// group with count of volumes that will be associated to every instance. +// group with count of volumes that are associated to every instance. type EbsBlockDeviceConfig struct { _ struct{} `type:"structure"` - // EBS volume specifications such as volume type, IOPS, and size (GiB) that - // will be requested for the EBS volume attached to an EC2 instance in the cluster. + // EBS volume specifications such as volume type, IOPS, size (GiB) and throughput + // (MiB/s) that are requested for the EBS volume attached to an EC2 instance + // in the cluster. // // VolumeSpecification is a required field VolumeSpecification *VolumeSpecification `type:"structure" required:"true"` - // Number of EBS volumes with a specific volume configuration that will be associated + // Number of EBS volumes with a specific volume configuration that are associated // with every instance in the instance group VolumesPerInstance *int64 `type:"integer"` } @@ -18284,8 +18286,9 @@ func (s UpdateStudioSessionMappingOutput) GoString() string { return s.String() } -// EBS volume specifications such as volume type, IOPS, and size (GiB) that -// will be requested for the EBS volume attached to an EC2 instance in the cluster. +// EBS volume specifications such as volume type, IOPS, size (GiB) and throughput +// (MiB/s) that are requested for the EBS volume attached to an EC2 instance +// in the cluster. type VolumeSpecification struct { _ struct{} `type:"structure"` @@ -18298,6 +18301,10 @@ type VolumeSpecification struct { // SizeInGB is a required field SizeInGB *int64 `type:"integer" required:"true"` + // The throughput, in mebibyte per second (MiB/s). This optional parameter can + // be a number from 125 - 1000 and is valid only for gp3 volumes. + Throughput *int64 `type:"integer"` + // The volume type. Volume types supported are gp2, io1, and standard. // // VolumeType is a required field @@ -18350,6 +18357,12 @@ func (s *VolumeSpecification) SetSizeInGB(v int64) *VolumeSpecification { return s } +// SetThroughput sets the Throughput field's value. +func (s *VolumeSpecification) SetThroughput(v int64) *VolumeSpecification { + s.Throughput = &v + return s +} + // SetVolumeType sets the VolumeType field's value. func (s *VolumeSpecification) SetVolumeType(v string) *VolumeSpecification { s.VolumeType = &v diff --git a/service/medialive/api.go b/service/medialive/api.go index 0ad3e35fc7..5299e17864 100644 --- a/service/medialive/api.go +++ b/service/medialive/api.go @@ -6625,6 +6625,10 @@ type AudioDescription struct { // ISO 639 language code specified by the input. LanguageCodeControl *string `locationName:"languageCodeControl" type:"string" enum:"AudioDescriptionLanguageCodeControl"` + // The name of this AudioDescription. Outputs will use this name to uniquely + // identify this AudioDescription. Description names should be unique within + // this Live Event. + // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` @@ -8879,6 +8883,10 @@ func (s CancelInputDeviceTransferOutput) GoString() string { type CaptionDescription struct { _ struct{} `type:"structure"` + // Indicates whether the caption track implements accessibility features such + // as written descriptions of spoken dialog, music, and sounds. + Accessibility *string `locationName:"accessibility" type:"string" enum:"AccessibilityType"` + // Specifies which input caption selector to use as a caption source when generating // output captions. This field should match a captionSelector name. // @@ -8942,6 +8950,12 @@ func (s *CaptionDescription) Validate() error { return nil } +// SetAccessibility sets the Accessibility field's value. +func (s *CaptionDescription) SetAccessibility(v string) *CaptionDescription { + s.Accessibility = &v + return s +} + // SetCaptionSelectorName sets the CaptionSelectorName field's value. func (s *CaptionDescription) SetCaptionSelectorName(v string) *CaptionDescription { s.CaptionSelectorName = &v @@ -11649,6 +11663,9 @@ type DeleteReservationOutput struct { Region *string `locationName:"region" type:"string"` + // The Renewal settings for Reservations + RenewalSettings *RenewalSettings `locationName:"renewalSettings" type:"structure"` + ReservationId *string `locationName:"reservationId" type:"string"` // Resource configuration (codec, resolution, bitrate, ...) @@ -11754,6 +11771,12 @@ func (s *DeleteReservationOutput) SetRegion(v string) *DeleteReservationOutput { return s } +// SetRenewalSettings sets the RenewalSettings field's value. +func (s *DeleteReservationOutput) SetRenewalSettings(v *RenewalSettings) *DeleteReservationOutput { + s.RenewalSettings = v + return s +} + // SetReservationId sets the ReservationId field's value. func (s *DeleteReservationOutput) SetReservationId(v string) *DeleteReservationOutput { s.ReservationId = &v @@ -13291,6 +13314,9 @@ type DescribeReservationOutput struct { Region *string `locationName:"region" type:"string"` + // The Renewal settings for Reservations + RenewalSettings *RenewalSettings `locationName:"renewalSettings" type:"structure"` + ReservationId *string `locationName:"reservationId" type:"string"` // Resource configuration (codec, resolution, bitrate, ...) @@ -13396,6 +13422,12 @@ func (s *DescribeReservationOutput) SetRegion(v string) *DescribeReservationOutp return s } +// SetRenewalSettings sets the RenewalSettings field's value. +func (s *DescribeReservationOutput) SetRenewalSettings(v *RenewalSettings) *DescribeReservationOutput { + s.RenewalSettings = v + return s +} + // SetReservationId sets the ReservationId field's value. func (s *DescribeReservationOutput) SetReservationId(v string) *DescribeReservationOutput { s.ReservationId = &v @@ -25359,6 +25391,9 @@ type PurchaseOfferingInput struct { // OfferingId is a required field OfferingId *string `location:"uri" locationName:"offeringId" type:"string" required:"true"` + // The Renewal settings for Reservations + RenewalSettings *RenewalSettings `locationName:"renewalSettings" type:"structure"` + RequestId *string `locationName:"requestId" type:"string" idempotencyToken:"true"` Start *string `locationName:"start" type:"string"` @@ -25399,6 +25434,11 @@ func (s *PurchaseOfferingInput) Validate() error { if s.OfferingId != nil && len(*s.OfferingId) < 1 { invalidParams.Add(request.NewErrParamMinLen("OfferingId", 1)) } + if s.RenewalSettings != nil { + if err := s.RenewalSettings.Validate(); err != nil { + invalidParams.AddNested("RenewalSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -25424,6 +25464,12 @@ func (s *PurchaseOfferingInput) SetOfferingId(v string) *PurchaseOfferingInput { return s } +// SetRenewalSettings sets the RenewalSettings field's value. +func (s *PurchaseOfferingInput) SetRenewalSettings(v *RenewalSettings) *PurchaseOfferingInput { + s.RenewalSettings = v + return s +} + // SetRequestId sets the RequestId field's value. func (s *PurchaseOfferingInput) SetRequestId(v string) *PurchaseOfferingInput { s.RequestId = &v @@ -25692,6 +25738,60 @@ func (s *RemixSettings) SetChannelsOut(v int64) *RemixSettings { return s } +// The Renewal settings for Reservations +type RenewalSettings struct { + _ struct{} `type:"structure"` + + // Automatic renewal status for the reservation + AutomaticRenewal *string `locationName:"automaticRenewal" type:"string" enum:"ReservationAutomaticRenewal"` + + // Count for the reservation renewal + RenewalCount *int64 `locationName:"renewalCount" min:"1" type:"integer"` +} + +// 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 RenewalSettings) 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 RenewalSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RenewalSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RenewalSettings"} + if s.RenewalCount != nil && *s.RenewalCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("RenewalCount", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutomaticRenewal sets the AutomaticRenewal field's value. +func (s *RenewalSettings) SetAutomaticRenewal(v string) *RenewalSettings { + s.AutomaticRenewal = &v + return s +} + +// SetRenewalCount sets the RenewalCount field's value. +func (s *RenewalSettings) SetRenewalCount(v int64) *RenewalSettings { + s.RenewalCount = &v + return s +} + // Reserved resources available to use type Reservation struct { _ struct{} `type:"structure"` @@ -25733,6 +25833,9 @@ type Reservation struct { // AWS region, e.g. 'us-west-2' Region *string `locationName:"region" type:"string"` + // Renewal settings for the reservation + RenewalSettings *RenewalSettings `locationName:"renewalSettings" type:"structure"` + // Unique reservation ID, e.g. '1234567' ReservationId *string `locationName:"reservationId" type:"string"` @@ -25842,6 +25945,12 @@ func (s *Reservation) SetRegion(v string) *Reservation { return s } +// SetRenewalSettings sets the RenewalSettings field's value. +func (s *Reservation) SetRenewalSettings(v *RenewalSettings) *Reservation { + s.RenewalSettings = v + return s +} + // SetReservationId sets the ReservationId field's value. func (s *Reservation) SetReservationId(v string) *Reservation { s.ReservationId = &v @@ -30157,6 +30266,9 @@ type UpdateReservationInput struct { Name *string `locationName:"name" type:"string"` + // The Renewal settings for Reservations + RenewalSettings *RenewalSettings `locationName:"renewalSettings" type:"structure"` + // ReservationId is a required field ReservationId *string `location:"uri" locationName:"reservationId" type:"string" required:"true"` } @@ -30188,6 +30300,11 @@ func (s *UpdateReservationInput) Validate() error { if s.ReservationId != nil && len(*s.ReservationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReservationId", 1)) } + if s.RenewalSettings != nil { + if err := s.RenewalSettings.Validate(); err != nil { + invalidParams.AddNested("RenewalSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -30201,6 +30318,12 @@ func (s *UpdateReservationInput) SetName(v string) *UpdateReservationInput { return s } +// SetRenewalSettings sets the RenewalSettings field's value. +func (s *UpdateReservationInput) SetRenewalSettings(v *RenewalSettings) *UpdateReservationInput { + s.RenewalSettings = v + return s +} + // SetReservationId sets the ReservationId field's value. func (s *UpdateReservationInput) SetReservationId(v string) *UpdateReservationInput { s.ReservationId = &v @@ -31258,6 +31381,23 @@ func AcceptHeader_Values() []string { } } +// Accessibility Type +const ( + // AccessibilityTypeDoesNotImplementAccessibilityFeatures is a AccessibilityType enum value + AccessibilityTypeDoesNotImplementAccessibilityFeatures = "DOES_NOT_IMPLEMENT_ACCESSIBILITY_FEATURES" + + // AccessibilityTypeImplementsAccessibilityFeatures is a AccessibilityType enum value + AccessibilityTypeImplementsAccessibilityFeatures = "IMPLEMENTS_ACCESSIBILITY_FEATURES" +) + +// AccessibilityType_Values returns all elements of the AccessibilityType enum +func AccessibilityType_Values() []string { + return []string{ + AccessibilityTypeDoesNotImplementAccessibilityFeatures, + AccessibilityTypeImplementsAccessibilityFeatures, + } +} + // Afd Signaling const ( // AfdSignalingAuto is a AfdSignaling enum value @@ -31778,6 +31918,9 @@ const ( // DeviceUpdateStatusNotUpToDate is a DeviceUpdateStatus enum value DeviceUpdateStatusNotUpToDate = "NOT_UP_TO_DATE" + + // DeviceUpdateStatusUpdating is a DeviceUpdateStatus enum value + DeviceUpdateStatusUpdating = "UPDATING" ) // DeviceUpdateStatus_Values returns all elements of the DeviceUpdateStatus enum @@ -31785,6 +31928,7 @@ func DeviceUpdateStatus_Values() []string { return []string{ DeviceUpdateStatusUpToDate, DeviceUpdateStatusNotUpToDate, + DeviceUpdateStatusUpdating, } } @@ -35257,6 +35401,27 @@ func PreferredChannelPipeline_Values() []string { } } +// Automatic Renewal Status for Reservation +const ( + // ReservationAutomaticRenewalDisabled is a ReservationAutomaticRenewal enum value + ReservationAutomaticRenewalDisabled = "DISABLED" + + // ReservationAutomaticRenewalEnabled is a ReservationAutomaticRenewal enum value + ReservationAutomaticRenewalEnabled = "ENABLED" + + // ReservationAutomaticRenewalUnavailable is a ReservationAutomaticRenewal enum value + ReservationAutomaticRenewalUnavailable = "UNAVAILABLE" +) + +// ReservationAutomaticRenewal_Values returns all elements of the ReservationAutomaticRenewal enum +func ReservationAutomaticRenewal_Values() []string { + return []string{ + ReservationAutomaticRenewalDisabled, + ReservationAutomaticRenewalEnabled, + ReservationAutomaticRenewalUnavailable, + } +} + // Codec, 'MPEG2', 'AVC', 'HEVC', or 'AUDIO' const ( // ReservationCodecMpeg2 is a ReservationCodec enum value diff --git a/service/redshiftserverless/api.go b/service/redshiftserverless/api.go new file mode 100644 index 0000000000..13353f0509 --- /dev/null +++ b/service/redshiftserverless/api.go @@ -0,0 +1,9457 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package redshiftserverless + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +const opConvertRecoveryPointToSnapshot = "ConvertRecoveryPointToSnapshot" + +// ConvertRecoveryPointToSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the ConvertRecoveryPointToSnapshot 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 ConvertRecoveryPointToSnapshot for more information on using the ConvertRecoveryPointToSnapshot +// 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 ConvertRecoveryPointToSnapshotRequest method. +// req, resp := client.ConvertRecoveryPointToSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ConvertRecoveryPointToSnapshot +func (c *RedshiftServerless) ConvertRecoveryPointToSnapshotRequest(input *ConvertRecoveryPointToSnapshotInput) (req *request.Request, output *ConvertRecoveryPointToSnapshotOutput) { + op := &request.Operation{ + Name: opConvertRecoveryPointToSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ConvertRecoveryPointToSnapshotInput{} + } + + output = &ConvertRecoveryPointToSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// ConvertRecoveryPointToSnapshot API operation for Redshift Serverless. +// +// Converts a recovery point to a snapshot. For more information about recovery +// points and snapshots, see Working with snapshots and recovery points (https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation ConvertRecoveryPointToSnapshot for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ServiceQuotaExceededException +// The service limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ConvertRecoveryPointToSnapshot +func (c *RedshiftServerless) ConvertRecoveryPointToSnapshot(input *ConvertRecoveryPointToSnapshotInput) (*ConvertRecoveryPointToSnapshotOutput, error) { + req, out := c.ConvertRecoveryPointToSnapshotRequest(input) + return out, req.Send() +} + +// ConvertRecoveryPointToSnapshotWithContext is the same as ConvertRecoveryPointToSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See ConvertRecoveryPointToSnapshot 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 *RedshiftServerless) ConvertRecoveryPointToSnapshotWithContext(ctx aws.Context, input *ConvertRecoveryPointToSnapshotInput, opts ...request.Option) (*ConvertRecoveryPointToSnapshotOutput, error) { + req, out := c.ConvertRecoveryPointToSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateEndpointAccess = "CreateEndpointAccess" + +// CreateEndpointAccessRequest generates a "aws/request.Request" representing the +// client's request for the CreateEndpointAccess 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 CreateEndpointAccess for more information on using the CreateEndpointAccess +// 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 CreateEndpointAccessRequest method. +// req, resp := client.CreateEndpointAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateEndpointAccess +func (c *RedshiftServerless) CreateEndpointAccessRequest(input *CreateEndpointAccessInput) (req *request.Request, output *CreateEndpointAccessOutput) { + op := &request.Operation{ + Name: opCreateEndpointAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateEndpointAccessInput{} + } + + output = &CreateEndpointAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateEndpointAccess API operation for Redshift Serverless. +// +// Creates an Amazon Redshift Serverless managed VPC endpoint. +// +// 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 Redshift Serverless's +// API operation CreateEndpointAccess for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ServiceQuotaExceededException +// The service limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateEndpointAccess +func (c *RedshiftServerless) CreateEndpointAccess(input *CreateEndpointAccessInput) (*CreateEndpointAccessOutput, error) { + req, out := c.CreateEndpointAccessRequest(input) + return out, req.Send() +} + +// CreateEndpointAccessWithContext is the same as CreateEndpointAccess with the addition of +// the ability to pass a context and additional request options. +// +// See CreateEndpointAccess 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 *RedshiftServerless) CreateEndpointAccessWithContext(ctx aws.Context, input *CreateEndpointAccessInput, opts ...request.Option) (*CreateEndpointAccessOutput, error) { + req, out := c.CreateEndpointAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateNamespace = "CreateNamespace" + +// CreateNamespaceRequest generates a "aws/request.Request" representing the +// client's request for the CreateNamespace 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 CreateNamespace for more information on using the CreateNamespace +// 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 CreateNamespaceRequest method. +// req, resp := client.CreateNamespaceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateNamespace +func (c *RedshiftServerless) CreateNamespaceRequest(input *CreateNamespaceInput) (req *request.Request, output *CreateNamespaceOutput) { + op := &request.Operation{ + Name: opCreateNamespace, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateNamespaceInput{} + } + + output = &CreateNamespaceOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateNamespace API operation for Redshift Serverless. +// +// Creates a namespace in Amazon Redshift Serverless. +// +// 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 Redshift Serverless's +// API operation CreateNamespace for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * TooManyTagsException +// The request exceeded the number of tags allowed for a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateNamespace +func (c *RedshiftServerless) CreateNamespace(input *CreateNamespaceInput) (*CreateNamespaceOutput, error) { + req, out := c.CreateNamespaceRequest(input) + return out, req.Send() +} + +// CreateNamespaceWithContext is the same as CreateNamespace with the addition of +// the ability to pass a context and additional request options. +// +// See CreateNamespace 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 *RedshiftServerless) CreateNamespaceWithContext(ctx aws.Context, input *CreateNamespaceInput, opts ...request.Option) (*CreateNamespaceOutput, error) { + req, out := c.CreateNamespaceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSnapshot = "CreateSnapshot" + +// CreateSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CreateSnapshot 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 CreateSnapshot for more information on using the CreateSnapshot +// 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 CreateSnapshotRequest method. +// req, resp := client.CreateSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateSnapshot +func (c *RedshiftServerless) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) { + op := &request.Operation{ + Name: opCreateSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateSnapshotInput{} + } + + output = &CreateSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSnapshot API operation for Redshift Serverless. +// +// Creates a snapshot of all databases in a namespace. For more information +// about snapshots, see Working with snapshots and recovery points (https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation CreateSnapshot for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ServiceQuotaExceededException +// The service limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateSnapshot +func (c *RedshiftServerless) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { + req, out := c.CreateSnapshotRequest(input) + return out, req.Send() +} + +// CreateSnapshotWithContext is the same as CreateSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSnapshot 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 *RedshiftServerless) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*CreateSnapshotOutput, error) { + req, out := c.CreateSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateUsageLimit = "CreateUsageLimit" + +// CreateUsageLimitRequest generates a "aws/request.Request" representing the +// client's request for the CreateUsageLimit 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 CreateUsageLimit for more information on using the CreateUsageLimit +// 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 CreateUsageLimitRequest method. +// req, resp := client.CreateUsageLimitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateUsageLimit +func (c *RedshiftServerless) CreateUsageLimitRequest(input *CreateUsageLimitInput) (req *request.Request, output *CreateUsageLimitOutput) { + op := &request.Operation{ + Name: opCreateUsageLimit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateUsageLimitInput{} + } + + output = &CreateUsageLimitOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateUsageLimit API operation for Redshift Serverless. +// +// Creates a usage limit for a specified Amazon Redshift Serverless usage type. +// The usage limit is identified by the returned usage limit identifier. +// +// 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 Redshift Serverless's +// API operation CreateUsageLimit for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ServiceQuotaExceededException +// The service limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateUsageLimit +func (c *RedshiftServerless) CreateUsageLimit(input *CreateUsageLimitInput) (*CreateUsageLimitOutput, error) { + req, out := c.CreateUsageLimitRequest(input) + return out, req.Send() +} + +// CreateUsageLimitWithContext is the same as CreateUsageLimit with the addition of +// the ability to pass a context and additional request options. +// +// See CreateUsageLimit 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 *RedshiftServerless) CreateUsageLimitWithContext(ctx aws.Context, input *CreateUsageLimitInput, opts ...request.Option) (*CreateUsageLimitOutput, error) { + req, out := c.CreateUsageLimitRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateWorkgroup = "CreateWorkgroup" + +// CreateWorkgroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorkgroup 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 CreateWorkgroup for more information on using the CreateWorkgroup +// 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 CreateWorkgroupRequest method. +// req, resp := client.CreateWorkgroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateWorkgroup +func (c *RedshiftServerless) CreateWorkgroupRequest(input *CreateWorkgroupInput) (req *request.Request, output *CreateWorkgroupOutput) { + op := &request.Operation{ + Name: opCreateWorkgroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateWorkgroupInput{} + } + + output = &CreateWorkgroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWorkgroup API operation for Redshift Serverless. +// +// Creates an workgroup in Amazon Redshift Serverless. +// +// 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 Redshift Serverless's +// API operation CreateWorkgroup for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * InsufficientCapacityException +// There is an insufficient capacity to perform the action. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * TooManyTagsException +// The request exceeded the number of tags allowed for a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/CreateWorkgroup +func (c *RedshiftServerless) CreateWorkgroup(input *CreateWorkgroupInput) (*CreateWorkgroupOutput, error) { + req, out := c.CreateWorkgroupRequest(input) + return out, req.Send() +} + +// CreateWorkgroupWithContext is the same as CreateWorkgroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateWorkgroup 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 *RedshiftServerless) CreateWorkgroupWithContext(ctx aws.Context, input *CreateWorkgroupInput, opts ...request.Option) (*CreateWorkgroupOutput, error) { + req, out := c.CreateWorkgroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteEndpointAccess = "DeleteEndpointAccess" + +// DeleteEndpointAccessRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEndpointAccess 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 DeleteEndpointAccess for more information on using the DeleteEndpointAccess +// 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 DeleteEndpointAccessRequest method. +// req, resp := client.DeleteEndpointAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteEndpointAccess +func (c *RedshiftServerless) DeleteEndpointAccessRequest(input *DeleteEndpointAccessInput) (req *request.Request, output *DeleteEndpointAccessOutput) { + op := &request.Operation{ + Name: opDeleteEndpointAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteEndpointAccessInput{} + } + + output = &DeleteEndpointAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteEndpointAccess API operation for Redshift Serverless. +// +// Deletes an Amazon Redshift Serverless managed VPC endpoint. +// +// 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 Redshift Serverless's +// API operation DeleteEndpointAccess for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteEndpointAccess +func (c *RedshiftServerless) DeleteEndpointAccess(input *DeleteEndpointAccessInput) (*DeleteEndpointAccessOutput, error) { + req, out := c.DeleteEndpointAccessRequest(input) + return out, req.Send() +} + +// DeleteEndpointAccessWithContext is the same as DeleteEndpointAccess with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteEndpointAccess 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 *RedshiftServerless) DeleteEndpointAccessWithContext(ctx aws.Context, input *DeleteEndpointAccessInput, opts ...request.Option) (*DeleteEndpointAccessOutput, error) { + req, out := c.DeleteEndpointAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteNamespace = "DeleteNamespace" + +// DeleteNamespaceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteNamespace 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 DeleteNamespace for more information on using the DeleteNamespace +// 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 DeleteNamespaceRequest method. +// req, resp := client.DeleteNamespaceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteNamespace +func (c *RedshiftServerless) DeleteNamespaceRequest(input *DeleteNamespaceInput) (req *request.Request, output *DeleteNamespaceOutput) { + op := &request.Operation{ + Name: opDeleteNamespace, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteNamespaceInput{} + } + + output = &DeleteNamespaceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteNamespace API operation for Redshift Serverless. +// +// Deletes a namespace from Amazon Redshift Serverless. Before you delete the +// namespace, you can create a final snapshot that has all of the data within +// the namespace. +// +// 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 Redshift Serverless's +// API operation DeleteNamespace for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteNamespace +func (c *RedshiftServerless) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNamespaceOutput, error) { + req, out := c.DeleteNamespaceRequest(input) + return out, req.Send() +} + +// DeleteNamespaceWithContext is the same as DeleteNamespace with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteNamespace 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 *RedshiftServerless) DeleteNamespaceWithContext(ctx aws.Context, input *DeleteNamespaceInput, opts ...request.Option) (*DeleteNamespaceOutput, error) { + req, out := c.DeleteNamespaceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteResourcePolicy = "DeleteResourcePolicy" + +// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResourcePolicy 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 DeleteResourcePolicy for more information on using the DeleteResourcePolicy +// 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 DeleteResourcePolicyRequest method. +// req, resp := client.DeleteResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteResourcePolicy +func (c *RedshiftServerless) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) { + op := &request.Operation{ + Name: opDeleteResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteResourcePolicyInput{} + } + + output = &DeleteResourcePolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteResourcePolicy API operation for Redshift Serverless. +// +// Deletes the specified resource policy. +// +// 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 Redshift Serverless's +// API operation DeleteResourcePolicy for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteResourcePolicy +func (c *RedshiftServerless) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + return out, req.Send() +} + +// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResourcePolicy 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 *RedshiftServerless) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSnapshot = "DeleteSnapshot" + +// DeleteSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSnapshot 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 DeleteSnapshot for more information on using the DeleteSnapshot +// 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 DeleteSnapshotRequest method. +// req, resp := client.DeleteSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteSnapshot +func (c *RedshiftServerless) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) { + op := &request.Operation{ + Name: opDeleteSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSnapshotInput{} + } + + output = &DeleteSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSnapshot API operation for Redshift Serverless. +// +// Deletes a snapshot from Amazon Redshift Serverless. +// +// 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 Redshift Serverless's +// API operation DeleteSnapshot for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteSnapshot +func (c *RedshiftServerless) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { + req, out := c.DeleteSnapshotRequest(input) + return out, req.Send() +} + +// DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSnapshot 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 *RedshiftServerless) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error) { + req, out := c.DeleteSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteUsageLimit = "DeleteUsageLimit" + +// DeleteUsageLimitRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUsageLimit 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 DeleteUsageLimit for more information on using the DeleteUsageLimit +// 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 DeleteUsageLimitRequest method. +// req, resp := client.DeleteUsageLimitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteUsageLimit +func (c *RedshiftServerless) DeleteUsageLimitRequest(input *DeleteUsageLimitInput) (req *request.Request, output *DeleteUsageLimitOutput) { + op := &request.Operation{ + Name: opDeleteUsageLimit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteUsageLimitInput{} + } + + output = &DeleteUsageLimitOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteUsageLimit API operation for Redshift Serverless. +// +// Deletes a usage limit from Amazon Redshift Serverless. +// +// 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 Redshift Serverless's +// API operation DeleteUsageLimit for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteUsageLimit +func (c *RedshiftServerless) DeleteUsageLimit(input *DeleteUsageLimitInput) (*DeleteUsageLimitOutput, error) { + req, out := c.DeleteUsageLimitRequest(input) + return out, req.Send() +} + +// DeleteUsageLimitWithContext is the same as DeleteUsageLimit with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteUsageLimit 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 *RedshiftServerless) DeleteUsageLimitWithContext(ctx aws.Context, input *DeleteUsageLimitInput, opts ...request.Option) (*DeleteUsageLimitOutput, error) { + req, out := c.DeleteUsageLimitRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteWorkgroup = "DeleteWorkgroup" + +// DeleteWorkgroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkgroup 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 DeleteWorkgroup for more information on using the DeleteWorkgroup +// 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 DeleteWorkgroupRequest method. +// req, resp := client.DeleteWorkgroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteWorkgroup +func (c *RedshiftServerless) DeleteWorkgroupRequest(input *DeleteWorkgroupInput) (req *request.Request, output *DeleteWorkgroupOutput) { + op := &request.Operation{ + Name: opDeleteWorkgroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteWorkgroupInput{} + } + + output = &DeleteWorkgroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteWorkgroup API operation for Redshift Serverless. +// +// Deletes a workgroup. +// +// 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 Redshift Serverless's +// API operation DeleteWorkgroup for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/DeleteWorkgroup +func (c *RedshiftServerless) DeleteWorkgroup(input *DeleteWorkgroupInput) (*DeleteWorkgroupOutput, error) { + req, out := c.DeleteWorkgroupRequest(input) + return out, req.Send() +} + +// DeleteWorkgroupWithContext is the same as DeleteWorkgroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorkgroup 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 *RedshiftServerless) DeleteWorkgroupWithContext(ctx aws.Context, input *DeleteWorkgroupInput, opts ...request.Option) (*DeleteWorkgroupOutput, error) { + req, out := c.DeleteWorkgroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetCredentials = "GetCredentials" + +// GetCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the GetCredentials 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 GetCredentials for more information on using the GetCredentials +// 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 GetCredentialsRequest method. +// req, resp := client.GetCredentialsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetCredentials +func (c *RedshiftServerless) GetCredentialsRequest(input *GetCredentialsInput) (req *request.Request, output *GetCredentialsOutput) { + op := &request.Operation{ + Name: opGetCredentials, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetCredentialsInput{} + } + + output = &GetCredentialsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCredentials API operation for Redshift Serverless. +// +// Returns a database user name and temporary password with temporary authorization +// to log in to Amazon Redshift Serverless. +// +// By default, the temporary credentials expire in 900 seconds. You can optionally +// specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 +// minutes). +// +//

The Identity and Access Management (IAM) user or role that runs GetCredentials +// must have an IAM policy attached that allows access to all necessary actions +// and resources.

If the DbName parameter is specified, +// the IAM policy must allow access to the resource dbname for the specified +// database name.

+// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation GetCredentials for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetCredentials +func (c *RedshiftServerless) GetCredentials(input *GetCredentialsInput) (*GetCredentialsOutput, error) { + req, out := c.GetCredentialsRequest(input) + return out, req.Send() +} + +// GetCredentialsWithContext is the same as GetCredentials with the addition of +// the ability to pass a context and additional request options. +// +// See GetCredentials 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 *RedshiftServerless) GetCredentialsWithContext(ctx aws.Context, input *GetCredentialsInput, opts ...request.Option) (*GetCredentialsOutput, error) { + req, out := c.GetCredentialsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetEndpointAccess = "GetEndpointAccess" + +// GetEndpointAccessRequest generates a "aws/request.Request" representing the +// client's request for the GetEndpointAccess 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 GetEndpointAccess for more information on using the GetEndpointAccess +// 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 GetEndpointAccessRequest method. +// req, resp := client.GetEndpointAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetEndpointAccess +func (c *RedshiftServerless) GetEndpointAccessRequest(input *GetEndpointAccessInput) (req *request.Request, output *GetEndpointAccessOutput) { + op := &request.Operation{ + Name: opGetEndpointAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetEndpointAccessInput{} + } + + output = &GetEndpointAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetEndpointAccess API operation for Redshift Serverless. +// +// Returns information, such as the name, about a VPC endpoint. +// +// 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 Redshift Serverless's +// API operation GetEndpointAccess for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetEndpointAccess +func (c *RedshiftServerless) GetEndpointAccess(input *GetEndpointAccessInput) (*GetEndpointAccessOutput, error) { + req, out := c.GetEndpointAccessRequest(input) + return out, req.Send() +} + +// GetEndpointAccessWithContext is the same as GetEndpointAccess with the addition of +// the ability to pass a context and additional request options. +// +// See GetEndpointAccess 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 *RedshiftServerless) GetEndpointAccessWithContext(ctx aws.Context, input *GetEndpointAccessInput, opts ...request.Option) (*GetEndpointAccessOutput, error) { + req, out := c.GetEndpointAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetNamespace = "GetNamespace" + +// GetNamespaceRequest generates a "aws/request.Request" representing the +// client's request for the GetNamespace 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 GetNamespace for more information on using the GetNamespace +// 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 GetNamespaceRequest method. +// req, resp := client.GetNamespaceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetNamespace +func (c *RedshiftServerless) GetNamespaceRequest(input *GetNamespaceInput) (req *request.Request, output *GetNamespaceOutput) { + op := &request.Operation{ + Name: opGetNamespace, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetNamespaceInput{} + } + + output = &GetNamespaceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetNamespace API operation for Redshift Serverless. +// +// Returns information about a namespace in Amazon Redshift Serverless. +// +// 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 Redshift Serverless's +// API operation GetNamespace for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetNamespace +func (c *RedshiftServerless) GetNamespace(input *GetNamespaceInput) (*GetNamespaceOutput, error) { + req, out := c.GetNamespaceRequest(input) + return out, req.Send() +} + +// GetNamespaceWithContext is the same as GetNamespace with the addition of +// the ability to pass a context and additional request options. +// +// See GetNamespace 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 *RedshiftServerless) GetNamespaceWithContext(ctx aws.Context, input *GetNamespaceInput, opts ...request.Option) (*GetNamespaceOutput, error) { + req, out := c.GetNamespaceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRecoveryPoint = "GetRecoveryPoint" + +// GetRecoveryPointRequest generates a "aws/request.Request" representing the +// client's request for the GetRecoveryPoint 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 GetRecoveryPoint for more information on using the GetRecoveryPoint +// 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 GetRecoveryPointRequest method. +// req, resp := client.GetRecoveryPointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetRecoveryPoint +func (c *RedshiftServerless) GetRecoveryPointRequest(input *GetRecoveryPointInput) (req *request.Request, output *GetRecoveryPointOutput) { + op := &request.Operation{ + Name: opGetRecoveryPoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRecoveryPointInput{} + } + + output = &GetRecoveryPointOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRecoveryPoint API operation for Redshift Serverless. +// +// Returns information about a recovery point. +// +// 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 Redshift Serverless's +// API operation GetRecoveryPoint for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetRecoveryPoint +func (c *RedshiftServerless) GetRecoveryPoint(input *GetRecoveryPointInput) (*GetRecoveryPointOutput, error) { + req, out := c.GetRecoveryPointRequest(input) + return out, req.Send() +} + +// GetRecoveryPointWithContext is the same as GetRecoveryPoint with the addition of +// the ability to pass a context and additional request options. +// +// See GetRecoveryPoint 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 *RedshiftServerless) GetRecoveryPointWithContext(ctx aws.Context, input *GetRecoveryPointInput, opts ...request.Option) (*GetRecoveryPointOutput, error) { + req, out := c.GetRecoveryPointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResourcePolicy = "GetResourcePolicy" + +// GetResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetResourcePolicy 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 GetResourcePolicy for more information on using the GetResourcePolicy +// 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 GetResourcePolicyRequest method. +// req, resp := client.GetResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetResourcePolicy +func (c *RedshiftServerless) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req *request.Request, output *GetResourcePolicyOutput) { + op := &request.Operation{ + Name: opGetResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResourcePolicyInput{} + } + + output = &GetResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourcePolicy API operation for Redshift Serverless. +// +// Returns a resource policy. +// +// 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 Redshift Serverless's +// API operation GetResourcePolicy for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetResourcePolicy +func (c *RedshiftServerless) GetResourcePolicy(input *GetResourcePolicyInput) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + return out, req.Send() +} + +// GetResourcePolicyWithContext is the same as GetResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourcePolicy 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 *RedshiftServerless) GetResourcePolicyWithContext(ctx aws.Context, input *GetResourcePolicyInput, opts ...request.Option) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetSnapshot = "GetSnapshot" + +// GetSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the GetSnapshot 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 GetSnapshot for more information on using the GetSnapshot +// 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 GetSnapshotRequest method. +// req, resp := client.GetSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetSnapshot +func (c *RedshiftServerless) GetSnapshotRequest(input *GetSnapshotInput) (req *request.Request, output *GetSnapshotOutput) { + op := &request.Operation{ + Name: opGetSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetSnapshotInput{} + } + + output = &GetSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSnapshot API operation for Redshift Serverless. +// +// Returns information about a specific snapshot. +// +// 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 Redshift Serverless's +// API operation GetSnapshot for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetSnapshot +func (c *RedshiftServerless) GetSnapshot(input *GetSnapshotInput) (*GetSnapshotOutput, error) { + req, out := c.GetSnapshotRequest(input) + return out, req.Send() +} + +// GetSnapshotWithContext is the same as GetSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See GetSnapshot 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 *RedshiftServerless) GetSnapshotWithContext(ctx aws.Context, input *GetSnapshotInput, opts ...request.Option) (*GetSnapshotOutput, error) { + req, out := c.GetSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetUsageLimit = "GetUsageLimit" + +// GetUsageLimitRequest generates a "aws/request.Request" representing the +// client's request for the GetUsageLimit 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 GetUsageLimit for more information on using the GetUsageLimit +// 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 GetUsageLimitRequest method. +// req, resp := client.GetUsageLimitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetUsageLimit +func (c *RedshiftServerless) GetUsageLimitRequest(input *GetUsageLimitInput) (req *request.Request, output *GetUsageLimitOutput) { + op := &request.Operation{ + Name: opGetUsageLimit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetUsageLimitInput{} + } + + output = &GetUsageLimitOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetUsageLimit API operation for Redshift Serverless. +// +// Returns information about a usage limit. +// +// 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 Redshift Serverless's +// API operation GetUsageLimit for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetUsageLimit +func (c *RedshiftServerless) GetUsageLimit(input *GetUsageLimitInput) (*GetUsageLimitOutput, error) { + req, out := c.GetUsageLimitRequest(input) + return out, req.Send() +} + +// GetUsageLimitWithContext is the same as GetUsageLimit with the addition of +// the ability to pass a context and additional request options. +// +// See GetUsageLimit 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 *RedshiftServerless) GetUsageLimitWithContext(ctx aws.Context, input *GetUsageLimitInput, opts ...request.Option) (*GetUsageLimitOutput, error) { + req, out := c.GetUsageLimitRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetWorkgroup = "GetWorkgroup" + +// GetWorkgroupRequest generates a "aws/request.Request" representing the +// client's request for the GetWorkgroup 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 GetWorkgroup for more information on using the GetWorkgroup +// 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 GetWorkgroupRequest method. +// req, resp := client.GetWorkgroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetWorkgroup +func (c *RedshiftServerless) GetWorkgroupRequest(input *GetWorkgroupInput) (req *request.Request, output *GetWorkgroupOutput) { + op := &request.Operation{ + Name: opGetWorkgroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetWorkgroupInput{} + } + + output = &GetWorkgroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWorkgroup API operation for Redshift Serverless. +// +// Returns information about a specific workgroup. +// +// 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 Redshift Serverless's +// API operation GetWorkgroup for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/GetWorkgroup +func (c *RedshiftServerless) GetWorkgroup(input *GetWorkgroupInput) (*GetWorkgroupOutput, error) { + req, out := c.GetWorkgroupRequest(input) + return out, req.Send() +} + +// GetWorkgroupWithContext is the same as GetWorkgroup with the addition of +// the ability to pass a context and additional request options. +// +// See GetWorkgroup 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 *RedshiftServerless) GetWorkgroupWithContext(ctx aws.Context, input *GetWorkgroupInput, opts ...request.Option) (*GetWorkgroupOutput, error) { + req, out := c.GetWorkgroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListEndpointAccess = "ListEndpointAccess" + +// ListEndpointAccessRequest generates a "aws/request.Request" representing the +// client's request for the ListEndpointAccess 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 ListEndpointAccess for more information on using the ListEndpointAccess +// 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 ListEndpointAccessRequest method. +// req, resp := client.ListEndpointAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListEndpointAccess +func (c *RedshiftServerless) ListEndpointAccessRequest(input *ListEndpointAccessInput) (req *request.Request, output *ListEndpointAccessOutput) { + op := &request.Operation{ + Name: opListEndpointAccess, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListEndpointAccessInput{} + } + + output = &ListEndpointAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEndpointAccess API operation for Redshift Serverless. +// +// Returns an array of EndpointAccess objects and relevant information. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation ListEndpointAccess for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListEndpointAccess +func (c *RedshiftServerless) ListEndpointAccess(input *ListEndpointAccessInput) (*ListEndpointAccessOutput, error) { + req, out := c.ListEndpointAccessRequest(input) + return out, req.Send() +} + +// ListEndpointAccessWithContext is the same as ListEndpointAccess with the addition of +// the ability to pass a context and additional request options. +// +// See ListEndpointAccess 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 *RedshiftServerless) ListEndpointAccessWithContext(ctx aws.Context, input *ListEndpointAccessInput, opts ...request.Option) (*ListEndpointAccessOutput, error) { + req, out := c.ListEndpointAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListEndpointAccessPages iterates over the pages of a ListEndpointAccess operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEndpointAccess 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 ListEndpointAccess operation. +// pageNum := 0 +// err := client.ListEndpointAccessPages(params, +// func(page *redshiftserverless.ListEndpointAccessOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RedshiftServerless) ListEndpointAccessPages(input *ListEndpointAccessInput, fn func(*ListEndpointAccessOutput, bool) bool) error { + return c.ListEndpointAccessPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListEndpointAccessPagesWithContext same as ListEndpointAccessPages 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 *RedshiftServerless) ListEndpointAccessPagesWithContext(ctx aws.Context, input *ListEndpointAccessInput, fn func(*ListEndpointAccessOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEndpointAccessInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEndpointAccessRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListEndpointAccessOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListNamespaces = "ListNamespaces" + +// ListNamespacesRequest generates a "aws/request.Request" representing the +// client's request for the ListNamespaces 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 ListNamespaces for more information on using the ListNamespaces +// 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 ListNamespacesRequest method. +// req, resp := client.ListNamespacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListNamespaces +func (c *RedshiftServerless) ListNamespacesRequest(input *ListNamespacesInput) (req *request.Request, output *ListNamespacesOutput) { + op := &request.Operation{ + Name: opListNamespaces, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListNamespacesInput{} + } + + output = &ListNamespacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListNamespaces API operation for Redshift Serverless. +// +// Returns information about a list of specified namespaces. +// +// 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 Redshift Serverless's +// API operation ListNamespaces for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListNamespaces +func (c *RedshiftServerless) ListNamespaces(input *ListNamespacesInput) (*ListNamespacesOutput, error) { + req, out := c.ListNamespacesRequest(input) + return out, req.Send() +} + +// ListNamespacesWithContext is the same as ListNamespaces with the addition of +// the ability to pass a context and additional request options. +// +// See ListNamespaces 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 *RedshiftServerless) ListNamespacesWithContext(ctx aws.Context, input *ListNamespacesInput, opts ...request.Option) (*ListNamespacesOutput, error) { + req, out := c.ListNamespacesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListNamespacesPages iterates over the pages of a ListNamespaces operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListNamespaces 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 ListNamespaces operation. +// pageNum := 0 +// err := client.ListNamespacesPages(params, +// func(page *redshiftserverless.ListNamespacesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RedshiftServerless) ListNamespacesPages(input *ListNamespacesInput, fn func(*ListNamespacesOutput, bool) bool) error { + return c.ListNamespacesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListNamespacesPagesWithContext same as ListNamespacesPages 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 *RedshiftServerless) ListNamespacesPagesWithContext(ctx aws.Context, input *ListNamespacesInput, fn func(*ListNamespacesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListNamespacesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListNamespacesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListNamespacesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListRecoveryPoints = "ListRecoveryPoints" + +// ListRecoveryPointsRequest generates a "aws/request.Request" representing the +// client's request for the ListRecoveryPoints 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 ListRecoveryPoints for more information on using the ListRecoveryPoints +// 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 ListRecoveryPointsRequest method. +// req, resp := client.ListRecoveryPointsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListRecoveryPoints +func (c *RedshiftServerless) ListRecoveryPointsRequest(input *ListRecoveryPointsInput) (req *request.Request, output *ListRecoveryPointsOutput) { + op := &request.Operation{ + Name: opListRecoveryPoints, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListRecoveryPointsInput{} + } + + output = &ListRecoveryPointsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRecoveryPoints API operation for Redshift Serverless. +// +// Returns an array of recovery points. +// +// 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 Redshift Serverless's +// API operation ListRecoveryPoints for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListRecoveryPoints +func (c *RedshiftServerless) ListRecoveryPoints(input *ListRecoveryPointsInput) (*ListRecoveryPointsOutput, error) { + req, out := c.ListRecoveryPointsRequest(input) + return out, req.Send() +} + +// ListRecoveryPointsWithContext is the same as ListRecoveryPoints with the addition of +// the ability to pass a context and additional request options. +// +// See ListRecoveryPoints 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 *RedshiftServerless) ListRecoveryPointsWithContext(ctx aws.Context, input *ListRecoveryPointsInput, opts ...request.Option) (*ListRecoveryPointsOutput, error) { + req, out := c.ListRecoveryPointsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListRecoveryPointsPages iterates over the pages of a ListRecoveryPoints operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListRecoveryPoints 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 ListRecoveryPoints operation. +// pageNum := 0 +// err := client.ListRecoveryPointsPages(params, +// func(page *redshiftserverless.ListRecoveryPointsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RedshiftServerless) ListRecoveryPointsPages(input *ListRecoveryPointsInput, fn func(*ListRecoveryPointsOutput, bool) bool) error { + return c.ListRecoveryPointsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListRecoveryPointsPagesWithContext same as ListRecoveryPointsPages 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 *RedshiftServerless) ListRecoveryPointsPagesWithContext(ctx aws.Context, input *ListRecoveryPointsInput, fn func(*ListRecoveryPointsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListRecoveryPointsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListRecoveryPointsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListRecoveryPointsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSnapshots = "ListSnapshots" + +// ListSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the ListSnapshots 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 ListSnapshots for more information on using the ListSnapshots +// 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 ListSnapshotsRequest method. +// req, resp := client.ListSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListSnapshots +func (c *RedshiftServerless) ListSnapshotsRequest(input *ListSnapshotsInput) (req *request.Request, output *ListSnapshotsOutput) { + op := &request.Operation{ + Name: opListSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSnapshotsInput{} + } + + output = &ListSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSnapshots API operation for Redshift Serverless. +// +// Returns a list of snapshots. +// +// 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 Redshift Serverless's +// API operation ListSnapshots for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListSnapshots +func (c *RedshiftServerless) ListSnapshots(input *ListSnapshotsInput) (*ListSnapshotsOutput, error) { + req, out := c.ListSnapshotsRequest(input) + return out, req.Send() +} + +// ListSnapshotsWithContext is the same as ListSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See ListSnapshots 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 *RedshiftServerless) ListSnapshotsWithContext(ctx aws.Context, input *ListSnapshotsInput, opts ...request.Option) (*ListSnapshotsOutput, error) { + req, out := c.ListSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSnapshotsPages iterates over the pages of a ListSnapshots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSnapshots 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 ListSnapshots operation. +// pageNum := 0 +// err := client.ListSnapshotsPages(params, +// func(page *redshiftserverless.ListSnapshotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RedshiftServerless) ListSnapshotsPages(input *ListSnapshotsInput, fn func(*ListSnapshotsOutput, bool) bool) error { + return c.ListSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSnapshotsPagesWithContext same as ListSnapshotsPages 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 *RedshiftServerless) ListSnapshotsPagesWithContext(ctx aws.Context, input *ListSnapshotsInput, fn func(*ListSnapshotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSnapshotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSnapshotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSnapshotsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListTagsForResource +func (c *RedshiftServerless) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Redshift Serverless. +// +// Lists the tags assigned to a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListTagsForResource +func (c *RedshiftServerless) 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 *RedshiftServerless) 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 opListUsageLimits = "ListUsageLimits" + +// ListUsageLimitsRequest generates a "aws/request.Request" representing the +// client's request for the ListUsageLimits 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 ListUsageLimits for more information on using the ListUsageLimits +// 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 ListUsageLimitsRequest method. +// req, resp := client.ListUsageLimitsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListUsageLimits +func (c *RedshiftServerless) ListUsageLimitsRequest(input *ListUsageLimitsInput) (req *request.Request, output *ListUsageLimitsOutput) { + op := &request.Operation{ + Name: opListUsageLimits, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListUsageLimitsInput{} + } + + output = &ListUsageLimitsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsageLimits API operation for Redshift Serverless. +// +// Lists all usage limits within Amazon Redshift Serverless. +// +// 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 Redshift Serverless's +// API operation ListUsageLimits for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * InvalidPaginationException +// The provided pagination token is invalid. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListUsageLimits +func (c *RedshiftServerless) ListUsageLimits(input *ListUsageLimitsInput) (*ListUsageLimitsOutput, error) { + req, out := c.ListUsageLimitsRequest(input) + return out, req.Send() +} + +// ListUsageLimitsWithContext is the same as ListUsageLimits with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsageLimits 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 *RedshiftServerless) ListUsageLimitsWithContext(ctx aws.Context, input *ListUsageLimitsInput, opts ...request.Option) (*ListUsageLimitsOutput, error) { + req, out := c.ListUsageLimitsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListUsageLimitsPages iterates over the pages of a ListUsageLimits operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListUsageLimits 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 ListUsageLimits operation. +// pageNum := 0 +// err := client.ListUsageLimitsPages(params, +// func(page *redshiftserverless.ListUsageLimitsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RedshiftServerless) ListUsageLimitsPages(input *ListUsageLimitsInput, fn func(*ListUsageLimitsOutput, bool) bool) error { + return c.ListUsageLimitsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListUsageLimitsPagesWithContext same as ListUsageLimitsPages 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 *RedshiftServerless) ListUsageLimitsPagesWithContext(ctx aws.Context, input *ListUsageLimitsInput, fn func(*ListUsageLimitsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListUsageLimitsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListUsageLimitsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListUsageLimitsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkgroups = "ListWorkgroups" + +// ListWorkgroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkgroups 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 ListWorkgroups for more information on using the ListWorkgroups +// 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 ListWorkgroupsRequest method. +// req, resp := client.ListWorkgroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListWorkgroups +func (c *RedshiftServerless) ListWorkgroupsRequest(input *ListWorkgroupsInput) (req *request.Request, output *ListWorkgroupsOutput) { + op := &request.Operation{ + Name: opListWorkgroups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkgroupsInput{} + } + + output = &ListWorkgroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkgroups API operation for Redshift Serverless. +// +// Returns information about a list of specified workgroups. +// +// 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 Redshift Serverless's +// API operation ListWorkgroups for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListWorkgroups +func (c *RedshiftServerless) ListWorkgroups(input *ListWorkgroupsInput) (*ListWorkgroupsOutput, error) { + req, out := c.ListWorkgroupsRequest(input) + return out, req.Send() +} + +// ListWorkgroupsWithContext is the same as ListWorkgroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkgroups 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 *RedshiftServerless) ListWorkgroupsWithContext(ctx aws.Context, input *ListWorkgroupsInput, opts ...request.Option) (*ListWorkgroupsOutput, error) { + req, out := c.ListWorkgroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkgroupsPages iterates over the pages of a ListWorkgroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkgroups 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 ListWorkgroups operation. +// pageNum := 0 +// err := client.ListWorkgroupsPages(params, +// func(page *redshiftserverless.ListWorkgroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RedshiftServerless) ListWorkgroupsPages(input *ListWorkgroupsInput, fn func(*ListWorkgroupsOutput, bool) bool) error { + return c.ListWorkgroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkgroupsPagesWithContext same as ListWorkgroupsPages 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 *RedshiftServerless) ListWorkgroupsPagesWithContext(ctx aws.Context, input *ListWorkgroupsInput, fn func(*ListWorkgroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkgroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkgroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkgroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutResourcePolicy = "PutResourcePolicy" + +// PutResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutResourcePolicy 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 PutResourcePolicy for more information on using the PutResourcePolicy +// 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 PutResourcePolicyRequest method. +// req, resp := client.PutResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/PutResourcePolicy +func (c *RedshiftServerless) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) { + op := &request.Operation{ + Name: opPutResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutResourcePolicyInput{} + } + + output = &PutResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutResourcePolicy API operation for Redshift Serverless. +// +// Creates or updates a resource policy. Currently, you can use policies to +// share snapshots across Amazon Web Services accounts. +// +// 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 Redshift Serverless's +// API operation PutResourcePolicy for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ServiceQuotaExceededException +// The service limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/PutResourcePolicy +func (c *RedshiftServerless) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) + return out, req.Send() +} + +// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See PutResourcePolicy 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 *RedshiftServerless) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRestoreFromRecoveryPoint = "RestoreFromRecoveryPoint" + +// RestoreFromRecoveryPointRequest generates a "aws/request.Request" representing the +// client's request for the RestoreFromRecoveryPoint 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 RestoreFromRecoveryPoint for more information on using the RestoreFromRecoveryPoint +// 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 RestoreFromRecoveryPointRequest method. +// req, resp := client.RestoreFromRecoveryPointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreFromRecoveryPoint +func (c *RedshiftServerless) RestoreFromRecoveryPointRequest(input *RestoreFromRecoveryPointInput) (req *request.Request, output *RestoreFromRecoveryPointOutput) { + op := &request.Operation{ + Name: opRestoreFromRecoveryPoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RestoreFromRecoveryPointInput{} + } + + output = &RestoreFromRecoveryPointOutput{} + req = c.newRequest(op, input, output) + return +} + +// RestoreFromRecoveryPoint API operation for Redshift Serverless. +// +// Restore the data from a recovery point. +// +// 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 Redshift Serverless's +// API operation RestoreFromRecoveryPoint for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreFromRecoveryPoint +func (c *RedshiftServerless) RestoreFromRecoveryPoint(input *RestoreFromRecoveryPointInput) (*RestoreFromRecoveryPointOutput, error) { + req, out := c.RestoreFromRecoveryPointRequest(input) + return out, req.Send() +} + +// RestoreFromRecoveryPointWithContext is the same as RestoreFromRecoveryPoint with the addition of +// the ability to pass a context and additional request options. +// +// See RestoreFromRecoveryPoint 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 *RedshiftServerless) RestoreFromRecoveryPointWithContext(ctx aws.Context, input *RestoreFromRecoveryPointInput, opts ...request.Option) (*RestoreFromRecoveryPointOutput, error) { + req, out := c.RestoreFromRecoveryPointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRestoreFromSnapshot = "RestoreFromSnapshot" + +// RestoreFromSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the RestoreFromSnapshot 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 RestoreFromSnapshot for more information on using the RestoreFromSnapshot +// 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 RestoreFromSnapshotRequest method. +// req, resp := client.RestoreFromSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreFromSnapshot +func (c *RedshiftServerless) RestoreFromSnapshotRequest(input *RestoreFromSnapshotInput) (req *request.Request, output *RestoreFromSnapshotOutput) { + op := &request.Operation{ + Name: opRestoreFromSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RestoreFromSnapshotInput{} + } + + output = &RestoreFromSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// RestoreFromSnapshot API operation for Redshift Serverless. +// +// Restores a namespace from a snapshot. +// +// 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 Redshift Serverless's +// API operation RestoreFromSnapshot for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ServiceQuotaExceededException +// The service limit was exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/RestoreFromSnapshot +func (c *RedshiftServerless) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error) { + req, out := c.RestoreFromSnapshotRequest(input) + return out, req.Send() +} + +// RestoreFromSnapshotWithContext is the same as RestoreFromSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See RestoreFromSnapshot 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 *RedshiftServerless) RestoreFromSnapshotWithContext(ctx aws.Context, input *RestoreFromSnapshotInput, opts ...request.Option) (*RestoreFromSnapshotOutput, error) { + req, out := c.RestoreFromSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/TagResource +func (c *RedshiftServerless) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Redshift Serverless. +// +// Assigns one or more tags to a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * TooManyTagsException +// The request exceeded the number of tags allowed for a resource. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/TagResource +func (c *RedshiftServerless) 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 *RedshiftServerless) 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/redshift-serverless-2021-04-21/UntagResource +func (c *RedshiftServerless) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Redshift Serverless. +// +// Removes a tag or set of tags from a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UntagResource +func (c *RedshiftServerless) 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 *RedshiftServerless) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEndpointAccess = "UpdateEndpointAccess" + +// UpdateEndpointAccessRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEndpointAccess 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 UpdateEndpointAccess for more information on using the UpdateEndpointAccess +// 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 UpdateEndpointAccessRequest method. +// req, resp := client.UpdateEndpointAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateEndpointAccess +func (c *RedshiftServerless) UpdateEndpointAccessRequest(input *UpdateEndpointAccessInput) (req *request.Request, output *UpdateEndpointAccessOutput) { + op := &request.Operation{ + Name: opUpdateEndpointAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEndpointAccessInput{} + } + + output = &UpdateEndpointAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEndpointAccess API operation for Redshift Serverless. +// +// Updates an Amazon Redshift Serverless managed endpoint. +// +// 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 Redshift Serverless's +// API operation UpdateEndpointAccess for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateEndpointAccess +func (c *RedshiftServerless) UpdateEndpointAccess(input *UpdateEndpointAccessInput) (*UpdateEndpointAccessOutput, error) { + req, out := c.UpdateEndpointAccessRequest(input) + return out, req.Send() +} + +// UpdateEndpointAccessWithContext is the same as UpdateEndpointAccess with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEndpointAccess 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 *RedshiftServerless) UpdateEndpointAccessWithContext(ctx aws.Context, input *UpdateEndpointAccessInput, opts ...request.Option) (*UpdateEndpointAccessOutput, error) { + req, out := c.UpdateEndpointAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateNamespace = "UpdateNamespace" + +// UpdateNamespaceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNamespace 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 UpdateNamespace for more information on using the UpdateNamespace +// 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 UpdateNamespaceRequest method. +// req, resp := client.UpdateNamespaceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateNamespace +func (c *RedshiftServerless) UpdateNamespaceRequest(input *UpdateNamespaceInput) (req *request.Request, output *UpdateNamespaceOutput) { + op := &request.Operation{ + Name: opUpdateNamespace, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateNamespaceInput{} + } + + output = &UpdateNamespaceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNamespace API operation for Redshift Serverless. +// +// Updates a namespace with the specified settings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation UpdateNamespace for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateNamespace +func (c *RedshiftServerless) UpdateNamespace(input *UpdateNamespaceInput) (*UpdateNamespaceOutput, error) { + req, out := c.UpdateNamespaceRequest(input) + return out, req.Send() +} + +// UpdateNamespaceWithContext is the same as UpdateNamespace with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateNamespace 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 *RedshiftServerless) UpdateNamespaceWithContext(ctx aws.Context, input *UpdateNamespaceInput, opts ...request.Option) (*UpdateNamespaceOutput, error) { + req, out := c.UpdateNamespaceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSnapshot = "UpdateSnapshot" + +// UpdateSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSnapshot 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 UpdateSnapshot for more information on using the UpdateSnapshot +// 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 UpdateSnapshotRequest method. +// req, resp := client.UpdateSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateSnapshot +func (c *RedshiftServerless) UpdateSnapshotRequest(input *UpdateSnapshotInput) (req *request.Request, output *UpdateSnapshotOutput) { + op := &request.Operation{ + Name: opUpdateSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateSnapshotInput{} + } + + output = &UpdateSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSnapshot API operation for Redshift Serverless. +// +// Updates a snapshot. +// +// 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 Redshift Serverless's +// API operation UpdateSnapshot for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateSnapshot +func (c *RedshiftServerless) UpdateSnapshot(input *UpdateSnapshotInput) (*UpdateSnapshotOutput, error) { + req, out := c.UpdateSnapshotRequest(input) + return out, req.Send() +} + +// UpdateSnapshotWithContext is the same as UpdateSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSnapshot 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 *RedshiftServerless) UpdateSnapshotWithContext(ctx aws.Context, input *UpdateSnapshotInput, opts ...request.Option) (*UpdateSnapshotOutput, error) { + req, out := c.UpdateSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUsageLimit = "UpdateUsageLimit" + +// UpdateUsageLimitRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUsageLimit 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 UpdateUsageLimit for more information on using the UpdateUsageLimit +// 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 UpdateUsageLimitRequest method. +// req, resp := client.UpdateUsageLimitRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateUsageLimit +func (c *RedshiftServerless) UpdateUsageLimitRequest(input *UpdateUsageLimitInput) (req *request.Request, output *UpdateUsageLimitOutput) { + op := &request.Operation{ + Name: opUpdateUsageLimit, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateUsageLimitInput{} + } + + output = &UpdateUsageLimitOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUsageLimit API operation for Redshift Serverless. +// +// Update a usage limit in Amazon Redshift Serverless. You can't update the +// usage type or period of a usage limit. +// +// 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 Redshift Serverless's +// API operation UpdateUsageLimit for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateUsageLimit +func (c *RedshiftServerless) UpdateUsageLimit(input *UpdateUsageLimitInput) (*UpdateUsageLimitOutput, error) { + req, out := c.UpdateUsageLimitRequest(input) + return out, req.Send() +} + +// UpdateUsageLimitWithContext is the same as UpdateUsageLimit with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUsageLimit 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 *RedshiftServerless) UpdateUsageLimitWithContext(ctx aws.Context, input *UpdateUsageLimitInput, opts ...request.Option) (*UpdateUsageLimitOutput, error) { + req, out := c.UpdateUsageLimitRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWorkgroup = "UpdateWorkgroup" + +// UpdateWorkgroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWorkgroup 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 UpdateWorkgroup for more information on using the UpdateWorkgroup +// 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 UpdateWorkgroupRequest method. +// req, resp := client.UpdateWorkgroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateWorkgroup +func (c *RedshiftServerless) UpdateWorkgroupRequest(input *UpdateWorkgroupInput) (req *request.Request, output *UpdateWorkgroupOutput) { + op := &request.Operation{ + Name: opUpdateWorkgroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateWorkgroupInput{} + } + + output = &UpdateWorkgroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWorkgroup API operation for Redshift Serverless. +// +// Updates a workgroup with the specified configuration settings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Redshift Serverless's +// API operation UpdateWorkgroup for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// * InsufficientCapacityException +// There is an insufficient capacity to perform the action. +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * ConflictException +// The submitted action has conflicts. +// +// * ValidationException +// The input failed to satisfy the constraints specified by an AWS service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/UpdateWorkgroup +func (c *RedshiftServerless) UpdateWorkgroup(input *UpdateWorkgroupInput) (*UpdateWorkgroupOutput, error) { + req, out := c.UpdateWorkgroupRequest(input) + return out, req.Send() +} + +// UpdateWorkgroupWithContext is the same as UpdateWorkgroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWorkgroup 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 *RedshiftServerless) UpdateWorkgroupWithContext(ctx aws.Context, input *UpdateWorkgroupInput, opts ...request.Option) (*UpdateWorkgroupOutput, error) { + req, out := c.UpdateWorkgroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// An array of key-value pairs to set for advanced control over Amazon Redshift +// Serverless. +type ConfigParameter struct { + _ struct{} `type:"structure"` + + // The key of the parameter. The options are datestyle, enable_user_activity_logging, + // query_group, search_path, and max_query_execution_time. + ParameterKey *string `locationName:"parameterKey" type:"string"` + + // The value of the parameter to set. + ParameterValue *string `locationName:"parameterValue" 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 ConfigParameter) 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 ConfigParameter) GoString() string { + return s.String() +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *ConfigParameter) SetParameterKey(v string) *ConfigParameter { + s.ParameterKey = &v + return s +} + +// SetParameterValue sets the ParameterValue field's value. +func (s *ConfigParameter) SetParameterValue(v string) *ConfigParameter { + s.ParameterValue = &v + return s +} + +// The submitted action has conflicts. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ConvertRecoveryPointToSnapshotInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the recovery point. + // + // RecoveryPointId is a required field + RecoveryPointId *string `locationName:"recoveryPointId" type:"string" required:"true"` + + // How long to retain the snapshot. + RetentionPeriod *int64 `locationName:"retentionPeriod" type:"integer"` + + // The name of the snapshot. + // + // SnapshotName is a required field + SnapshotName *string `locationName:"snapshotName" 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 ConvertRecoveryPointToSnapshotInput) 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 ConvertRecoveryPointToSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConvertRecoveryPointToSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConvertRecoveryPointToSnapshotInput"} + if s.RecoveryPointId == nil { + invalidParams.Add(request.NewErrParamRequired("RecoveryPointId")) + } + if s.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRecoveryPointId sets the RecoveryPointId field's value. +func (s *ConvertRecoveryPointToSnapshotInput) SetRecoveryPointId(v string) *ConvertRecoveryPointToSnapshotInput { + s.RecoveryPointId = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *ConvertRecoveryPointToSnapshotInput) SetRetentionPeriod(v int64) *ConvertRecoveryPointToSnapshotInput { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *ConvertRecoveryPointToSnapshotInput) SetSnapshotName(v string) *ConvertRecoveryPointToSnapshotInput { + s.SnapshotName = &v + return s +} + +type ConvertRecoveryPointToSnapshotOutput struct { + _ struct{} `type:"structure"` + + // The snapshot converted from the recovery point. + Snapshot *Snapshot `locationName:"snapshot" 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 ConvertRecoveryPointToSnapshotOutput) 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 ConvertRecoveryPointToSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshot sets the Snapshot field's value. +func (s *ConvertRecoveryPointToSnapshotOutput) SetSnapshot(v *Snapshot) *ConvertRecoveryPointToSnapshotOutput { + s.Snapshot = v + return s +} + +type CreateEndpointAccessInput struct { + _ struct{} `type:"structure"` + + // The name of the VPC endpoint. An endpoint name must contain 1-30 characters. + // Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must + // be a letter. The name can't contain two consecutive hyphens or end with a + // hyphen. + // + // EndpointName is a required field + EndpointName *string `locationName:"endpointName" type:"string" required:"true"` + + // The unique identifers of subnets from which Amazon Redshift Serverless chooses + // one to deploy a VPC endpoint. + // + // SubnetIds is a required field + SubnetIds []*string `locationName:"subnetIds" type:"list" required:"true"` + + // The unique identifiers of the security group that defines the ports, protocols, + // and sources for inbound traffic that you are authorizing into your endpoint. + VpcSecurityGroupIds []*string `locationName:"vpcSecurityGroupIds" type:"list"` + + // The name of the workgroup to associate with the VPC endpoint. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" 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 CreateEndpointAccessInput) 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 CreateEndpointAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEndpointAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEndpointAccessInput"} + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + if s.SubnetIds == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetIds")) + } + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointName sets the EndpointName field's value. +func (s *CreateEndpointAccessInput) SetEndpointName(v string) *CreateEndpointAccessInput { + s.EndpointName = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateEndpointAccessInput) SetSubnetIds(v []*string) *CreateEndpointAccessInput { + s.SubnetIds = v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateEndpointAccessInput) SetVpcSecurityGroupIds(v []*string) *CreateEndpointAccessInput { + s.VpcSecurityGroupIds = v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *CreateEndpointAccessInput) SetWorkgroupName(v string) *CreateEndpointAccessInput { + s.WorkgroupName = &v + return s +} + +type CreateEndpointAccessOutput struct { + _ struct{} `type:"structure"` + + // The created VPC endpoint. + Endpoint *EndpointAccess `locationName:"endpoint" 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 CreateEndpointAccessOutput) 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 CreateEndpointAccessOutput) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *CreateEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *CreateEndpointAccessOutput { + s.Endpoint = v + return s +} + +type CreateNamespaceInput struct { + _ struct{} `type:"structure"` + + // The password of the administrator for the first database created in the namespace. + // + // AdminUserPassword is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateNamespaceInput's + // String and GoString methods. + AdminUserPassword *string `locationName:"adminUserPassword" type:"string" sensitive:"true"` + + // The username of the administrator for the first database created in the namespace. + // + // AdminUsername is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateNamespaceInput's + // String and GoString methods. + AdminUsername *string `locationName:"adminUsername" type:"string" sensitive:"true"` + + // The name of the first database created in the namespace. + DbName *string `locationName:"dbName" type:"string"` + + // The Amazon Resource Name (ARN) of the IAM role to set as a default in the + // namespace. + DefaultIamRoleArn *string `locationName:"defaultIamRoleArn" type:"string"` + + // A list of IAM roles to associate with the namespace. + IamRoles []*string `locationName:"iamRoles" type:"list"` + + // The ID of the Amazon Web Services Key Management Service key used to encrypt + // your data. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The types of logs the namespace can export. Available export types are userlog, + // connectionlog, and useractivitylog. + LogExports []*string `locationName:"logExports" type:"list" enum:"LogExport"` + + // The name of the namespace. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` + + // A list of tag instances. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateNamespaceInput) 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 CreateNamespaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateNamespaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateNamespaceInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdminUserPassword sets the AdminUserPassword field's value. +func (s *CreateNamespaceInput) SetAdminUserPassword(v string) *CreateNamespaceInput { + s.AdminUserPassword = &v + return s +} + +// SetAdminUsername sets the AdminUsername field's value. +func (s *CreateNamespaceInput) SetAdminUsername(v string) *CreateNamespaceInput { + s.AdminUsername = &v + return s +} + +// SetDbName sets the DbName field's value. +func (s *CreateNamespaceInput) SetDbName(v string) *CreateNamespaceInput { + s.DbName = &v + return s +} + +// SetDefaultIamRoleArn sets the DefaultIamRoleArn field's value. +func (s *CreateNamespaceInput) SetDefaultIamRoleArn(v string) *CreateNamespaceInput { + s.DefaultIamRoleArn = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *CreateNamespaceInput) SetIamRoles(v []*string) *CreateNamespaceInput { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateNamespaceInput) SetKmsKeyId(v string) *CreateNamespaceInput { + s.KmsKeyId = &v + return s +} + +// SetLogExports sets the LogExports field's value. +func (s *CreateNamespaceInput) SetLogExports(v []*string) *CreateNamespaceInput { + s.LogExports = v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *CreateNamespaceInput) SetNamespaceName(v string) *CreateNamespaceInput { + s.NamespaceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateNamespaceInput) SetTags(v []*Tag) *CreateNamespaceInput { + s.Tags = v + return s +} + +type CreateNamespaceOutput struct { + _ struct{} `type:"structure"` + + // The created namespace object. + Namespace *Namespace `locationName:"namespace" 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 CreateNamespaceOutput) 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 CreateNamespaceOutput) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *CreateNamespaceOutput) SetNamespace(v *Namespace) *CreateNamespaceOutput { + s.Namespace = v + return s +} + +type CreateSnapshotInput struct { + _ struct{} `type:"structure"` + + // The namespace to create a snapshot for. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" type:"string" required:"true"` + + // How long to retain the created snapshot. + RetentionPeriod *int64 `locationName:"retentionPeriod" type:"integer"` + + // The name of the snapshot. + // + // SnapshotName is a required field + SnapshotName *string `locationName:"snapshotName" 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 CreateSnapshotInput) 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 CreateSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *CreateSnapshotInput) SetNamespaceName(v string) *CreateSnapshotInput { + s.NamespaceName = &v + return s +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *CreateSnapshotInput) SetRetentionPeriod(v int64) *CreateSnapshotInput { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput { + s.SnapshotName = &v + return s +} + +type CreateSnapshotOutput struct { + _ struct{} `type:"structure"` + + // The created snapshot object. + Snapshot *Snapshot `locationName:"snapshot" 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 CreateSnapshotOutput) 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 CreateSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshot sets the Snapshot field's value. +func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput { + s.Snapshot = v + return s +} + +type CreateUsageLimitInput struct { + _ struct{} `type:"structure"` + + // The limit amount. If time-based, this amount is in Redshift Processing Units + // (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) + // of data transferred between Regions in cross-account sharing. The value must + // be a positive number. + // + // Amount is a required field + Amount *int64 `locationName:"amount" type:"long" required:"true"` + + // The action that Amazon Redshift Serverless takes when the limit is reached. + // The default is log. + BreachAction *string `locationName:"breachAction" type:"string" enum:"UsageLimitBreachAction"` + + // The time period that the amount applies to. A weekly period begins on Sunday. + // The default is monthly. + Period *string `locationName:"period" type:"string" enum:"UsageLimitPeriod"` + + // The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource + // to create the usage limit for. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // The type of Amazon Redshift Serverless usage to create a usage limit for. + // + // UsageType is a required field + UsageType *string `locationName:"usageType" type:"string" required:"true" enum:"UsageLimitUsageType"` +} + +// 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 CreateUsageLimitInput) 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 CreateUsageLimitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUsageLimitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUsageLimitInput"} + if s.Amount == nil { + invalidParams.Add(request.NewErrParamRequired("Amount")) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.UsageType == nil { + invalidParams.Add(request.NewErrParamRequired("UsageType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmount sets the Amount field's value. +func (s *CreateUsageLimitInput) SetAmount(v int64) *CreateUsageLimitInput { + s.Amount = &v + return s +} + +// SetBreachAction sets the BreachAction field's value. +func (s *CreateUsageLimitInput) SetBreachAction(v string) *CreateUsageLimitInput { + s.BreachAction = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *CreateUsageLimitInput) SetPeriod(v string) *CreateUsageLimitInput { + s.Period = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *CreateUsageLimitInput) SetResourceArn(v string) *CreateUsageLimitInput { + s.ResourceArn = &v + return s +} + +// SetUsageType sets the UsageType field's value. +func (s *CreateUsageLimitInput) SetUsageType(v string) *CreateUsageLimitInput { + s.UsageType = &v + return s +} + +type CreateUsageLimitOutput struct { + _ struct{} `type:"structure"` + + // The returned usage limit object. + UsageLimit *UsageLimit `locationName:"usageLimit" 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 CreateUsageLimitOutput) 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 CreateUsageLimitOutput) GoString() string { + return s.String() +} + +// SetUsageLimit sets the UsageLimit field's value. +func (s *CreateUsageLimitOutput) SetUsageLimit(v *UsageLimit) *CreateUsageLimitOutput { + s.UsageLimit = v + return s +} + +type CreateWorkgroupInput struct { + _ struct{} `type:"structure"` + + // The base data warehouse capacity of the workgroup in Redshift Processing + // Units (RPUs). + BaseCapacity *int64 `locationName:"baseCapacity" type:"integer"` + + // An array of parameters to set for more control over a serverless database. + // The options are datestyle, enable_user_activity_logging, query_group, search_path, + // and max_query_execution_time. + ConfigParameters []*ConfigParameter `locationName:"configParameters" type:"list"` + + // The value that specifies whether to turn on enhanced virtual private cloud + // (VPC) routing, which forces Amazon Redshift Serverless to route traffic through + // your VPC instead of over the internet. + EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` + + // The name of the namespace to associate with the workgroup. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` + + // A value that specifies whether the workgroup can be accessed from a public + // network. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // An array of security group IDs to associate with the workgroup. + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` + + // An array of VPC subnet IDs to associate with the workgroup. + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + // A array of tag instances. + Tags []*Tag `locationName:"tags" type:"list"` + + // The name of the created workgroup. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 CreateWorkgroupInput) 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 CreateWorkgroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkgroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkgroupInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaseCapacity sets the BaseCapacity field's value. +func (s *CreateWorkgroupInput) SetBaseCapacity(v int64) *CreateWorkgroupInput { + s.BaseCapacity = &v + return s +} + +// SetConfigParameters sets the ConfigParameters field's value. +func (s *CreateWorkgroupInput) SetConfigParameters(v []*ConfigParameter) *CreateWorkgroupInput { + s.ConfigParameters = v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *CreateWorkgroupInput) SetEnhancedVpcRouting(v bool) *CreateWorkgroupInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *CreateWorkgroupInput) SetNamespaceName(v string) *CreateWorkgroupInput { + s.NamespaceName = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateWorkgroupInput) SetPubliclyAccessible(v bool) *CreateWorkgroupInput { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateWorkgroupInput) SetSecurityGroupIds(v []*string) *CreateWorkgroupInput { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateWorkgroupInput) SetSubnetIds(v []*string) *CreateWorkgroupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateWorkgroupInput) SetTags(v []*Tag) *CreateWorkgroupInput { + s.Tags = v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *CreateWorkgroupInput) SetWorkgroupName(v string) *CreateWorkgroupInput { + s.WorkgroupName = &v + return s +} + +type CreateWorkgroupOutput struct { + _ struct{} `type:"structure"` + + // The created workgroup object. + Workgroup *Workgroup `locationName:"workgroup" 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 CreateWorkgroupOutput) 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 CreateWorkgroupOutput) GoString() string { + return s.String() +} + +// SetWorkgroup sets the Workgroup field's value. +func (s *CreateWorkgroupOutput) SetWorkgroup(v *Workgroup) *CreateWorkgroupOutput { + s.Workgroup = v + return s +} + +type DeleteEndpointAccessInput struct { + _ struct{} `type:"structure"` + + // The name of the VPC endpoint to delete. + // + // EndpointName is a required field + EndpointName *string `locationName:"endpointName" 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 DeleteEndpointAccessInput) 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 DeleteEndpointAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEndpointAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointAccessInput"} + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointName sets the EndpointName field's value. +func (s *DeleteEndpointAccessInput) SetEndpointName(v string) *DeleteEndpointAccessInput { + s.EndpointName = &v + return s +} + +type DeleteEndpointAccessOutput struct { + _ struct{} `type:"structure"` + + // The deleted VPC endpoint. + Endpoint *EndpointAccess `locationName:"endpoint" 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 DeleteEndpointAccessOutput) 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 DeleteEndpointAccessOutput) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DeleteEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *DeleteEndpointAccessOutput { + s.Endpoint = v + return s +} + +type DeleteNamespaceInput struct { + _ struct{} `type:"structure"` + + // The name of the snapshot to be created before the namespace is deleted. + FinalSnapshotName *string `locationName:"finalSnapshotName" type:"string"` + + // How long to retain the final snapshot. + FinalSnapshotRetentionPeriod *int64 `locationName:"finalSnapshotRetentionPeriod" type:"integer"` + + // The name of the namespace to delete. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" 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 DeleteNamespaceInput) 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 DeleteNamespaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteNamespaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteNamespaceInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFinalSnapshotName sets the FinalSnapshotName field's value. +func (s *DeleteNamespaceInput) SetFinalSnapshotName(v string) *DeleteNamespaceInput { + s.FinalSnapshotName = &v + return s +} + +// SetFinalSnapshotRetentionPeriod sets the FinalSnapshotRetentionPeriod field's value. +func (s *DeleteNamespaceInput) SetFinalSnapshotRetentionPeriod(v int64) *DeleteNamespaceInput { + s.FinalSnapshotRetentionPeriod = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *DeleteNamespaceInput) SetNamespaceName(v string) *DeleteNamespaceInput { + s.NamespaceName = &v + return s +} + +type DeleteNamespaceOutput struct { + _ struct{} `type:"structure"` + + // The deleted namespace object. + // + // Namespace is a required field + Namespace *Namespace `locationName:"namespace" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteNamespaceOutput) 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 DeleteNamespaceOutput) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *DeleteNamespaceOutput) SetNamespace(v *Namespace) *DeleteNamespaceOutput { + s.Namespace = v + return s +} + +type DeleteResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the policy to delete. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" 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 DeleteResourcePolicyInput) 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 DeleteResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *DeleteResourcePolicyInput) SetResourceArn(v string) *DeleteResourcePolicyInput { + s.ResourceArn = &v + return s +} + +type DeleteResourcePolicyOutput 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 DeleteResourcePolicyOutput) 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 DeleteResourcePolicyOutput) GoString() string { + return s.String() +} + +type DeleteSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of the snapshot to be deleted. + // + // SnapshotName is a required field + SnapshotName *string `locationName:"snapshotName" 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 DeleteSnapshotInput) 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 DeleteSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"} + if s.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *DeleteSnapshotInput) SetSnapshotName(v string) *DeleteSnapshotInput { + s.SnapshotName = &v + return s +} + +type DeleteSnapshotOutput struct { + _ struct{} `type:"structure"` + + // The deleted snapshot object. + Snapshot *Snapshot `locationName:"snapshot" 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 DeleteSnapshotOutput) 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 DeleteSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshot sets the Snapshot field's value. +func (s *DeleteSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteSnapshotOutput { + s.Snapshot = v + return s +} + +type DeleteUsageLimitInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the usage limit to delete. + // + // UsageLimitId is a required field + UsageLimitId *string `locationName:"usageLimitId" 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 DeleteUsageLimitInput) 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 DeleteUsageLimitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUsageLimitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUsageLimitInput"} + if s.UsageLimitId == nil { + invalidParams.Add(request.NewErrParamRequired("UsageLimitId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUsageLimitId sets the UsageLimitId field's value. +func (s *DeleteUsageLimitInput) SetUsageLimitId(v string) *DeleteUsageLimitInput { + s.UsageLimitId = &v + return s +} + +type DeleteUsageLimitOutput struct { + _ struct{} `type:"structure"` + + // The deleted usage limit object. + UsageLimit *UsageLimit `locationName:"usageLimit" 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 DeleteUsageLimitOutput) 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 DeleteUsageLimitOutput) GoString() string { + return s.String() +} + +// SetUsageLimit sets the UsageLimit field's value. +func (s *DeleteUsageLimitOutput) SetUsageLimit(v *UsageLimit) *DeleteUsageLimitOutput { + s.UsageLimit = v + return s +} + +type DeleteWorkgroupInput struct { + _ struct{} `type:"structure"` + + // The name of the workgroup to be deleted. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 DeleteWorkgroupInput) 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 DeleteWorkgroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkgroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkgroupInput"} + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *DeleteWorkgroupInput) SetWorkgroupName(v string) *DeleteWorkgroupInput { + s.WorkgroupName = &v + return s +} + +type DeleteWorkgroupOutput struct { + _ struct{} `type:"structure"` + + // The deleted workgroup object. + // + // Workgroup is a required field + Workgroup *Workgroup `locationName:"workgroup" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkgroupOutput) 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 DeleteWorkgroupOutput) GoString() string { + return s.String() +} + +// SetWorkgroup sets the Workgroup field's value. +func (s *DeleteWorkgroupOutput) SetWorkgroup(v *Workgroup) *DeleteWorkgroupOutput { + s.Workgroup = v + return s +} + +// The VPC endpoint object. +type Endpoint struct { + _ struct{} `type:"structure"` + + // The DNS address of the VPC endpoint. + Address *string `locationName:"address" type:"string"` + + // The port that Amazon Redshift Serverless listens on. + Port *int64 `locationName:"port" type:"integer"` + + // An array of VpcEndpoint objects. + VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpoints" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Endpoint) 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 Endpoint) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Endpoint) SetPort(v int64) *Endpoint { + s.Port = &v + return s +} + +// SetVpcEndpoints sets the VpcEndpoints field's value. +func (s *Endpoint) SetVpcEndpoints(v []*VpcEndpoint) *Endpoint { + s.VpcEndpoints = v + return s +} + +// Information about an Amazon Redshift Serverless VPC endpoint. +type EndpointAccess struct { + _ struct{} `type:"structure"` + + // The DNS address of the endpoint. + Address *string `locationName:"address" type:"string"` + + // The Amazon Resource Name (ARN) of the VPC endpoint. + EndpointArn *string `locationName:"endpointArn" type:"string"` + + // The time that the endpoint was created. + EndpointCreateTime *time.Time `locationName:"endpointCreateTime" type:"timestamp" timestampFormat:"iso8601"` + + // The name of the VPC endpoint. + EndpointName *string `locationName:"endpointName" type:"string"` + + // The status of the VPC endpoint. + EndpointStatus *string `locationName:"endpointStatus" type:"string"` + + // The port number on which Amazon Redshift Serverless accepts incoming connections. + Port *int64 `locationName:"port" type:"integer"` + + // The unique identifier of subnets where Amazon Redshift Serverless choose + // to deploy the VPC endpoint. + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + // The connection endpoint for connecting to Amazon Redshift Serverless. + VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"` + + // The security groups associated with the endpoint. + VpcSecurityGroups []*VpcSecurityGroupMembership `locationName:"vpcSecurityGroups" type:"list"` + + // The name of the workgroup associated with the endpoint. + WorkgroupName *string `locationName:"workgroupName" 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 EndpointAccess) 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 EndpointAccess) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *EndpointAccess) SetAddress(v string) *EndpointAccess { + s.Address = &v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *EndpointAccess) SetEndpointArn(v string) *EndpointAccess { + s.EndpointArn = &v + return s +} + +// SetEndpointCreateTime sets the EndpointCreateTime field's value. +func (s *EndpointAccess) SetEndpointCreateTime(v time.Time) *EndpointAccess { + s.EndpointCreateTime = &v + return s +} + +// SetEndpointName sets the EndpointName field's value. +func (s *EndpointAccess) SetEndpointName(v string) *EndpointAccess { + s.EndpointName = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *EndpointAccess) SetEndpointStatus(v string) *EndpointAccess { + s.EndpointStatus = &v + return s +} + +// SetPort sets the Port field's value. +func (s *EndpointAccess) SetPort(v int64) *EndpointAccess { + s.Port = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *EndpointAccess) SetSubnetIds(v []*string) *EndpointAccess { + s.SubnetIds = v + return s +} + +// SetVpcEndpoint sets the VpcEndpoint field's value. +func (s *EndpointAccess) SetVpcEndpoint(v *VpcEndpoint) *EndpointAccess { + s.VpcEndpoint = v + return s +} + +// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. +func (s *EndpointAccess) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *EndpointAccess { + s.VpcSecurityGroups = v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *EndpointAccess) SetWorkgroupName(v string) *EndpointAccess { + s.WorkgroupName = &v + return s +} + +type GetCredentialsInput struct { + _ struct{} `type:"structure"` + + // The name of the database to get temporary authorization to log on to. + // + // Constraints: + // + // * Must be 1 to 64 alphanumeric characters or hyphens. + // + // * Must contain only lowercase letters, numbers, underscore, plus sign, + // period (dot), at symbol (@), or hyphen. + // + // * The first character must be a letter. + // + // * Must not contain a colon ( : ) or slash ( / ). + // + // * Cannot be a reserved word. A list of reserved words can be found in + // Reserved Words (https://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) + // in the Amazon Redshift Database Developer Guide + DbName *string `locationName:"dbName" type:"string"` + + // The number of seconds until the returned temporary password expires. The + // minimum is 900 seconds, and the maximum is 3600 seconds. + DurationSeconds *int64 `locationName:"durationSeconds" type:"integer"` + + // The name of the workgroup associated with the database. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 GetCredentialsInput) 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 GetCredentialsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCredentialsInput"} + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDbName sets the DbName field's value. +func (s *GetCredentialsInput) SetDbName(v string) *GetCredentialsInput { + s.DbName = &v + return s +} + +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *GetCredentialsInput) SetDurationSeconds(v int64) *GetCredentialsInput { + s.DurationSeconds = &v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *GetCredentialsInput) SetWorkgroupName(v string) *GetCredentialsInput { + s.WorkgroupName = &v + return s +} + +type GetCredentialsOutput struct { + _ struct{} `type:"structure"` + + // A temporary password that authorizes the user name returned by DbUser to + // log on to the database DbName. + // + // DbPassword is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetCredentialsOutput's + // String and GoString methods. + DbPassword *string `locationName:"dbPassword" type:"string" sensitive:"true"` + + // A database user name that is authorized to log on to the database DbName + // using the password DbPassword. If the specified DbUser exists in the database, + // the new user name has the same database privileges as the the user named + // in DbUser. By default, the user is added to PUBLIC. + // + // DbUser is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetCredentialsOutput's + // String and GoString methods. + DbUser *string `locationName:"dbUser" type:"string" sensitive:"true"` + + // The date and time the password in DbPassword expires. + Expiration *time.Time `locationName:"expiration" type:"timestamp"` + + // The date and time of when the DbUser and DbPassword authorization refreshes. + NextRefreshTime *time.Time `locationName:"nextRefreshTime" type:"timestamp"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetCredentialsOutput) 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 GetCredentialsOutput) GoString() string { + return s.String() +} + +// SetDbPassword sets the DbPassword field's value. +func (s *GetCredentialsOutput) SetDbPassword(v string) *GetCredentialsOutput { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *GetCredentialsOutput) SetDbUser(v string) *GetCredentialsOutput { + s.DbUser = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *GetCredentialsOutput) SetExpiration(v time.Time) *GetCredentialsOutput { + s.Expiration = &v + return s +} + +// SetNextRefreshTime sets the NextRefreshTime field's value. +func (s *GetCredentialsOutput) SetNextRefreshTime(v time.Time) *GetCredentialsOutput { + s.NextRefreshTime = &v + return s +} + +type GetEndpointAccessInput struct { + _ struct{} `type:"structure"` + + // The name of the VPC endpoint to return information for. + // + // EndpointName is a required field + EndpointName *string `locationName:"endpointName" 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 GetEndpointAccessInput) 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 GetEndpointAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetEndpointAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEndpointAccessInput"} + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointName sets the EndpointName field's value. +func (s *GetEndpointAccessInput) SetEndpointName(v string) *GetEndpointAccessInput { + s.EndpointName = &v + return s +} + +type GetEndpointAccessOutput struct { + _ struct{} `type:"structure"` + + // The returned VPC endpoint. + Endpoint *EndpointAccess `locationName:"endpoint" 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 GetEndpointAccessOutput) 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 GetEndpointAccessOutput) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *GetEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *GetEndpointAccessOutput { + s.Endpoint = v + return s +} + +type GetNamespaceInput struct { + _ struct{} `type:"structure"` + + // The name of the namespace to retrieve information for. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" 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 GetNamespaceInput) 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 GetNamespaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetNamespaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetNamespaceInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *GetNamespaceInput) SetNamespaceName(v string) *GetNamespaceInput { + s.NamespaceName = &v + return s +} + +type GetNamespaceOutput struct { + _ struct{} `type:"structure"` + + // The returned namespace object. + // + // Namespace is a required field + Namespace *Namespace `locationName:"namespace" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetNamespaceOutput) 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 GetNamespaceOutput) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *GetNamespaceOutput) SetNamespace(v *Namespace) *GetNamespaceOutput { + s.Namespace = v + return s +} + +type GetRecoveryPointInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the recovery point to return information for. + // + // RecoveryPointId is a required field + RecoveryPointId *string `locationName:"recoveryPointId" 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 GetRecoveryPointInput) 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 GetRecoveryPointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetRecoveryPointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRecoveryPointInput"} + if s.RecoveryPointId == nil { + invalidParams.Add(request.NewErrParamRequired("RecoveryPointId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRecoveryPointId sets the RecoveryPointId field's value. +func (s *GetRecoveryPointInput) SetRecoveryPointId(v string) *GetRecoveryPointInput { + s.RecoveryPointId = &v + return s +} + +type GetRecoveryPointOutput struct { + _ struct{} `type:"structure"` + + // The returned recovery point object. + RecoveryPoint *RecoveryPoint `locationName:"recoveryPoint" 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 GetRecoveryPointOutput) 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 GetRecoveryPointOutput) GoString() string { + return s.String() +} + +// SetRecoveryPoint sets the RecoveryPoint field's value. +func (s *GetRecoveryPointOutput) SetRecoveryPoint(v *RecoveryPoint) *GetRecoveryPointOutput { + s.RecoveryPoint = v + return s +} + +type GetResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to return. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" 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 GetResourcePolicyInput) 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 GetResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourcePolicyInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetResourcePolicyInput) SetResourceArn(v string) *GetResourcePolicyInput { + s.ResourceArn = &v + return s +} + +type GetResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // The returned resource policy. + ResourcePolicy *ResourcePolicy `locationName:"resourcePolicy" 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 GetResourcePolicyOutput) 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 GetResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *GetResourcePolicyOutput) SetResourcePolicy(v *ResourcePolicy) *GetResourcePolicyOutput { + s.ResourcePolicy = v + return s +} + +type GetSnapshotInput struct { + _ struct{} `type:"structure"` + + // The owner Amazon Web Services account of a snapshot shared with another user. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The Amazon Resource Name (ARN) of the snapshot to return. + SnapshotArn *string `locationName:"snapshotArn" type:"string"` + + // The name of the snapshot to return. + SnapshotName *string `locationName:"snapshotName" 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 GetSnapshotInput) 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 GetSnapshotInput) GoString() string { + return s.String() +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *GetSnapshotInput) SetOwnerAccount(v string) *GetSnapshotInput { + s.OwnerAccount = &v + return s +} + +// SetSnapshotArn sets the SnapshotArn field's value. +func (s *GetSnapshotInput) SetSnapshotArn(v string) *GetSnapshotInput { + s.SnapshotArn = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *GetSnapshotInput) SetSnapshotName(v string) *GetSnapshotInput { + s.SnapshotName = &v + return s +} + +type GetSnapshotOutput struct { + _ struct{} `type:"structure"` + + // The returned snapshot object. + Snapshot *Snapshot `locationName:"snapshot" 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 GetSnapshotOutput) 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 GetSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshot sets the Snapshot field's value. +func (s *GetSnapshotOutput) SetSnapshot(v *Snapshot) *GetSnapshotOutput { + s.Snapshot = v + return s +} + +type GetUsageLimitInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the usage limit to return information for. + // + // UsageLimitId is a required field + UsageLimitId *string `locationName:"usageLimitId" 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 GetUsageLimitInput) 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 GetUsageLimitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetUsageLimitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUsageLimitInput"} + if s.UsageLimitId == nil { + invalidParams.Add(request.NewErrParamRequired("UsageLimitId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUsageLimitId sets the UsageLimitId field's value. +func (s *GetUsageLimitInput) SetUsageLimitId(v string) *GetUsageLimitInput { + s.UsageLimitId = &v + return s +} + +type GetUsageLimitOutput struct { + _ struct{} `type:"structure"` + + // The returned usage limit object. + UsageLimit *UsageLimit `locationName:"usageLimit" 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 GetUsageLimitOutput) 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 GetUsageLimitOutput) GoString() string { + return s.String() +} + +// SetUsageLimit sets the UsageLimit field's value. +func (s *GetUsageLimitOutput) SetUsageLimit(v *UsageLimit) *GetUsageLimitOutput { + s.UsageLimit = v + return s +} + +type GetWorkgroupInput struct { + _ struct{} `type:"structure"` + + // The name of the workgroup to return information for. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 GetWorkgroupInput) 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 GetWorkgroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWorkgroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWorkgroupInput"} + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *GetWorkgroupInput) SetWorkgroupName(v string) *GetWorkgroupInput { + s.WorkgroupName = &v + return s +} + +type GetWorkgroupOutput struct { + _ struct{} `type:"structure"` + + // The returned workgroup object. + // + // Workgroup is a required field + Workgroup *Workgroup `locationName:"workgroup" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkgroupOutput) 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 GetWorkgroupOutput) GoString() string { + return s.String() +} + +// SetWorkgroup sets the Workgroup field's value. +func (s *GetWorkgroupOutput) SetWorkgroup(v *Workgroup) *GetWorkgroupOutput { + s.Workgroup = v + return s +} + +// There is an insufficient capacity to perform the action. +type InsufficientCapacityException 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 InsufficientCapacityException) 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 InsufficientCapacityException) GoString() string { + return s.String() +} + +func newErrorInsufficientCapacityException(v protocol.ResponseMetadata) error { + return &InsufficientCapacityException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InsufficientCapacityException) Code() string { + return "InsufficientCapacityException" +} + +// Message returns the exception's message. +func (s *InsufficientCapacityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InsufficientCapacityException) OrigErr() error { + return nil +} + +func (s *InsufficientCapacityException) 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 *InsufficientCapacityException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InsufficientCapacityException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request processing has failed because of an unknown error, exception +// or failure. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The provided pagination token is invalid. +type InvalidPaginationException 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 InvalidPaginationException) 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 InvalidPaginationException) GoString() string { + return s.String() +} + +func newErrorInvalidPaginationException(v protocol.ResponseMetadata) error { + return &InvalidPaginationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidPaginationException) Code() string { + return "InvalidPaginationException" +} + +// Message returns the exception's message. +func (s *InvalidPaginationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidPaginationException) OrigErr() error { + return nil +} + +func (s *InvalidPaginationException) 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 *InvalidPaginationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidPaginationException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListEndpointAccessInput struct { + _ struct{} `type:"structure"` + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to get the next page of results. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // If your initial ListEndpointAccess operation returns a nextToken, you can + // include the returned nextToken in subsequent ListEndpointAccess operations, + // which returns results in the next page. + NextToken *string `locationName:"nextToken" type:"string"` + + // The unique identifier of the virtual private cloud with access to Amazon + // Redshift Serverless. + VpcId *string `locationName:"vpcId" type:"string"` + + // The name of the workgroup associated with the VPC endpoint to return. + WorkgroupName *string `locationName:"workgroupName" 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 ListEndpointAccessInput) 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 ListEndpointAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEndpointAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEndpointAccessInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListEndpointAccessInput) SetMaxResults(v int64) *ListEndpointAccessInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointAccessInput) SetNextToken(v string) *ListEndpointAccessInput { + s.NextToken = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *ListEndpointAccessInput) SetVpcId(v string) *ListEndpointAccessInput { + s.VpcId = &v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *ListEndpointAccessInput) SetWorkgroupName(v string) *ListEndpointAccessInput { + s.WorkgroupName = &v + return s +} + +type ListEndpointAccessOutput struct { + _ struct{} `type:"structure"` + + // The returned VPC endpoints. + // + // Endpoints is a required field + Endpoints []*EndpointAccess `locationName:"endpoints" type:"list" required:"true"` + + // When nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListEndpointAccessOutput) 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 ListEndpointAccessOutput) GoString() string { + return s.String() +} + +// SetEndpoints sets the Endpoints field's value. +func (s *ListEndpointAccessOutput) SetEndpoints(v []*EndpointAccess) *ListEndpointAccessOutput { + s.Endpoints = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointAccessOutput) SetNextToken(v string) *ListEndpointAccessOutput { + s.NextToken = &v + return s +} + +type ListNamespacesInput struct { + _ struct{} `type:"structure"` + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to get the next page of results. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // If your initial ListNamespaces operation returns a nextToken, you can include + // the returned nextToken in subsequent ListNamespaces operations, which returns + // results in the next page. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListNamespacesInput) 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 ListNamespacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListNamespacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListNamespacesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListNamespacesInput) SetMaxResults(v int64) *ListNamespacesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListNamespacesInput) SetNextToken(v string) *ListNamespacesInput { + s.NextToken = &v + return s +} + +type ListNamespacesOutput struct { + _ struct{} `type:"structure"` + + // The list of returned namespaces. + // + // Namespaces is a required field + Namespaces []*Namespace `locationName:"namespaces" type:"list" required:"true"` + + // When nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListNamespacesOutput) 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 ListNamespacesOutput) GoString() string { + return s.String() +} + +// SetNamespaces sets the Namespaces field's value. +func (s *ListNamespacesOutput) SetNamespaces(v []*Namespace) *ListNamespacesOutput { + s.Namespaces = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListNamespacesOutput) SetNextToken(v string) *ListNamespacesOutput { + s.NextToken = &v + return s +} + +type ListRecoveryPointsInput struct { + _ struct{} `type:"structure"` + + // The time when creation of the recovery point finished. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to get the next page of results. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The name of the namespace to list recovery points for. + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string"` + + // If your initial ListRecoveryPoints operation returns a nextToken, you can + // include the returned nextToken in subsequent ListRecoveryPoints operations, + // which returns results in the next page. + NextToken *string `locationName:"nextToken" type:"string"` + + // The time when the recovery point's creation was initiated. + StartTime *time.Time `locationName:"startTime" type:"timestamp"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListRecoveryPointsInput) 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 ListRecoveryPointsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListRecoveryPointsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRecoveryPointsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *ListRecoveryPointsInput) SetEndTime(v time.Time) *ListRecoveryPointsInput { + s.EndTime = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListRecoveryPointsInput) SetMaxResults(v int64) *ListRecoveryPointsInput { + s.MaxResults = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *ListRecoveryPointsInput) SetNamespaceName(v string) *ListRecoveryPointsInput { + s.NamespaceName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRecoveryPointsInput) SetNextToken(v string) *ListRecoveryPointsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ListRecoveryPointsInput) SetStartTime(v time.Time) *ListRecoveryPointsInput { + s.StartTime = &v + return s +} + +type ListRecoveryPointsOutput struct { + _ struct{} `type:"structure"` + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. + NextToken *string `locationName:"nextToken" type:"string"` + + // The returned recovery point objects. + RecoveryPoints []*RecoveryPoint `locationName:"recoveryPoints" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListRecoveryPointsOutput) 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 ListRecoveryPointsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRecoveryPointsOutput) SetNextToken(v string) *ListRecoveryPointsOutput { + s.NextToken = &v + return s +} + +// SetRecoveryPoints sets the RecoveryPoints field's value. +func (s *ListRecoveryPointsOutput) SetRecoveryPoints(v []*RecoveryPoint) *ListRecoveryPointsOutput { + s.RecoveryPoints = v + return s +} + +type ListSnapshotsInput struct { + _ struct{} `type:"structure"` + + // The timestamp showing when the snapshot creation finished. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to get the next page of results. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The Amazon Resource Name (ARN) of the namespace from which to list all snapshots. + NamespaceArn *string `locationName:"namespaceArn" type:"string"` + + // The namespace from which to list all snapshots. + NamespaceName *string `locationName:"namespaceName" type:"string"` + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. + NextToken *string `locationName:"nextToken" type:"string"` + + // The owner Amazon Web Services account of the snapshot. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The time when the creation of the snapshot was initiated. + StartTime *time.Time `locationName:"startTime" type:"timestamp"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSnapshotsInput) 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 ListSnapshotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSnapshotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSnapshotsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *ListSnapshotsInput) SetEndTime(v time.Time) *ListSnapshotsInput { + s.EndTime = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSnapshotsInput) SetMaxResults(v int64) *ListSnapshotsInput { + s.MaxResults = &v + return s +} + +// SetNamespaceArn sets the NamespaceArn field's value. +func (s *ListSnapshotsInput) SetNamespaceArn(v string) *ListSnapshotsInput { + s.NamespaceArn = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *ListSnapshotsInput) SetNamespaceName(v string) *ListSnapshotsInput { + s.NamespaceName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSnapshotsInput) SetNextToken(v string) *ListSnapshotsInput { + s.NextToken = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *ListSnapshotsInput) SetOwnerAccount(v string) *ListSnapshotsInput { + s.OwnerAccount = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ListSnapshotsInput) SetStartTime(v time.Time) *ListSnapshotsInput { + s.StartTime = &v + return s +} + +type ListSnapshotsOutput struct { + _ struct{} `type:"structure"` + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. + NextToken *string `locationName:"nextToken" type:"string"` + + // All of the returned snapshot objects. + Snapshots []*Snapshot `locationName:"snapshots" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSnapshotsOutput) 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 ListSnapshotsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSnapshotsOutput) SetNextToken(v string) *ListSnapshotsOutput { + s.NextToken = &v + return s +} + +// SetSnapshots sets the Snapshots field's value. +func (s *ListSnapshotsOutput) SetSnapshots(v []*Snapshot) *ListSnapshotsOutput { + s.Snapshots = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to list tags for. + // + // ResourceArn is a required field + ResourceArn *string `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"` + + // A map of the key-value pairs assigned to the resource. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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 []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +type ListUsageLimitsInput struct { + _ struct{} `type:"structure"` + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to get the next page of results. The default is 100. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // If your initial ListUsageLimits operation returns a nextToken, you can include + // the returned nextToken in subsequent ListUsageLimits operations, which returns + // results in the next page. + NextToken *string `locationName:"nextToken" min:"8" type:"string"` + + // The Amazon Resource Name (ARN) associated with the resource whose usage limits + // you want to list. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The Amazon Redshift Serverless feature whose limits you want to see. + UsageType *string `locationName:"usageType" type:"string" enum:"UsageLimitUsageType"` +} + +// 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 ListUsageLimitsInput) 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 ListUsageLimitsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsageLimitsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsageLimitsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 8 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 8)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsageLimitsInput) SetMaxResults(v int64) *ListUsageLimitsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsageLimitsInput) SetNextToken(v string) *ListUsageLimitsInput { + s.NextToken = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListUsageLimitsInput) SetResourceArn(v string) *ListUsageLimitsInput { + s.ResourceArn = &v + return s +} + +// SetUsageType sets the UsageType field's value. +func (s *ListUsageLimitsInput) SetUsageType(v string) *ListUsageLimitsInput { + s.UsageType = &v + return s +} + +type ListUsageLimitsOutput struct { + _ struct{} `type:"structure"` + + // When nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. + NextToken *string `locationName:"nextToken" min:"8" type:"string"` + + // An array of returned usage limit objects. + UsageLimits []*UsageLimit `locationName:"usageLimits" min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListUsageLimitsOutput) 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 ListUsageLimitsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsageLimitsOutput) SetNextToken(v string) *ListUsageLimitsOutput { + s.NextToken = &v + return s +} + +// SetUsageLimits sets the UsageLimits field's value. +func (s *ListUsageLimitsOutput) SetUsageLimits(v []*UsageLimit) *ListUsageLimitsOutput { + s.UsageLimits = v + return s +} + +type ListWorkgroupsInput struct { + _ struct{} `type:"structure"` + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to get the next page of results. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // If your initial ListWorkgroups operation returns a nextToken, you can include + // the returned nextToken in subsequent ListNamespaces operations, which returns + // results in the next page. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkgroupsInput) 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 ListWorkgroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkgroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkgroupsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkgroupsInput) SetMaxResults(v int64) *ListWorkgroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkgroupsInput) SetNextToken(v string) *ListWorkgroupsInput { + s.NextToken = &v + return s +} + +type ListWorkgroupsOutput struct { + _ struct{} `type:"structure"` + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. To retrieve the next + // page, make the call again using the returned token. + NextToken *string `locationName:"nextToken" type:"string"` + + // The returned array of workgroups. + // + // Workgroups is a required field + Workgroups []*Workgroup `locationName:"workgroups" 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 ListWorkgroupsOutput) 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 ListWorkgroupsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkgroupsOutput) SetNextToken(v string) *ListWorkgroupsOutput { + s.NextToken = &v + return s +} + +// SetWorkgroups sets the Workgroups field's value. +func (s *ListWorkgroupsOutput) SetWorkgroups(v []*Workgroup) *ListWorkgroupsOutput { + s.Workgroups = v + return s +} + +// A collection of database objects and users. +type Namespace struct { + _ struct{} `type:"structure"` + + // The username of the administrator for the first database created in the namespace. + // + // AdminUsername is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Namespace's + // String and GoString methods. + AdminUsername *string `locationName:"adminUsername" type:"string" sensitive:"true"` + + // The date of when the namespace was created. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"iso8601"` + + // The name of the first database created in the namespace. + DbName *string `locationName:"dbName" type:"string"` + + // The Amazon Resource Name (ARN) of the IAM role to set as a default in the + // namespace. + DefaultIamRoleArn *string `locationName:"defaultIamRoleArn" type:"string"` + + // A list of IAM roles to associate with the namespace. + IamRoles []*string `locationName:"iamRoles" type:"list"` + + // The ID of the Amazon Web Services Key Management Service key used to encrypt + // your data. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The types of logs the namespace can export. Available export types are User + // log, Connection log, and User activity log. + LogExports []*string `locationName:"logExports" type:"list" enum:"LogExport"` + + // The Amazon Resource Name (ARN) associated with a namespace. + NamespaceArn *string `locationName:"namespaceArn" type:"string"` + + // The unique identifier of a namespace. + NamespaceId *string `locationName:"namespaceId" type:"string"` + + // The name of the namespace. Must be between 3-64 alphanumeric characters in + // lowercase, and it cannot be a reserved word. A list of reserved words can + // be found in Reserved Words (https://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) + // in the Amazon Redshift Database Developer Guide. + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string"` + + // The status of the namespace. + Status *string `locationName:"status" type:"string" enum:"NamespaceStatus"` +} + +// 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 Namespace) 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 Namespace) GoString() string { + return s.String() +} + +// SetAdminUsername sets the AdminUsername field's value. +func (s *Namespace) SetAdminUsername(v string) *Namespace { + s.AdminUsername = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *Namespace) SetCreationDate(v time.Time) *Namespace { + s.CreationDate = &v + return s +} + +// SetDbName sets the DbName field's value. +func (s *Namespace) SetDbName(v string) *Namespace { + s.DbName = &v + return s +} + +// SetDefaultIamRoleArn sets the DefaultIamRoleArn field's value. +func (s *Namespace) SetDefaultIamRoleArn(v string) *Namespace { + s.DefaultIamRoleArn = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *Namespace) SetIamRoles(v []*string) *Namespace { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Namespace) SetKmsKeyId(v string) *Namespace { + s.KmsKeyId = &v + return s +} + +// SetLogExports sets the LogExports field's value. +func (s *Namespace) SetLogExports(v []*string) *Namespace { + s.LogExports = v + return s +} + +// SetNamespaceArn sets the NamespaceArn field's value. +func (s *Namespace) SetNamespaceArn(v string) *Namespace { + s.NamespaceArn = &v + return s +} + +// SetNamespaceId sets the NamespaceId field's value. +func (s *Namespace) SetNamespaceId(v string) *Namespace { + s.NamespaceId = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *Namespace) SetNamespaceName(v string) *Namespace { + s.NamespaceName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Namespace) SetStatus(v string) *Namespace { + s.Status = &v + return s +} + +// Contains information about a network interface in an Amazon Redshift Serverless +// managed VPC endpoint. +type NetworkInterface struct { + _ struct{} `type:"structure"` + + // The availability Zone. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The unique identifier of the network interface. + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` + + // The IPv4 address of the network interface within the subnet. + PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` + + // The unique identifier of the subnet. + SubnetId *string `locationName:"subnetId" 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 NetworkInterface) 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 NetworkInterface) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface { + s.AvailabilityZone = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface { + s.NetworkInterfaceId = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface { + s.PrivateIpAddress = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { + s.SubnetId = &v + return s +} + +type PutResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The policy to create or update. For example, the following policy grants + // a user authorization to restore a snapshot. + // + // "{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", + // \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] + // , \"Effect\": \"Allow\" }]}" + // + // Policy is a required field + Policy *string `locationName:"policy" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the account to create or update a resource + // policy for. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" 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 PutResourcePolicyInput) 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 PutResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"} + if s.Policy == nil { + invalidParams.Add(request.NewErrParamRequired("Policy")) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicy sets the Policy field's value. +func (s *PutResourcePolicyInput) SetPolicy(v string) *PutResourcePolicyInput { + s.Policy = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *PutResourcePolicyInput) SetResourceArn(v string) *PutResourcePolicyInput { + s.ResourceArn = &v + return s +} + +type PutResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // The policy that was created or updated. + ResourcePolicy *ResourcePolicy `locationName:"resourcePolicy" 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 PutResourcePolicyOutput) 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 PutResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetResourcePolicy sets the ResourcePolicy field's value. +func (s *PutResourcePolicyOutput) SetResourcePolicy(v *ResourcePolicy) *PutResourcePolicyOutput { + s.ResourcePolicy = v + return s +} + +// The automatically created recovery point of a namespace. Recovery points +// are created every 30 minutes and kept for 24 hours. +type RecoveryPoint struct { + _ struct{} `type:"structure"` + + // The name of the namespace the recovery point is associated with. + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string"` + + // The time the recovery point is created. + RecoveryPointCreateTime *time.Time `locationName:"recoveryPointCreateTime" type:"timestamp" timestampFormat:"iso8601"` + + // The unique identifier of the recovery point. + RecoveryPointId *string `locationName:"recoveryPointId" type:"string"` + + // The total size of the data in the recovery point in megabytes. + TotalSizeInMegaBytes *float64 `locationName:"totalSizeInMegaBytes" type:"double"` + + // The name of the workgroup the recovery point is associated with. + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 RecoveryPoint) 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 RecoveryPoint) GoString() string { + return s.String() +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *RecoveryPoint) SetNamespaceName(v string) *RecoveryPoint { + s.NamespaceName = &v + return s +} + +// SetRecoveryPointCreateTime sets the RecoveryPointCreateTime field's value. +func (s *RecoveryPoint) SetRecoveryPointCreateTime(v time.Time) *RecoveryPoint { + s.RecoveryPointCreateTime = &v + return s +} + +// SetRecoveryPointId sets the RecoveryPointId field's value. +func (s *RecoveryPoint) SetRecoveryPointId(v string) *RecoveryPoint { + s.RecoveryPointId = &v + return s +} + +// SetTotalSizeInMegaBytes sets the TotalSizeInMegaBytes field's value. +func (s *RecoveryPoint) SetTotalSizeInMegaBytes(v float64) *RecoveryPoint { + s.TotalSizeInMegaBytes = &v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *RecoveryPoint) SetWorkgroupName(v string) *RecoveryPoint { + s.WorkgroupName = &v + return s +} + +// The resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The name of the resource that could not be found. + ResourceName *string `locationName:"resourceName" 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 ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The resource policy object. Currently, you can use policies to share snapshots +// across Amazon Web Services accounts. +type ResourcePolicy struct { + _ struct{} `type:"structure"` + + // The resource policy. + Policy *string `locationName:"policy" type:"string"` + + // The Amazon Resource Name (ARN) of the policy. + ResourceArn *string `locationName:"resourceArn" 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 ResourcePolicy) 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 ResourcePolicy) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *ResourcePolicy) SetPolicy(v string) *ResourcePolicy { + s.Policy = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ResourcePolicy) SetResourceArn(v string) *ResourcePolicy { + s.ResourceArn = &v + return s +} + +type RestoreFromRecoveryPointInput struct { + _ struct{} `type:"structure"` + + // The name of the namespace to restore data into. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` + + // The unique identifier of the recovery point to restore from. + // + // RecoveryPointId is a required field + RecoveryPointId *string `locationName:"recoveryPointId" type:"string" required:"true"` + + // The name of the workgroup used to restore data. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 RestoreFromRecoveryPointInput) 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 RestoreFromRecoveryPointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestoreFromRecoveryPointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestoreFromRecoveryPointInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + if s.RecoveryPointId == nil { + invalidParams.Add(request.NewErrParamRequired("RecoveryPointId")) + } + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *RestoreFromRecoveryPointInput) SetNamespaceName(v string) *RestoreFromRecoveryPointInput { + s.NamespaceName = &v + return s +} + +// SetRecoveryPointId sets the RecoveryPointId field's value. +func (s *RestoreFromRecoveryPointInput) SetRecoveryPointId(v string) *RestoreFromRecoveryPointInput { + s.RecoveryPointId = &v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *RestoreFromRecoveryPointInput) SetWorkgroupName(v string) *RestoreFromRecoveryPointInput { + s.WorkgroupName = &v + return s +} + +type RestoreFromRecoveryPointOutput struct { + _ struct{} `type:"structure"` + + // The namespace that data was restored into. + Namespace *Namespace `locationName:"namespace" type:"structure"` + + // The unique identifier of the recovery point used for the restore. + RecoveryPointId *string `locationName:"recoveryPointId" 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 RestoreFromRecoveryPointOutput) 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 RestoreFromRecoveryPointOutput) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *RestoreFromRecoveryPointOutput) SetNamespace(v *Namespace) *RestoreFromRecoveryPointOutput { + s.Namespace = v + return s +} + +// SetRecoveryPointId sets the RecoveryPointId field's value. +func (s *RestoreFromRecoveryPointOutput) SetRecoveryPointId(v string) *RestoreFromRecoveryPointOutput { + s.RecoveryPointId = &v + return s +} + +type RestoreFromSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of the namespace to restore the snapshot to. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` + + // The Amazon Web Services account that owns the snapshot. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The Amazon Resource Name (ARN) of the snapshot to restore from. + SnapshotArn *string `locationName:"snapshotArn" type:"string"` + + // The name of the snapshot to restore from. + SnapshotName *string `locationName:"snapshotName" type:"string"` + + // The name of the workgroup used to restore the snapshot. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 RestoreFromSnapshotInput) 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 RestoreFromSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestoreFromSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestoreFromSnapshotInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *RestoreFromSnapshotInput) SetNamespaceName(v string) *RestoreFromSnapshotInput { + s.NamespaceName = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *RestoreFromSnapshotInput) SetOwnerAccount(v string) *RestoreFromSnapshotInput { + s.OwnerAccount = &v + return s +} + +// SetSnapshotArn sets the SnapshotArn field's value. +func (s *RestoreFromSnapshotInput) SetSnapshotArn(v string) *RestoreFromSnapshotInput { + s.SnapshotArn = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *RestoreFromSnapshotInput) SetSnapshotName(v string) *RestoreFromSnapshotInput { + s.SnapshotName = &v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *RestoreFromSnapshotInput) SetWorkgroupName(v string) *RestoreFromSnapshotInput { + s.WorkgroupName = &v + return s +} + +type RestoreFromSnapshotOutput struct { + _ struct{} `type:"structure"` + + // A collection of database objects and users. + Namespace *Namespace `locationName:"namespace" type:"structure"` + + // The owner Amazon Web Services; account of the snapshot that was restored. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The name of the snapshot used to restore the namespace. + SnapshotName *string `locationName:"snapshotName" 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 RestoreFromSnapshotOutput) 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 RestoreFromSnapshotOutput) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *RestoreFromSnapshotOutput) SetNamespace(v *Namespace) *RestoreFromSnapshotOutput { + s.Namespace = v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *RestoreFromSnapshotOutput) SetOwnerAccount(v string) *RestoreFromSnapshotOutput { + s.OwnerAccount = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *RestoreFromSnapshotOutput) SetSnapshotName(v string) *RestoreFromSnapshotOutput { + s.SnapshotName = &v + return s +} + +// The service limit was exceeded. +type ServiceQuotaExceededException 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 ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// A snapshot object that contains databases. +type Snapshot struct { + _ struct{} `type:"structure"` + + // All of the Amazon Web Services accounts that have access to restore a snapshot + // to a provisioned cluster. + AccountsWithProvisionedRestoreAccess []*string `locationName:"accountsWithProvisionedRestoreAccess" type:"list"` + + // All of the Amazon Web Services accounts that have access to restore a snapshot + // to a namespace. + AccountsWithRestoreAccess []*string `locationName:"accountsWithRestoreAccess" type:"list"` + + // The size of the incremental backup in megabytes. + ActualIncrementalBackupSizeInMegaBytes *float64 `locationName:"actualIncrementalBackupSizeInMegaBytes" type:"double"` + + // The username of the database within a snapshot. + AdminUsername *string `locationName:"adminUsername" type:"string"` + + // The size in megabytes of the data that has been backed up to a snapshot. + BackupProgressInMegaBytes *float64 `locationName:"backupProgressInMegaBytes" type:"double"` + + // The rate at which data is backed up into a snapshot in megabytes per second. + CurrentBackupRateInMegaBytesPerSecond *float64 `locationName:"currentBackupRateInMegaBytesPerSecond" type:"double"` + + // The amount of time it took to back up data into a snapshot. + ElapsedTimeInSeconds *int64 `locationName:"elapsedTimeInSeconds" type:"long"` + + // The estimated amount of seconds until the snapshot completes backup. + EstimatedSecondsToCompletion *int64 `locationName:"estimatedSecondsToCompletion" type:"long"` + + // The unique identifier of the KMS key used to encrypt the snapshot. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The Amazon Resource Name (ARN) of the namespace the snapshot was created + // from. + NamespaceArn *string `locationName:"namespaceArn" type:"string"` + + // The name of the namepsace. + NamespaceName *string `locationName:"namespaceName" type:"string"` + + // The owner Amazon Web Services; account of the snapshot. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The Amazon Resource Name (ARN) of the snapshot. + SnapshotArn *string `locationName:"snapshotArn" type:"string"` + + // The timestamp of when the snapshot was created. + SnapshotCreateTime *time.Time `locationName:"snapshotCreateTime" type:"timestamp" timestampFormat:"iso8601"` + + // The name of the snapshot. + SnapshotName *string `locationName:"snapshotName" type:"string"` + + // The amount of days until the snapshot is deleted. + SnapshotRemainingDays *int64 `locationName:"snapshotRemainingDays" type:"integer"` + + // The period of time, in days, of how long the snapshot is retained. + SnapshotRetentionPeriod *int64 `locationName:"snapshotRetentionPeriod" type:"integer"` + + // The timestamp of when data within the snapshot started getting retained. + SnapshotRetentionStartTime *time.Time `locationName:"snapshotRetentionStartTime" type:"timestamp" timestampFormat:"iso8601"` + + // The status of the snapshot. + Status *string `locationName:"status" type:"string" enum:"SnapshotStatus"` + + // The total size, in megabytes, of how big the snapshot is. + TotalBackupSizeInMegaBytes *float64 `locationName:"totalBackupSizeInMegaBytes" type:"double"` +} + +// 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 Snapshot) 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 Snapshot) GoString() string { + return s.String() +} + +// SetAccountsWithProvisionedRestoreAccess sets the AccountsWithProvisionedRestoreAccess field's value. +func (s *Snapshot) SetAccountsWithProvisionedRestoreAccess(v []*string) *Snapshot { + s.AccountsWithProvisionedRestoreAccess = v + return s +} + +// SetAccountsWithRestoreAccess sets the AccountsWithRestoreAccess field's value. +func (s *Snapshot) SetAccountsWithRestoreAccess(v []*string) *Snapshot { + s.AccountsWithRestoreAccess = v + return s +} + +// SetActualIncrementalBackupSizeInMegaBytes sets the ActualIncrementalBackupSizeInMegaBytes field's value. +func (s *Snapshot) SetActualIncrementalBackupSizeInMegaBytes(v float64) *Snapshot { + s.ActualIncrementalBackupSizeInMegaBytes = &v + return s +} + +// SetAdminUsername sets the AdminUsername field's value. +func (s *Snapshot) SetAdminUsername(v string) *Snapshot { + s.AdminUsername = &v + return s +} + +// SetBackupProgressInMegaBytes sets the BackupProgressInMegaBytes field's value. +func (s *Snapshot) SetBackupProgressInMegaBytes(v float64) *Snapshot { + s.BackupProgressInMegaBytes = &v + return s +} + +// SetCurrentBackupRateInMegaBytesPerSecond sets the CurrentBackupRateInMegaBytesPerSecond field's value. +func (s *Snapshot) SetCurrentBackupRateInMegaBytesPerSecond(v float64) *Snapshot { + s.CurrentBackupRateInMegaBytesPerSecond = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *Snapshot) SetElapsedTimeInSeconds(v int64) *Snapshot { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedSecondsToCompletion sets the EstimatedSecondsToCompletion field's value. +func (s *Snapshot) SetEstimatedSecondsToCompletion(v int64) *Snapshot { + s.EstimatedSecondsToCompletion = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Snapshot) SetKmsKeyId(v string) *Snapshot { + s.KmsKeyId = &v + return s +} + +// SetNamespaceArn sets the NamespaceArn field's value. +func (s *Snapshot) SetNamespaceArn(v string) *Snapshot { + s.NamespaceArn = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *Snapshot) SetNamespaceName(v string) *Snapshot { + s.NamespaceName = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *Snapshot) SetOwnerAccount(v string) *Snapshot { + s.OwnerAccount = &v + return s +} + +// SetSnapshotArn sets the SnapshotArn field's value. +func (s *Snapshot) SetSnapshotArn(v string) *Snapshot { + s.SnapshotArn = &v + return s +} + +// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. +func (s *Snapshot) SetSnapshotCreateTime(v time.Time) *Snapshot { + s.SnapshotCreateTime = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *Snapshot) SetSnapshotName(v string) *Snapshot { + s.SnapshotName = &v + return s +} + +// SetSnapshotRemainingDays sets the SnapshotRemainingDays field's value. +func (s *Snapshot) SetSnapshotRemainingDays(v int64) *Snapshot { + s.SnapshotRemainingDays = &v + return s +} + +// SetSnapshotRetentionPeriod sets the SnapshotRetentionPeriod field's value. +func (s *Snapshot) SetSnapshotRetentionPeriod(v int64) *Snapshot { + s.SnapshotRetentionPeriod = &v + return s +} + +// SetSnapshotRetentionStartTime sets the SnapshotRetentionStartTime field's value. +func (s *Snapshot) SetSnapshotRetentionStartTime(v time.Time) *Snapshot { + s.SnapshotRetentionStartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Snapshot) SetStatus(v string) *Snapshot { + s.Status = &v + return s +} + +// SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value. +func (s *Snapshot) SetTotalBackupSizeInMegaBytes(v float64) *Snapshot { + s.TotalBackupSizeInMegaBytes = &v + return s +} + +// A map of key-value pairs. +type Tag struct { + _ struct{} `type:"structure"` + + // The key to use in the tag. + // + // Key is a required field + Key *string `locationName:"key" min:"1" type:"string" required:"true"` + + // The value of the tag. + // + // Value is a required field + Value *string `locationName:"value" 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 Tag) 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 Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to tag. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // The map of the key-value pairs used to tag the resource. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" 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 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 s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API 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() +} + +// The request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottlingException) 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 ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s *ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottlingException) OrigErr() error { + return nil +} + +func (s *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ThrottlingException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottlingException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request exceeded the number of tags allowed for a resource. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The name of the resource that exceeded the number of tags allowed for a resource. + ResourceName *string `locationName:"resourceName" 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 TooManyTagsException) 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 TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s *TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *TooManyTagsException) OrigErr() error { + return nil +} + +func (s *TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *TooManyTagsException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *TooManyTagsException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to remove tags from. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // The tag or set of tags to remove from the resource. + // + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +type UpdateEndpointAccessInput struct { + _ struct{} `type:"structure"` + + // The name of the VPC endpoint to update. + // + // EndpointName is a required field + EndpointName *string `locationName:"endpointName" type:"string" required:"true"` + + // The list of VPC security groups associated with the endpoint after the endpoint + // is modified. + VpcSecurityGroupIds []*string `locationName:"vpcSecurityGroupIds" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateEndpointAccessInput) 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 UpdateEndpointAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateEndpointAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointAccessInput"} + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointName sets the EndpointName field's value. +func (s *UpdateEndpointAccessInput) SetEndpointName(v string) *UpdateEndpointAccessInput { + s.EndpointName = &v + return s +} + +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *UpdateEndpointAccessInput) SetVpcSecurityGroupIds(v []*string) *UpdateEndpointAccessInput { + s.VpcSecurityGroupIds = v + return s +} + +type UpdateEndpointAccessOutput struct { + _ struct{} `type:"structure"` + + // The updated VPC endpoint. + Endpoint *EndpointAccess `locationName:"endpoint" 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 UpdateEndpointAccessOutput) 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 UpdateEndpointAccessOutput) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *UpdateEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *UpdateEndpointAccessOutput { + s.Endpoint = v + return s +} + +type UpdateNamespaceInput struct { + _ struct{} `type:"structure"` + + // The password of the administrator for the first database created in the namespace. + // + // AdminUserPassword is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateNamespaceInput's + // String and GoString methods. + AdminUserPassword *string `locationName:"adminUserPassword" type:"string" sensitive:"true"` + + // The username of the administrator for the first database created in the namespace. + // + // AdminUsername is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateNamespaceInput's + // String and GoString methods. + AdminUsername *string `locationName:"adminUsername" type:"string" sensitive:"true"` + + // The Amazon Resource Name (ARN) of the IAM role to set as a default in the + // namespace. + DefaultIamRoleArn *string `locationName:"defaultIamRoleArn" type:"string"` + + // A list of IAM roles to associate with the namespace. + IamRoles []*string `locationName:"iamRoles" type:"list"` + + // The ID of the Amazon Web Services Key Management Service key used to encrypt + // your data. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The types of logs the namespace can export. The export types are userlog, + // connectionlog, and useractivitylog. + LogExports []*string `locationName:"logExports" type:"list" enum:"LogExport"` + + // The name of the namespace. + // + // NamespaceName is a required field + NamespaceName *string `locationName:"namespaceName" min:"3" 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 UpdateNamespaceInput) 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 UpdateNamespaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateNamespaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateNamespaceInput"} + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdminUserPassword sets the AdminUserPassword field's value. +func (s *UpdateNamespaceInput) SetAdminUserPassword(v string) *UpdateNamespaceInput { + s.AdminUserPassword = &v + return s +} + +// SetAdminUsername sets the AdminUsername field's value. +func (s *UpdateNamespaceInput) SetAdminUsername(v string) *UpdateNamespaceInput { + s.AdminUsername = &v + return s +} + +// SetDefaultIamRoleArn sets the DefaultIamRoleArn field's value. +func (s *UpdateNamespaceInput) SetDefaultIamRoleArn(v string) *UpdateNamespaceInput { + s.DefaultIamRoleArn = &v + return s +} + +// SetIamRoles sets the IamRoles field's value. +func (s *UpdateNamespaceInput) SetIamRoles(v []*string) *UpdateNamespaceInput { + s.IamRoles = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *UpdateNamespaceInput) SetKmsKeyId(v string) *UpdateNamespaceInput { + s.KmsKeyId = &v + return s +} + +// SetLogExports sets the LogExports field's value. +func (s *UpdateNamespaceInput) SetLogExports(v []*string) *UpdateNamespaceInput { + s.LogExports = v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *UpdateNamespaceInput) SetNamespaceName(v string) *UpdateNamespaceInput { + s.NamespaceName = &v + return s +} + +type UpdateNamespaceOutput struct { + _ struct{} `type:"structure"` + + // A list of tag instances. + // + // Namespace is a required field + Namespace *Namespace `locationName:"namespace" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateNamespaceOutput) 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 UpdateNamespaceOutput) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *UpdateNamespaceOutput) SetNamespace(v *Namespace) *UpdateNamespaceOutput { + s.Namespace = v + return s +} + +type UpdateSnapshotInput struct { + _ struct{} `type:"structure"` + + // The new retention period of the snapshot. + RetentionPeriod *int64 `locationName:"retentionPeriod" type:"integer"` + + // The name of the snapshot. + // + // SnapshotName is a required field + SnapshotName *string `locationName:"snapshotName" 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 UpdateSnapshotInput) 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 UpdateSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSnapshotInput"} + if s.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRetentionPeriod sets the RetentionPeriod field's value. +func (s *UpdateSnapshotInput) SetRetentionPeriod(v int64) *UpdateSnapshotInput { + s.RetentionPeriod = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *UpdateSnapshotInput) SetSnapshotName(v string) *UpdateSnapshotInput { + s.SnapshotName = &v + return s +} + +type UpdateSnapshotOutput struct { + _ struct{} `type:"structure"` + + // The updated snapshot object. + Snapshot *Snapshot `locationName:"snapshot" 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 UpdateSnapshotOutput) 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 UpdateSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshot sets the Snapshot field's value. +func (s *UpdateSnapshotOutput) SetSnapshot(v *Snapshot) *UpdateSnapshotOutput { + s.Snapshot = v + return s +} + +type UpdateUsageLimitInput struct { + _ struct{} `type:"structure"` + + // The new limit amount. For more information about this parameter. + Amount *int64 `locationName:"amount" type:"long"` + + // The new action that Amazon Redshift Serverless takes when the limit is reached. + BreachAction *string `locationName:"breachAction" type:"string" enum:"UsageLimitBreachAction"` + + // The identifier of the usage limit to update. + // + // UsageLimitId is a required field + UsageLimitId *string `locationName:"usageLimitId" 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 UpdateUsageLimitInput) 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 UpdateUsageLimitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateUsageLimitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateUsageLimitInput"} + if s.UsageLimitId == nil { + invalidParams.Add(request.NewErrParamRequired("UsageLimitId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmount sets the Amount field's value. +func (s *UpdateUsageLimitInput) SetAmount(v int64) *UpdateUsageLimitInput { + s.Amount = &v + return s +} + +// SetBreachAction sets the BreachAction field's value. +func (s *UpdateUsageLimitInput) SetBreachAction(v string) *UpdateUsageLimitInput { + s.BreachAction = &v + return s +} + +// SetUsageLimitId sets the UsageLimitId field's value. +func (s *UpdateUsageLimitInput) SetUsageLimitId(v string) *UpdateUsageLimitInput { + s.UsageLimitId = &v + return s +} + +type UpdateUsageLimitOutput struct { + _ struct{} `type:"structure"` + + // The updated usage limit object. + UsageLimit *UsageLimit `locationName:"usageLimit" 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 UpdateUsageLimitOutput) 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 UpdateUsageLimitOutput) GoString() string { + return s.String() +} + +// SetUsageLimit sets the UsageLimit field's value. +func (s *UpdateUsageLimitOutput) SetUsageLimit(v *UsageLimit) *UpdateUsageLimitOutput { + s.UsageLimit = v + return s +} + +type UpdateWorkgroupInput struct { + _ struct{} `type:"structure"` + + // The new base data warehouse capacity in Redshift Processing Units (RPUs). + BaseCapacity *int64 `locationName:"baseCapacity" type:"integer"` + + // An array of parameters to set for advanced control over a database. The options + // are datestyle, enable_user_activity_logging, query_group, search_path, and + // max_query_execution_time. + ConfigParameters []*ConfigParameter `locationName:"configParameters" type:"list"` + + // The value that specifies whether to turn on enhanced virtual private cloud + // (VPC) routing, which forces Amazon Redshift Serverless to route traffic through + // your VPC. + EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` + + // A value that specifies whether the workgroup can be accessible from a public + // network. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // An array of security group IDs to associate with the workgroup. + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` + + // An array of VPC subnet IDs to associate with the workgroup. + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + // The name of the workgroup to update. + // + // WorkgroupName is a required field + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 UpdateWorkgroupInput) 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 UpdateWorkgroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateWorkgroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateWorkgroupInput"} + if s.WorkgroupName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) + } + if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaseCapacity sets the BaseCapacity field's value. +func (s *UpdateWorkgroupInput) SetBaseCapacity(v int64) *UpdateWorkgroupInput { + s.BaseCapacity = &v + return s +} + +// SetConfigParameters sets the ConfigParameters field's value. +func (s *UpdateWorkgroupInput) SetConfigParameters(v []*ConfigParameter) *UpdateWorkgroupInput { + s.ConfigParameters = v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *UpdateWorkgroupInput) SetEnhancedVpcRouting(v bool) *UpdateWorkgroupInput { + s.EnhancedVpcRouting = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *UpdateWorkgroupInput) SetPubliclyAccessible(v bool) *UpdateWorkgroupInput { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *UpdateWorkgroupInput) SetSecurityGroupIds(v []*string) *UpdateWorkgroupInput { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *UpdateWorkgroupInput) SetSubnetIds(v []*string) *UpdateWorkgroupInput { + s.SubnetIds = v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *UpdateWorkgroupInput) SetWorkgroupName(v string) *UpdateWorkgroupInput { + s.WorkgroupName = &v + return s +} + +type UpdateWorkgroupOutput struct { + _ struct{} `type:"structure"` + + // The updated workgroup object. + // + // Workgroup is a required field + Workgroup *Workgroup `locationName:"workgroup" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkgroupOutput) 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 UpdateWorkgroupOutput) GoString() string { + return s.String() +} + +// SetWorkgroup sets the Workgroup field's value. +func (s *UpdateWorkgroupOutput) SetWorkgroup(v *Workgroup) *UpdateWorkgroupOutput { + s.Workgroup = v + return s +} + +// The usage limit object. +type UsageLimit struct { + _ struct{} `type:"structure"` + + // The limit amount. If time-based, this amount is in RPUs consumed per hour. + // If data-based, this amount is in terabytes (TB). The value must be a positive + // number. + Amount *int64 `locationName:"amount" type:"long"` + + // The action that Amazon Redshift Serverless takes when the limit is reached. + BreachAction *string `locationName:"breachAction" type:"string" enum:"UsageLimitBreachAction"` + + // The time period that the amount applies to. A weekly period begins on Sunday. + // The default is monthly. + Period *string `locationName:"period" type:"string" enum:"UsageLimitPeriod"` + + // The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless + // resource. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The Amazon Resource Name (ARN) of the resource associated with the usage + // limit. + UsageLimitArn *string `locationName:"usageLimitArn" type:"string"` + + // The identifier of the usage limit. + UsageLimitId *string `locationName:"usageLimitId" type:"string"` + + // The Amazon Redshift Serverless feature to limit. + UsageType *string `locationName:"usageType" type:"string" enum:"UsageLimitUsageType"` +} + +// 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 UsageLimit) 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 UsageLimit) GoString() string { + return s.String() +} + +// SetAmount sets the Amount field's value. +func (s *UsageLimit) SetAmount(v int64) *UsageLimit { + s.Amount = &v + return s +} + +// SetBreachAction sets the BreachAction field's value. +func (s *UsageLimit) SetBreachAction(v string) *UsageLimit { + s.BreachAction = &v + return s +} + +// SetPeriod sets the Period field's value. +func (s *UsageLimit) SetPeriod(v string) *UsageLimit { + s.Period = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UsageLimit) SetResourceArn(v string) *UsageLimit { + s.ResourceArn = &v + return s +} + +// SetUsageLimitArn sets the UsageLimitArn field's value. +func (s *UsageLimit) SetUsageLimitArn(v string) *UsageLimit { + s.UsageLimitArn = &v + return s +} + +// SetUsageLimitId sets the UsageLimitId field's value. +func (s *UsageLimit) SetUsageLimitId(v string) *UsageLimit { + s.UsageLimitId = &v + return s +} + +// SetUsageType sets the UsageType field's value. +func (s *UsageLimit) SetUsageType(v string) *UsageLimit { + s.UsageType = &v + return s +} + +// The input failed to satisfy the constraints specified by an AWS service. +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The connection endpoint for connecting to Amazon Redshift Serverless through +// the proxy. +type VpcEndpoint struct { + _ struct{} `type:"structure"` + + // One or more network interfaces of the endpoint. Also known as an interface + // endpoint. + NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"` + + // The connection endpoint ID for connecting to Amazon Redshift Serverless. + VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"` + + // The VPC identifier that the endpoint is associated with. + VpcId *string `locationName:"vpcId" 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 VpcEndpoint) 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 VpcEndpoint) GoString() string { + return s.String() +} + +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *VpcEndpoint) SetNetworkInterfaces(v []*NetworkInterface) *VpcEndpoint { + s.NetworkInterfaces = v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint { + s.VpcEndpointId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint { + s.VpcId = &v + return s +} + +// Describes the members of a VPC security group. +type VpcSecurityGroupMembership struct { + _ struct{} `type:"structure"` + + // The status of the VPC security group. + Status *string `locationName:"status" type:"string"` + + // The unique identifier of the VPC security group. + VpcSecurityGroupId *string `locationName:"vpcSecurityGroupId" 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 VpcSecurityGroupMembership) 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 VpcSecurityGroupMembership) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { + s.Status = &v + return s +} + +// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. +func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { + s.VpcSecurityGroupId = &v + return s +} + +// The collection of computing resources from which an endpoint is created. +type Workgroup struct { + _ struct{} `type:"structure"` + + // The base data warehouse capacity of the workgroup in Redshift Processing + // Units (RPUs). + BaseCapacity *int64 `locationName:"baseCapacity" type:"integer"` + + // An array of parameters to set for finer control over a database. The options + // are datestyle, enable_user_activity_logging, query_group, search_path, and + // max_query_execution_time. + ConfigParameters []*ConfigParameter `locationName:"configParameters" type:"list"` + + // The creation date of the workgroup. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"iso8601"` + + // The endpoint that is created from the workgroup. + Endpoint *Endpoint `locationName:"endpoint" type:"structure"` + + // The value that specifies whether to enable enhanced virtual private cloud + // (VPC) routing, which forces Amazon Redshift Serverless to route traffic through + // your VPC. + EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` + + // The namespace the workgroup is associated with. + NamespaceName *string `locationName:"namespaceName" type:"string"` + + // A value that specifies whether the workgroup can be accessible from a public + // network + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // An array of security group IDs to associate with the workgroup. + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` + + // The status of the workgroup. + Status *string `locationName:"status" type:"string" enum:"WorkgroupStatus"` + + // An array of subnet IDs the workgroup is associated with. + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + // The Amazon Resource Name (ARN) that links to the workgroup. + WorkgroupArn *string `locationName:"workgroupArn" type:"string"` + + // The unique identifier of the workgroup. + WorkgroupId *string `locationName:"workgroupId" type:"string"` + + // The name of the workgroup. + WorkgroupName *string `locationName:"workgroupName" min:"3" 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 Workgroup) 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 Workgroup) GoString() string { + return s.String() +} + +// SetBaseCapacity sets the BaseCapacity field's value. +func (s *Workgroup) SetBaseCapacity(v int64) *Workgroup { + s.BaseCapacity = &v + return s +} + +// SetConfigParameters sets the ConfigParameters field's value. +func (s *Workgroup) SetConfigParameters(v []*ConfigParameter) *Workgroup { + s.ConfigParameters = v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *Workgroup) SetCreationDate(v time.Time) *Workgroup { + s.CreationDate = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *Workgroup) SetEndpoint(v *Endpoint) *Workgroup { + s.Endpoint = v + return s +} + +// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. +func (s *Workgroup) SetEnhancedVpcRouting(v bool) *Workgroup { + s.EnhancedVpcRouting = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *Workgroup) SetNamespaceName(v string) *Workgroup { + s.NamespaceName = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *Workgroup) SetPubliclyAccessible(v bool) *Workgroup { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *Workgroup) SetSecurityGroupIds(v []*string) *Workgroup { + s.SecurityGroupIds = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Workgroup) SetStatus(v string) *Workgroup { + s.Status = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *Workgroup) SetSubnetIds(v []*string) *Workgroup { + s.SubnetIds = v + return s +} + +// SetWorkgroupArn sets the WorkgroupArn field's value. +func (s *Workgroup) SetWorkgroupArn(v string) *Workgroup { + s.WorkgroupArn = &v + return s +} + +// SetWorkgroupId sets the WorkgroupId field's value. +func (s *Workgroup) SetWorkgroupId(v string) *Workgroup { + s.WorkgroupId = &v + return s +} + +// SetWorkgroupName sets the WorkgroupName field's value. +func (s *Workgroup) SetWorkgroupName(v string) *Workgroup { + s.WorkgroupName = &v + return s +} + +const ( + // LogExportUseractivitylog is a LogExport enum value + LogExportUseractivitylog = "useractivitylog" + + // LogExportUserlog is a LogExport enum value + LogExportUserlog = "userlog" + + // LogExportConnectionlog is a LogExport enum value + LogExportConnectionlog = "connectionlog" +) + +// LogExport_Values returns all elements of the LogExport enum +func LogExport_Values() []string { + return []string{ + LogExportUseractivitylog, + LogExportUserlog, + LogExportConnectionlog, + } +} + +const ( + // NamespaceStatusAvailable is a NamespaceStatus enum value + NamespaceStatusAvailable = "AVAILABLE" + + // NamespaceStatusModifying is a NamespaceStatus enum value + NamespaceStatusModifying = "MODIFYING" + + // NamespaceStatusDeleting is a NamespaceStatus enum value + NamespaceStatusDeleting = "DELETING" +) + +// NamespaceStatus_Values returns all elements of the NamespaceStatus enum +func NamespaceStatus_Values() []string { + return []string{ + NamespaceStatusAvailable, + NamespaceStatusModifying, + NamespaceStatusDeleting, + } +} + +const ( + // SnapshotStatusAvailable is a SnapshotStatus enum value + SnapshotStatusAvailable = "AVAILABLE" + + // SnapshotStatusCreating is a SnapshotStatus enum value + SnapshotStatusCreating = "CREATING" + + // SnapshotStatusDeleted is a SnapshotStatus enum value + SnapshotStatusDeleted = "DELETED" + + // SnapshotStatusCancelled is a SnapshotStatus enum value + SnapshotStatusCancelled = "CANCELLED" + + // SnapshotStatusFailed is a SnapshotStatus enum value + SnapshotStatusFailed = "FAILED" + + // SnapshotStatusCopying is a SnapshotStatus enum value + SnapshotStatusCopying = "COPYING" +) + +// SnapshotStatus_Values returns all elements of the SnapshotStatus enum +func SnapshotStatus_Values() []string { + return []string{ + SnapshotStatusAvailable, + SnapshotStatusCreating, + SnapshotStatusDeleted, + SnapshotStatusCancelled, + SnapshotStatusFailed, + SnapshotStatusCopying, + } +} + +const ( + // UsageLimitBreachActionLog is a UsageLimitBreachAction enum value + UsageLimitBreachActionLog = "log" + + // UsageLimitBreachActionEmitMetric is a UsageLimitBreachAction enum value + UsageLimitBreachActionEmitMetric = "emit-metric" + + // UsageLimitBreachActionDeactivate is a UsageLimitBreachAction enum value + UsageLimitBreachActionDeactivate = "deactivate" +) + +// UsageLimitBreachAction_Values returns all elements of the UsageLimitBreachAction enum +func UsageLimitBreachAction_Values() []string { + return []string{ + UsageLimitBreachActionLog, + UsageLimitBreachActionEmitMetric, + UsageLimitBreachActionDeactivate, + } +} + +const ( + // UsageLimitPeriodDaily is a UsageLimitPeriod enum value + UsageLimitPeriodDaily = "daily" + + // UsageLimitPeriodWeekly is a UsageLimitPeriod enum value + UsageLimitPeriodWeekly = "weekly" + + // UsageLimitPeriodMonthly is a UsageLimitPeriod enum value + UsageLimitPeriodMonthly = "monthly" +) + +// UsageLimitPeriod_Values returns all elements of the UsageLimitPeriod enum +func UsageLimitPeriod_Values() []string { + return []string{ + UsageLimitPeriodDaily, + UsageLimitPeriodWeekly, + UsageLimitPeriodMonthly, + } +} + +const ( + // UsageLimitUsageTypeServerlessCompute is a UsageLimitUsageType enum value + UsageLimitUsageTypeServerlessCompute = "serverless-compute" + + // UsageLimitUsageTypeCrossRegionDatasharing is a UsageLimitUsageType enum value + UsageLimitUsageTypeCrossRegionDatasharing = "cross-region-datasharing" +) + +// UsageLimitUsageType_Values returns all elements of the UsageLimitUsageType enum +func UsageLimitUsageType_Values() []string { + return []string{ + UsageLimitUsageTypeServerlessCompute, + UsageLimitUsageTypeCrossRegionDatasharing, + } +} + +const ( + // WorkgroupStatusCreating is a WorkgroupStatus enum value + WorkgroupStatusCreating = "CREATING" + + // WorkgroupStatusAvailable is a WorkgroupStatus enum value + WorkgroupStatusAvailable = "AVAILABLE" + + // WorkgroupStatusModifying is a WorkgroupStatus enum value + WorkgroupStatusModifying = "MODIFYING" + + // WorkgroupStatusDeleting is a WorkgroupStatus enum value + WorkgroupStatusDeleting = "DELETING" +) + +// WorkgroupStatus_Values returns all elements of the WorkgroupStatus enum +func WorkgroupStatus_Values() []string { + return []string{ + WorkgroupStatusCreating, + WorkgroupStatusAvailable, + WorkgroupStatusModifying, + WorkgroupStatusDeleting, + } +} diff --git a/service/redshiftserverless/doc.go b/service/redshiftserverless/doc.go new file mode 100644 index 0000000000..e2c4cb2979 --- /dev/null +++ b/service/redshiftserverless/doc.go @@ -0,0 +1,46 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package redshiftserverless provides the client and types for making API +// requests to Redshift Serverless. +// +// This is prerelease documentation for Amazon Redshift Serverless, which is +// in preview release. The documentation and the feature are both subject to +// change. We recommend that you use this feature only in test environments, +// and not in production environments. For preview terms and conditions, see +// Beta Service Participation in Amazon Web Services Service Terms (https://docs.aws.amazon.com/https:/aws.amazon.com/service-terms). +// +// This is an interface reference for Amazon Redshift Serverless. It contains +// documentation for one of the programming or command line interfaces you can +// use to manage Amazon Redshift Serverless. +// +// Amazon Redshift Serverless automatically provisions data warehouse capacity +// and intelligently scales the underlying resources based on workload demands. +// Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently +// high performance and simplified operations for even the most demanding and +// volatile workloads. Amazon Redshift Serverless lets you focus on using your +// data to acquire new insights for your business and customers. +// +// To learn more about Amazon Redshift Serverless, see What is Amazon Redshift +// Serverless (https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html). +// +// See https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21 for more information on this service. +// +// See redshiftserverless package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/redshiftserverless/ +// +// Using the Client +// +// To contact Redshift Serverless with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Redshift Serverless client RedshiftServerless for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/redshiftserverless/#New +package redshiftserverless diff --git a/service/redshiftserverless/errors.go b/service/redshiftserverless/errors.go new file mode 100644 index 0000000000..79aa2ea94e --- /dev/null +++ b/service/redshiftserverless/errors.go @@ -0,0 +1,84 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package redshiftserverless + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You do not have sufficient access to perform this action. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The submitted action has conflicts. + ErrCodeConflictException = "ConflictException" + + // ErrCodeInsufficientCapacityException for service response error code + // "InsufficientCapacityException". + // + // There is an insufficient capacity to perform the action. + ErrCodeInsufficientCapacityException = "InsufficientCapacityException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // The request processing has failed because of an unknown error, exception + // or failure. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeInvalidPaginationException for service response error code + // "InvalidPaginationException". + // + // The provided pagination token is invalid. + ErrCodeInvalidPaginationException = "InvalidPaginationException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The resource could not be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // The service limit was exceeded. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The request was denied due to request throttling. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTagsException". + // + // The request exceeded the number of tags allowed for a resource. + ErrCodeTooManyTagsException = "TooManyTagsException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // The input failed to satisfy the constraints specified by an AWS service. + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InsufficientCapacityException": newErrorInsufficientCapacityException, + "InternalServerException": newErrorInternalServerException, + "InvalidPaginationException": newErrorInvalidPaginationException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "TooManyTagsException": newErrorTooManyTagsException, + "ValidationException": newErrorValidationException, +} diff --git a/service/redshiftserverless/redshiftserverlessiface/interface.go b/service/redshiftserverless/redshiftserverlessiface/interface.go new file mode 100644 index 0000000000..0006e8e5c3 --- /dev/null +++ b/service/redshiftserverless/redshiftserverlessiface/interface.go @@ -0,0 +1,230 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package redshiftserverlessiface provides an interface to enable mocking the Redshift Serverless service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package redshiftserverlessiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/redshiftserverless" +) + +// RedshiftServerlessAPI provides an interface to enable mocking the +// redshiftserverless.RedshiftServerless service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Redshift Serverless. +// func myFunc(svc redshiftserverlessiface.RedshiftServerlessAPI) bool { +// // Make svc.ConvertRecoveryPointToSnapshot request +// } +// +// func main() { +// sess := session.New() +// svc := redshiftserverless.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockRedshiftServerlessClient struct { +// redshiftserverlessiface.RedshiftServerlessAPI +// } +// func (m *mockRedshiftServerlessClient) ConvertRecoveryPointToSnapshot(input *redshiftserverless.ConvertRecoveryPointToSnapshotInput) (*redshiftserverless.ConvertRecoveryPointToSnapshotOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockRedshiftServerlessClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type RedshiftServerlessAPI interface { + ConvertRecoveryPointToSnapshot(*redshiftserverless.ConvertRecoveryPointToSnapshotInput) (*redshiftserverless.ConvertRecoveryPointToSnapshotOutput, error) + ConvertRecoveryPointToSnapshotWithContext(aws.Context, *redshiftserverless.ConvertRecoveryPointToSnapshotInput, ...request.Option) (*redshiftserverless.ConvertRecoveryPointToSnapshotOutput, error) + ConvertRecoveryPointToSnapshotRequest(*redshiftserverless.ConvertRecoveryPointToSnapshotInput) (*request.Request, *redshiftserverless.ConvertRecoveryPointToSnapshotOutput) + + CreateEndpointAccess(*redshiftserverless.CreateEndpointAccessInput) (*redshiftserverless.CreateEndpointAccessOutput, error) + CreateEndpointAccessWithContext(aws.Context, *redshiftserverless.CreateEndpointAccessInput, ...request.Option) (*redshiftserverless.CreateEndpointAccessOutput, error) + CreateEndpointAccessRequest(*redshiftserverless.CreateEndpointAccessInput) (*request.Request, *redshiftserverless.CreateEndpointAccessOutput) + + CreateNamespace(*redshiftserverless.CreateNamespaceInput) (*redshiftserverless.CreateNamespaceOutput, error) + CreateNamespaceWithContext(aws.Context, *redshiftserverless.CreateNamespaceInput, ...request.Option) (*redshiftserverless.CreateNamespaceOutput, error) + CreateNamespaceRequest(*redshiftserverless.CreateNamespaceInput) (*request.Request, *redshiftserverless.CreateNamespaceOutput) + + CreateSnapshot(*redshiftserverless.CreateSnapshotInput) (*redshiftserverless.CreateSnapshotOutput, error) + CreateSnapshotWithContext(aws.Context, *redshiftserverless.CreateSnapshotInput, ...request.Option) (*redshiftserverless.CreateSnapshotOutput, error) + CreateSnapshotRequest(*redshiftserverless.CreateSnapshotInput) (*request.Request, *redshiftserverless.CreateSnapshotOutput) + + CreateUsageLimit(*redshiftserverless.CreateUsageLimitInput) (*redshiftserverless.CreateUsageLimitOutput, error) + CreateUsageLimitWithContext(aws.Context, *redshiftserverless.CreateUsageLimitInput, ...request.Option) (*redshiftserverless.CreateUsageLimitOutput, error) + CreateUsageLimitRequest(*redshiftserverless.CreateUsageLimitInput) (*request.Request, *redshiftserverless.CreateUsageLimitOutput) + + CreateWorkgroup(*redshiftserverless.CreateWorkgroupInput) (*redshiftserverless.CreateWorkgroupOutput, error) + CreateWorkgroupWithContext(aws.Context, *redshiftserverless.CreateWorkgroupInput, ...request.Option) (*redshiftserverless.CreateWorkgroupOutput, error) + CreateWorkgroupRequest(*redshiftserverless.CreateWorkgroupInput) (*request.Request, *redshiftserverless.CreateWorkgroupOutput) + + DeleteEndpointAccess(*redshiftserverless.DeleteEndpointAccessInput) (*redshiftserverless.DeleteEndpointAccessOutput, error) + DeleteEndpointAccessWithContext(aws.Context, *redshiftserverless.DeleteEndpointAccessInput, ...request.Option) (*redshiftserverless.DeleteEndpointAccessOutput, error) + DeleteEndpointAccessRequest(*redshiftserverless.DeleteEndpointAccessInput) (*request.Request, *redshiftserverless.DeleteEndpointAccessOutput) + + DeleteNamespace(*redshiftserverless.DeleteNamespaceInput) (*redshiftserverless.DeleteNamespaceOutput, error) + DeleteNamespaceWithContext(aws.Context, *redshiftserverless.DeleteNamespaceInput, ...request.Option) (*redshiftserverless.DeleteNamespaceOutput, error) + DeleteNamespaceRequest(*redshiftserverless.DeleteNamespaceInput) (*request.Request, *redshiftserverless.DeleteNamespaceOutput) + + DeleteResourcePolicy(*redshiftserverless.DeleteResourcePolicyInput) (*redshiftserverless.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyWithContext(aws.Context, *redshiftserverless.DeleteResourcePolicyInput, ...request.Option) (*redshiftserverless.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyRequest(*redshiftserverless.DeleteResourcePolicyInput) (*request.Request, *redshiftserverless.DeleteResourcePolicyOutput) + + DeleteSnapshot(*redshiftserverless.DeleteSnapshotInput) (*redshiftserverless.DeleteSnapshotOutput, error) + DeleteSnapshotWithContext(aws.Context, *redshiftserverless.DeleteSnapshotInput, ...request.Option) (*redshiftserverless.DeleteSnapshotOutput, error) + DeleteSnapshotRequest(*redshiftserverless.DeleteSnapshotInput) (*request.Request, *redshiftserverless.DeleteSnapshotOutput) + + DeleteUsageLimit(*redshiftserverless.DeleteUsageLimitInput) (*redshiftserverless.DeleteUsageLimitOutput, error) + DeleteUsageLimitWithContext(aws.Context, *redshiftserverless.DeleteUsageLimitInput, ...request.Option) (*redshiftserverless.DeleteUsageLimitOutput, error) + DeleteUsageLimitRequest(*redshiftserverless.DeleteUsageLimitInput) (*request.Request, *redshiftserverless.DeleteUsageLimitOutput) + + DeleteWorkgroup(*redshiftserverless.DeleteWorkgroupInput) (*redshiftserverless.DeleteWorkgroupOutput, error) + DeleteWorkgroupWithContext(aws.Context, *redshiftserverless.DeleteWorkgroupInput, ...request.Option) (*redshiftserverless.DeleteWorkgroupOutput, error) + DeleteWorkgroupRequest(*redshiftserverless.DeleteWorkgroupInput) (*request.Request, *redshiftserverless.DeleteWorkgroupOutput) + + GetCredentials(*redshiftserverless.GetCredentialsInput) (*redshiftserverless.GetCredentialsOutput, error) + GetCredentialsWithContext(aws.Context, *redshiftserverless.GetCredentialsInput, ...request.Option) (*redshiftserverless.GetCredentialsOutput, error) + GetCredentialsRequest(*redshiftserverless.GetCredentialsInput) (*request.Request, *redshiftserverless.GetCredentialsOutput) + + GetEndpointAccess(*redshiftserverless.GetEndpointAccessInput) (*redshiftserverless.GetEndpointAccessOutput, error) + GetEndpointAccessWithContext(aws.Context, *redshiftserverless.GetEndpointAccessInput, ...request.Option) (*redshiftserverless.GetEndpointAccessOutput, error) + GetEndpointAccessRequest(*redshiftserverless.GetEndpointAccessInput) (*request.Request, *redshiftserverless.GetEndpointAccessOutput) + + GetNamespace(*redshiftserverless.GetNamespaceInput) (*redshiftserverless.GetNamespaceOutput, error) + GetNamespaceWithContext(aws.Context, *redshiftserverless.GetNamespaceInput, ...request.Option) (*redshiftserverless.GetNamespaceOutput, error) + GetNamespaceRequest(*redshiftserverless.GetNamespaceInput) (*request.Request, *redshiftserverless.GetNamespaceOutput) + + GetRecoveryPoint(*redshiftserverless.GetRecoveryPointInput) (*redshiftserverless.GetRecoveryPointOutput, error) + GetRecoveryPointWithContext(aws.Context, *redshiftserverless.GetRecoveryPointInput, ...request.Option) (*redshiftserverless.GetRecoveryPointOutput, error) + GetRecoveryPointRequest(*redshiftserverless.GetRecoveryPointInput) (*request.Request, *redshiftserverless.GetRecoveryPointOutput) + + GetResourcePolicy(*redshiftserverless.GetResourcePolicyInput) (*redshiftserverless.GetResourcePolicyOutput, error) + GetResourcePolicyWithContext(aws.Context, *redshiftserverless.GetResourcePolicyInput, ...request.Option) (*redshiftserverless.GetResourcePolicyOutput, error) + GetResourcePolicyRequest(*redshiftserverless.GetResourcePolicyInput) (*request.Request, *redshiftserverless.GetResourcePolicyOutput) + + GetSnapshot(*redshiftserverless.GetSnapshotInput) (*redshiftserverless.GetSnapshotOutput, error) + GetSnapshotWithContext(aws.Context, *redshiftserverless.GetSnapshotInput, ...request.Option) (*redshiftserverless.GetSnapshotOutput, error) + GetSnapshotRequest(*redshiftserverless.GetSnapshotInput) (*request.Request, *redshiftserverless.GetSnapshotOutput) + + GetUsageLimit(*redshiftserverless.GetUsageLimitInput) (*redshiftserverless.GetUsageLimitOutput, error) + GetUsageLimitWithContext(aws.Context, *redshiftserverless.GetUsageLimitInput, ...request.Option) (*redshiftserverless.GetUsageLimitOutput, error) + GetUsageLimitRequest(*redshiftserverless.GetUsageLimitInput) (*request.Request, *redshiftserverless.GetUsageLimitOutput) + + GetWorkgroup(*redshiftserverless.GetWorkgroupInput) (*redshiftserverless.GetWorkgroupOutput, error) + GetWorkgroupWithContext(aws.Context, *redshiftserverless.GetWorkgroupInput, ...request.Option) (*redshiftserverless.GetWorkgroupOutput, error) + GetWorkgroupRequest(*redshiftserverless.GetWorkgroupInput) (*request.Request, *redshiftserverless.GetWorkgroupOutput) + + ListEndpointAccess(*redshiftserverless.ListEndpointAccessInput) (*redshiftserverless.ListEndpointAccessOutput, error) + ListEndpointAccessWithContext(aws.Context, *redshiftserverless.ListEndpointAccessInput, ...request.Option) (*redshiftserverless.ListEndpointAccessOutput, error) + ListEndpointAccessRequest(*redshiftserverless.ListEndpointAccessInput) (*request.Request, *redshiftserverless.ListEndpointAccessOutput) + + ListEndpointAccessPages(*redshiftserverless.ListEndpointAccessInput, func(*redshiftserverless.ListEndpointAccessOutput, bool) bool) error + ListEndpointAccessPagesWithContext(aws.Context, *redshiftserverless.ListEndpointAccessInput, func(*redshiftserverless.ListEndpointAccessOutput, bool) bool, ...request.Option) error + + ListNamespaces(*redshiftserverless.ListNamespacesInput) (*redshiftserverless.ListNamespacesOutput, error) + ListNamespacesWithContext(aws.Context, *redshiftserverless.ListNamespacesInput, ...request.Option) (*redshiftserverless.ListNamespacesOutput, error) + ListNamespacesRequest(*redshiftserverless.ListNamespacesInput) (*request.Request, *redshiftserverless.ListNamespacesOutput) + + ListNamespacesPages(*redshiftserverless.ListNamespacesInput, func(*redshiftserverless.ListNamespacesOutput, bool) bool) error + ListNamespacesPagesWithContext(aws.Context, *redshiftserverless.ListNamespacesInput, func(*redshiftserverless.ListNamespacesOutput, bool) bool, ...request.Option) error + + ListRecoveryPoints(*redshiftserverless.ListRecoveryPointsInput) (*redshiftserverless.ListRecoveryPointsOutput, error) + ListRecoveryPointsWithContext(aws.Context, *redshiftserverless.ListRecoveryPointsInput, ...request.Option) (*redshiftserverless.ListRecoveryPointsOutput, error) + ListRecoveryPointsRequest(*redshiftserverless.ListRecoveryPointsInput) (*request.Request, *redshiftserverless.ListRecoveryPointsOutput) + + ListRecoveryPointsPages(*redshiftserverless.ListRecoveryPointsInput, func(*redshiftserverless.ListRecoveryPointsOutput, bool) bool) error + ListRecoveryPointsPagesWithContext(aws.Context, *redshiftserverless.ListRecoveryPointsInput, func(*redshiftserverless.ListRecoveryPointsOutput, bool) bool, ...request.Option) error + + ListSnapshots(*redshiftserverless.ListSnapshotsInput) (*redshiftserverless.ListSnapshotsOutput, error) + ListSnapshotsWithContext(aws.Context, *redshiftserverless.ListSnapshotsInput, ...request.Option) (*redshiftserverless.ListSnapshotsOutput, error) + ListSnapshotsRequest(*redshiftserverless.ListSnapshotsInput) (*request.Request, *redshiftserverless.ListSnapshotsOutput) + + ListSnapshotsPages(*redshiftserverless.ListSnapshotsInput, func(*redshiftserverless.ListSnapshotsOutput, bool) bool) error + ListSnapshotsPagesWithContext(aws.Context, *redshiftserverless.ListSnapshotsInput, func(*redshiftserverless.ListSnapshotsOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*redshiftserverless.ListTagsForResourceInput) (*redshiftserverless.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *redshiftserverless.ListTagsForResourceInput, ...request.Option) (*redshiftserverless.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*redshiftserverless.ListTagsForResourceInput) (*request.Request, *redshiftserverless.ListTagsForResourceOutput) + + ListUsageLimits(*redshiftserverless.ListUsageLimitsInput) (*redshiftserverless.ListUsageLimitsOutput, error) + ListUsageLimitsWithContext(aws.Context, *redshiftserverless.ListUsageLimitsInput, ...request.Option) (*redshiftserverless.ListUsageLimitsOutput, error) + ListUsageLimitsRequest(*redshiftserverless.ListUsageLimitsInput) (*request.Request, *redshiftserverless.ListUsageLimitsOutput) + + ListUsageLimitsPages(*redshiftserverless.ListUsageLimitsInput, func(*redshiftserverless.ListUsageLimitsOutput, bool) bool) error + ListUsageLimitsPagesWithContext(aws.Context, *redshiftserverless.ListUsageLimitsInput, func(*redshiftserverless.ListUsageLimitsOutput, bool) bool, ...request.Option) error + + ListWorkgroups(*redshiftserverless.ListWorkgroupsInput) (*redshiftserverless.ListWorkgroupsOutput, error) + ListWorkgroupsWithContext(aws.Context, *redshiftserverless.ListWorkgroupsInput, ...request.Option) (*redshiftserverless.ListWorkgroupsOutput, error) + ListWorkgroupsRequest(*redshiftserverless.ListWorkgroupsInput) (*request.Request, *redshiftserverless.ListWorkgroupsOutput) + + ListWorkgroupsPages(*redshiftserverless.ListWorkgroupsInput, func(*redshiftserverless.ListWorkgroupsOutput, bool) bool) error + ListWorkgroupsPagesWithContext(aws.Context, *redshiftserverless.ListWorkgroupsInput, func(*redshiftserverless.ListWorkgroupsOutput, bool) bool, ...request.Option) error + + PutResourcePolicy(*redshiftserverless.PutResourcePolicyInput) (*redshiftserverless.PutResourcePolicyOutput, error) + PutResourcePolicyWithContext(aws.Context, *redshiftserverless.PutResourcePolicyInput, ...request.Option) (*redshiftserverless.PutResourcePolicyOutput, error) + PutResourcePolicyRequest(*redshiftserverless.PutResourcePolicyInput) (*request.Request, *redshiftserverless.PutResourcePolicyOutput) + + RestoreFromRecoveryPoint(*redshiftserverless.RestoreFromRecoveryPointInput) (*redshiftserverless.RestoreFromRecoveryPointOutput, error) + RestoreFromRecoveryPointWithContext(aws.Context, *redshiftserverless.RestoreFromRecoveryPointInput, ...request.Option) (*redshiftserverless.RestoreFromRecoveryPointOutput, error) + RestoreFromRecoveryPointRequest(*redshiftserverless.RestoreFromRecoveryPointInput) (*request.Request, *redshiftserverless.RestoreFromRecoveryPointOutput) + + RestoreFromSnapshot(*redshiftserverless.RestoreFromSnapshotInput) (*redshiftserverless.RestoreFromSnapshotOutput, error) + RestoreFromSnapshotWithContext(aws.Context, *redshiftserverless.RestoreFromSnapshotInput, ...request.Option) (*redshiftserverless.RestoreFromSnapshotOutput, error) + RestoreFromSnapshotRequest(*redshiftserverless.RestoreFromSnapshotInput) (*request.Request, *redshiftserverless.RestoreFromSnapshotOutput) + + TagResource(*redshiftserverless.TagResourceInput) (*redshiftserverless.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *redshiftserverless.TagResourceInput, ...request.Option) (*redshiftserverless.TagResourceOutput, error) + TagResourceRequest(*redshiftserverless.TagResourceInput) (*request.Request, *redshiftserverless.TagResourceOutput) + + UntagResource(*redshiftserverless.UntagResourceInput) (*redshiftserverless.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *redshiftserverless.UntagResourceInput, ...request.Option) (*redshiftserverless.UntagResourceOutput, error) + UntagResourceRequest(*redshiftserverless.UntagResourceInput) (*request.Request, *redshiftserverless.UntagResourceOutput) + + UpdateEndpointAccess(*redshiftserverless.UpdateEndpointAccessInput) (*redshiftserverless.UpdateEndpointAccessOutput, error) + UpdateEndpointAccessWithContext(aws.Context, *redshiftserverless.UpdateEndpointAccessInput, ...request.Option) (*redshiftserverless.UpdateEndpointAccessOutput, error) + UpdateEndpointAccessRequest(*redshiftserverless.UpdateEndpointAccessInput) (*request.Request, *redshiftserverless.UpdateEndpointAccessOutput) + + UpdateNamespace(*redshiftserverless.UpdateNamespaceInput) (*redshiftserverless.UpdateNamespaceOutput, error) + UpdateNamespaceWithContext(aws.Context, *redshiftserverless.UpdateNamespaceInput, ...request.Option) (*redshiftserverless.UpdateNamespaceOutput, error) + UpdateNamespaceRequest(*redshiftserverless.UpdateNamespaceInput) (*request.Request, *redshiftserverless.UpdateNamespaceOutput) + + UpdateSnapshot(*redshiftserverless.UpdateSnapshotInput) (*redshiftserverless.UpdateSnapshotOutput, error) + UpdateSnapshotWithContext(aws.Context, *redshiftserverless.UpdateSnapshotInput, ...request.Option) (*redshiftserverless.UpdateSnapshotOutput, error) + UpdateSnapshotRequest(*redshiftserverless.UpdateSnapshotInput) (*request.Request, *redshiftserverless.UpdateSnapshotOutput) + + UpdateUsageLimit(*redshiftserverless.UpdateUsageLimitInput) (*redshiftserverless.UpdateUsageLimitOutput, error) + UpdateUsageLimitWithContext(aws.Context, *redshiftserverless.UpdateUsageLimitInput, ...request.Option) (*redshiftserverless.UpdateUsageLimitOutput, error) + UpdateUsageLimitRequest(*redshiftserverless.UpdateUsageLimitInput) (*request.Request, *redshiftserverless.UpdateUsageLimitOutput) + + UpdateWorkgroup(*redshiftserverless.UpdateWorkgroupInput) (*redshiftserverless.UpdateWorkgroupOutput, error) + UpdateWorkgroupWithContext(aws.Context, *redshiftserverless.UpdateWorkgroupInput, ...request.Option) (*redshiftserverless.UpdateWorkgroupOutput, error) + UpdateWorkgroupRequest(*redshiftserverless.UpdateWorkgroupInput) (*request.Request, *redshiftserverless.UpdateWorkgroupOutput) +} + +var _ RedshiftServerlessAPI = (*redshiftserverless.RedshiftServerless)(nil) diff --git a/service/redshiftserverless/service.go b/service/redshiftserverless/service.go new file mode 100644 index 0000000000..aee039aac5 --- /dev/null +++ b/service/redshiftserverless/service.go @@ -0,0 +1,107 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package redshiftserverless + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" +) + +// RedshiftServerless provides the API operation methods for making requests to +// Redshift Serverless. See this package's package overview docs +// for details on the service. +// +// RedshiftServerless methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type RedshiftServerless struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "Redshift Serverless" // Name of service. + EndpointsID = "redshift-serverless" // ID to lookup a service endpoint with. + ServiceID = "Redshift Serverless" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the RedshiftServerless client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// mySession := session.Must(session.NewSession()) +// +// // Create a RedshiftServerless client from just a session. +// svc := redshiftserverless.New(mySession) +// +// // Create a RedshiftServerless client with additional configuration +// svc := redshiftserverless.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *RedshiftServerless { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "redshift-serverless" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *RedshiftServerless { + svc := &RedshiftServerless{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2021-04-21", + ResolvedRegion: resolvedRegion, + JSONVersion: "1.1", + TargetPrefix: "RedshiftServerless", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a RedshiftServerless operation and runs any +// custom request initialization. +func (c *RedshiftServerless) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 13f1c5a298..da83da94f6 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -9207,6 +9207,85 @@ func (c *SageMaker) DescribeFeatureGroupWithContext(ctx aws.Context, input *Desc return out, req.Send() } +const opDescribeFeatureMetadata = "DescribeFeatureMetadata" + +// DescribeFeatureMetadataRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFeatureMetadata 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 DescribeFeatureMetadata for more information on using the DescribeFeatureMetadata +// 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 DescribeFeatureMetadataRequest method. +// req, resp := client.DescribeFeatureMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeFeatureMetadata +func (c *SageMaker) DescribeFeatureMetadataRequest(input *DescribeFeatureMetadataInput) (req *request.Request, output *DescribeFeatureMetadataOutput) { + op := &request.Operation{ + Name: opDescribeFeatureMetadata, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeFeatureMetadataInput{} + } + + output = &DescribeFeatureMetadataOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeFeatureMetadata API operation for Amazon SageMaker Service. +// +// Shows the metadata for a feature within a feature group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation DescribeFeatureMetadata for usage and error information. +// +// Returned Error Types: +// * ResourceNotFound +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeFeatureMetadata +func (c *SageMaker) DescribeFeatureMetadata(input *DescribeFeatureMetadataInput) (*DescribeFeatureMetadataOutput, error) { + req, out := c.DescribeFeatureMetadataRequest(input) + return out, req.Send() +} + +// DescribeFeatureMetadataWithContext is the same as DescribeFeatureMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeFeatureMetadata for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) DescribeFeatureMetadataWithContext(ctx aws.Context, input *DescribeFeatureMetadataInput, opts ...request.Option) (*DescribeFeatureMetadataOutput, error) { + req, out := c.DescribeFeatureMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeFlowDefinition = "DescribeFlowDefinition" // DescribeFlowDefinitionRequest generates a "aws/request.Request" representing the @@ -22843,6 +22922,165 @@ func (c *SageMaker) UpdateExperimentWithContext(ctx aws.Context, input *UpdateEx return out, req.Send() } +const opUpdateFeatureGroup = "UpdateFeatureGroup" + +// UpdateFeatureGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFeatureGroup 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 UpdateFeatureGroup for more information on using the UpdateFeatureGroup +// 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 UpdateFeatureGroupRequest method. +// req, resp := client.UpdateFeatureGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateFeatureGroup +func (c *SageMaker) UpdateFeatureGroupRequest(input *UpdateFeatureGroupInput) (req *request.Request, output *UpdateFeatureGroupOutput) { + op := &request.Operation{ + Name: opUpdateFeatureGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateFeatureGroupInput{} + } + + output = &UpdateFeatureGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFeatureGroup API operation for Amazon SageMaker Service. +// +// Updates the feature group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateFeatureGroup for usage and error information. +// +// Returned Error Types: +// * ResourceNotFound +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateFeatureGroup +func (c *SageMaker) UpdateFeatureGroup(input *UpdateFeatureGroupInput) (*UpdateFeatureGroupOutput, error) { + req, out := c.UpdateFeatureGroupRequest(input) + return out, req.Send() +} + +// UpdateFeatureGroupWithContext is the same as UpdateFeatureGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFeatureGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateFeatureGroupWithContext(ctx aws.Context, input *UpdateFeatureGroupInput, opts ...request.Option) (*UpdateFeatureGroupOutput, error) { + req, out := c.UpdateFeatureGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFeatureMetadata = "UpdateFeatureMetadata" + +// UpdateFeatureMetadataRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFeatureMetadata 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 UpdateFeatureMetadata for more information on using the UpdateFeatureMetadata +// 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 UpdateFeatureMetadataRequest method. +// req, resp := client.UpdateFeatureMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateFeatureMetadata +func (c *SageMaker) UpdateFeatureMetadataRequest(input *UpdateFeatureMetadataInput) (req *request.Request, output *UpdateFeatureMetadataOutput) { + op := &request.Operation{ + Name: opUpdateFeatureMetadata, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateFeatureMetadataInput{} + } + + output = &UpdateFeatureMetadataOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateFeatureMetadata API operation for Amazon SageMaker Service. +// +// Updates the description and parameters of the feature group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateFeatureMetadata for usage and error information. +// +// Returned Error Types: +// * ResourceNotFound +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateFeatureMetadata +func (c *SageMaker) UpdateFeatureMetadata(input *UpdateFeatureMetadataInput) (*UpdateFeatureMetadataOutput, error) { + req, out := c.UpdateFeatureMetadataRequest(input) + return out, req.Send() +} + +// UpdateFeatureMetadataWithContext is the same as UpdateFeatureMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFeatureMetadata for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateFeatureMetadataWithContext(ctx aws.Context, input *UpdateFeatureMetadataInput, opts ...request.Option) (*UpdateFeatureMetadataOutput, error) { + req, out := c.UpdateFeatureMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateImage = "UpdateImage" // UpdateImageRequest generates a "aws/request.Request" representing the @@ -28244,8 +28482,10 @@ func (s *BatchDescribeModelPackageSummary) SetModelPackageVersion(v int64) *Batc type Bias struct { _ struct{} `type:"structure"` + // The post-training bias report for a model. PostTrainingReport *MetricsSource `type:"structure"` + // The pre-training bias report for a model. PreTrainingReport *MetricsSource `type:"structure"` // The bias report for a model @@ -46753,6 +46993,12 @@ type DescribeFeatureGroupOutput struct { // The status of the feature group. FeatureGroupStatus *string `type:"string" enum:"FeatureGroupStatus"` + // A timestamp indicating when the feature group was last updated. + LastModifiedTime *time.Time `type:"timestamp"` + + // A value indicating whether the update made to the feature group was successful. + LastUpdateStatus *LastUpdateStatus `type:"structure"` + // A token to resume pagination of the list of Features (FeatureDefinitions). // // NextToken is a required field @@ -46770,6 +47016,9 @@ type DescribeFeatureGroupOutput struct { // The configuration for the OnlineStore. OnlineStoreConfig *OnlineStoreConfig `type:"structure"` + // The size of the OnlineStore in bytes. + OnlineStoreTotalSizeBytes *int64 `type:"long"` + // The name of the Feature used for RecordIdentifier, whose value uniquely identifies // a record stored in the feature store. // @@ -46847,6 +47096,18 @@ func (s *DescribeFeatureGroupOutput) SetFeatureGroupStatus(v string) *DescribeFe return s } +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeFeatureGroupOutput) SetLastModifiedTime(v time.Time) *DescribeFeatureGroupOutput { + s.LastModifiedTime = &v + return s +} + +// SetLastUpdateStatus sets the LastUpdateStatus field's value. +func (s *DescribeFeatureGroupOutput) SetLastUpdateStatus(v *LastUpdateStatus) *DescribeFeatureGroupOutput { + s.LastUpdateStatus = v + return s +} + // SetNextToken sets the NextToken field's value. func (s *DescribeFeatureGroupOutput) SetNextToken(v string) *DescribeFeatureGroupOutput { s.NextToken = &v @@ -46871,6 +47132,12 @@ func (s *DescribeFeatureGroupOutput) SetOnlineStoreConfig(v *OnlineStoreConfig) return s } +// SetOnlineStoreTotalSizeBytes sets the OnlineStoreTotalSizeBytes field's value. +func (s *DescribeFeatureGroupOutput) SetOnlineStoreTotalSizeBytes(v int64) *DescribeFeatureGroupOutput { + s.OnlineStoreTotalSizeBytes = &v + return s +} + // SetRecordIdentifierFeatureName sets the RecordIdentifierFeatureName field's value. func (s *DescribeFeatureGroupOutput) SetRecordIdentifierFeatureName(v string) *DescribeFeatureGroupOutput { s.RecordIdentifierFeatureName = &v @@ -46883,6 +47150,180 @@ func (s *DescribeFeatureGroupOutput) SetRoleArn(v string) *DescribeFeatureGroupO return s } +type DescribeFeatureMetadataInput struct { + _ struct{} `type:"structure"` + + // The name of the feature group containing the feature. + // + // FeatureGroupName is a required field + FeatureGroupName *string `min:"1" type:"string" required:"true"` + + // The name of the feature. + // + // FeatureName is a required field + FeatureName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeFeatureMetadataInput) 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 DescribeFeatureMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeFeatureMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFeatureMetadataInput"} + if s.FeatureGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("FeatureGroupName")) + } + if s.FeatureGroupName != nil && len(*s.FeatureGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureGroupName", 1)) + } + if s.FeatureName == nil { + invalidParams.Add(request.NewErrParamRequired("FeatureName")) + } + if s.FeatureName != nil && len(*s.FeatureName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFeatureGroupName sets the FeatureGroupName field's value. +func (s *DescribeFeatureMetadataInput) SetFeatureGroupName(v string) *DescribeFeatureMetadataInput { + s.FeatureGroupName = &v + return s +} + +// SetFeatureName sets the FeatureName field's value. +func (s *DescribeFeatureMetadataInput) SetFeatureName(v string) *DescribeFeatureMetadataInput { + s.FeatureName = &v + return s +} + +type DescribeFeatureMetadataOutput struct { + _ struct{} `type:"structure"` + + // A timestamp indicating when the feature was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The description you added to describe the feature. + Description *string `type:"string"` + + // The Amazon Resource Number (ARN) of the feature group that contains the feature. + // + // FeatureGroupArn is a required field + FeatureGroupArn *string `type:"string" required:"true"` + + // The name of the feature group that you've specified. + // + // FeatureGroupName is a required field + FeatureGroupName *string `min:"1" type:"string" required:"true"` + + // The name of the feature that you've specified. + // + // FeatureName is a required field + FeatureName *string `min:"1" type:"string" required:"true"` + + // The data type of the feature. + // + // FeatureType is a required field + FeatureType *string `type:"string" required:"true" enum:"FeatureType"` + + // A timestamp indicating when the metadata for the feature group was modified. + // For example, if you add a parameter describing the feature, the timestamp + // changes to reflect the last time you + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` + + // The key-value pairs that you added to describe the feature. + Parameters []*FeatureParameter `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeFeatureMetadataOutput) 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 DescribeFeatureMetadataOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeFeatureMetadataOutput) SetCreationTime(v time.Time) *DescribeFeatureMetadataOutput { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeFeatureMetadataOutput) SetDescription(v string) *DescribeFeatureMetadataOutput { + s.Description = &v + return s +} + +// SetFeatureGroupArn sets the FeatureGroupArn field's value. +func (s *DescribeFeatureMetadataOutput) SetFeatureGroupArn(v string) *DescribeFeatureMetadataOutput { + s.FeatureGroupArn = &v + return s +} + +// SetFeatureGroupName sets the FeatureGroupName field's value. +func (s *DescribeFeatureMetadataOutput) SetFeatureGroupName(v string) *DescribeFeatureMetadataOutput { + s.FeatureGroupName = &v + return s +} + +// SetFeatureName sets the FeatureName field's value. +func (s *DescribeFeatureMetadataOutput) SetFeatureName(v string) *DescribeFeatureMetadataOutput { + s.FeatureName = &v + return s +} + +// SetFeatureType sets the FeatureType field's value. +func (s *DescribeFeatureMetadataOutput) SetFeatureType(v string) *DescribeFeatureMetadataOutput { + s.FeatureType = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeFeatureMetadataOutput) SetLastModifiedTime(v time.Time) *DescribeFeatureMetadataOutput { + s.LastModifiedTime = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *DescribeFeatureMetadataOutput) SetParameters(v []*FeatureParameter) *DescribeFeatureMetadataOutput { + s.Parameters = v + return s +} + type DescribeFlowDefinitionInput struct { _ struct{} `type:"structure"` @@ -53730,8 +54171,10 @@ type DriftCheckBias struct { // The bias config file for a model. ConfigFile *FileSource `type:"structure"` + // The post-training constraints. PostTrainingConstraints *MetricsSource `type:"structure"` + // The pre-training constraints. PreTrainingConstraints *MetricsSource `type:"structure"` } @@ -53804,6 +54247,7 @@ type DriftCheckExplainability struct { // The explainability config file for the model. ConfigFile *FileSource `type:"structure"` + // The drift check explainability constraints. Constraints *MetricsSource `type:"structure"` } @@ -53862,8 +54306,10 @@ func (s *DriftCheckExplainability) SetConstraints(v *MetricsSource) *DriftCheckE type DriftCheckModelDataQuality struct { _ struct{} `type:"structure"` + // The drift check model data quality constraints. Constraints *MetricsSource `type:"structure"` + // The drift check model data quality statistics. Statistics *MetricsSource `type:"structure"` } @@ -53922,8 +54368,10 @@ func (s *DriftCheckModelDataQuality) SetStatistics(v *MetricsSource) *DriftCheck type DriftCheckModelQuality struct { _ struct{} `type:"structure"` + // The drift check model quality constraints. Constraints *MetricsSource `type:"structure"` + // The drift check model quality statistics. Statistics *MetricsSource `type:"structure"` } @@ -55791,6 +56239,12 @@ type FeatureGroup struct { // A FeatureGroup status. FeatureGroupStatus *string `type:"string" enum:"FeatureGroupStatus"` + // A timestamp indicating the last time you updated the feature group. + LastModifiedTime *time.Time `type:"timestamp"` + + // A value that indicates whether the feature group was updated successfully. + LastUpdateStatus *LastUpdateStatus `type:"structure"` + // The configuration of an OfflineStore. // // Provide an OfflineStoreConfig in a request to CreateFeatureGroup to create @@ -55887,6 +56341,18 @@ func (s *FeatureGroup) SetFeatureGroupStatus(v string) *FeatureGroup { return s } +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *FeatureGroup) SetLastModifiedTime(v time.Time) *FeatureGroup { + s.LastModifiedTime = &v + return s +} + +// SetLastUpdateStatus sets the LastUpdateStatus field's value. +func (s *FeatureGroup) SetLastUpdateStatus(v *LastUpdateStatus) *FeatureGroup { + s.LastUpdateStatus = v + return s +} + // SetOfflineStoreConfig sets the OfflineStoreConfig field's value. func (s *FeatureGroup) SetOfflineStoreConfig(v *OfflineStoreConfig) *FeatureGroup { s.OfflineStoreConfig = v @@ -56000,6 +56466,159 @@ func (s *FeatureGroupSummary) SetOfflineStoreStatus(v *OfflineStoreStatus) *Feat return s } +// The metadata for a feature. It can either be metadata that you specify, or +// metadata that is updated automatically. +type FeatureMetadata struct { + _ struct{} `type:"structure"` + + // A timestamp indicating when the feature was created. + CreationTime *time.Time `type:"timestamp"` + + // An optional description that you specify to better describe the feature. + Description *string `type:"string"` + + // The Amazon Resource Number (ARN) of the feature group. + FeatureGroupArn *string `type:"string"` + + // The name of the feature group containing the feature. + FeatureGroupName *string `min:"1" type:"string"` + + // The name of feature. + FeatureName *string `min:"1" type:"string"` + + // The data type of the feature. + FeatureType *string `type:"string" enum:"FeatureType"` + + // A timestamp indicating when the feature was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // Optional key-value pairs that you specify to better describe the feature. + Parameters []*FeatureParameter `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *FeatureMetadata) SetCreationTime(v time.Time) *FeatureMetadata { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *FeatureMetadata) SetDescription(v string) *FeatureMetadata { + s.Description = &v + return s +} + +// SetFeatureGroupArn sets the FeatureGroupArn field's value. +func (s *FeatureMetadata) SetFeatureGroupArn(v string) *FeatureMetadata { + s.FeatureGroupArn = &v + return s +} + +// SetFeatureGroupName sets the FeatureGroupName field's value. +func (s *FeatureMetadata) SetFeatureGroupName(v string) *FeatureMetadata { + s.FeatureGroupName = &v + return s +} + +// SetFeatureName sets the FeatureName field's value. +func (s *FeatureMetadata) SetFeatureName(v string) *FeatureMetadata { + s.FeatureName = &v + return s +} + +// SetFeatureType sets the FeatureType field's value. +func (s *FeatureMetadata) SetFeatureType(v string) *FeatureMetadata { + s.FeatureType = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *FeatureMetadata) SetLastModifiedTime(v time.Time) *FeatureMetadata { + s.LastModifiedTime = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *FeatureMetadata) SetParameters(v []*FeatureParameter) *FeatureMetadata { + s.Parameters = v + return s +} + +// A key-value pair that you specify to describe the feature. +type FeatureParameter struct { + _ struct{} `type:"structure"` + + // A key that must contain a value to describe the feature. + Key *string `min:"1" type:"string"` + + // The value that belongs to a key. + Value *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 FeatureParameter) 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 FeatureParameter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FeatureParameter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FeatureParameter"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *FeatureParameter) SetKey(v string) *FeatureParameter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FeatureParameter) SetValue(v string) *FeatureParameter { + s.Value = &v + return s +} + // Contains details regarding the file source. type FileSource struct { _ struct{} `type:"structure"` @@ -62205,6 +62824,49 @@ func (s *LambdaStepMetadata) SetOutputParameters(v []*OutputParameter) *LambdaSt return s } +// A value that indicates whether the update was successful. +type LastUpdateStatus struct { + _ struct{} `type:"structure"` + + // If the update wasn't successful, indicates the reason why it failed. + FailureReason *string `type:"string"` + + // A value that indicates whether the update was made successful. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"LastUpdateStatusValue"` +} + +// 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 LastUpdateStatus) 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 LastUpdateStatus) GoString() string { + return s.String() +} + +// SetFailureReason sets the FailureReason field's value. +func (s *LastUpdateStatus) SetFailureReason(v string) *LastUpdateStatus { + s.FailureReason = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LastUpdateStatus) SetStatus(v string) *LastUpdateStatus { + s.Status = &v + return s +} + // Lists a summary of the properties of a lineage group. A lineage group provides // a group of shareable lineage entity resources. type LineageGroupSummary struct { @@ -71359,14 +72021,20 @@ func (s *MetricDefinition) SetRegex(v string) *MetricDefinition { return s } +// Details about the metrics source. type MetricsSource struct { _ struct{} `type:"structure"` + // The hash key used for the metrics source. ContentDigest *string `type:"string"` + // The metric source content type. + // // ContentType is a required field ContentType *string `type:"string" required:"true"` + // The S3 URI for the metrics source. + // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` } @@ -83858,6 +84526,9 @@ type SearchRecord struct { // In principle, a Feature Group is composed of features and values per features. FeatureGroup *FeatureGroup `type:"structure"` + // The feature metadata used to search through the features. + FeatureMetadata *FeatureMetadata `type:"structure"` + // A versioned model that can be deployed for SageMaker inference. ModelPackage *ModelPackage `type:"structure"` @@ -83919,6 +84590,12 @@ func (s *SearchRecord) SetFeatureGroup(v *FeatureGroup) *SearchRecord { return s } +// SetFeatureMetadata sets the FeatureMetadata field's value. +func (s *SearchRecord) SetFeatureMetadata(v *FeatureMetadata) *SearchRecord { + s.FeatureMetadata = v + return s +} + // SetModelPackage sets the ModelPackage field's value. func (s *SearchRecord) SetModelPackage(v *ModelPackage) *SearchRecord { s.ModelPackage = v @@ -91275,6 +91952,236 @@ func (s *UpdateExperimentOutput) SetExperimentArn(v string) *UpdateExperimentOut return s } +type UpdateFeatureGroupInput struct { + _ struct{} `type:"structure"` + + // A list of the features that you're adding to the feature group. + FeatureAdditions []*FeatureDefinition `min:"1" type:"list"` + + // The name of the feature group that you're updating. + // + // FeatureGroupName is a required field + FeatureGroupName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFeatureGroupInput) 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 UpdateFeatureGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFeatureGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFeatureGroupInput"} + if s.FeatureAdditions != nil && len(s.FeatureAdditions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureAdditions", 1)) + } + if s.FeatureGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("FeatureGroupName")) + } + if s.FeatureGroupName != nil && len(*s.FeatureGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureGroupName", 1)) + } + if s.FeatureAdditions != nil { + for i, v := range s.FeatureAdditions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "FeatureAdditions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFeatureAdditions sets the FeatureAdditions field's value. +func (s *UpdateFeatureGroupInput) SetFeatureAdditions(v []*FeatureDefinition) *UpdateFeatureGroupInput { + s.FeatureAdditions = v + return s +} + +// SetFeatureGroupName sets the FeatureGroupName field's value. +func (s *UpdateFeatureGroupInput) SetFeatureGroupName(v string) *UpdateFeatureGroupInput { + s.FeatureGroupName = &v + return s +} + +type UpdateFeatureGroupOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Number (ARN) of the feature group that you're updating. + // + // FeatureGroupArn is a required field + FeatureGroupArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFeatureGroupOutput) 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 UpdateFeatureGroupOutput) GoString() string { + return s.String() +} + +// SetFeatureGroupArn sets the FeatureGroupArn field's value. +func (s *UpdateFeatureGroupOutput) SetFeatureGroupArn(v string) *UpdateFeatureGroupOutput { + s.FeatureGroupArn = &v + return s +} + +type UpdateFeatureMetadataInput struct { + _ struct{} `type:"structure"` + + // A description that you can write to better describe the feature. + Description *string `type:"string"` + + // The name of the feature group containing the feature that you're updating. + // + // FeatureGroupName is a required field + FeatureGroupName *string `min:"1" type:"string" required:"true"` + + // The name of the feature that you're updating. + // + // FeatureName is a required field + FeatureName *string `min:"1" type:"string" required:"true"` + + // A list of key-value pairs that you can add to better describe the feature. + ParameterAdditions []*FeatureParameter `type:"list"` + + // A list of parameter keys that you can specify to remove parameters that describe + // your feature. + ParameterRemovals []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateFeatureMetadataInput) 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 UpdateFeatureMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFeatureMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFeatureMetadataInput"} + if s.FeatureGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("FeatureGroupName")) + } + if s.FeatureGroupName != nil && len(*s.FeatureGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureGroupName", 1)) + } + if s.FeatureName == nil { + invalidParams.Add(request.NewErrParamRequired("FeatureName")) + } + if s.FeatureName != nil && len(*s.FeatureName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FeatureName", 1)) + } + if s.ParameterAdditions != nil { + for i, v := range s.ParameterAdditions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterAdditions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateFeatureMetadataInput) SetDescription(v string) *UpdateFeatureMetadataInput { + s.Description = &v + return s +} + +// SetFeatureGroupName sets the FeatureGroupName field's value. +func (s *UpdateFeatureMetadataInput) SetFeatureGroupName(v string) *UpdateFeatureMetadataInput { + s.FeatureGroupName = &v + return s +} + +// SetFeatureName sets the FeatureName field's value. +func (s *UpdateFeatureMetadataInput) SetFeatureName(v string) *UpdateFeatureMetadataInput { + s.FeatureName = &v + return s +} + +// SetParameterAdditions sets the ParameterAdditions field's value. +func (s *UpdateFeatureMetadataInput) SetParameterAdditions(v []*FeatureParameter) *UpdateFeatureMetadataInput { + s.ParameterAdditions = v + return s +} + +// SetParameterRemovals sets the ParameterRemovals field's value. +func (s *UpdateFeatureMetadataInput) SetParameterRemovals(v []*string) *UpdateFeatureMetadataInput { + s.ParameterRemovals = v + return s +} + +type UpdateFeatureMetadataOutput 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 UpdateFeatureMetadataOutput) 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 UpdateFeatureMetadataOutput) GoString() string { + return s.String() +} + type UpdateImageInput struct { _ struct{} `type:"structure"` @@ -96291,6 +97198,26 @@ func LabelingJobStatus_Values() []string { } } +const ( + // LastUpdateStatusValueSuccessful is a LastUpdateStatusValue enum value + LastUpdateStatusValueSuccessful = "Successful" + + // LastUpdateStatusValueFailed is a LastUpdateStatusValue enum value + LastUpdateStatusValueFailed = "Failed" + + // LastUpdateStatusValueInProgress is a LastUpdateStatusValue enum value + LastUpdateStatusValueInProgress = "InProgress" +) + +// LastUpdateStatusValue_Values returns all elements of the LastUpdateStatusValue enum +func LastUpdateStatusValue_Values() []string { + return []string{ + LastUpdateStatusValueSuccessful, + LastUpdateStatusValueFailed, + LastUpdateStatusValueInProgress, + } +} + const ( // LineageTypeTrialComponent is a LineageType enum value LineageTypeTrialComponent = "TrialComponent" @@ -97982,6 +98909,9 @@ const ( // ResourceTypeProject is a ResourceType enum value ResourceTypeProject = "Project" + + // ResourceTypeFeatureMetadata is a ResourceType enum value + ResourceTypeFeatureMetadata = "FeatureMetadata" ) // ResourceType_Values returns all elements of the ResourceType enum @@ -97998,6 +98928,7 @@ func ResourceType_Values() []string { ResourceTypePipelineExecution, ResourceTypeFeatureGroup, ResourceTypeProject, + ResourceTypeFeatureMetadata, } } diff --git a/service/sagemaker/sagemakeriface/interface.go b/service/sagemaker/sagemakeriface/interface.go index 46c79e6e5a..a87796ea13 100644 --- a/service/sagemaker/sagemakeriface/interface.go +++ b/service/sagemaker/sagemakeriface/interface.go @@ -488,6 +488,10 @@ type SageMakerAPI interface { DescribeFeatureGroupWithContext(aws.Context, *sagemaker.DescribeFeatureGroupInput, ...request.Option) (*sagemaker.DescribeFeatureGroupOutput, error) DescribeFeatureGroupRequest(*sagemaker.DescribeFeatureGroupInput) (*request.Request, *sagemaker.DescribeFeatureGroupOutput) + DescribeFeatureMetadata(*sagemaker.DescribeFeatureMetadataInput) (*sagemaker.DescribeFeatureMetadataOutput, error) + DescribeFeatureMetadataWithContext(aws.Context, *sagemaker.DescribeFeatureMetadataInput, ...request.Option) (*sagemaker.DescribeFeatureMetadataOutput, error) + DescribeFeatureMetadataRequest(*sagemaker.DescribeFeatureMetadataInput) (*request.Request, *sagemaker.DescribeFeatureMetadataOutput) + DescribeFlowDefinition(*sagemaker.DescribeFlowDefinitionInput) (*sagemaker.DescribeFlowDefinitionOutput, error) DescribeFlowDefinitionWithContext(aws.Context, *sagemaker.DescribeFlowDefinitionInput, ...request.Option) (*sagemaker.DescribeFlowDefinitionOutput, error) DescribeFlowDefinitionRequest(*sagemaker.DescribeFlowDefinitionInput) (*request.Request, *sagemaker.DescribeFlowDefinitionOutput) @@ -1185,6 +1189,14 @@ type SageMakerAPI interface { UpdateExperimentWithContext(aws.Context, *sagemaker.UpdateExperimentInput, ...request.Option) (*sagemaker.UpdateExperimentOutput, error) UpdateExperimentRequest(*sagemaker.UpdateExperimentInput) (*request.Request, *sagemaker.UpdateExperimentOutput) + UpdateFeatureGroup(*sagemaker.UpdateFeatureGroupInput) (*sagemaker.UpdateFeatureGroupOutput, error) + UpdateFeatureGroupWithContext(aws.Context, *sagemaker.UpdateFeatureGroupInput, ...request.Option) (*sagemaker.UpdateFeatureGroupOutput, error) + UpdateFeatureGroupRequest(*sagemaker.UpdateFeatureGroupInput) (*request.Request, *sagemaker.UpdateFeatureGroupOutput) + + UpdateFeatureMetadata(*sagemaker.UpdateFeatureMetadataInput) (*sagemaker.UpdateFeatureMetadataOutput, error) + UpdateFeatureMetadataWithContext(aws.Context, *sagemaker.UpdateFeatureMetadataInput, ...request.Option) (*sagemaker.UpdateFeatureMetadataOutput, error) + UpdateFeatureMetadataRequest(*sagemaker.UpdateFeatureMetadataInput) (*request.Request, *sagemaker.UpdateFeatureMetadataOutput) + UpdateImage(*sagemaker.UpdateImageInput) (*sagemaker.UpdateImageOutput, error) UpdateImageWithContext(aws.Context, *sagemaker.UpdateImageInput, ...request.Option) (*sagemaker.UpdateImageOutput, error) UpdateImageRequest(*sagemaker.UpdateImageInput) (*request.Request, *sagemaker.UpdateImageOutput) diff --git a/service/translate/api.go b/service/translate/api.go index adde30a0f7..ead3c6b37f 100644 --- a/service/translate/api.go +++ b/service/translate/api.go @@ -71,12 +71,12 @@ func (c *Translate) CreateParallelDataRequest(input *CreateParallelDataInput) (r // // Returned Error Types: // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * InvalidRequestException -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. +// The request that you made is not valid. Check your request to determine why +// it's not valid and then retry the request. // // * LimitExceededException // The specified limit has been exceeded. Review your request and retry it with @@ -271,7 +271,7 @@ func (c *Translate) DeleteTerminologyRequest(input *DeleteTerminologyInput) (req // short time and then try your request again. // // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * InternalServerException @@ -449,7 +449,7 @@ func (c *Translate) GetParallelDataRequest(input *GetParallelDataInput) (req *re // before retrying the revised request. // // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * TooManyRequestsException @@ -541,7 +541,7 @@ func (c *Translate) GetTerminologyRequest(input *GetTerminologyInput) (req *requ // before retrying the revised request. // // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * TooManyRequestsException @@ -617,16 +617,15 @@ func (c *Translate) ImportTerminologyRequest(input *ImportTerminologyInput) (req // ImportTerminology API operation for Amazon Translate. // -// Creates or updates a custom terminology, depending on whether or not one -// already exists for the given terminology name. Importing a terminology with -// the same name as an existing one will merge the terminologies based on the -// chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, -// and so the imported terminology will overwrite an existing terminology of -// the same name. +// Creates or updates a custom terminology, depending on whether one already +// exists for the given terminology name. Importing a terminology with the same +// name as an existing one will merge the terminologies based on the chosen +// merge strategy. The only supported merge strategy is OVERWRITE, where the +// imported terminology overwrites the existing terminology of the same name. // // If you import a terminology that overwrites an existing one, the new terminology -// take up to 10 minutes to fully propagate and be available for use in a translation -// due to cache policies with the DataPlane service that performs the translations. +// takes up to 10 minutes to fully propagate. After that, translations have +// access to the new terminology. // // 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 @@ -637,7 +636,7 @@ func (c *Translate) ImportTerminologyRequest(input *ImportTerminologyInput) (req // // Returned Error Types: // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * LimitExceededException @@ -673,6 +672,155 @@ func (c *Translate) ImportTerminologyWithContext(ctx aws.Context, input *ImportT return out, req.Send() } +const opListLanguages = "ListLanguages" + +// ListLanguagesRequest generates a "aws/request.Request" representing the +// client's request for the ListLanguages 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 ListLanguages for more information on using the ListLanguages +// 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 ListLanguagesRequest method. +// req, resp := client.ListLanguagesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListLanguages +func (c *Translate) ListLanguagesRequest(input *ListLanguagesInput) (req *request.Request, output *ListLanguagesOutput) { + op := &request.Operation{ + Name: opListLanguages, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLanguagesInput{} + } + + output = &ListLanguagesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLanguages API operation for Amazon Translate. +// +// Provides a list of languages (RFC-5646 codes and names) that Amazon Translate +// supports. +// +// 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 Translate's +// API operation ListLanguages for usage and error information. +// +// Returned Error Types: +// * InvalidParameterValueException +// The value of the parameter is not valid. Review the value of the parameter +// you are using to correct it, and then retry your operation. +// +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +// +// * UnsupportedDisplayLanguageCodeException +// Requested display language code is not supported. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListLanguages +func (c *Translate) ListLanguages(input *ListLanguagesInput) (*ListLanguagesOutput, error) { + req, out := c.ListLanguagesRequest(input) + return out, req.Send() +} + +// ListLanguagesWithContext is the same as ListLanguages with the addition of +// the ability to pass a context and additional request options. +// +// See ListLanguages 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 *Translate) ListLanguagesWithContext(ctx aws.Context, input *ListLanguagesInput, opts ...request.Option) (*ListLanguagesOutput, error) { + req, out := c.ListLanguagesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLanguagesPages iterates over the pages of a ListLanguages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLanguages 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 ListLanguages operation. +// pageNum := 0 +// err := client.ListLanguagesPages(params, +// func(page *translate.ListLanguagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Translate) ListLanguagesPages(input *ListLanguagesInput, fn func(*ListLanguagesOutput, bool) bool) error { + return c.ListLanguagesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLanguagesPagesWithContext same as ListLanguagesPages 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 *Translate) ListLanguagesPagesWithContext(ctx aws.Context, input *ListLanguagesInput, fn func(*ListLanguagesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLanguagesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLanguagesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLanguagesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListParallelData = "ListParallelData" // ListParallelDataRequest generates a "aws/request.Request" representing the @@ -734,7 +882,7 @@ func (c *Translate) ListParallelDataRequest(input *ListParallelDataInput) (req * // // Returned Error Types: // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * TooManyRequestsException @@ -879,7 +1027,7 @@ func (c *Translate) ListTerminologiesRequest(input *ListTerminologiesInput) (req // // Returned Error Types: // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * TooManyRequestsException @@ -1024,15 +1172,16 @@ func (c *Translate) ListTextTranslationJobsRequest(input *ListTextTranslationJob // // Returned Error Types: // * InvalidRequestException -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. +// The request that you made is not valid. Check your request to determine why +// it's not valid and then retry the request. // // * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // // * InvalidFilterException -// The filter specified for the operation is invalid. Specify a different filter. +// The filter specified for the operation is not valid. Specify a different +// filter. // // * InternalServerException // An internal server error occurred. Retry your request. @@ -1183,8 +1332,8 @@ func (c *Translate) StartTextTranslationJobRequest(input *StartTextTranslationJo // text into the requested target language. For more information, see how-to-error-msg. // // * InvalidRequestException -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. +// The request that you made is not valid. Check your request to determine why +// it's not valid and then retry the request. // // * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource @@ -1192,7 +1341,7 @@ func (c *Translate) StartTextTranslationJobRequest(input *StartTextTranslationJo // before retrying the revised request. // // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * InternalServerException @@ -1373,8 +1522,8 @@ func (c *Translate) TextRequest(input *TextInput) (req *request.Request, output // // Returned Error Types: // * InvalidRequestException -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. +// The request that you made is not valid. Check your request to determine why +// it's not valid and then retry the request. // // * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size @@ -1404,8 +1553,8 @@ func (c *Translate) TextRequest(input *TextInput) (req *request.Request, output // An internal server error occurred. Retry your request. // // * ServiceUnavailableException -// The Amazon Translate service is temporarily unavailable. Please wait a bit -// and then retry your request. +// The Amazon Translate service is temporarily unavailable. Wait a bit and then +// retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Text func (c *Translate) Text(input *TextInput) (*TextOutput, error) { @@ -1489,12 +1638,12 @@ func (c *Translate) UpdateParallelDataRequest(input *UpdateParallelDataInput) (r // you can make your change. // // * InvalidParameterValueException -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. // // * InvalidRequestException -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. +// The request that you made is not valid. Check your request to determine why +// it's not valid and then retry the request. // // * LimitExceededException // The specified limit has been exceeded. Review your request and retry it with @@ -2293,12 +2442,12 @@ type GetParallelDataOutput struct { // The Amazon S3 location of a file that provides any errors or warnings that // were produced by your input file. This file was created when Amazon Translate // attempted to create a parallel data resource. The location is returned as - // a presigned URL to that has a 30 minute expiration. + // a presigned URL to that has a 30-minute expiration. AuxiliaryDataLocation *ParallelDataDataLocation `type:"structure"` // The Amazon S3 location of the most recent parallel data input file that was // successfully imported into Amazon Translate. The location is returned as - // a presigned URL that has a 30 minute expiration. + // a presigned URL that has a 30-minute expiration. // // Amazon Translate doesn't scan all input files for the risk of CSV injection // attacks. @@ -2315,7 +2464,7 @@ type GetParallelDataOutput struct { // The Amazon S3 location of a file that provides any errors or warnings that // were produced by your input file. This file was created when Amazon Translate // attempted to update a parallel data resource. The location is returned as - // a presigned URL to that has a 30 minute expiration. + // a presigned URL to that has a 30-minute expiration. LatestUpdateAttemptAuxiliaryDataLocation *ParallelDataDataLocation `type:"structure"` // The properties of the parallel data resource that is being retrieved. @@ -2374,12 +2523,12 @@ type GetTerminologyInput struct { // The data format of the custom terminology being retrieved. // - // If you don't specify this parameter, Amazon Translate returns a file that - // has the same format as the file that was imported to create the terminology. + // If you don't specify this parameter, Amazon Translate returns a file with + // the same format as the file that was imported to create the terminology. // // If you specify this parameter when you retrieve a multi-directional terminology - // resource, you must specify the same format as that of the input file that - // was imported to create it. Otherwise, Amazon Translate throws an error. + // resource, you must specify the same format as the input file that was imported + // to create it. Otherwise, Amazon Translate throws an error. TerminologyDataFormat *string `type:"string" enum:"TerminologyDataFormat"` } @@ -2435,12 +2584,12 @@ type GetTerminologyOutput struct { // The Amazon S3 location of a file that provides any errors or warnings that // were produced by your input file. This file was created when Amazon Translate // attempted to create a terminology resource. The location is returned as a - // presigned URL to that has a 30 minute expiration. + // presigned URL to that has a 30-minute expiration. AuxiliaryDataLocation *TerminologyDataLocation `type:"structure"` // The Amazon S3 location of the most recent custom terminology input file that // was successfully imported into Amazon Translate. The location is returned - // as a presigned URL that has a 30 minute expiration. + // as a presigned URL that has a 30-minute expiration. // // Amazon Translate doesn't scan all input files for the risk of CSV injection // attacks. @@ -2680,8 +2829,15 @@ type InputDataConfig struct { // ContentType is a required field ContentType *string `type:"string" required:"true"` - // The URI of the AWS S3 folder that contains the input file. The folder must - // be in the same Region as the API endpoint you are calling. + // The URI of the AWS S3 folder that contains the input files. Amazon Translate + // translates all the files in the folder. The folder must be in the same Region + // as the API endpoint you are calling. + // + // The URI can also point to a single input document, or it can provide the + // prefix for a collection of input documents. For example. if you use the URI + // S3://bucketName/prefix and the prefix is a single file, Amazon Translate + // uses that files as input. If more than one file begins with the prefix, Amazon + // Translate uses all of them as input. // // S3Uri is a required field S3Uri *string `type:"string" required:"true"` @@ -2797,7 +2953,8 @@ func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } -// The filter specified for the operation is invalid. Specify a different filter. +// The filter specified for the operation is not valid. Specify a different +// filter. type InvalidFilterException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -2861,7 +3018,7 @@ func (s *InvalidFilterException) RequestID() string { return s.RespMetadata.RequestID } -// The value of the parameter is invalid. Review the value of the parameter +// The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. type InvalidParameterValueException struct { _ struct{} `type:"structure"` @@ -2926,8 +3083,8 @@ func (s *InvalidParameterValueException) RequestID() string { return s.RespMetadata.RequestID } -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. +// The request that you made is not valid. Check your request to determine why +// it's not valid and then retry the request. type InvalidRequestException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -3043,6 +3200,51 @@ func (s *JobDetails) SetTranslatedDocumentsCount(v int64) *JobDetails { return s } +// A supported language. +type Language struct { + _ struct{} `type:"structure"` + + // Language code for the supported language. + // + // LanguageCode is a required field + LanguageCode *string `min:"2" type:"string" required:"true"` + + // Language name of the supported language. + // + // LanguageName is a required field + LanguageName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Language) 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 Language) GoString() string { + return s.String() +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *Language) SetLanguageCode(v string) *Language { + s.LanguageCode = &v + return s +} + +// SetLanguageName sets the LanguageName field's value. +func (s *Language) SetLanguageName(v string) *Language { + s.LanguageName = &v + return s +} + // The specified limit has been exceeded. Review your request and retry it with // a quantity below the stated limit. type LimitExceededException struct { @@ -3108,6 +3310,119 @@ func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +type ListLanguagesInput struct { + _ struct{} `type:"structure"` + + // The language code for the language to use to display the language names in + // the response. The language code is en by default. + DisplayLanguageCode *string `type:"string" enum:"DisplayLanguageCode"` + + // The maximum number of results to return in each response. + MaxResults *int64 `min:"1" type:"integer"` + + // Include the NextToken value to fetch the next group of supported languages. + NextToken *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 ListLanguagesInput) 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 ListLanguagesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLanguagesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLanguagesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisplayLanguageCode sets the DisplayLanguageCode field's value. +func (s *ListLanguagesInput) SetDisplayLanguageCode(v string) *ListLanguagesInput { + s.DisplayLanguageCode = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLanguagesInput) SetMaxResults(v int64) *ListLanguagesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLanguagesInput) SetNextToken(v string) *ListLanguagesInput { + s.NextToken = &v + return s +} + +type ListLanguagesOutput struct { + _ struct{} `type:"structure"` + + // The language code passed in with the request. + DisplayLanguageCode *string `type:"string" enum:"DisplayLanguageCode"` + + // The list of supported languages. + Languages []*Language `type:"list"` + + // If the response does not include all remaining results, use the NextToken + // in the next request to fetch the next group of supported languages. + NextToken *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 ListLanguagesOutput) 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 ListLanguagesOutput) GoString() string { + return s.String() +} + +// SetDisplayLanguageCode sets the DisplayLanguageCode field's value. +func (s *ListLanguagesOutput) SetDisplayLanguageCode(v string) *ListLanguagesOutput { + s.DisplayLanguageCode = &v + return s +} + +// SetLanguages sets the Languages field's value. +func (s *ListLanguagesOutput) SetLanguages(v []*Language) *ListLanguagesOutput { + s.Languages = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLanguagesOutput) SetNextToken(v string) *ListLanguagesOutput { + s.NextToken = &v + return s +} + type ListParallelDataInput struct { _ struct{} `type:"structure"` @@ -3539,7 +3854,7 @@ type ParallelDataDataLocation struct { _ struct{} `type:"structure"` // The Amazon S3 location of the parallel data input file. The location is returned - // as a presigned URL to that has a 30 minute expiration. + // as a presigned URL to that has a 30-minute expiration. // // Amazon Translate doesn't scan all input files for the risk of CSV injection // attacks. @@ -3843,8 +4158,8 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } -// The Amazon Translate service is temporarily unavailable. Please wait a bit -// and then retry your request. +// The Amazon Translate service is temporarily unavailable. Wait a bit and then +// retry your request. type ServiceUnavailableException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -3911,8 +4226,8 @@ func (s *ServiceUnavailableException) RequestID() string { type StartTextTranslationJobInput struct { _ struct{} `type:"structure"` - // A unique identifier for the request. This token is auto-generated when using - // the Amazon Translate SDK. + // A unique identifier for the request. This token is generated for you when + // using the Amazon Translate SDK. ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` // The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) @@ -3922,7 +4237,7 @@ type StartTextTranslationJobInput struct { // DataAccessRoleArn is a required field DataAccessRoleArn *string `min:"20" type:"string" required:"true"` - // Specifies the format and S3 location of the input documents for the translation + // Specifies the format and location of the input documents for the translation // job. // // InputDataConfig is a required field @@ -3954,7 +4269,8 @@ type StartTextTranslationJobInput struct { ParallelDataNames []*string `type:"list"` // Settings to configure your translation output, including the option to mask - // profane words and phrases. + // profane words and phrases. StartTextTranslationJob does not support the formality + // setting. Settings *TranslationSettings `type:"structure"` // The language code of the input language. For a list of language codes, see @@ -4301,7 +4617,8 @@ func (s *Term) SetTargetText(v string) *Term { return s } -// The data associated with the custom terminology. +// The data associated with the custom terminology. For information about the +// custom terminology file, see Creating a Custom Terminology (https://docs.aws.amazon.com/translate/latest/dg/creating-custom-terminology.html). type TerminologyData struct { _ struct{} `type:"structure"` @@ -4318,8 +4635,8 @@ type TerminologyData struct { // Any language in the terminology resource can be the source language or a // target language. A single multi-directional terminology resource can be used // for jobs that translate different language pairs. For example, if the terminology - // contains terms in English and Spanish, then it can be used for jobs that - // translate English to Spanish and jobs that translate Spanish to English. + // contains English and Spanish terms, it can be used for jobs that translate + // English to Spanish and Spanish to English. // // When you create a custom terminology resource without specifying the directionality, // it behaves as uni-directional terminology, although this parameter will have @@ -4403,7 +4720,7 @@ type TerminologyDataLocation struct { // The Amazon S3 location of the most recent custom terminology input file that // was successfully imported into Amazon Translate. The location is returned - // as a presigned URL that has a 30 minute expiration. + // as a presigned URL that has a 30-minute expiration . // // Amazon Translate doesn't scan all input files for the risk of CSV injection // attacks. @@ -4620,8 +4937,9 @@ func (s *TerminologyProperties) SetTermCount(v int64) *TerminologyProperties { type TextInput struct { _ struct{} `type:"structure"` - // Settings to configure your translation output, including the option to mask - // profane words and phrases. + // Settings to configure your translation output, including the option to set + // the formality level of the output text and the option to mask profane words + // and phrases. Settings *TranslationSettings `type:"structure"` // The language code for the language of the source text. The language must @@ -4633,6 +4951,10 @@ type TextInput struct { // Translate will call Amazon Comprehend (https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html) // to determine the source language. // + // If you specify auto, you must send the TranslateText request in a region + // that supports Amazon Comprehend. Otherwise, the request returns an error + // indicating that autodetect is not supported. + // // SourceLanguageCode is a required field SourceLanguageCode *string `min:"2" type:"string" required:"true"` @@ -5182,6 +5504,19 @@ func (s *TooManyRequestsException) RequestID() string { type TranslationSettings struct { _ struct{} `type:"structure"` + // You can optionally specify the desired level of formality for real-time translations + // to supported target languages. The formality setting controls the level of + // formal language usage (also known as register (https://en.wikipedia.org/wiki/Register_(sociolinguistics))) + // in the translation output. You can set the value to informal or formal. If + // you don't specify a value for formality, or if the target language doesn't + // support formality, the translation will ignore the formality setting. + // + // Note that asynchronous translation jobs don't support formality. If you provide + // a value for formality, the StartTextTranslationJob API throws an exception + // (InvalidRequestException). + // + // For target languages that support formality, see Supported Languages and + // Language Codes in the Amazon Translate Developer Guide (https://docs.aws.amazon.com/translate/latest/dg/what-is.html). Formality *string `type:"string" enum:"Formality"` // Enable the profanity setting if you want Amazon Translate to mask profane @@ -5191,9 +5526,9 @@ type TranslationSettings struct { // grawlix string “?$#@$“. This 5-character sequence is used for each profane // word or phrase, regardless of the length or number of words. // - // Amazon Translate does not detect profanity in all of its supported languages. + // Amazon Translate doesn't detect profanity in all of its supported languages. // For languages that support profanity detection, see Supported Languages and - // Language Codes in the Amazon Translate Developer Guide (https://docs.aws.amazon.com/translate/latest/dg/what-is.html#what-is-languages). + // Language Codes in the Amazon Translate Developer Guide (https://docs.aws.amazon.com/translate/latest/dg/what-is.html). Profanity *string `type:"string" enum:"Profanity"` } @@ -5227,6 +5562,73 @@ func (s *TranslationSettings) SetProfanity(v string) *TranslationSettings { return s } +// Requested display language code is not supported. +type UnsupportedDisplayLanguageCodeException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Language code passed in with the request. + DisplayLanguageCode *string `min:"2" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnsupportedDisplayLanguageCodeException) 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 UnsupportedDisplayLanguageCodeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedDisplayLanguageCodeException(v protocol.ResponseMetadata) error { + return &UnsupportedDisplayLanguageCodeException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnsupportedDisplayLanguageCodeException) Code() string { + return "UnsupportedDisplayLanguageCodeException" +} + +// Message returns the exception's message. +func (s *UnsupportedDisplayLanguageCodeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnsupportedDisplayLanguageCodeException) OrigErr() error { + return nil +} + +func (s *UnsupportedDisplayLanguageCodeException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnsupportedDisplayLanguageCodeException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnsupportedDisplayLanguageCodeException) RequestID() string { + return s.RespMetadata.RequestID +} + // Amazon Translate does not support translation from the language of the source // text into the requested target language. For more information, see how-to-error-msg. type UnsupportedLanguagePairException struct { @@ -5464,6 +5866,54 @@ func Directionality_Values() []string { } } +const ( + // DisplayLanguageCodeDe is a DisplayLanguageCode enum value + DisplayLanguageCodeDe = "de" + + // DisplayLanguageCodeEn is a DisplayLanguageCode enum value + DisplayLanguageCodeEn = "en" + + // DisplayLanguageCodeEs is a DisplayLanguageCode enum value + DisplayLanguageCodeEs = "es" + + // DisplayLanguageCodeFr is a DisplayLanguageCode enum value + DisplayLanguageCodeFr = "fr" + + // DisplayLanguageCodeIt is a DisplayLanguageCode enum value + DisplayLanguageCodeIt = "it" + + // DisplayLanguageCodeJa is a DisplayLanguageCode enum value + DisplayLanguageCodeJa = "ja" + + // DisplayLanguageCodeKo is a DisplayLanguageCode enum value + DisplayLanguageCodeKo = "ko" + + // DisplayLanguageCodePt is a DisplayLanguageCode enum value + DisplayLanguageCodePt = "pt" + + // DisplayLanguageCodeZh is a DisplayLanguageCode enum value + DisplayLanguageCodeZh = "zh" + + // DisplayLanguageCodeZhTw is a DisplayLanguageCode enum value + DisplayLanguageCodeZhTw = "zh-TW" +) + +// DisplayLanguageCode_Values returns all elements of the DisplayLanguageCode enum +func DisplayLanguageCode_Values() []string { + return []string{ + DisplayLanguageCodeDe, + DisplayLanguageCodeEn, + DisplayLanguageCodeEs, + DisplayLanguageCodeFr, + DisplayLanguageCodeIt, + DisplayLanguageCodeJa, + DisplayLanguageCodeKo, + DisplayLanguageCodePt, + DisplayLanguageCodeZh, + DisplayLanguageCodeZhTw, + } +} + const ( // EncryptionKeyTypeKms is a EncryptionKeyType enum value EncryptionKeyTypeKms = "KMS" diff --git a/service/translate/errors.go b/service/translate/errors.go index 049db33d16..e77153d253 100644 --- a/service/translate/errors.go +++ b/service/translate/errors.go @@ -40,21 +40,22 @@ const ( // ErrCodeInvalidFilterException for service response error code // "InvalidFilterException". // - // The filter specified for the operation is invalid. Specify a different filter. + // The filter specified for the operation is not valid. Specify a different + // filter. ErrCodeInvalidFilterException = "InvalidFilterException" // ErrCodeInvalidParameterValueException for service response error code // "InvalidParameterValueException". // - // The value of the parameter is invalid. Review the value of the parameter + // The value of the parameter is not valid. Review the value of the parameter // you are using to correct it, and then retry your operation. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // - // The request that you made is invalid. Check your request to determine why - // it's invalid and then retry the request. + // The request that you made is not valid. Check your request to determine why + // it's not valid and then retry the request. ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodeLimitExceededException for service response error code @@ -75,8 +76,8 @@ const ( // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // - // The Amazon Translate service is temporarily unavailable. Please wait a bit - // and then retry your request. + // The Amazon Translate service is temporarily unavailable. Wait a bit and then + // retry your request. ErrCodeServiceUnavailableException = "ServiceUnavailableException" // ErrCodeTextSizeLimitExceededException for service response error code @@ -93,6 +94,12 @@ const ( // short time and then try your request again. ErrCodeTooManyRequestsException = "TooManyRequestsException" + // ErrCodeUnsupportedDisplayLanguageCodeException for service response error code + // "UnsupportedDisplayLanguageCodeException". + // + // Requested display language code is not supported. + ErrCodeUnsupportedDisplayLanguageCodeException = "UnsupportedDisplayLanguageCodeException" + // ErrCodeUnsupportedLanguagePairException for service response error code // "UnsupportedLanguagePairException". // @@ -102,17 +109,18 @@ const ( ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "ConcurrentModificationException": newErrorConcurrentModificationException, - "ConflictException": newErrorConflictException, - "DetectedLanguageLowConfidenceException": newErrorDetectedLanguageLowConfidenceException, - "InternalServerException": newErrorInternalServerException, - "InvalidFilterException": newErrorInvalidFilterException, - "InvalidParameterValueException": newErrorInvalidParameterValueException, - "InvalidRequestException": newErrorInvalidRequestException, - "LimitExceededException": newErrorLimitExceededException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ServiceUnavailableException": newErrorServiceUnavailableException, - "TextSizeLimitExceededException": newErrorTextSizeLimitExceededException, - "TooManyRequestsException": newErrorTooManyRequestsException, - "UnsupportedLanguagePairException": newErrorUnsupportedLanguagePairException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "ConflictException": newErrorConflictException, + "DetectedLanguageLowConfidenceException": newErrorDetectedLanguageLowConfidenceException, + "InternalServerException": newErrorInternalServerException, + "InvalidFilterException": newErrorInvalidFilterException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TextSizeLimitExceededException": newErrorTextSizeLimitExceededException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnsupportedDisplayLanguageCodeException": newErrorUnsupportedDisplayLanguageCodeException, + "UnsupportedLanguagePairException": newErrorUnsupportedLanguagePairException, } diff --git a/service/translate/translateiface/interface.go b/service/translate/translateiface/interface.go index e9ebdb584d..553ee78517 100644 --- a/service/translate/translateiface/interface.go +++ b/service/translate/translateiface/interface.go @@ -88,6 +88,13 @@ type TranslateAPI interface { ImportTerminologyWithContext(aws.Context, *translate.ImportTerminologyInput, ...request.Option) (*translate.ImportTerminologyOutput, error) ImportTerminologyRequest(*translate.ImportTerminologyInput) (*request.Request, *translate.ImportTerminologyOutput) + ListLanguages(*translate.ListLanguagesInput) (*translate.ListLanguagesOutput, error) + ListLanguagesWithContext(aws.Context, *translate.ListLanguagesInput, ...request.Option) (*translate.ListLanguagesOutput, error) + ListLanguagesRequest(*translate.ListLanguagesInput) (*request.Request, *translate.ListLanguagesOutput) + + ListLanguagesPages(*translate.ListLanguagesInput, func(*translate.ListLanguagesOutput, bool) bool) error + ListLanguagesPagesWithContext(aws.Context, *translate.ListLanguagesInput, func(*translate.ListLanguagesOutput, bool) bool, ...request.Option) error + ListParallelData(*translate.ListParallelDataInput) (*translate.ListParallelDataOutput, error) ListParallelDataWithContext(aws.Context, *translate.ListParallelDataInput, ...request.Option) (*translate.ListParallelDataOutput, error) ListParallelDataRequest(*translate.ListParallelDataInput) (*request.Request, *translate.ListParallelDataOutput)