diff --git a/go.mod b/go.mod index cd21fa852fc..5dc827f2628 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-aws require ( - github.com/aws/aws-sdk-go v1.19.13 + github.com/aws/aws-sdk-go v1.19.14 github.com/beevik/etree v1.1.0 github.com/boombuler/barcode v1.0.0 // indirect github.com/client9/misspell v0.3.4 diff --git a/go.sum b/go.sum index d1b72eec732..ffb55a991cd 100644 --- a/go.sum +++ b/go.sum @@ -48,8 +48,8 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= github.com/aws/aws-sdk-go v1.16.36/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.19.13 h1:1NHb6nSwXMA+5VwwieDrCXzLw7PlQbigx5FQaqfOODo= -github.com/aws/aws-sdk-go v1.19.13/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.19.14 h1:wUq6zI7Y5RfzFIkworUhK71bd/Vld9Otc6bgM/0ws1A= +github.com/aws/aws-sdk-go v1.19.14/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/beevik/etree v1.1.0 h1:T0xke/WvNtMoCqgzPhkX2r4rjY3GDZFi+FjpRZY2Jbs= github.com/beevik/etree v1.1.0/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go index 6dac625f1a0..831f841758f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go @@ -2681,6 +2681,7 @@ var awsPartition = partition{ "ap-southeast-2": endpoint{}, "ca-central-1": endpoint{}, "eu-central-1": endpoint{}, + "eu-north-1": endpoint{}, "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, "eu-west-3": endpoint{}, diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go index 281d12bca8b..a6c67ee8614 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/version.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.19.13" +const SDKVersion = "1.19.14" diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go index 6a913bfd123..66b892c42db 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go @@ -12424,6 +12424,13 @@ type AdminGetUserOutput struct { // * COMPROMISED - User is disabled due to a potential security threat. // // * UNKNOWN - User status is not known. + // + // * RESET_REQUIRED - User is confirmed, but the user must request a code + // and reset his or her password before he or she can sign in. + // + // * FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign + // in using a temporary password, but on first sign-in, the user must change + // his or her password to a new value before doing anything else. UserStatus *string `type:"string" enum:"UserStatusType"` // The user name of the user about whom you are receiving information. @@ -15837,7 +15844,7 @@ type CreateUserPoolClientInput struct { RefreshTokenValidity *int64 `type:"integer"` // A list of provider names for the identity providers that are supported on - // this client. + // this client. The following are supported: COGNITO, Facebook, Google and LoginWithAmazon. SupportedIdentityProviders []*string `type:"list"` // The user pool ID for the user pool where you want to create a user pool client. @@ -23630,9 +23637,6 @@ type UpdateUserPoolClientInput struct { // Set to code to initiate a code grant flow, which provides an authorization // code as the response. This code can be exchanged for access tokens with the // token endpoint. - // - // Set to token to specify that the client should get the access token (and, - // optionally, ID token, based on scopes) directly. AllowedOAuthFlows []*string `type:"list"` // Set to TRUE if the client is allowed to follow the OAuth protocol when interacting @@ -25152,6 +25156,13 @@ type UserType struct { // * COMPROMISED - User is disabled due to a potential security threat. // // * UNKNOWN - User status is not known. + // + // * RESET_REQUIRED - User is confirmed, but the user must request a code + // and reset his or her password before he or she can sign in. + // + // * FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign + // in using a temporary password, but on first sign-in, the user must change + // his or her password to a new value before doing anything else. UserStatus *string `type:"string" enum:"UserStatusType"` // The user name of the user you wish to describe. diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go index c60e1698bc8..f0674cb9491 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go @@ -8,6 +8,8 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCreateCluster = "CreateCluster" @@ -555,6 +557,263 @@ func (c *Kafka) ListNodesWithContext(ctx aws.Context, input *ListNodesInput, opt return out, req.Send() } +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/kafka-2018-11-14/ListTagsForResource +func (c *Kafka) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/v1/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Managed Streaming for Kafka. +// +// List tags for 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 Managed Streaming for Kafka's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTagsForResource +func (c *Kafka) 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 *Kafka) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TagResource +func (c *Kafka) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/v1/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Managed Streaming for Kafka. +// +// Add 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 Managed Streaming for Kafka's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TagResource +func (c *Kafka) 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 *Kafka) 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/kafka-2018-11-14/UntagResource +func (c *Kafka) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/v1/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Managed Streaming for Kafka. +// +// Remove 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 Managed Streaming for Kafka's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UntagResource +func (c *Kafka) 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 *Kafka) 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() +} + // Describes the setup to be used for Kafka broker nodes in the cluster. type BrokerNodeGroupInfo struct { _ struct{} `type:"structure"` @@ -1533,6 +1792,69 @@ func (s *ListNodesOutput) SetNodeInfoList(v []*NodeInfo) *ListNodesOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// List tags for a resource +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The Key value pairs indicating resource tags. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // The node information object. type NodeInfo struct { _ struct{} `type:"structure"` @@ -1641,6 +1963,139 @@ func (s *StorageInfo) SetEbsStorageInfo(v *EBSStorageInfo) *StorageInfo { return s } +// Add tags for a resource +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // The Key value pairs indicating resource tags. + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // Zookeeper node information. type ZookeeperNodeInfo struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go index 07cf8034c3b..5672f5cfef3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go @@ -371,7 +371,7 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -382,7 +382,7 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -462,6 +462,11 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeDuplicatePolicyAttachmentException "DuplicatePolicyAttachmentException" // The selected policy is already attached to the specified target. // @@ -878,7 +883,7 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -889,7 +894,7 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -969,6 +974,11 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -1046,6 +1056,9 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // +// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// This action isn't available in the current Region. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccount func (c *Organizations) CreateAccount(input *CreateAccountInput) (*CreateAccountOutput, error) { req, out := c.CreateAccountRequest(input) @@ -1068,6 +1081,371 @@ func (c *Organizations) CreateAccountWithContext(ctx aws.Context, input *CreateA return out, req.Send() } +const opCreateGovCloudAccount = "CreateGovCloudAccount" + +// CreateGovCloudAccountRequest generates a "aws/request.Request" representing the +// client's request for the CreateGovCloudAccount 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 CreateGovCloudAccount for more information on using the CreateGovCloudAccount +// 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 CreateGovCloudAccountRequest method. +// req, resp := client.CreateGovCloudAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateGovCloudAccount +func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccountInput) (req *request.Request, output *CreateGovCloudAccountOutput) { + op := &request.Operation{ + Name: opCreateGovCloudAccount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateGovCloudAccountInput{} + } + + output = &CreateGovCloudAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGovCloudAccount API operation for AWS Organizations. +// +// This action is available if all of the following are true: +// +// * You are authorized to create accounts in the AWS GovCloud (US) Region. +// For more information on the AWS GovCloud (US) Region, see the AWS GovCloud +// User Guide (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/welcome.html). +// +// * You already have an account in the AWS GovCloud (US) Region that is +// associated with your master account in the commercial Region. +// +// * You call this action from the master account of your organization in +// the commercial Region. +// +// * You have the organizations:CreateGovCloudAccount permission. AWS Organizations +// creates the required service-linked role named AWSServiceRoleForOrganizations. +// For more information, see AWS Organizations and Service-Linked Roles (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html#orgs_integrate_services-using_slrs) +// in the AWS Organizations User Guide. +// +// AWS automatically enables AWS CloudTrail for AWS GovCloud (US) accounts, +// but you should also do the following: +// +// * Verify that AWS CloudTrail is enabled to store logs. +// +// * Create an S3 bucket for AWS CloudTrail log storage. +// +// For more information, see Verifying AWS CloudTrail Is Enabled (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/verifying-cloudtrail.html) +// in the AWS GovCloud User Guide. +// +// You call this action from the master account of your organization in the +// commercial Region to create a standalone AWS account in the AWS GovCloud +// (US) Region. After the account is created, the master account of an organization +// in the AWS GovCloud (US) Region can invite it to that organization. For more +// information on inviting standalone accounts in the AWS GovCloud (US) to join +// an organization, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// +// Calling CreateGovCloudAccount is an asynchronous request that AWS performs +// in the background. Because CreateGovCloudAccount operates asynchronously, +// it can return a successful completion message even though account initialization +// might still be in progress. You might need to wait a few minutes before you +// can successfully access the account. To check the status of the request, +// do one of the following: +// +// * Use the OperationId response element from this operation to provide +// as a parameter to the DescribeCreateAccountStatus operation. +// +// * Check the AWS CloudTrail log for the CreateAccountResult event. For +// information on using AWS CloudTrail with Organizations, see Monitoring +// the Activity in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_monitoring.html) +// in the AWS Organizations User Guide. +// +// When you call the CreateGovCloudAccountaction, you create two accounts: a standalone account in the AWS GovCloud +// (US) Region and an associated account in the commercial Region for billing +// and support purposes. The account in the commercial Region is automatically +// a member of the organization whose credentials made the request. Both accounts +// are associated with the same email address. +// +// A role is created in the new account in the commercial Region that allows +// the master account in the organization in the commercial Region to assume +// it. An AWS GovCloud (US) account is then created and associated with the +// commercial account that you just created. A role is created in the new AWS +// GovCloud (US) account that can be assumed by the AWS GovCloud (US) account +// that is associated with the master account of the commercial organization. +// For more information and to view a diagram that explains how account access +// works, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html)in the AWS GovCloud User Guide. +// +// For more information about creating accounts, see Creating an AWS Account +// in Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_create.html)in the AWS Organizations User Guide. +// +// When you create an account in an organization using the AWS Organizations +// console, API, or CLI commands, the information required for the account to +// operate as a standalone account, such as a payment method and signing the +// end user license agreement (EULA) is not automatically collected. If you +// must remove an account from your organization later, you can do so only after +// you provide the missing information. Follow the steps at To leave an organization +// as a member account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// If you get an exception that indicates that you exceeded your account limits +// for the organization, contact AWS Support (https://console.aws.amazon.com/support/home#/). +// +// If you get an exception that indicates that the operation failed because +// your organization is still initializing, wait one hour and then try again. +// If the error persists, contact AWS Support (https://console.aws.amazon.com/support/home#/). +// +// Using CreateGovCloudAccount to create multiple temporary accounts isn't recommended. +// You can only close an account from the AWS Billing and Cost Management console, +// and you must be signed in as the root user. For information on the requirements +// and process for closing an account, see Closing an AWS Account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html) +// in the AWS Organizations User Guide. +// +// When you create a member account with this operation, you can choose whether +// to create the account with the IAM User and Role Access to Billing Information +// switch enabled. If you enable it, IAM users and roles that have appropriate +// permissions can view billing information for the account. If you disable +// it, only the account root user can access billing information. For information +// about how to disable this switch for an account, see Granting Access to Your +// Billing Information and Tools (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.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 AWS Organizations's +// API operation CreateGovCloudAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// Your account isn't a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// The target of the operation is currently being modified by a different request. +// Try again later. +// +// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Performing this operation violates a minimum or maximum value limit. For +// example, attempting to remove the last service control policy (SCP) from +// an OU or root, inviting or creating too many accounts to the organization, +// or attaching too many policies to an account, OU, or root. This exception +// includes a reason that contains additional information about the violated +// limit. +// +// Some of the reasons in the following list might not be applicable to this +// specific API or operation: +// +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. +// +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. +// +// Deleted and closed accounts still count toward your limit. +// +// If you get receive this exception when running a command immediately after +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). +// +// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of +// handshakes that you can send in one day. +// +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. +// +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. +// +// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation +// that requires the organization to be configured to support all features. +// An organization that supports only consolidated billing features can't +// perform this operation. +// +// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of +// policies that you can have in an organization. +// +// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the +// number of policies of a certain type that can be attached to an entity +// at one time. +// +// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a +// policy from an entity that would cause the entity to have fewer than the +// minimum number of policies of a certain type required. +// +// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization +// with this master account, you first must associate a valid payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation +// with this member account, you first must associate a valid payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number +// of accounts that you can create in one day. +// +// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account +// in this organization, you first must migrate the organization's master +// account to the marketplace that corresponds to the master account's address. +// For example, accounts with India addresses must be associated with the +// AISPL marketplace. All accounts in an organization must be associated +// with the same marketplace. +// +// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you +// must first provide contact a valid address and phone number for the master +// account. Then try the operation again. +// +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The requested operation failed because you provided invalid values for one +// or more of the request parameters. This exception includes a reason that +// contains additional information about the violated limit: +// +// Some of the reasons in the following list might not be applicable to this +// specific API or operation: +// +// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and +// can't be modified. +// +// * INPUT_REQUIRED: You must include a value for all required parameters. +// +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. +// +// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid +// characters. +// +// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains +// at least one invalid value. +// +// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account, +// organization, or email) as a party. +// +// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter +// from the response to a previous call of the operation. +// +// * INVALID_PATTERN: You provided a value that doesn't match the required +// pattern. +// +// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't +// match the required pattern. +// +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. +// +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. +// +// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. +// +// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter +// for the operation. +// +// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer +// than allowed. +// +// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger +// value than allowed. +// +// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter +// than allowed. +// +// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller +// value than allowed. +// +// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only +// between entities in the same root. +// +// * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" +// AWS Organizations couldn't perform the operation because your organization +// hasn't finished initializing. This can take up to an hour. Try again later. +// If after one hour you continue to receive this error, contact AWS Support +// (https://console.aws.amazon.com/support/home#/). +// +// * ErrCodeServiceException "ServiceException" +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You've sent too many requests in too short a period of time. The limit helps +// protect against denial-of-service attacks. Try again later. +// +// For information on limits that affect Organizations, see Limits of AWS Organizations +// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) +// in the AWS Organizations User Guide. +// +// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// This action isn't available in the current Region. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateGovCloudAccount +func (c *Organizations) CreateGovCloudAccount(input *CreateGovCloudAccountInput) (*CreateGovCloudAccountOutput, error) { + req, out := c.CreateGovCloudAccountRequest(input) + return out, req.Send() +} + +// CreateGovCloudAccountWithContext is the same as CreateGovCloudAccount with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGovCloudAccount 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 *Organizations) CreateGovCloudAccountWithContext(ctx aws.Context, input *CreateGovCloudAccountInput, opts ...request.Option) (*CreateGovCloudAccountOutput, error) { + req, out := c.CreateGovCloudAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateOrganization = "CreateOrganization" // CreateOrganizationRequest generates a "aws/request.Request" representing the @@ -1152,7 +1530,7 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -1163,7 +1541,7 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -1243,6 +1621,11 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -1421,7 +1804,7 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -1432,7 +1815,7 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -1512,6 +1895,11 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" // An OU with the same name already exists. // @@ -1688,7 +2076,7 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -1699,7 +2087,7 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -1779,6 +2167,11 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeDuplicatePolicyException "DuplicatePolicyException" // A policy with the same name already exists. // @@ -2889,6 +3282,9 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // +// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// This action isn't available in the current Region. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus func (c *Organizations) DescribeCreateAccountStatus(input *DescribeCreateAccountStatusInput) (*DescribeCreateAccountStatusOutput, error) { req, out := c.DescribeCreateAccountStatusRequest(input) @@ -3602,7 +3998,7 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -3613,7 +4009,7 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -3693,6 +4089,11 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -3889,7 +4290,7 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -3900,7 +4301,7 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -3980,6 +4381,11 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -4155,7 +4561,7 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -4166,7 +4572,7 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -4246,6 +4652,11 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -4440,7 +4851,7 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -4451,7 +4862,7 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -4531,6 +4942,11 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -4939,7 +5355,7 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -4950,7 +5366,7 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -5030,6 +5446,11 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -5481,7 +5902,7 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -5492,7 +5913,7 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -5572,6 +5993,11 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -5753,7 +6179,7 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -5764,7 +6190,7 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -5844,6 +6270,11 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -6815,6 +7246,9 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // +// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// This action isn't available in the current Region. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatus func (c *Organizations) ListCreateAccountStatus(input *ListCreateAccountStatusInput) (*ListCreateAccountStatusOutput, error) { req, out := c.ListCreateAccountStatusRequest(input) @@ -8979,7 +9413,7 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -8990,7 +9424,7 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -9070,6 +9504,11 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that @@ -9415,7 +9854,7 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // // * ErrCodeConstraintViolationException "ConstraintViolationException" // Performing this operation violates a minimum or maximum value limit. For -// example, attempting to removing the last service control policy (SCP) from +// example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -9426,7 +9865,7 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, -// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -9506,6 +9945,11 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // must first provide contact a valid address and phone number for the master // account. Then try the operation again. // +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// // * ErrCodeDuplicatePolicyException "DuplicatePolicyException" // A policy with the same name already exists. // @@ -10099,8 +10543,8 @@ func (s *CreateAccountOutput) SetCreateAccountStatus(v *CreateAccountStatus) *Cr return s } -// Contains the status about a CreateAccount request to create an AWS account -// in an organization. +// Contains the status about a CreateAccount or CreateGovCloudAccount request +// to create an AWS account or an AWS GovCloud (US) account in an organization. type CreateAccountStatus struct { _ struct{} `type:"structure"` @@ -10135,6 +10579,8 @@ type CreateAccountStatus struct { // failure. Try again later. If the problem persists, contact Customer Support. FailureReason *string `type:"string" enum:"CreateAccountFailureReason"` + GovCloudAccountId *string `type:"string"` + // The unique identifier (ID) that references this request. You get this value // from the response of the initial CreateAccount request to create the account. // @@ -10184,6 +10630,12 @@ func (s *CreateAccountStatus) SetFailureReason(v string) *CreateAccountStatus { return s } +// SetGovCloudAccountId sets the GovCloudAccountId field's value. +func (s *CreateAccountStatus) SetGovCloudAccountId(v string) *CreateAccountStatus { + s.GovCloudAccountId = &v + return s +} + // SetId sets the Id field's value. func (s *CreateAccountStatus) SetId(v string) *CreateAccountStatus { s.Id = &v @@ -10202,6 +10654,142 @@ func (s *CreateAccountStatus) SetState(v string) *CreateAccountStatus { return s } +type CreateGovCloudAccountInput struct { + _ struct{} `type:"structure"` + + // The friendly name of the member account. + // + // AccountName is a required field + AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The email address of the owner to assign to the new member account in the + // commercial Region. This email address must not already be associated with + // another AWS account. You must use a valid email address to complete account + // creation. You can't access the root user of the account or remove an account + // that was created with an invalid email address. Like all request parameters + // for CreateGovCloudAccount, the request for the email address for the AWS + // GovCloud (US) account originates from the commercial Region, not from the + // AWS GovCloud (US) Region. + // + // Email is a required field + Email *string `min:"6" type:"string" required:"true" sensitive:"true"` + + // If set to ALLOW, the new linked account in the commercial Region enables + // IAM users to access account billing information if they have the required + // permissions. If set to DENY, only the root user of the new account can access + // account billing information. For more information, see Activating Access + // to the Billing and Cost Management Console (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html#ControllingAccessWebsite-Activate) + // in the AWS Billing and Cost Management User Guide. + // + // If you don't specify this parameter, the value defaults to ALLOW, and IAM + // users and roles with the required permissions can access billing information + // for the new account. + IamUserAccessToBilling *string `type:"string" enum:"IAMUserAccessToBilling"` + + // (Optional) + // + // The name of an IAM role that AWS Organizations automatically preconfigures + // in the new member accounts in both the AWS GovCloud (US) Region and in the + // commercial Region. This role trusts the master account, allowing users in + // the master account to assume the role, as permitted by the master account + // administrator. The role has administrator permissions in the new member account. + // + // If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole. + // + // For more information about how to use this role to access the member account, + // see Accessing and Administering the Member Accounts in Your Organization + // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role) + // in the AWS Organizations User Guide and steps 2 and 3 in Tutorial: Delegate + // Access Across AWS Accounts Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html) + // in the IAM User Guide. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of characters that can consist of uppercase letters, + // lowercase letters, digits with no spaces, and any of the following characters: + // =,.@- + RoleName *string `type:"string"` +} + +// String returns the string representation +func (s CreateGovCloudAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGovCloudAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGovCloudAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGovCloudAccountInput"} + if s.AccountName == nil { + invalidParams.Add(request.NewErrParamRequired("AccountName")) + } + if s.AccountName != nil && len(*s.AccountName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountName", 1)) + } + if s.Email == nil { + invalidParams.Add(request.NewErrParamRequired("Email")) + } + if s.Email != nil && len(*s.Email) < 6 { + invalidParams.Add(request.NewErrParamMinLen("Email", 6)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountName sets the AccountName field's value. +func (s *CreateGovCloudAccountInput) SetAccountName(v string) *CreateGovCloudAccountInput { + s.AccountName = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *CreateGovCloudAccountInput) SetEmail(v string) *CreateGovCloudAccountInput { + s.Email = &v + return s +} + +// SetIamUserAccessToBilling sets the IamUserAccessToBilling field's value. +func (s *CreateGovCloudAccountInput) SetIamUserAccessToBilling(v string) *CreateGovCloudAccountInput { + s.IamUserAccessToBilling = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateGovCloudAccountInput) SetRoleName(v string) *CreateGovCloudAccountInput { + s.RoleName = &v + return s +} + +type CreateGovCloudAccountOutput struct { + _ struct{} `type:"structure"` + + // Contains the status about a CreateAccount or CreateGovCloudAccount request + // to create an AWS account or an AWS GovCloud (US) account in an organization. + CreateAccountStatus *CreateAccountStatus `type:"structure"` +} + +// String returns the string representation +func (s CreateGovCloudAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGovCloudAccountOutput) GoString() string { + return s.String() +} + +// SetCreateAccountStatus sets the CreateAccountStatus field's value. +func (s *CreateGovCloudAccountOutput) SetCreateAccountStatus(v *CreateAccountStatus) *CreateGovCloudAccountOutput { + s.CreateAccountStatus = v + return s +} + type CreateOrganizationInput struct { _ struct{} `type:"structure"` @@ -10213,6 +10801,9 @@ type CreateOrganizationInput struct { // billing (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#feature-set-cb-only) // in the AWS Organizations User Guide. // + // The consolidated billing feature subset isn't available for organizations + // in the AWS GovCloud (US) Region. + // // * ALL: In addition to all the features supported by the consolidated billing // feature set, the master account can also apply any type of policy to any // member account in the organization. For more information, see All features @@ -14272,9 +14863,15 @@ const ( // ConstraintViolationExceptionReasonMasterAccountMissingContactInfo is a ConstraintViolationExceptionReason enum value ConstraintViolationExceptionReasonMasterAccountMissingContactInfo = "MASTER_ACCOUNT_MISSING_CONTACT_INFO" + // ConstraintViolationExceptionReasonMasterAccountNotGovcloudEnabled is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonMasterAccountNotGovcloudEnabled = "MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED" + // ConstraintViolationExceptionReasonOrganizationNotInAllFeaturesMode is a ConstraintViolationExceptionReason enum value ConstraintViolationExceptionReasonOrganizationNotInAllFeaturesMode = "ORGANIZATION_NOT_IN_ALL_FEATURES_MODE" + // ConstraintViolationExceptionReasonCreateOrganizationInBillingModeUnsupportedRegion is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonCreateOrganizationInBillingModeUnsupportedRegion = "CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION" + // ConstraintViolationExceptionReasonEmailVerificationCodeExpired is a ConstraintViolationExceptionReason enum value ConstraintViolationExceptionReasonEmailVerificationCodeExpired = "EMAIL_VERIFICATION_CODE_EXPIRED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go index 9cf45ae3530..5a0631d0f8c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go @@ -71,7 +71,7 @@ const ( // "ConstraintViolationException". // // Performing this operation violates a minimum or maximum value limit. For - // example, attempting to removing the last service control policy (SCP) from + // example, attempting to remove the last service control policy (SCP) from // an OU or root, inviting or creating too many accounts to the organization, // or attaching too many policies to an account, OU, or root. This exception // includes a reason that contains additional information about the violated @@ -82,7 +82,7 @@ const ( // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on // the number of accounts in an organization. If you need more accounts, - // contactAWS Support (https://console.aws.amazon.com/support/home#/) to + // contact AWS Support (https://console.aws.amazon.com/support/home#/) to // request an increase in your limit. // // Or the number of invitations that you tried to send would cause you to exceed @@ -161,6 +161,11 @@ const ( // * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you // must first provide contact a valid address and phone number for the master // account. Then try the operation again. + // + // * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the + // master account must have an associated account in the AWS GovCloud (US-West) + // Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) + // in the AWS GovCloud User Guide. ErrCodeConstraintViolationException = "ConstraintViolationException" // ErrCodeCreateAccountStatusNotFoundException for service response error code @@ -471,4 +476,10 @@ const ( // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. ErrCodeTooManyRequestsException = "TooManyRequestsException" + + // ErrCodeUnsupportedAPIEndpointException for service response error code + // "UnsupportedAPIEndpointException". + // + // This action isn't available in the current Region. + ErrCodeUnsupportedAPIEndpointException = "UnsupportedAPIEndpointException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go index 95cf11a7c2b..3f641481c0e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/api.go @@ -1797,8 +1797,8 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // // Creates a new DB instance that acts as a Read Replica for an existing source // DB instance. You can create a Read Replica for a DB instance running MySQL, -// MariaDB, or PostgreSQL. For more information, see Working with PostgreSQL, -// MySQL, and MariaDB Read Replicas (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html) +// MariaDB, Oracle, or PostgreSQL. For more information, see Working with Read +// Replicas (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html) // in the Amazon RDS User Guide. // // Amazon Aurora doesn't support this action. You must call the CreateDBInstance @@ -11854,7 +11854,7 @@ type ApplyPendingMaintenanceActionInput struct { // The pending maintenance action to apply to this resource. // - // Valid values: system-update, db-upgrade + // Valid values: system-update, db-upgrade, hardware-maintenance // // ApplyAction is a required field ApplyAction *string `type:"string" required:"true"` @@ -15360,7 +15360,7 @@ type CreateDBInstanceReadReplicaInput struct { // Default: false EnableIAMDatabaseAuthentication *bool `type:"boolean"` - // True to enable Performance Insights for the read replica, and otherwise false. + // True to enable Performance Insights for the Read Replica, and otherwise false. // // For more information, see Using Amazon Performance Insights (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) // in the Amazon RDS User Guide. @@ -15414,8 +15414,8 @@ type CreateDBInstanceReadReplicaInput struct { // of whether the source database is a Multi-AZ DB instance. MultiAZ *bool `type:"boolean"` - // The option group the DB instance is associated with. If omitted, the default - // option group for the engine specified is used. + // The option group the DB instance is associated with. If omitted, the option + // group associated with the source instance is used. OptionGroupName *string `type:"string"` // The AWS KMS key identifier for encryption of Performance Insights data. The @@ -15493,12 +15493,16 @@ type CreateDBInstanceReadReplicaInput struct { // // Constraints: // - // * Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL + // * Must be the identifier of an existing MySQL, MariaDB, Oracle, or PostgreSQL // DB instance. // // * Can specify a DB instance that is a MySQL Read Replica only if the source // is running MySQL 5.6 or later. // + // * For the limitations of Oracle Read Replicas, see Read Replica Limitations + // with Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + // in the Amazon RDS User Guide. + // // * Can specify a DB instance that is a PostgreSQL DB instance only if the // source is running PostgreSQL 9.3.5 or later (9.4.7 and higher for cross-region // replication). @@ -17776,7 +17780,7 @@ type DBEngineVersion struct { // log types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"` - // Indicates whether the database engine version supports read replicas. + // Indicates whether the database engine version supports Read Replicas. SupportsReadReplica *bool `type:"boolean"` // A list of engine versions that this database engine version can be upgraded @@ -17935,9 +17939,7 @@ type DBInstance struct { DBInstanceStatus *string `type:"string"` // The meaning of this parameter differs according to the database engine you - // use. For example, this value returns MySQL, MariaDB, or PostgreSQL information - // when returning values from CreateDBInstanceReadReplica since Read Replicas - // are only supported for these engines. + // use. // // MySQL, MariaDB, SQL Server, PostgreSQL // @@ -18803,7 +18805,7 @@ type DBInstanceStatusInfo struct { // if the instance is in an error state. Normal *bool `type:"boolean"` - // Status of the DB instance. For a StatusType of read replica, the values can + // Status of the DB instance. For a StatusType of Read Replica, the values can // be replicating, replication stop point set, replication stop point reached, // error, stopped, or terminated. Status *string `type:"string"` @@ -25894,6 +25896,9 @@ type ModifyCurrentDBClusterCapacityInput struct { // The DB cluster capacity. // + // When you change the capacity of a paused Aurora Serverless DB cluster, it + // automatically resumes. + // // Constraints: // // * Value must be 2, 4, 8, 16, 32, 64, 128, or 256. @@ -28302,7 +28307,7 @@ func (s *Option) SetVpcSecurityGroupMemberships(v []*VpcSecurityGroupMembership) type OptionConfiguration struct { _ struct{} `type:"structure"` - // A list of DBSecurityGroupMemebrship name strings used for this option. + // A list of DBSecurityGroupMembership name strings used for this option. DBSecurityGroupMemberships []*string `locationNameList:"DBSecurityGroupName" type:"list"` // The configuration of options to include in a group. @@ -28319,7 +28324,7 @@ type OptionConfiguration struct { // The optional port for the option. Port *int64 `type:"integer"` - // A list of VpcSecurityGroupMemebrship name strings used for this option. + // A list of VpcSecurityGroupMembership name strings used for this option. VpcSecurityGroupMemberships []*string `locationNameList:"VpcSecurityGroupId" type:"list"` } @@ -29282,7 +29287,7 @@ type PendingMaintenanceAction struct { _ struct{} `type:"structure"` // The type of pending maintenance action that is available for the resource. - // Valid actions are system-update and db-upgrade. + // Valid actions are system-update, db-upgrade, and hardware-maintenance. Action *string `type:"string"` // The date of the maintenance window when the action is applied. The maintenance @@ -33659,6 +33664,19 @@ type ScalingConfiguration struct { // The time, in seconds, before an Aurora DB cluster in serverless mode is paused. SecondsUntilAutoPause *int64 `type:"integer"` + + // The action to take when the timeout is reached, either ForceApplyCapacityChange + // or RollbackCapacityChange. + // + // ForceApplyCapacityChange, the default, sets the capacity to the specified + // value as soon as possible. + // + // RollbackCapacityChange ignores the capacity change if a scaling point is + // not found in the timeout period. + // + // For more information, see Autoscaling for Aurora Serverless (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling) + // in the Amazon Aurora User Guide. + TimeoutAction *string `type:"string"` } // String returns the string representation @@ -33695,6 +33713,12 @@ func (s *ScalingConfiguration) SetSecondsUntilAutoPause(v int64) *ScalingConfigu return s } +// SetTimeoutAction sets the TimeoutAction field's value. +func (s *ScalingConfiguration) SetTimeoutAction(v string) *ScalingConfiguration { + s.TimeoutAction = &v + return s +} + // Shows the scaling configuration for an Aurora DB cluster in serverless DB // engine mode. // @@ -33705,6 +33729,9 @@ type ScalingConfigurationInfo struct { // A value that indicates whether automatic pause is allowed for the Aurora // DB cluster in serverless DB engine mode. + // + // When the value is set to false for an Aurora Serverless DB cluster, the DB + // cluster automatically resumes. AutoPause *bool `type:"boolean"` // The maximum capacity for an Aurora DB cluster in serverless DB engine mode. @@ -33717,6 +33744,10 @@ type ScalingConfigurationInfo struct { // serverless mode is paused. A DB cluster can be paused only when it's idle // (it has no connections). SecondsUntilAutoPause *int64 `type:"integer"` + + // The timeout action of a call to ModifyCurrentDBClusterCapacity, either ForceApplyCapacityChange + // or RollbackCapacityChange. + TimeoutAction *string `type:"string"` } // String returns the string representation @@ -33753,6 +33784,12 @@ func (s *ScalingConfigurationInfo) SetSecondsUntilAutoPause(v int64) *ScalingCon return s } +// SetTimeoutAction sets the TimeoutAction field's value. +func (s *ScalingConfigurationInfo) SetTimeoutAction(v string) *ScalingConfigurationInfo { + s.TimeoutAction = &v + return s +} + // Contains an AWS Region name as the result of a successful call to the DescribeSourceRegions // action. type SourceRegion struct { diff --git a/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go b/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go index f2d632f24a7..1c6c372ad19 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/worklink/api.go @@ -12,6 +12,101 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opAssociateDomain = "AssociateDomain" + +// AssociateDomainRequest generates a "aws/request.Request" representing the +// client's request for the AssociateDomain 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 AssociateDomain for more information on using the AssociateDomain +// 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 AssociateDomainRequest method. +// req, resp := client.AssociateDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateDomain +func (c *WorkLink) AssociateDomainRequest(input *AssociateDomainInput) (req *request.Request, output *AssociateDomainOutput) { + op := &request.Operation{ + Name: opAssociateDomain, + HTTPMethod: "POST", + HTTPPath: "/associateDomain", + } + + if input == nil { + input = &AssociateDomainInput{} + } + + output = &AssociateDomainOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// AssociateDomain API operation for Amazon WorkLink. +// +// Specifies a domain to be associated to Amazon WorkLink. +// +// 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 WorkLink's +// API operation AssociateDomain for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource was not found. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateDomain +func (c *WorkLink) AssociateDomain(input *AssociateDomainInput) (*AssociateDomainOutput, error) { + req, out := c.AssociateDomainRequest(input) + return out, req.Send() +} + +// AssociateDomainWithContext is the same as AssociateDomain with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateDomain 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 *WorkLink) AssociateDomainWithContext(ctx aws.Context, input *AssociateDomainInput, opts ...request.Option) (*AssociateDomainOutput, error) { + req, out := c.AssociateDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateWebsiteCertificateAuthority = "AssociateWebsiteCertificateAuthority" // AssociateWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the @@ -661,6 +756,97 @@ func (c *WorkLink) DescribeDevicePolicyConfigurationWithContext(ctx aws.Context, return out, req.Send() } +const opDescribeDomain = "DescribeDomain" + +// DescribeDomainRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDomain 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 DescribeDomain for more information on using the DescribeDomain +// 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 DescribeDomainRequest method. +// req, resp := client.DescribeDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDomain +func (c *WorkLink) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) { + op := &request.Operation{ + Name: opDescribeDomain, + HTTPMethod: "POST", + HTTPPath: "/describeDomain", + } + + if input == nil { + input = &DescribeDomainInput{} + } + + output = &DescribeDomainOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeDomain API operation for Amazon WorkLink. +// +// Provides information about the domain. +// +// 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 WorkLink's +// API operation DescribeDomain for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource was not found. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDomain +func (c *WorkLink) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) { + req, out := c.DescribeDomainRequest(input) + return out, req.Send() +} + +// DescribeDomainWithContext is the same as DescribeDomain with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeDomain 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 *WorkLink) DescribeDomainWithContext(ctx aws.Context, input *DescribeDomainInput, opts ...request.Option) (*DescribeDomainOutput, error) { + req, out := c.DescribeDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeFleetMetadata = "DescribeFleetMetadata" // DescribeFleetMetadataRequest generates a "aws/request.Request" representing the @@ -935,6 +1121,99 @@ func (c *WorkLink) DescribeWebsiteCertificateAuthorityWithContext(ctx aws.Contex return out, req.Send() } +const opDisassociateDomain = "DisassociateDomain" + +// DisassociateDomainRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateDomain 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 DisassociateDomain for more information on using the DisassociateDomain +// 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 DisassociateDomainRequest method. +// req, resp := client.DisassociateDomainRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateDomain +func (c *WorkLink) DisassociateDomainRequest(input *DisassociateDomainInput) (req *request.Request, output *DisassociateDomainOutput) { + op := &request.Operation{ + Name: opDisassociateDomain, + HTTPMethod: "POST", + HTTPPath: "/disassociateDomain", + } + + if input == nil { + input = &DisassociateDomainInput{} + } + + output = &DisassociateDomainOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DisassociateDomain API operation for Amazon WorkLink. +// +// Disassociates a domain from Amazon WorkLink. End users lose the ability to +// access the domain with Amazon WorkLink. +// +// 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 WorkLink's +// API operation DisassociateDomain for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource was not found. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateDomain +func (c *WorkLink) DisassociateDomain(input *DisassociateDomainInput) (*DisassociateDomainOutput, error) { + req, out := c.DisassociateDomainRequest(input) + return out, req.Send() +} + +// DisassociateDomainWithContext is the same as DisassociateDomain with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateDomain 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 *WorkLink) DisassociateDomainWithContext(ctx aws.Context, input *DisassociateDomainInput, opts ...request.Option) (*DisassociateDomainOutput, error) { + req, out := c.DisassociateDomainRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDisassociateWebsiteCertificateAuthority = "DisassociateWebsiteCertificateAuthority" // DisassociateWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the @@ -1174,37 +1453,37 @@ func (c *WorkLink) ListDevicesPagesWithContext(ctx aws.Context, input *ListDevic return p.Err() } -const opListFleets = "ListFleets" +const opListDomains = "ListDomains" -// ListFleetsRequest generates a "aws/request.Request" representing the -// client's request for the ListFleets operation. The "output" return +// ListDomainsRequest generates a "aws/request.Request" representing the +// client's request for the ListDomains 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 ListFleets for more information on using the ListFleets +// See ListDomains for more information on using the ListDomains // 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 ListFleetsRequest method. -// req, resp := client.ListFleetsRequest(params) +// // Example sending a request using the ListDomainsRequest method. +// req, resp := client.ListDomainsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets -func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDomains +func (c *WorkLink) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) { op := &request.Operation{ - Name: opListFleets, + Name: opListDomains, HTTPMethod: "POST", - HTTPPath: "/listFleets", + HTTPPath: "/listDomains", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -1214,24 +1493,24 @@ func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque } if input == nil { - input = &ListFleetsInput{} + input = &ListDomainsInput{} } - output = &ListFleetsOutput{} + output = &ListDomainsOutput{} req = c.newRequest(op, input, output) return } -// ListFleets API operation for Amazon WorkLink. +// ListDomains API operation for Amazon WorkLink. // -// Retrieves a list of fleets for the current account and Region. +// Retrieves a list of domains associated to a specified fleet. // // 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 WorkLink's -// API operation ListFleets for usage and error information. +// API operation ListDomains for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedException "UnauthorizedException" @@ -1246,65 +1525,65 @@ func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets -func (c *WorkLink) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { - req, out := c.ListFleetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDomains +func (c *WorkLink) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { + req, out := c.ListDomainsRequest(input) return out, req.Send() } -// ListFleetsWithContext is the same as ListFleets with the addition of +// ListDomainsWithContext is the same as ListDomains with the addition of // the ability to pass a context and additional request options. // -// See ListFleets for details on how to use this API operation. +// See ListDomains 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 *WorkLink) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput, opts ...request.Option) (*ListFleetsOutput, error) { - req, out := c.ListFleetsRequest(input) +func (c *WorkLink) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) { + req, out := c.ListDomainsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListFleetsPages iterates over the pages of a ListFleets operation, +// ListDomainsPages iterates over the pages of a ListDomains operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListFleets method for more information on how to use this operation. +// See ListDomains 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 ListFleets operation. +// // Example iterating over at most 3 pages of a ListDomains operation. // pageNum := 0 -// err := client.ListFleetsPages(params, -// func(page *ListFleetsOutput, lastPage bool) bool { +// err := client.ListDomainsPages(params, +// func(page *ListDomainsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *WorkLink) ListFleetsPages(input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool) error { - return c.ListFleetsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *WorkLink) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error { + return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListFleetsPagesWithContext same as ListFleetsPages except +// ListDomainsPagesWithContext same as ListDomainsPages 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 *WorkLink) ListFleetsPagesWithContext(ctx aws.Context, input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool, opts ...request.Option) error { +func (c *WorkLink) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListFleetsInput + var inCpy *ListDomainsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListFleetsRequest(inCpy) + req, _ := c.ListDomainsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -1313,30 +1592,174 @@ func (c *WorkLink) ListFleetsPagesWithContext(ctx aws.Context, input *ListFleets cont := true for p.Next() && cont { - cont = fn(p.Page().(*ListFleetsOutput), !p.HasNextPage()) + cont = fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) } return p.Err() } -const opListWebsiteCertificateAuthorities = "ListWebsiteCertificateAuthorities" +const opListFleets = "ListFleets" -// ListWebsiteCertificateAuthoritiesRequest generates a "aws/request.Request" representing the -// client's request for the ListWebsiteCertificateAuthorities operation. The "output" return +// ListFleetsRequest generates a "aws/request.Request" representing the +// client's request for the ListFleets 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 ListWebsiteCertificateAuthorities for more information on using the ListWebsiteCertificateAuthorities +// See ListFleets for more information on using the ListFleets // 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 ListWebsiteCertificateAuthoritiesRequest method. -// req, resp := client.ListWebsiteCertificateAuthoritiesRequest(params) +// // Example sending a request using the ListFleetsRequest method. +// req, resp := client.ListFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets +func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) { + op := &request.Operation{ + Name: opListFleets, + HTTPMethod: "POST", + HTTPPath: "/listFleets", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListFleetsInput{} + } + + output = &ListFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFleets API operation for Amazon WorkLink. +// +// Retrieves a list of fleets for the current account and Region. +// +// 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 WorkLink's +// API operation ListFleets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets +func (c *WorkLink) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { + req, out := c.ListFleetsRequest(input) + return out, req.Send() +} + +// ListFleetsWithContext is the same as ListFleets with the addition of +// the ability to pass a context and additional request options. +// +// See ListFleets 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 *WorkLink) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput, opts ...request.Option) (*ListFleetsOutput, error) { + req, out := c.ListFleetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListFleetsPages iterates over the pages of a ListFleets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFleets 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 ListFleets operation. +// pageNum := 0 +// err := client.ListFleetsPages(params, +// func(page *ListFleetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WorkLink) ListFleetsPages(input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool) error { + return c.ListFleetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListFleetsPagesWithContext same as ListFleetsPages 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 *WorkLink) ListFleetsPagesWithContext(ctx aws.Context, input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFleetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFleetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListFleetsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListWebsiteCertificateAuthorities = "ListWebsiteCertificateAuthorities" + +// ListWebsiteCertificateAuthoritiesRequest generates a "aws/request.Request" representing the +// client's request for the ListWebsiteCertificateAuthorities 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 ListWebsiteCertificateAuthorities for more information on using the ListWebsiteCertificateAuthorities +// 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 ListWebsiteCertificateAuthoritiesRequest method. +// req, resp := client.ListWebsiteCertificateAuthoritiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled @@ -1463,6 +1886,190 @@ func (c *WorkLink) ListWebsiteCertificateAuthoritiesPagesWithContext(ctx aws.Con return p.Err() } +const opRestoreDomainAccess = "RestoreDomainAccess" + +// RestoreDomainAccessRequest generates a "aws/request.Request" representing the +// client's request for the RestoreDomainAccess 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 RestoreDomainAccess for more information on using the RestoreDomainAccess +// 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 RestoreDomainAccessRequest method. +// req, resp := client.RestoreDomainAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/RestoreDomainAccess +func (c *WorkLink) RestoreDomainAccessRequest(input *RestoreDomainAccessInput) (req *request.Request, output *RestoreDomainAccessOutput) { + op := &request.Operation{ + Name: opRestoreDomainAccess, + HTTPMethod: "POST", + HTTPPath: "/restoreDomainAccess", + } + + if input == nil { + input = &RestoreDomainAccessInput{} + } + + output = &RestoreDomainAccessOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// RestoreDomainAccess API operation for Amazon WorkLink. +// +// Moves a domain to ACTIVE status if it was in the INACTIVE status. +// +// 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 WorkLink's +// API operation RestoreDomainAccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource was not found. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/RestoreDomainAccess +func (c *WorkLink) RestoreDomainAccess(input *RestoreDomainAccessInput) (*RestoreDomainAccessOutput, error) { + req, out := c.RestoreDomainAccessRequest(input) + return out, req.Send() +} + +// RestoreDomainAccessWithContext is the same as RestoreDomainAccess with the addition of +// the ability to pass a context and additional request options. +// +// See RestoreDomainAccess 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 *WorkLink) RestoreDomainAccessWithContext(ctx aws.Context, input *RestoreDomainAccessInput, opts ...request.Option) (*RestoreDomainAccessOutput, error) { + req, out := c.RestoreDomainAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRevokeDomainAccess = "RevokeDomainAccess" + +// RevokeDomainAccessRequest generates a "aws/request.Request" representing the +// client's request for the RevokeDomainAccess 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 RevokeDomainAccess for more information on using the RevokeDomainAccess +// 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 RevokeDomainAccessRequest method. +// req, resp := client.RevokeDomainAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/RevokeDomainAccess +func (c *WorkLink) RevokeDomainAccessRequest(input *RevokeDomainAccessInput) (req *request.Request, output *RevokeDomainAccessOutput) { + op := &request.Operation{ + Name: opRevokeDomainAccess, + HTTPMethod: "POST", + HTTPPath: "/revokeDomainAccess", + } + + if input == nil { + input = &RevokeDomainAccessInput{} + } + + output = &RevokeDomainAccessOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// RevokeDomainAccess API operation for Amazon WorkLink. +// +// Moves a domain to INACTIVE status if it was in the ACTIVE status. +// +// 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 WorkLink's +// API operation RevokeDomainAccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource was not found. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/RevokeDomainAccess +func (c *WorkLink) RevokeDomainAccess(input *RevokeDomainAccessInput) (*RevokeDomainAccessOutput, error) { + req, out := c.RevokeDomainAccessRequest(input) + return out, req.Send() +} + +// RevokeDomainAccessWithContext is the same as RevokeDomainAccess with the addition of +// the ability to pass a context and additional request options. +// +// See RevokeDomainAccess 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 *WorkLink) RevokeDomainAccessWithContext(ctx aws.Context, input *RevokeDomainAccessInput, opts ...request.Option) (*RevokeDomainAccessOutput, error) { + req, out := c.RevokeDomainAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opSignOutUser = "SignOutUser" // SignOutUserRequest generates a "aws/request.Request" representing the @@ -1832,6 +2439,98 @@ func (c *WorkLink) UpdateDevicePolicyConfigurationWithContext(ctx aws.Context, i return out, req.Send() } +const opUpdateDomainMetadata = "UpdateDomainMetadata" + +// UpdateDomainMetadataRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDomainMetadata 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 UpdateDomainMetadata for more information on using the UpdateDomainMetadata +// 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 UpdateDomainMetadataRequest method. +// req, resp := client.UpdateDomainMetadataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDomainMetadata +func (c *WorkLink) UpdateDomainMetadataRequest(input *UpdateDomainMetadataInput) (req *request.Request, output *UpdateDomainMetadataOutput) { + op := &request.Operation{ + Name: opUpdateDomainMetadata, + HTTPMethod: "POST", + HTTPPath: "/updateDomainMetadata", + } + + if input == nil { + input = &UpdateDomainMetadataInput{} + } + + output = &UpdateDomainMetadataOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateDomainMetadata API operation for Amazon WorkLink. +// +// Updates domain metadata, such as DisplayName. +// +// 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 WorkLink's +// API operation UpdateDomainMetadata for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The service is temporarily unavailable. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The requested resource was not found. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDomainMetadata +func (c *WorkLink) UpdateDomainMetadata(input *UpdateDomainMetadataInput) (*UpdateDomainMetadataOutput, error) { + req, out := c.UpdateDomainMetadataRequest(input) + return out, req.Send() +} + +// UpdateDomainMetadataWithContext is the same as UpdateDomainMetadata with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDomainMetadata 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 *WorkLink) UpdateDomainMetadataWithContext(ctx aws.Context, input *UpdateDomainMetadataInput, opts ...request.Option) (*UpdateDomainMetadataOutput, error) { + req, out := c.UpdateDomainMetadataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateFleetMetadata = "UpdateFleetMetadata" // UpdateFleetMetadataRequest generates a "aws/request.Request" representing the @@ -2016,6 +2715,101 @@ func (c *WorkLink) UpdateIdentityProviderConfigurationWithContext(ctx aws.Contex return out, req.Send() } +type AssociateDomainInput struct { + _ struct{} `type:"structure"` + + // The ARN of an issued ACM certificate that is valid for the domain being associated. + // + // AcmCertificateArn is a required field + AcmCertificateArn *string `type:"string" required:"true"` + + // The name to display. + DisplayName *string `type:"string"` + + // The fully qualified domain name (FQDN). + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateDomainInput"} + if s.AcmCertificateArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcmCertificateArn")) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcmCertificateArn sets the AcmCertificateArn field's value. +func (s *AssociateDomainInput) SetAcmCertificateArn(v string) *AssociateDomainInput { + s.AcmCertificateArn = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *AssociateDomainInput) SetDisplayName(v string) *AssociateDomainInput { + s.DisplayName = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *AssociateDomainInput) SetDomainName(v string) *AssociateDomainInput { + s.DomainName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *AssociateDomainInput) SetFleetArn(v string) *AssociateDomainInput { + s.FleetArn = &v + return s +} + +type AssociateDomainOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateDomainOutput) GoString() string { + return s.String() +} + type AssociateWebsiteCertificateAuthorityInput struct { _ struct{} `type:"structure"` @@ -2608,6 +3402,105 @@ func (s *DescribeDevicePolicyConfigurationOutput) SetDeviceCaCertificate(v strin return s } +type DescribeDomainInput struct { + _ struct{} `type:"structure"` + + // The name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The ARN of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeDomainInput) SetDomainName(v string) *DescribeDomainInput { + s.DomainName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *DescribeDomainInput) SetFleetArn(v string) *DescribeDomainInput { + s.FleetArn = &v + return s +} + +type DescribeDomainOutput struct { + _ struct{} `type:"structure"` + + // The time that the domain was added. + CreatedTime *time.Time `type:"timestamp"` + + // The name to display. + DisplayName *string `type:"string"` + + // The current state for the domain. + DomainStatus *string `type:"string" enum:"DomainStatus"` +} + +// String returns the string representation +func (s DescribeDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDomainOutput) GoString() string { + return s.String() +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *DescribeDomainOutput) SetCreatedTime(v time.Time) *DescribeDomainOutput { + s.CreatedTime = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *DescribeDomainOutput) SetDisplayName(v string) *DescribeDomainOutput { + s.DisplayName = &v + return s +} + +// SetDomainStatus sets the DomainStatus field's value. +func (s *DescribeDomainOutput) SetDomainStatus(v string) *DescribeDomainOutput { + s.DomainStatus = &v + return s +} + type DescribeFleetMetadataInput struct { _ struct{} `type:"structure"` @@ -2941,6 +3834,78 @@ func (s *DeviceSummary) SetDeviceStatus(v string) *DeviceSummary { return s } +type DisassociateDomainInput struct { + _ struct{} `type:"structure"` + + // The name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The ARN of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DisassociateDomainInput) SetDomainName(v string) *DisassociateDomainInput { + s.DomainName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *DisassociateDomainInput) SetFleetArn(v string) *DisassociateDomainInput { + s.FleetArn = &v + return s +} + +type DisassociateDomainOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateDomainOutput) GoString() string { + return s.String() +} + type DisassociateWebsiteCertificateAuthorityInput struct { _ struct{} `type:"structure"` @@ -3013,6 +3978,63 @@ func (s DisassociateWebsiteCertificateAuthorityOutput) GoString() string { return s.String() } +// The summary of the domain. +type DomainSummary struct { + _ struct{} `type:"structure"` + + // The time that the domain was created. + // + // CreatedTime is a required field + CreatedTime *time.Time `type:"timestamp" required:"true"` + + // The name to display. + DisplayName *string `type:"string"` + + // The name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The status of the domain. + // + // DomainStatus is a required field + DomainStatus *string `type:"string" required:"true" enum:"DomainStatus"` +} + +// String returns the string representation +func (s DomainSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainSummary) GoString() string { + return s.String() +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *DomainSummary) SetCreatedTime(v time.Time) *DomainSummary { + s.CreatedTime = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *DomainSummary) SetDisplayName(v string) *DomainSummary { + s.DisplayName = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainSummary) SetDomainName(v string) *DomainSummary { + s.DomainName = &v + return s +} + +// SetDomainStatus sets the DomainStatus field's value. +func (s *DomainSummary) SetDomainStatus(v string) *DomainSummary { + s.DomainStatus = &v + return s +} + // The summary of the fleet. type FleetSummary struct { _ struct{} `type:"structure"` @@ -3044,54 +4066,153 @@ func (s FleetSummary) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s FleetSummary) GoString() string { - return s.String() +// GoString returns the string representation +func (s FleetSummary) GoString() string { + return s.String() +} + +// SetCompanyCode sets the CompanyCode field's value. +func (s *FleetSummary) SetCompanyCode(v string) *FleetSummary { + s.CompanyCode = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *FleetSummary) SetCreatedTime(v time.Time) *FleetSummary { + s.CreatedTime = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *FleetSummary) SetDisplayName(v string) *FleetSummary { + s.DisplayName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *FleetSummary) SetFleetArn(v string) *FleetSummary { + s.FleetArn = &v + return s +} + +// SetFleetName sets the FleetName field's value. +func (s *FleetSummary) SetFleetName(v string) *FleetSummary { + s.FleetName = &v + return s +} + +// SetFleetStatus sets the FleetStatus field's value. +func (s *FleetSummary) SetFleetStatus(v string) *FleetSummary { + s.FleetStatus = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *FleetSummary) SetLastUpdatedTime(v time.Time) *FleetSummary { + s.LastUpdatedTime = &v + return s +} + +type ListDevicesInput struct { + _ struct{} `type:"structure"` + + // The ARN of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` + + // The maximum number of results to be included in the next page. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token used to retrieve the next page of results for this operation. + // If this value is null, it retrieves the first page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDevicesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDevicesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDevicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"} + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCompanyCode sets the CompanyCode field's value. -func (s *FleetSummary) SetCompanyCode(v string) *FleetSummary { - s.CompanyCode = &v +// SetFleetArn sets the FleetArn field's value. +func (s *ListDevicesInput) SetFleetArn(v string) *ListDevicesInput { + s.FleetArn = &v return s } -// SetCreatedTime sets the CreatedTime field's value. -func (s *FleetSummary) SetCreatedTime(v time.Time) *FleetSummary { - s.CreatedTime = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListDevicesInput) SetMaxResults(v int64) *ListDevicesInput { + s.MaxResults = &v return s } -// SetDisplayName sets the DisplayName field's value. -func (s *FleetSummary) SetDisplayName(v string) *FleetSummary { - s.DisplayName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput { + s.NextToken = &v return s } -// SetFleetArn sets the FleetArn field's value. -func (s *FleetSummary) SetFleetArn(v string) *FleetSummary { - s.FleetArn = &v - return s +type ListDevicesOutput struct { + _ struct{} `type:"structure"` + + // Information about the devices. + Devices []*DeviceSummary `type:"list"` + + // The pagination token used to retrieve the next page of results for this operation. + // If there are no more pages, this value is null. + NextToken *string `min:"1" type:"string"` } -// SetFleetName sets the FleetName field's value. -func (s *FleetSummary) SetFleetName(v string) *FleetSummary { - s.FleetName = &v - return s +// String returns the string representation +func (s ListDevicesOutput) String() string { + return awsutil.Prettify(s) } -// SetFleetStatus sets the FleetStatus field's value. -func (s *FleetSummary) SetFleetStatus(v string) *FleetSummary { - s.FleetStatus = &v +// GoString returns the string representation +func (s ListDevicesOutput) GoString() string { + return s.String() +} + +// SetDevices sets the Devices field's value. +func (s *ListDevicesOutput) SetDevices(v []*DeviceSummary) *ListDevicesOutput { + s.Devices = v return s } -// SetLastUpdatedTime sets the LastUpdatedTime field's value. -func (s *FleetSummary) SetLastUpdatedTime(v time.Time) *FleetSummary { - s.LastUpdatedTime = &v +// SetNextToken sets the NextToken field's value. +func (s *ListDevicesOutput) SetNextToken(v string) *ListDevicesOutput { + s.NextToken = &v return s } -type ListDevicesInput struct { +type ListDomainsInput struct { _ struct{} `type:"structure"` // The ARN of the fleet. @@ -3108,18 +4229,18 @@ type ListDevicesInput struct { } // String returns the string representation -func (s ListDevicesInput) String() string { +func (s ListDomainsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDevicesInput) GoString() string { +func (s ListDomainsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListDevicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"} +func (s *ListDomainsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDomainsInput"} if s.FleetArn == nil { invalidParams.Add(request.NewErrParamRequired("FleetArn")) } @@ -3140,28 +4261,28 @@ func (s *ListDevicesInput) Validate() error { } // SetFleetArn sets the FleetArn field's value. -func (s *ListDevicesInput) SetFleetArn(v string) *ListDevicesInput { +func (s *ListDomainsInput) SetFleetArn(v string) *ListDomainsInput { s.FleetArn = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListDevicesInput) SetMaxResults(v int64) *ListDevicesInput { +func (s *ListDomainsInput) SetMaxResults(v int64) *ListDomainsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput { +func (s *ListDomainsInput) SetNextToken(v string) *ListDomainsInput { s.NextToken = &v return s } -type ListDevicesOutput struct { +type ListDomainsOutput struct { _ struct{} `type:"structure"` - // Information about the devices. - Devices []*DeviceSummary `type:"list"` + // Information about the domains. + Domains []*DomainSummary `type:"list"` // The pagination token used to retrieve the next page of results for this operation. // If there are no more pages, this value is null. @@ -3169,23 +4290,23 @@ type ListDevicesOutput struct { } // String returns the string representation -func (s ListDevicesOutput) String() string { +func (s ListDomainsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDevicesOutput) GoString() string { +func (s ListDomainsOutput) GoString() string { return s.String() } -// SetDevices sets the Devices field's value. -func (s *ListDevicesOutput) SetDevices(v []*DeviceSummary) *ListDevicesOutput { - s.Devices = v +// SetDomains sets the Domains field's value. +func (s *ListDomainsOutput) SetDomains(v []*DomainSummary) *ListDomainsOutput { + s.Domains = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListDevicesOutput) SetNextToken(v string) *ListDevicesOutput { +func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput { s.NextToken = &v return s } @@ -3371,6 +4492,150 @@ func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthoriti return s } +type RestoreDomainAccessInput struct { + _ struct{} `type:"structure"` + + // The name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The ARN of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s RestoreDomainAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreDomainAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestoreDomainAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestoreDomainAccessInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *RestoreDomainAccessInput) SetDomainName(v string) *RestoreDomainAccessInput { + s.DomainName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *RestoreDomainAccessInput) SetFleetArn(v string) *RestoreDomainAccessInput { + s.FleetArn = &v + return s +} + +type RestoreDomainAccessOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RestoreDomainAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreDomainAccessOutput) GoString() string { + return s.String() +} + +type RevokeDomainAccessInput struct { + _ struct{} `type:"structure"` + + // The name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The ARN of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s RevokeDomainAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RevokeDomainAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RevokeDomainAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RevokeDomainAccessInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *RevokeDomainAccessInput) SetDomainName(v string) *RevokeDomainAccessInput { + s.DomainName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *RevokeDomainAccessInput) SetFleetArn(v string) *RevokeDomainAccessInput { + s.FleetArn = &v + return s +} + +type RevokeDomainAccessOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RevokeDomainAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RevokeDomainAccessOutput) GoString() string { + return s.String() +} + type SignOutUserInput struct { _ struct{} `type:"structure"` @@ -3672,6 +4937,87 @@ func (s UpdateDevicePolicyConfigurationOutput) GoString() string { return s.String() } +type UpdateDomainMetadataInput struct { + _ struct{} `type:"structure"` + + // The name to display. + DisplayName *string `type:"string"` + + // The name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The ARN of the fleet. + // + // FleetArn is a required field + FleetArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateDomainMetadataInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDomainMetadataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDomainMetadataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDomainMetadataInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.FleetArn == nil { + invalidParams.Add(request.NewErrParamRequired("FleetArn")) + } + if s.FleetArn != nil && len(*s.FleetArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisplayName sets the DisplayName field's value. +func (s *UpdateDomainMetadataInput) SetDisplayName(v string) *UpdateDomainMetadataInput { + s.DisplayName = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainMetadataInput) SetDomainName(v string) *UpdateDomainMetadataInput { + s.DomainName = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *UpdateDomainMetadataInput) SetFleetArn(v string) *UpdateDomainMetadataInput { + s.FleetArn = &v + return s +} + +type UpdateDomainMetadataOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateDomainMetadataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDomainMetadataOutput) GoString() string { + return s.String() +} + type UpdateFleetMetadataInput struct { _ struct{} `type:"structure"` @@ -3878,6 +5224,32 @@ const ( DeviceStatusSignedOut = "SIGNED_OUT" ) +const ( + // DomainStatusPendingValidation is a DomainStatus enum value + DomainStatusPendingValidation = "PENDING_VALIDATION" + + // DomainStatusAssociating is a DomainStatus enum value + DomainStatusAssociating = "ASSOCIATING" + + // DomainStatusActive is a DomainStatus enum value + DomainStatusActive = "ACTIVE" + + // DomainStatusInactive is a DomainStatus enum value + DomainStatusInactive = "INACTIVE" + + // DomainStatusDisassociating is a DomainStatus enum value + DomainStatusDisassociating = "DISASSOCIATING" + + // DomainStatusDisassociated is a DomainStatus enum value + DomainStatusDisassociated = "DISASSOCIATED" + + // DomainStatusFailedToAssociate is a DomainStatus enum value + DomainStatusFailedToAssociate = "FAILED_TO_ASSOCIATE" + + // DomainStatusFailedToDisassociate is a DomainStatus enum value + DomainStatusFailedToDisassociate = "FAILED_TO_DISASSOCIATE" +) + const ( // FleetStatusCreating is a FleetStatus enum value FleetStatusCreating = "CREATING" diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go index c91eb37ad93..72f0c79227d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/api.go @@ -351,7 +351,7 @@ func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Req // CreateTags API operation for Amazon WorkSpaces. // -// Creates the specified tags for the specified WorkSpace. +// Creates the specified tags for the specified WorkSpaces 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 @@ -612,7 +612,7 @@ func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Req // DeleteTags API operation for Amazon WorkSpaces. // -// Deletes the specified tags from the specified WorkSpace. +// Deletes the specified tags from the specified WorkSpaces 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 @@ -1108,7 +1108,7 @@ func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request // DescribeTags API operation for Amazon WorkSpaces. // -// Describes the specified tags for the specified WorkSpace. +// Describes the specified tags for the specified WorkSpaces 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 @@ -3324,12 +3324,14 @@ func (s *CreateIpGroupOutput) SetGroupId(v string) *CreateIpGroupOutput { type CreateTagsInput struct { _ struct{} `type:"structure"` - // The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces. + // The identifier of the WorkSpaces resource. The supported resource types are + // WorkSpaces, registered directories, images, custom bundles, and IP access + // control groups. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` - // The tags. Each WorkSpace can have a maximum of 50 tags. + // The tags. Each WorkSpaces resource can have a maximum of 50 tags. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` @@ -3603,7 +3605,9 @@ func (s DeleteIpGroupOutput) GoString() string { type DeleteTagsInput struct { _ struct{} `type:"structure"` - // The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces. + // The identifier of the WorkSpaces resource. The supported resource types are + // WorkSpaces, registered directories, images, custom bundles, and IP access + // control groups. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` @@ -4001,7 +4005,9 @@ func (s *DescribeIpGroupsOutput) SetResult(v []*IpGroup) *DescribeIpGroupsOutput type DescribeTagsInput struct { _ struct{} `type:"structure"` - // The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces. + // The identifier of the WorkSpaces resource. The supported resource types are + // WorkSpaces, registered directories, images, custom bundles, and IP access + // control groups. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` diff --git a/vendor/modules.txt b/vendor/modules.txt index 1d5ed72c3d5..8518018bf86 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -13,7 +13,7 @@ github.com/apparentlymart/go-cidr/cidr github.com/apparentlymart/go-textseg/textseg # github.com/armon/go-radix v1.0.0 github.com/armon/go-radix -# github.com/aws/aws-sdk-go v1.19.13 +# github.com/aws/aws-sdk-go v1.19.14 github.com/aws/aws-sdk-go/aws github.com/aws/aws-sdk-go/aws/arn github.com/aws/aws-sdk-go/aws/awserr