From efce914c965642b9eb0ee9dae2f2ed4dfcbaf870 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Tue, 28 May 2024 14:32:06 -0400 Subject: [PATCH] Release v1.53.11 (2024-05-28) (#5272) Release v1.53.11 (2024-05-28) === ### Service Client Updates * `service/dynamodb`: Updates service API, documentation, waiters, paginators, and examples * Doc-only update for DynamoDB. Specified the IAM actions needed to authorize a user to create a table with a resource-based policy. * `service/ec2`: Updates service API and documentation * Providing support to accept BgpAsnExtended attribute * `service/kafka`: Updates service API and documentation * `service/swf`: Updates service API and documentation * This release adds new APIs for deleting activity type and workflow type resources. --- CHANGELOG.md | 12 + aws/endpoints/defaults.go | 17 +- aws/version.go | 2 +- models/apis/dynamodb/2012-08-10/docs-2.json | 2 +- models/apis/ec2/2016-11-15/api-2.json | 7 +- models/apis/ec2/2016-11-15/docs-2.json | 10 +- models/apis/kafka/2018-11-14/api-2.json | 13 + models/apis/kafka/2018-11-14/docs-2.json | 9 +- models/apis/swf/2012-01-25/api-2.json | 56 +++ models/apis/swf/2012-01-25/docs-2.json | 24 +- .../swf/2012-01-25/endpoint-rule-set-1.json | 44 +- models/endpoints/endpoints.json | 11 +- service/dynamodb/api.go | 3 + service/ec2/api.go | 46 +- service/kafka/api.go | 43 +- service/swf/api.go | 473 +++++++++++++++++- service/swf/errors.go | 7 + service/swf/swfiface/interface.go | 8 + 18 files changed, 732 insertions(+), 55 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6f7a8a2386..fd199c43df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +Release v1.53.11 (2024-05-28) +=== + +### Service Client Updates +* `service/dynamodb`: Updates service API, documentation, waiters, paginators, and examples + * Doc-only update for DynamoDB. Specified the IAM actions needed to authorize a user to create a table with a resource-based policy. +* `service/ec2`: Updates service API and documentation + * Providing support to accept BgpAsnExtended attribute +* `service/kafka`: Updates service API and documentation +* `service/swf`: Updates service API and documentation + * This release adds new APIs for deleting activity type and workflow type resources. + Release v1.53.10 (2024-05-24) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 3aa0224a22c..c6e803286d2 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -74,7 +74,9 @@ const ( ) // AWS ISOE (Europe) partition's regions. -const () +const ( + EuIsoeWest1RegionID = "eu-isoe-west-1" // EU ISOE West. +) // AWS ISOF partition's regions. const () @@ -15444,13 +15446,6 @@ var awsPartition = partition{ }: endpoint{}, }, }, - "honeycode": service{ - Endpoints: serviceEndpoints{ - endpointKey{ - Region: "us-west-2", - }: endpoint{}, - }, - }, "iam": service{ PartitionEndpoint: "aws-global", IsRegionalized: boxedFalse, @@ -47289,7 +47284,11 @@ var awsisoePartition = partition{ SignatureVersions: []string{"v4"}, }, }, - Regions: regions{}, + Regions: regions{ + "eu-isoe-west-1": region{ + Description: "EU ISOE West", + }, + }, Services: services{}, } diff --git a/aws/version.go b/aws/version.go index bac37877c78..1c4fe84e0fb 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.53.10" +const SDKVersion = "1.53.11" diff --git a/models/apis/dynamodb/2012-08-10/docs-2.json b/models/apis/dynamodb/2012-08-10/docs-2.json index 7ec28e29252..ad1433f0a18 100644 --- a/models/apis/dynamodb/2012-08-10/docs-2.json +++ b/models/apis/dynamodb/2012-08-10/docs-2.json @@ -2567,7 +2567,7 @@ "ResourcePolicy": { "base": null, "refs": { - "CreateTableInput$ResourcePolicy": "

An Amazon Web Services resource-based policy document in JSON format that will be attached to the table.

When you attach a resource-based policy while creating a table, the policy application is strongly consistent.

The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations.

", + "CreateTableInput$ResourcePolicy": "

An Amazon Web Services resource-based policy document in JSON format that will be attached to the table.

When you attach a resource-based policy while creating a table, the policy application is strongly consistent.

The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations.

You need to specify the CreateTable and PutResourcePolicy IAM actions for authorizing a user to create a table with a resource-based policy.

", "GetResourcePolicyOutput$Policy": "

The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.

", "PutResourcePolicyInput$Policy": "

An Amazon Web Services resource-based policy document in JSON format.

For a full list of all considerations that apply while attaching a resource-based policy, see Resource-based policy considerations.

" } diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 83cbba82f5e..0e2e1534b73 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -10497,7 +10497,8 @@ "DryRun":{ "shape":"Boolean", "locationName":"dryRun" - } + }, + "BgpAsnExtended":{"shape":"Long"} } }, "CreateCustomerGatewayResult":{ @@ -13001,6 +13002,10 @@ "Tags":{ "shape":"TagList", "locationName":"tagSet" + }, + "BgpAsnExtended":{ + "shape":"String", + "locationName":"bgpAsnExtended" } } }, diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index b411ca9e6fc..7e3fdfa27ee 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -12179,7 +12179,7 @@ "CreateCapacityReservationRequest$InstanceCount": "

The number of instances for which to reserve capacity.

Valid range: 1 - 1000

", "CreateClientVpnEndpointRequest$VpnPort": "

The port number to assign to the Client VPN endpoint for TCP and UDP traffic.

Valid Values: 443 | 1194

Default Value: 443

", "CreateClientVpnEndpointRequest$SessionTimeoutHours": "

The maximum VPN session duration time in hours.

Valid values: 8 | 10 | 12 | 24

Default value: 24

", - "CreateCustomerGatewayRequest$BgpAsn": "

For devices that support BGP, the customer gateway's BGP ASN.

Default: 65000

", + "CreateCustomerGatewayRequest$BgpAsn": "

For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

Default: 65000

Valid values: 1 to 2,147,483,647

", "CreateFlowLogsRequest$MaxAggregationInterval": "

The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for transit gateway resource types.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.

Default: 600

", "CreateManagedPrefixListRequest$MaxEntries": "

The maximum number of entries for the prefix list.

", "CreateNetworkAclEntryRequest$RuleNumber": "

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

", @@ -14376,6 +14376,7 @@ "Long": { "base": null, "refs": { + "CreateCustomerGatewayRequest$BgpAsnExtended": "

For customer gateway devices that support BGP, specify the device's ASN. You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended.

Valid values: 2,147,483,648 to 4,294,967,295

", "CreateVpnGatewayRequest$AmazonSideAsn": "

A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.

Default: 64512

", "DeleteLaunchTemplateVersionsResponseErrorItem$VersionNumber": "

The version number of the launch template.

", "DeleteLaunchTemplateVersionsResponseSuccessItem$VersionNumber": "

The version number of the launch template.

", @@ -19625,7 +19626,7 @@ "CreateCustomerGatewayRequest$PublicIp": "

This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

", "CreateCustomerGatewayRequest$CertificateArn": "

The Amazon Resource Name (ARN) for the customer gateway certificate.

", "CreateCustomerGatewayRequest$DeviceName": "

A name for the customer gateway device.

Length Constraints: Up to 255 characters.

", - "CreateCustomerGatewayRequest$IpAddress": "

IPv4 address for the customer gateway device's outside interface. The address must be static.

", + "CreateCustomerGatewayRequest$IpAddress": "

IPv4 address for the customer gateway device's outside interface. The address must be static. If OutsideIpAddressType in your VPN connection options is set to PrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType is set to PublicIpv4, you can use a public IPv4 address.

", "CreateEgressOnlyInternetGatewayRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

", "CreateEgressOnlyInternetGatewayResult$ClientToken": "

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

", "CreateFleetError$ErrorCode": "

The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.

", @@ -19779,13 +19780,14 @@ "CreateVpnGatewayRequest$AvailabilityZone": "

The Availability Zone for the virtual private gateway.

", "CreditSpecification$CpuCredits": "

The credit option for CPU usage of a T instance.

Valid values: standard | unlimited

", "CreditSpecificationRequest$CpuCredits": "

The credit option for CPU usage of a T instance.

Valid values: standard | unlimited

", - "CustomerGateway$BgpAsn": "

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

", + "CustomerGateway$BgpAsn": "

The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

Valid values: 1 to 2,147,483,647

", "CustomerGateway$CustomerGatewayId": "

The ID of the customer gateway.

", - "CustomerGateway$IpAddress": "

The IP address of the customer gateway device's outside interface.

", + "CustomerGateway$IpAddress": "

IPv4 address for the customer gateway device's outside interface. The address must be static. If OutsideIpAddressType in your VPN connection options is set to PrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType is set to PublicIpv4, you can use a public IPv4 address.

", "CustomerGateway$CertificateArn": "

The Amazon Resource Name (ARN) for the customer gateway certificate.

", "CustomerGateway$State": "

The current state of the customer gateway (pending | available | deleting | deleted).

", "CustomerGateway$Type": "

The type of VPN connection the customer gateway supports (ipsec.1).

", "CustomerGateway$DeviceName": "

The name of customer gateway device.

", + "CustomerGateway$BgpAsnExtended": "

The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

Valid values: 2,147,483,648 to 4,294,967,295

", "DataQuery$Id": "

A user-defined ID associated with a data query that's returned in the dataResponse identifying the query. For example, if you set the Id to MyQuery01in the query, the dataResponse identifies the query as MyQuery01.

", "DataQuery$Source": "

The Region or Availability Zone that's the source for the data query. For example, us-east-1.

", "DataQuery$Destination": "

The Region or Availability Zone that's the target for the data query. For example, eu-north-1.

", diff --git a/models/apis/kafka/2018-11-14/api-2.json b/models/apis/kafka/2018-11-14/api-2.json index b2c75655372..fb923ea419d 100644 --- a/models/apis/kafka/2018-11-14/api-2.json +++ b/models/apis/kafka/2018-11-14/api-2.json @@ -4337,6 +4337,10 @@ "shape": "BrokerNodeInfo", "locationName": "brokerNodeInfo" }, + "ControllerNodeInfo": { + "shape": "ControllerNodeInfo", + "locationName": "controllerNodeInfo" + }, "InstanceType": { "shape": "__string", "locationName": "instanceType" @@ -5253,6 +5257,15 @@ } } }, + "ControllerNodeInfo": { + "type": "structure", + "members": { + "Endpoints": { + "shape": "__listOf__string", + "locationName": "endpoints" + } + } + }, "OpenMonitoring" : { "type" : "structure", "members" : { diff --git a/models/apis/kafka/2018-11-14/docs-2.json b/models/apis/kafka/2018-11-14/docs-2.json index a60e89a0814..31ab240d3bc 100644 --- a/models/apis/kafka/2018-11-14/docs-2.json +++ b/models/apis/kafka/2018-11-14/docs-2.json @@ -353,6 +353,12 @@ "base" : "

Response body for CreateVpcConnection

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

Controller node information.

", + "refs" : { + "NodeInfo$ControllerNodeInfo" : "

The ControllerNodeInfo.

" + } + }, "CustomerActionStatus" : { "base" : "

A type of an action required from the customer.

", "refs" : { @@ -1220,6 +1226,7 @@ "BrokerNodeGroupInfo$ZoneIds" : "

The zoneIds for the cluster.

", "BrokerNodeInfo$Endpoints" : "

Endpoints for accessing the broker.

", "Configuration$KafkaVersions" : "

An array of the versions of Apache Kafka with which you can use this MSK configuration. You can use this configuration for an MSK cluster only if the Apache Kafka version specified for the cluster appears in this array.

", + "ControllerNodeInfo$Endpoints" : "

Endpoints for accessing the Controller.

", "CreateConfigurationRequest$KafkaVersions" : "

The versions of Apache Kafka with which you can use this MSK configuration.

", "CreateVpcConnectionRequest$ClientSubnets" : "

The list of subnets in the client VPC.

", "CreateVpcConnectionRequest$SecurityGroups" : "

The list of security groups to attach to the VPC connection.

", @@ -1440,7 +1447,7 @@ "VpcConnection$TargetClusterArn" : "

The Amazon Resource Name (ARN) of the cluster.

", "VpcConnection$VpcConnectionArn" : "

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

", "VpcConnection$VpcId" : "

The VPC ID of the VPC connection.

", - "ZookeeperNodeInfo$AttachedENIId" : "

The attached elastic network interface of the broker.

", + "ZookeeperNodeInfo$AttachedENIId" : "

The attached elastic network interface of the zookeeper.

", "ZookeeperNodeInfo$ClientVpcIpAddress" : "

The virtual private cloud (VPC) IP address of the client.

", "ZookeeperNodeInfo$ZookeeperVersion" : "

The version of Zookeeper.

", "__listOf__string$member" : null, diff --git a/models/apis/swf/2012-01-25/api-2.json b/models/apis/swf/2012-01-25/api-2.json index 6c4423267d7..184a5aca391 100644 --- a/models/apis/swf/2012-01-25/api-2.json +++ b/models/apis/swf/2012-01-25/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"swf", "jsonVersion":"1.0", "protocol":"json", + "protocols":["json"], "serviceAbbreviation":"Amazon SWF", "serviceFullName":"Amazon Simple Workflow Service", "serviceId":"SWF", @@ -65,6 +66,32 @@ {"shape":"OperationNotPermittedFault"} ] }, + "DeleteActivityType":{ + "name":"DeleteActivityType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteActivityTypeInput"}, + "errors":[ + {"shape":"UnknownResourceFault"}, + {"shape":"TypeNotDeprecatedFault"}, + {"shape":"OperationNotPermittedFault"} + ] + }, + "DeleteWorkflowType":{ + "name":"DeleteWorkflowType", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteWorkflowTypeInput"}, + "errors":[ + {"shape":"UnknownResourceFault"}, + {"shape":"TypeNotDeprecatedFault"}, + {"shape":"OperationNotPermittedFault"} + ] + }, "DeprecateActivityType":{ "name":"DeprecateActivityType", "http":{ @@ -1112,6 +1139,28 @@ }, "exception":true }, + "DeleteActivityTypeInput":{ + "type":"structure", + "required":[ + "domain", + "activityType" + ], + "members":{ + "domain":{"shape":"DomainName"}, + "activityType":{"shape":"ActivityType"} + } + }, + "DeleteWorkflowTypeInput":{ + "type":"structure", + "required":[ + "domain", + "workflowType" + ], + "members":{ + "domain":{"shape":"DomainName"}, + "workflowType":{"shape":"WorkflowType"} + } + }, "DeprecateActivityTypeInput":{ "type":"structure", "required":[ @@ -2422,6 +2471,13 @@ }, "exception":true }, + "TypeNotDeprecatedFault":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "UndeprecateActivityTypeInput":{ "type":"structure", "required":[ diff --git a/models/apis/swf/2012-01-25/docs-2.json b/models/apis/swf/2012-01-25/docs-2.json index 7d4658465e9..7683eac7f49 100644 --- a/models/apis/swf/2012-01-25/docs-2.json +++ b/models/apis/swf/2012-01-25/docs-2.json @@ -6,7 +6,9 @@ "CountOpenWorkflowExecutions": "

Returns the number of open workflow executions within the given domain that meet the specified filtering criteria.

This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", "CountPendingActivityTasks": "

Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then 0 is returned.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", "CountPendingDecisionTasks": "

Returns the estimated number of decision tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no decision task was ever scheduled in then 0 is returned.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", - "DeprecateActivityType": "

Deprecates the specified activity type. After an activity type has been deprecated, you cannot create new tasks of that activity type. Tasks of this type that were scheduled before the type was deprecated continue to run.

This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", + "DeleteActivityType": "

Deletes the specified activity type.

Note: Prior to deletion, activity types must first be deprecated.

After an activity type has been deleted, you cannot schedule new activities of that type. Activities that started before the type was deleted will continue to run.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", + "DeleteWorkflowType": "

Deletes the specified workflow type.

Note: Prior to deletion, workflow types must first be deprecated.

After a workflow type has been deleted, you cannot create new executions of that type. Executions that started before the type was deleted will continue to run.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", + "DeprecateActivityType": "

Deprecates the specified activity type. After an activity type has been deprecated, you cannot create new tasks of that activity type. Tasks of this type that were scheduled before the type was deprecated continue to run.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", "DeprecateDomain": "

Deprecates the specified domain. After a domain has been deprecated it cannot be used to create new workflow executions or register new types. However, you can still use visibility actions on this domain. Deprecating a domain also deprecates all activity and workflow types registered in the domain. Executions that were started before the domain was deprecated continues to run.

This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", "DeprecateWorkflowType": "

Deprecates the specified workflow type. After a workflow type has been deprecated, you cannot create new executions of that type. Executions that were started before the type was deprecated continues to run. A deprecated workflow type may still be used when calling visibility actions.

This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", "DescribeActivityType": "

Returns information about the specified activity type. This includes configuration settings provided when the type was registered and other general information about the type.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

", @@ -117,6 +119,7 @@ "ActivityTask$activityType": "

The type of this activity task.

", "ActivityTaskScheduledEventAttributes$activityType": "

The type of the activity task.

", "ActivityTypeInfo$activityType": "

The ActivityType type structure representing the activity type.

", + "DeleteActivityTypeInput$activityType": "

The activity type to delete.

", "DeprecateActivityTypeInput$activityType": "

The activity type to deprecate.

", "DescribeActivityTypeInput$activityType": "

The activity type to get information about. Activity types are identified by the name and version that were supplied when the activity was registered.

", "ScheduleActivityTaskDecisionAttributes$activityType": "

The type of the activity task to schedule.

", @@ -469,6 +472,16 @@ "refs": { } }, + "DeleteActivityTypeInput": { + "base": null, + "refs": { + } + }, + "DeleteWorkflowTypeInput": { + "base": null, + "refs": { + } + }, "DeprecateActivityTypeInput": { "base": null, "refs": { @@ -561,6 +574,8 @@ "CountOpenWorkflowExecutionsInput$domain": "

The name of the domain containing the workflow executions to count.

", "CountPendingActivityTasksInput$domain": "

The name of the domain that contains the task list.

", "CountPendingDecisionTasksInput$domain": "

The name of the domain that contains the task list.

", + "DeleteActivityTypeInput$domain": "

The name of the domain in which the activity type is registered.

", + "DeleteWorkflowTypeInput$domain": "

The name of the domain in which the workflow type is registered.

", "DeprecateActivityTypeInput$domain": "

The name of the domain in which the activity type is registered.

", "DeprecateDomainInput$name": "

The name of the domain to deprecate.

", "DeprecateWorkflowTypeInput$domain": "

The name of the domain in which the workflow type is registered.

", @@ -658,6 +673,7 @@ "TooManyTagsFault$message": null, "TypeAlreadyExistsFault$message": "

A description that may help with diagnosing the cause of the fault.

", "TypeDeprecatedFault$message": "

A description that may help with diagnosing the cause of the fault.

", + "TypeNotDeprecatedFault$message": null, "UnknownResourceFault$message": "

A description that may help with diagnosing the cause of the fault.

", "WorkflowExecutionAlreadyStartedFault$message": "

A description that may help with diagnosing the cause of the fault.

" } @@ -1499,6 +1515,11 @@ "refs": { } }, + "TypeNotDeprecatedFault": { + "base": "

Returned when the resource type has not been deprecated.

", + "refs": { + } + }, "UndeprecateActivityTypeInput": { "base": null, "refs": { @@ -1742,6 +1763,7 @@ "ChildWorkflowExecutionTerminatedEventAttributes$workflowType": "

The type of the child workflow execution.

", "ChildWorkflowExecutionTimedOutEventAttributes$workflowType": "

The type of the child workflow execution.

", "DecisionTask$workflowType": "

The type of the workflow execution for which this decision task was created.

", + "DeleteWorkflowTypeInput$workflowType": "

The workflow type to delete.

", "DeprecateWorkflowTypeInput$workflowType": "

The workflow type to deprecate.

", "DescribeWorkflowTypeInput$workflowType": "

The workflow type to describe.

", "StartChildWorkflowExecutionDecisionAttributes$workflowType": "

The type of the workflow execution to be started.

", diff --git a/models/apis/swf/2012-01-25/endpoint-rule-set-1.json b/models/apis/swf/2012-01-25/endpoint-rule-set-1.json index c25159f6f59..407e24f3038 100644 --- a/models/apis/swf/2012-01-25/endpoint-rule-set-1.json +++ b/models/apis/swf/2012-01-25/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,18 +212,17 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "stringEquals", "argv": [ - "aws-us-gov", { "fn": "getAttr", "argv": [ @@ -236,7 +231,8 @@ }, "name" ] - } + }, + "aws-us-gov" ] } ], @@ -256,14 +252,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -277,7 +275,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -297,7 +294,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -308,14 +304,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -326,9 +324,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 998cfec67fb..124642e23cd 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -8953,11 +8953,6 @@ "us-west-2" : { } } }, - "honeycode" : { - "endpoints" : { - "us-west-2" : { } - } - }, "iam" : { "endpoints" : { "aws-global" : { @@ -28922,7 +28917,11 @@ "partition" : "aws-iso-e", "partitionName" : "AWS ISOE (Europe)", "regionRegex" : "^eu\\-isoe\\-\\w+\\-\\d+$", - "regions" : { }, + "regions" : { + "eu-isoe-west-1" : { + "description" : "EU ISOE West" + } + }, "services" : { } }, { "defaults" : { diff --git a/service/dynamodb/api.go b/service/dynamodb/api.go index 6185b7255f2..f0a849820a8 100644 --- a/service/dynamodb/api.go +++ b/service/dynamodb/api.go @@ -11668,6 +11668,9 @@ type CreateTableInput struct { // DynamoDB counts whitespaces when calculating the size of a policy against // this limit. For a full list of all considerations that apply for resource-based // policies, see Resource-based policy considerations (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). + // + // You need to specify the CreateTable and PutResourcePolicy IAM actions for + // authorizing a user to create a table with a resource-based policy. ResourcePolicy *string `type:"string"` // Represents the settings used to enable server-side encryption. diff --git a/service/ec2/api.go b/service/ec2/api.go index 4f0147de2da..687ca0252ee 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -71692,11 +71692,22 @@ func (s *CreateCoipPoolOutput) SetCoipPool(v *CoipPool) *CreateCoipPoolOutput { type CreateCustomerGatewayInput struct { _ struct{} `type:"structure"` - // For devices that support BGP, the customer gateway's BGP ASN. + // For customer gateway devices that support BGP, specify the device's ASN. + // You must specify either BgpAsn or BgpAsnExtended when creating the customer + // gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended. // // Default: 65000 + // + // Valid values: 1 to 2,147,483,647 BgpAsn *int64 `type:"integer"` + // For customer gateway devices that support BGP, specify the device's ASN. + // You must specify either BgpAsn or BgpAsnExtended when creating the customer + // gateway. If the ASN is larger than 2,147,483,647, you must use BgpAsnExtended. + // + // Valid values: 2,147,483,648 to 4,294,967,295 + BgpAsnExtended *int64 `type:"long"` + // The Amazon Resource Name (ARN) for the customer gateway certificate. CertificateArn *string `type:"string"` @@ -71712,7 +71723,9 @@ type CreateCustomerGatewayInput struct { DryRun *bool `locationName:"dryRun" type:"boolean"` // IPv4 address for the customer gateway device's outside interface. The address - // must be static. + // must be static. If OutsideIpAddressType in your VPN connection options is + // set to PrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. + // If OutsideIpAddressType is set to PublicIpv4, you can use a public IPv4 address. IpAddress *string `type:"string"` // This member has been deprecated. The Internet-routable IP address for the @@ -71765,6 +71778,12 @@ func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayIn return s } +// SetBgpAsnExtended sets the BgpAsnExtended field's value. +func (s *CreateCustomerGatewayInput) SetBgpAsnExtended(v int64) *CreateCustomerGatewayInput { + s.BgpAsnExtended = &v + return s +} + // SetCertificateArn sets the CertificateArn field's value. func (s *CreateCustomerGatewayInput) SetCertificateArn(v string) *CreateCustomerGatewayInput { s.CertificateArn = &v @@ -83372,10 +83391,18 @@ func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificatio type CustomerGateway struct { _ struct{} `type:"structure"` - // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number - // (ASN). + // The customer gateway device's Border Gateway Protocol (BGP) Autonomous System + // Number (ASN). + // + // Valid values: 1 to 2,147,483,647 BgpAsn *string `locationName:"bgpAsn" type:"string"` + // The customer gateway device's Border Gateway Protocol (BGP) Autonomous System + // Number (ASN). + // + // Valid values: 2,147,483,648 to 4,294,967,295 + BgpAsnExtended *string `locationName:"bgpAsnExtended" type:"string"` + // The Amazon Resource Name (ARN) for the customer gateway certificate. CertificateArn *string `locationName:"certificateArn" type:"string"` @@ -83385,7 +83412,10 @@ type CustomerGateway struct { // The name of customer gateway device. DeviceName *string `locationName:"deviceName" type:"string"` - // The IP address of the customer gateway device's outside interface. + // IPv4 address for the customer gateway device's outside interface. The address + // must be static. If OutsideIpAddressType in your VPN connection options is + // set to PrivateIpv4, you can use an RFC6598 or RFC1918 private IPv4 address. + // If OutsideIpAddressType is set to PublicIpv4, you can use a public IPv4 address. IpAddress *string `locationName:"ipAddress" type:"string"` // The current state of the customer gateway (pending | available | deleting @@ -83423,6 +83453,12 @@ func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway { return s } +// SetBgpAsnExtended sets the BgpAsnExtended field's value. +func (s *CustomerGateway) SetBgpAsnExtended(v string) *CustomerGateway { + s.BgpAsnExtended = &v + return s +} + // SetCertificateArn sets the CertificateArn field's value. func (s *CustomerGateway) SetCertificateArn(v string) *CustomerGateway { s.CertificateArn = &v diff --git a/service/kafka/api.go b/service/kafka/api.go index bdd01c5d8b5..eafbd7d6fd6 100644 --- a/service/kafka/api.go +++ b/service/kafka/api.go @@ -7813,6 +7813,38 @@ func (s *ConsumerGroupReplicationUpdate) SetSynchroniseConsumerGroupOffsets(v bo return s } +// Controller node information. +type ControllerNodeInfo struct { + _ struct{} `type:"structure"` + + // Endpoints for accessing the Controller. + Endpoints []*string `locationName:"endpoints" 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 ControllerNodeInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ControllerNodeInfo) GoString() string { + return s.String() +} + +// SetEndpoints sets the Endpoints field's value. +func (s *ControllerNodeInfo) SetEndpoints(v []*string) *ControllerNodeInfo { + s.Endpoints = v + return s +} + // Creates a cluster. type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -12863,6 +12895,9 @@ type NodeInfo struct { // The broker node info. BrokerNodeInfo *BrokerNodeInfo `locationName:"brokerNodeInfo" type:"structure"` + // The ControllerNodeInfo. + ControllerNodeInfo *ControllerNodeInfo `locationName:"controllerNodeInfo" type:"structure"` + // The instance type. InstanceType *string `locationName:"instanceType" type:"string"` @@ -12906,6 +12941,12 @@ func (s *NodeInfo) SetBrokerNodeInfo(v *BrokerNodeInfo) *NodeInfo { return s } +// SetControllerNodeInfo sets the ControllerNodeInfo field's value. +func (s *NodeInfo) SetControllerNodeInfo(v *ControllerNodeInfo) *NodeInfo { + s.ControllerNodeInfo = v + return s +} + // SetInstanceType sets the InstanceType field's value. func (s *NodeInfo) SetInstanceType(v string) *NodeInfo { s.InstanceType = &v @@ -17243,7 +17284,7 @@ func (s *VpcConnectivityTls) SetEnabled(v bool) *VpcConnectivityTls { type ZookeeperNodeInfo struct { _ struct{} `type:"structure"` - // The attached elastic network interface of the broker. + // The attached elastic network interface of the zookeeper. AttachedENIId *string `locationName:"attachedENIId" type:"string"` // The virtual private cloud (VPC) IP address of the client. diff --git a/service/swf/api.go b/service/swf/api.go index 363163705de..6403ce3a733 100644 --- a/service/swf/api.go +++ b/service/swf/api.go @@ -437,6 +437,232 @@ func (c *SWF) CountPendingDecisionTasksWithContext(ctx aws.Context, input *Count return out, req.Send() } +const opDeleteActivityType = "DeleteActivityType" + +// DeleteActivityTypeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteActivityType 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 DeleteActivityType for more information on using the DeleteActivityType +// 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 DeleteActivityTypeRequest method. +// req, resp := client.DeleteActivityTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *SWF) DeleteActivityTypeRequest(input *DeleteActivityTypeInput) (req *request.Request, output *DeleteActivityTypeOutput) { + op := &request.Operation{ + Name: opDeleteActivityType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteActivityTypeInput{} + } + + output = &DeleteActivityTypeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteActivityType API operation for Amazon Simple Workflow Service. +// +// Deletes the specified activity type. +// +// Note: Prior to deletion, activity types must first be deprecated. +// +// After an activity type has been deleted, you cannot schedule new activities +// of that type. Activities that started before the type was deleted will continue +// to run. +// +// # Access Control +// +// You can use IAM policies to control this action's access to Amazon SWF resources +// as follows: +// +// - Use a Resource element with the domain name to limit the action to only +// specified domains. +// +// - Use an Action element to allow or deny permission to call this action. +// +// - Constrain the following parameters by using a Condition element with +// the appropriate keys. activityType.name: String constraint. The key is +// swf:activityType.name. activityType.version: String constraint. The key +// is swf:activityType.version. +// +// If the caller doesn't have sufficient permissions to invoke the action, or +// the parameter values fall outside the specified constraints, the action fails. +// The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html) +// in the Amazon SWF Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DeleteActivityType for usage and error information. +// +// Returned Error Types: +// +// - UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// - TypeNotDeprecatedFault +// Returned when the resource type has not been deprecated. +// +// - OperationNotPermittedFault +// Returned when the caller doesn't have sufficient permissions to invoke the +// action. +func (c *SWF) DeleteActivityType(input *DeleteActivityTypeInput) (*DeleteActivityTypeOutput, error) { + req, out := c.DeleteActivityTypeRequest(input) + return out, req.Send() +} + +// DeleteActivityTypeWithContext is the same as DeleteActivityType with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteActivityType 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 *SWF) DeleteActivityTypeWithContext(ctx aws.Context, input *DeleteActivityTypeInput, opts ...request.Option) (*DeleteActivityTypeOutput, error) { + req, out := c.DeleteActivityTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteWorkflowType = "DeleteWorkflowType" + +// DeleteWorkflowTypeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkflowType 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 DeleteWorkflowType for more information on using the DeleteWorkflowType +// 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 DeleteWorkflowTypeRequest method. +// req, resp := client.DeleteWorkflowTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *SWF) DeleteWorkflowTypeRequest(input *DeleteWorkflowTypeInput) (req *request.Request, output *DeleteWorkflowTypeOutput) { + op := &request.Operation{ + Name: opDeleteWorkflowType, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteWorkflowTypeInput{} + } + + output = &DeleteWorkflowTypeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteWorkflowType API operation for Amazon Simple Workflow Service. +// +// Deletes the specified workflow type. +// +// Note: Prior to deletion, workflow types must first be deprecated. +// +// After a workflow type has been deleted, you cannot create new executions +// of that type. Executions that started before the type was deleted will continue +// to run. +// +// # Access Control +// +// You can use IAM policies to control this action's access to Amazon SWF resources +// as follows: +// +// - Use a Resource element with the domain name to limit the action to only +// specified domains. +// +// - Use an Action element to allow or deny permission to call this action. +// +// - Constrain the following parameters by using a Condition element with +// the appropriate keys. workflowType.name: String constraint. The key is +// swf:workflowType.name. workflowType.version: String constraint. The key +// is swf:workflowType.version. +// +// If the caller doesn't have sufficient permissions to invoke the action, or +// the parameter values fall outside the specified constraints, the action fails. +// The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. +// For details and example IAM policies, see Using IAM to Manage Access to Amazon +// SWF Workflows (https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html) +// in the Amazon SWF Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DeleteWorkflowType for usage and error information. +// +// Returned Error Types: +// +// - UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// - TypeNotDeprecatedFault +// Returned when the resource type has not been deprecated. +// +// - OperationNotPermittedFault +// Returned when the caller doesn't have sufficient permissions to invoke the +// action. +func (c *SWF) DeleteWorkflowType(input *DeleteWorkflowTypeInput) (*DeleteWorkflowTypeOutput, error) { + req, out := c.DeleteWorkflowTypeRequest(input) + return out, req.Send() +} + +// DeleteWorkflowTypeWithContext is the same as DeleteWorkflowType with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorkflowType 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 *SWF) DeleteWorkflowTypeWithContext(ctx aws.Context, input *DeleteWorkflowTypeInput, opts ...request.Option) (*DeleteWorkflowTypeOutput, error) { + req, out := c.DeleteWorkflowTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeprecateActivityType = "DeprecateActivityType" // DeprecateActivityTypeRequest generates a "aws/request.Request" representing the @@ -483,9 +709,6 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r // you cannot create new tasks of that activity type. Tasks of this type that // were scheduled before the type was deprecated continue to run. // -// This operation is eventually consistent. The results are best effort and -// may not exactly reflect recent updates and changes. -// // # Access Control // // You can use IAM policies to control this action's access to Amazon SWF resources @@ -7461,6 +7684,186 @@ func (s *DefaultUndefinedFault) RequestID() string { return s.RespMetadata.RequestID } +type DeleteActivityTypeInput struct { + _ struct{} `type:"structure"` + + // The activity type to delete. + // + // ActivityType is a required field + ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"` + + // The name of the domain in which the activity type is registered. + // + // Domain is a required field + Domain *string `locationName:"domain" 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 DeleteActivityTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteActivityTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteActivityTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteActivityTypeInput"} + if s.ActivityType == nil { + invalidParams.Add(request.NewErrParamRequired("ActivityType")) + } + if s.Domain == nil { + invalidParams.Add(request.NewErrParamRequired("Domain")) + } + if s.Domain != nil && len(*s.Domain) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) + } + if s.ActivityType != nil { + if err := s.ActivityType.Validate(); err != nil { + invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActivityType sets the ActivityType field's value. +func (s *DeleteActivityTypeInput) SetActivityType(v *ActivityType) *DeleteActivityTypeInput { + s.ActivityType = v + return s +} + +// SetDomain sets the Domain field's value. +func (s *DeleteActivityTypeInput) SetDomain(v string) *DeleteActivityTypeInput { + s.Domain = &v + return s +} + +type DeleteActivityTypeOutput 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 DeleteActivityTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteActivityTypeOutput) GoString() string { + return s.String() +} + +type DeleteWorkflowTypeInput struct { + _ struct{} `type:"structure"` + + // The name of the domain in which the workflow type is registered. + // + // Domain is a required field + Domain *string `locationName:"domain" min:"1" type:"string" required:"true"` + + // The workflow type to delete. + // + // WorkflowType is a required field + WorkflowType *WorkflowType `locationName:"workflowType" 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 DeleteWorkflowTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkflowTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkflowTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkflowTypeInput"} + if s.Domain == nil { + invalidParams.Add(request.NewErrParamRequired("Domain")) + } + if s.Domain != nil && len(*s.Domain) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) + } + if s.WorkflowType == nil { + invalidParams.Add(request.NewErrParamRequired("WorkflowType")) + } + if s.WorkflowType != nil { + if err := s.WorkflowType.Validate(); err != nil { + invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomain sets the Domain field's value. +func (s *DeleteWorkflowTypeInput) SetDomain(v string) *DeleteWorkflowTypeInput { + s.Domain = &v + return s +} + +// SetWorkflowType sets the WorkflowType field's value. +func (s *DeleteWorkflowTypeInput) SetWorkflowType(v *WorkflowType) *DeleteWorkflowTypeInput { + s.WorkflowType = v + return s +} + +type DeleteWorkflowTypeOutput 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 DeleteWorkflowTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkflowTypeOutput) GoString() string { + return s.String() +} + type DeprecateActivityTypeInput struct { _ struct{} `type:"structure"` @@ -15920,6 +16323,70 @@ func (s *TypeDeprecatedFault) RequestID() string { return s.RespMetadata.RequestID } +// Returned when the resource type has not been deprecated. +type TypeNotDeprecatedFault 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 TypeNotDeprecatedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TypeNotDeprecatedFault) GoString() string { + return s.String() +} + +func newErrorTypeNotDeprecatedFault(v protocol.ResponseMetadata) error { + return &TypeNotDeprecatedFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *TypeNotDeprecatedFault) Code() string { + return "TypeNotDeprecatedFault" +} + +// Message returns the exception's message. +func (s *TypeNotDeprecatedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *TypeNotDeprecatedFault) OrigErr() error { + return nil +} + +func (s *TypeNotDeprecatedFault) 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 *TypeNotDeprecatedFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *TypeNotDeprecatedFault) RequestID() string { + return s.RespMetadata.RequestID +} + type UndeprecateActivityTypeInput struct { _ struct{} `type:"structure"` diff --git a/service/swf/errors.go b/service/swf/errors.go index 5f9f3a35351..c62a1d08429 100644 --- a/service/swf/errors.go +++ b/service/swf/errors.go @@ -73,6 +73,12 @@ const ( // Returned when the specified activity or workflow type was already deprecated. ErrCodeTypeDeprecatedFault = "TypeDeprecatedFault" + // ErrCodeTypeNotDeprecatedFault for service response error code + // "TypeNotDeprecatedFault". + // + // Returned when the resource type has not been deprecated. + ErrCodeTypeNotDeprecatedFault = "TypeNotDeprecatedFault" + // ErrCodeUnknownResourceFault for service response error code // "UnknownResourceFault". // @@ -98,6 +104,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "TooManyTagsFault": newErrorTooManyTagsFault, "TypeAlreadyExistsFault": newErrorTypeAlreadyExistsFault, "TypeDeprecatedFault": newErrorTypeDeprecatedFault, + "TypeNotDeprecatedFault": newErrorTypeNotDeprecatedFault, "UnknownResourceFault": newErrorUnknownResourceFault, "WorkflowExecutionAlreadyStartedFault": newErrorWorkflowExecutionAlreadyStartedFault, } diff --git a/service/swf/swfiface/interface.go b/service/swf/swfiface/interface.go index 1b5e46555e7..e32f9c7c144 100644 --- a/service/swf/swfiface/interface.go +++ b/service/swf/swfiface/interface.go @@ -76,6 +76,14 @@ type SWFAPI interface { CountPendingDecisionTasksWithContext(aws.Context, *swf.CountPendingDecisionTasksInput, ...request.Option) (*swf.PendingTaskCount, error) CountPendingDecisionTasksRequest(*swf.CountPendingDecisionTasksInput) (*request.Request, *swf.PendingTaskCount) + DeleteActivityType(*swf.DeleteActivityTypeInput) (*swf.DeleteActivityTypeOutput, error) + DeleteActivityTypeWithContext(aws.Context, *swf.DeleteActivityTypeInput, ...request.Option) (*swf.DeleteActivityTypeOutput, error) + DeleteActivityTypeRequest(*swf.DeleteActivityTypeInput) (*request.Request, *swf.DeleteActivityTypeOutput) + + DeleteWorkflowType(*swf.DeleteWorkflowTypeInput) (*swf.DeleteWorkflowTypeOutput, error) + DeleteWorkflowTypeWithContext(aws.Context, *swf.DeleteWorkflowTypeInput, ...request.Option) (*swf.DeleteWorkflowTypeOutput, error) + DeleteWorkflowTypeRequest(*swf.DeleteWorkflowTypeInput) (*request.Request, *swf.DeleteWorkflowTypeOutput) + DeprecateActivityType(*swf.DeprecateActivityTypeInput) (*swf.DeprecateActivityTypeOutput, error) DeprecateActivityTypeWithContext(aws.Context, *swf.DeprecateActivityTypeInput, ...request.Option) (*swf.DeprecateActivityTypeOutput, error) DeprecateActivityTypeRequest(*swf.DeprecateActivityTypeInput) (*request.Request, *swf.DeprecateActivityTypeOutput)