vendor: update all dependencies
This commit is contained in:
parent
3f0789e2db
commit
08021c4636
2474 changed files with 435818 additions and 282709 deletions
657
vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go
generated
vendored
657
vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go
generated
vendored
|
@ -2260,6 +2260,100 @@ func (c *IoTAnalytics) ListPipelinesPagesWithContext(ctx aws.Context, input *Lis
|
|||
return p.Err()
|
||||
}
|
||||
|
||||
const opListTagsForResource = "ListTagsForResource"
|
||||
|
||||
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForResource operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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/iotanalytics-2017-11-27/ListTagsForResource
|
||||
func (c *IoTAnalytics) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTagsForResource,
|
||||
HTTPMethod: "GET",
|
||||
HTTPPath: "/tags",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &ListTagsForResourceInput{}
|
||||
}
|
||||
|
||||
output = &ListTagsForResourceOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// ListTagsForResource API operation for AWS IoT Analytics.
|
||||
//
|
||||
// Lists the tags (metadata) which you have assigned to the 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 AWS IoT Analytics's
|
||||
// API operation ListTagsForResource for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidRequestException "InvalidRequestException"
|
||||
// The request was not valid.
|
||||
//
|
||||
// * ErrCodeInternalFailureException "InternalFailureException"
|
||||
// There was an internal failure.
|
||||
//
|
||||
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
|
||||
// The service is temporarily unavailable.
|
||||
//
|
||||
// * ErrCodeThrottlingException "ThrottlingException"
|
||||
// The request was denied due to request throttling.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// The command caused an internal limit to be exceeded.
|
||||
//
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// A resource with the specified name could not be found.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource
|
||||
func (c *IoTAnalytics) 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 *IoTAnalytics) 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 opPutLoggingOptions = "PutLoggingOptions"
|
||||
|
||||
// PutLoggingOptionsRequest generates a "aws/request.Request" representing the
|
||||
|
@ -2308,6 +2402,12 @@ func (c *IoTAnalytics) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (
|
|||
//
|
||||
// Sets or updates the AWS IoT Analytics logging options.
|
||||
//
|
||||
// Note that if you update the value of any loggingOptions field, it takes up
|
||||
// to one minute for the change to take effect. Also, if you change the policy
|
||||
// attached to the role you specified in the roleArn field (for example, to
|
||||
// correct an invalid policy) it takes up to 5 minutes for that change to take
|
||||
// effect.
|
||||
//
|
||||
// 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.
|
||||
|
@ -2624,6 +2724,195 @@ func (c *IoTAnalytics) StartPipelineReprocessingWithContext(ctx aws.Context, inp
|
|||
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
|
||||
// successfuly.
|
||||
//
|
||||
// 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/iotanalytics-2017-11-27/TagResource
|
||||
func (c *IoTAnalytics) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opTagResource,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/tags",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &TagResourceInput{}
|
||||
}
|
||||
|
||||
output = &TagResourceOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// TagResource API operation for AWS IoT Analytics.
|
||||
//
|
||||
// Adds to or modifies the tags of the given resource. Tags are metadata which
|
||||
// can be used to manage 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 AWS IoT Analytics's
|
||||
// API operation TagResource for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidRequestException "InvalidRequestException"
|
||||
// The request was not valid.
|
||||
//
|
||||
// * ErrCodeInternalFailureException "InternalFailureException"
|
||||
// There was an internal failure.
|
||||
//
|
||||
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
|
||||
// The service is temporarily unavailable.
|
||||
//
|
||||
// * ErrCodeThrottlingException "ThrottlingException"
|
||||
// The request was denied due to request throttling.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// The command caused an internal limit to be exceeded.
|
||||
//
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// A resource with the specified name could not be found.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/TagResource
|
||||
func (c *IoTAnalytics) 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 *IoTAnalytics) 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
|
||||
// successfuly.
|
||||
//
|
||||
// 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/iotanalytics-2017-11-27/UntagResource
|
||||
func (c *IoTAnalytics) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUntagResource,
|
||||
HTTPMethod: "DELETE",
|
||||
HTTPPath: "/tags",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &UntagResourceInput{}
|
||||
}
|
||||
|
||||
output = &UntagResourceOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// UntagResource API operation for AWS IoT Analytics.
|
||||
//
|
||||
// Removes the given tags (metadata) from the 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 AWS IoT Analytics's
|
||||
// API operation UntagResource for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidRequestException "InvalidRequestException"
|
||||
// The request was not valid.
|
||||
//
|
||||
// * ErrCodeInternalFailureException "InternalFailureException"
|
||||
// There was an internal failure.
|
||||
//
|
||||
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
|
||||
// The service is temporarily unavailable.
|
||||
//
|
||||
// * ErrCodeThrottlingException "ThrottlingException"
|
||||
// The request was denied due to request throttling.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// The command caused an internal limit to be exceeded.
|
||||
//
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// A resource with the specified name could not be found.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UntagResource
|
||||
func (c *IoTAnalytics) 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 *IoTAnalytics) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
|
||||
req, out := c.UntagResourceRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opUpdateChannel = "UpdateChannel"
|
||||
|
||||
// UpdateChannelRequest generates a "aws/request.Request" representing the
|
||||
|
@ -3478,6 +3767,9 @@ type CreateChannelInput struct {
|
|||
|
||||
// How long, in days, message data is kept for the channel.
|
||||
RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
|
||||
|
||||
// Metadata which can be used to manage the channel.
|
||||
Tags []*Tag `locationName:"tags" min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -3499,11 +3791,24 @@ func (s *CreateChannelInput) Validate() error {
|
|||
if s.ChannelName != nil && len(*s.ChannelName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1))
|
||||
}
|
||||
if s.Tags != nil && len(s.Tags) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
||||
}
|
||||
if s.RetentionPeriod != nil {
|
||||
if err := s.RetentionPeriod.Validate(); err != nil {
|
||||
invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.Tags != nil {
|
||||
for i, v := range s.Tags {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -3523,6 +3828,12 @@ func (s *CreateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *CreateChann
|
|||
return s
|
||||
}
|
||||
|
||||
// SetTags sets the Tags field's value.
|
||||
func (s *CreateChannelInput) SetTags(v []*Tag) *CreateChannelInput {
|
||||
s.Tags = v
|
||||
return s
|
||||
}
|
||||
|
||||
type CreateChannelOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -3633,6 +3944,9 @@ type CreateDatasetInput struct {
|
|||
// DatasetName is a required field
|
||||
DatasetName *string `locationName:"datasetName" min:"1" type:"string" required:"true"`
|
||||
|
||||
// Metadata which can be used to manage the data set.
|
||||
Tags []*Tag `locationName:"tags" min:"1" type:"list"`
|
||||
|
||||
// A list of triggers. A trigger causes data set content to be populated at
|
||||
// a specified time or time interval. The list of triggers can be empty or contain
|
||||
// up to five DataSetTrigger objects.
|
||||
|
@ -3664,6 +3978,9 @@ func (s *CreateDatasetInput) Validate() error {
|
|||
if s.DatasetName != nil && len(*s.DatasetName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1))
|
||||
}
|
||||
if s.Tags != nil && len(s.Tags) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
||||
}
|
||||
if s.Actions != nil {
|
||||
for i, v := range s.Actions {
|
||||
if v == nil {
|
||||
|
@ -3674,6 +3991,16 @@ func (s *CreateDatasetInput) Validate() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
if s.Tags != nil {
|
||||
for i, v := range s.Tags {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -3693,6 +4020,12 @@ func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetTags sets the Tags field's value.
|
||||
func (s *CreateDatasetInput) SetTags(v []*Tag) *CreateDatasetInput {
|
||||
s.Tags = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTriggers sets the Triggers field's value.
|
||||
func (s *CreateDatasetInput) SetTriggers(v []*DatasetTrigger) *CreateDatasetInput {
|
||||
s.Triggers = v
|
||||
|
@ -3741,6 +4074,9 @@ type CreateDatastoreInput struct {
|
|||
|
||||
// How long, in days, message data is kept for the data store.
|
||||
RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"`
|
||||
|
||||
// Metadata which can be used to manage the data store.
|
||||
Tags []*Tag `locationName:"tags" min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -3762,11 +4098,24 @@ func (s *CreateDatastoreInput) Validate() error {
|
|||
if s.DatastoreName != nil && len(*s.DatastoreName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1))
|
||||
}
|
||||
if s.Tags != nil && len(s.Tags) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
||||
}
|
||||
if s.RetentionPeriod != nil {
|
||||
if err := s.RetentionPeriod.Validate(); err != nil {
|
||||
invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.Tags != nil {
|
||||
for i, v := range s.Tags {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -3786,6 +4135,12 @@ func (s *CreateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *CreateDat
|
|||
return s
|
||||
}
|
||||
|
||||
// SetTags sets the Tags field's value.
|
||||
func (s *CreateDatastoreInput) SetTags(v []*Tag) *CreateDatastoreInput {
|
||||
s.Tags = v
|
||||
return s
|
||||
}
|
||||
|
||||
type CreateDatastoreOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -3845,6 +4200,9 @@ type CreatePipelineInput struct {
|
|||
//
|
||||
// PipelineName is a required field
|
||||
PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
|
||||
|
||||
// Metadata which can be used to manage the pipeline.
|
||||
Tags []*Tag `locationName:"tags" min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -3872,6 +4230,9 @@ func (s *CreatePipelineInput) Validate() error {
|
|||
if s.PipelineName != nil && len(*s.PipelineName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
|
||||
}
|
||||
if s.Tags != nil && len(s.Tags) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
||||
}
|
||||
if s.PipelineActivities != nil {
|
||||
for i, v := range s.PipelineActivities {
|
||||
if v == nil {
|
||||
|
@ -3882,6 +4243,16 @@ func (s *CreatePipelineInput) Validate() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
if s.Tags != nil {
|
||||
for i, v := range s.Tags {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -3901,6 +4272,12 @@ func (s *CreatePipelineInput) SetPipelineName(v string) *CreatePipelineInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetTags sets the Tags field's value.
|
||||
func (s *CreatePipelineInput) SetTags(v []*Tag) *CreatePipelineInput {
|
||||
s.Tags = v
|
||||
return s
|
||||
}
|
||||
|
||||
type CreatePipelineOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -5757,6 +6134,70 @@ func (s *ListPipelinesOutput) SetPipelineSummaries(v []*PipelineSummary) *ListPi
|
|||
return s
|
||||
}
|
||||
|
||||
type ListTagsForResourceInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ARN of the resource whose tags you want to list.
|
||||
//
|
||||
// ResourceArn is a required field
|
||||
ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" 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) < 20 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetResourceArn sets the ResourceArn field's value.
|
||||
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
|
||||
s.ResourceArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type ListTagsForResourceOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The tags (metadata) which you have assigned to the resource.
|
||||
Tags []*Tag `locationName:"tags" min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// 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 []*Tag) *ListTagsForResourceOutput {
|
||||
s.Tags = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Information about logging options.
|
||||
type LoggingOptions struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -5921,7 +6362,8 @@ func (s *MathActivity) SetNext(v string) *MathActivity {
|
|||
type Message struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ID you wish to assign to the message.
|
||||
// The ID you wish to assign to the message. Each "messageId" must be unique
|
||||
// within each batch sent.
|
||||
//
|
||||
// MessageId is a required field
|
||||
MessageId *string `locationName:"messageId" min:"1" type:"string" required:"true"`
|
||||
|
@ -6892,6 +7334,219 @@ func (s *StartPipelineReprocessingOutput) SetReprocessingId(v string) *StartPipe
|
|||
return s
|
||||
}
|
||||
|
||||
// A set of key/value pairs which are used to manage the resource.
|
||||
type Tag struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The tag's key.
|
||||
//
|
||||
// Key is a required field
|
||||
Key *string `locationName:"key" min:"1" type:"string" required:"true"`
|
||||
|
||||
// The tag's value.
|
||||
//
|
||||
// Value is a required field
|
||||
Value *string `locationName:"value" min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s Tag) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s Tag) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *Tag) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "Tag"}
|
||||
if s.Key == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Key"))
|
||||
}
|
||||
if s.Key != nil && len(*s.Key) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
|
||||
}
|
||||
if s.Value == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Value"))
|
||||
}
|
||||
if s.Value != nil && len(*s.Value) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Value", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetKey sets the Key field's value.
|
||||
func (s *Tag) SetKey(v string) *Tag {
|
||||
s.Key = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetValue sets the Value field's value.
|
||||
func (s *Tag) SetValue(v string) *Tag {
|
||||
s.Value = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type TagResourceInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ARN of the resource whose tags will be modified.
|
||||
//
|
||||
// ResourceArn is a required field
|
||||
ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
|
||||
|
||||
// The new or modified tags for the resource.
|
||||
//
|
||||
// Tags is a required field
|
||||
Tags []*Tag `locationName:"tags" min:"1" type:"list" 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) < 20 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
|
||||
}
|
||||
if s.Tags == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Tags"))
|
||||
}
|
||||
if s.Tags != nil && len(s.Tags) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
|
||||
}
|
||||
if s.Tags != nil {
|
||||
for i, v := range s.Tags {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetResourceArn sets the ResourceArn field's value.
|
||||
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
|
||||
s.ResourceArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTags sets the Tags field's value.
|
||||
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
|
||||
s.Tags = v
|
||||
return s
|
||||
}
|
||||
|
||||
type TagResourceOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
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"`
|
||||
|
||||
// The ARN of the resource whose tags will be removed.
|
||||
//
|
||||
// ResourceArn is a required field
|
||||
ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"20" type:"string" required:"true"`
|
||||
|
||||
// The keys of those tags which will be removed.
|
||||
//
|
||||
// TagKeys is a required field
|
||||
TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" 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) < 20 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
|
||||
}
|
||||
if s.TagKeys == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
|
||||
}
|
||||
if s.TagKeys != nil && len(s.TagKeys) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetResourceArn sets the ResourceArn field's value.
|
||||
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
|
||||
s.ResourceArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTagKeys sets the TagKeys field's value.
|
||||
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
|
||||
s.TagKeys = v
|
||||
return s
|
||||
}
|
||||
|
||||
type UntagResourceOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s UntagResourceOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s UntagResourceOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
type UpdateChannelInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue