github.com/aavshr/aws-sdk-go@v1.41.3/service/eventbridge/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package eventbridge
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  
     9  	"github.com/aavshr/aws-sdk-go/aws"
    10  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    11  	"github.com/aavshr/aws-sdk-go/aws/request"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol"
    13  	"github.com/aavshr/aws-sdk-go/private/protocol/jsonrpc"
    14  )
    15  
    16  const opActivateEventSource = "ActivateEventSource"
    17  
    18  // ActivateEventSourceRequest generates a "aws/request.Request" representing the
    19  // client's request for the ActivateEventSource operation. The "output" return
    20  // value will be populated with the request's response once the request completes
    21  // successfully.
    22  //
    23  // Use "Send" method on the returned Request to send the API call to the service.
    24  // the "output" return value is not valid until after Send returns without error.
    25  //
    26  // See ActivateEventSource for more information on using the ActivateEventSource
    27  // API call, and error handling.
    28  //
    29  // This method is useful when you want to inject custom logic or configuration
    30  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
    31  //
    32  //
    33  //    // Example sending a request using the ActivateEventSourceRequest method.
    34  //    req, resp := client.ActivateEventSourceRequest(params)
    35  //
    36  //    err := req.Send()
    37  //    if err == nil { // resp is now filled
    38  //        fmt.Println(resp)
    39  //    }
    40  //
    41  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ActivateEventSource
    42  func (c *EventBridge) ActivateEventSourceRequest(input *ActivateEventSourceInput) (req *request.Request, output *ActivateEventSourceOutput) {
    43  	op := &request.Operation{
    44  		Name:       opActivateEventSource,
    45  		HTTPMethod: "POST",
    46  		HTTPPath:   "/",
    47  	}
    48  
    49  	if input == nil {
    50  		input = &ActivateEventSourceInput{}
    51  	}
    52  
    53  	output = &ActivateEventSourceOutput{}
    54  	req = c.newRequest(op, input, output)
    55  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
    56  	return
    57  }
    58  
    59  // ActivateEventSource API operation for Amazon EventBridge.
    60  //
    61  // Activates a partner event source that has been deactivated. Once activated,
    62  // your matching event bus will start receiving events from the event source.
    63  //
    64  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    65  // with awserr.Error's Code and Message methods to get detailed information about
    66  // the error.
    67  //
    68  // See the AWS API reference guide for Amazon EventBridge's
    69  // API operation ActivateEventSource for usage and error information.
    70  //
    71  // Returned Error Types:
    72  //   * ResourceNotFoundException
    73  //   An entity that you specified does not exist.
    74  //
    75  //   * ConcurrentModificationException
    76  //   There is concurrent modification on a rule, target, archive, or replay.
    77  //
    78  //   * InvalidStateException
    79  //   The specified state is not a valid state for an event source.
    80  //
    81  //   * InternalException
    82  //   This exception occurs due to unexpected causes.
    83  //
    84  //   * OperationDisabledException
    85  //   The operation you are attempting is not available in this region.
    86  //
    87  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ActivateEventSource
    88  func (c *EventBridge) ActivateEventSource(input *ActivateEventSourceInput) (*ActivateEventSourceOutput, error) {
    89  	req, out := c.ActivateEventSourceRequest(input)
    90  	return out, req.Send()
    91  }
    92  
    93  // ActivateEventSourceWithContext is the same as ActivateEventSource with the addition of
    94  // the ability to pass a context and additional request options.
    95  //
    96  // See ActivateEventSource for details on how to use this API operation.
    97  //
    98  // The context must be non-nil and will be used for request cancellation. If
    99  // the context is nil a panic will occur. In the future the SDK may create
   100  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   101  // for more information on using Contexts.
   102  func (c *EventBridge) ActivateEventSourceWithContext(ctx aws.Context, input *ActivateEventSourceInput, opts ...request.Option) (*ActivateEventSourceOutput, error) {
   103  	req, out := c.ActivateEventSourceRequest(input)
   104  	req.SetContext(ctx)
   105  	req.ApplyOptions(opts...)
   106  	return out, req.Send()
   107  }
   108  
   109  const opCancelReplay = "CancelReplay"
   110  
   111  // CancelReplayRequest generates a "aws/request.Request" representing the
   112  // client's request for the CancelReplay operation. The "output" return
   113  // value will be populated with the request's response once the request completes
   114  // successfully.
   115  //
   116  // Use "Send" method on the returned Request to send the API call to the service.
   117  // the "output" return value is not valid until after Send returns without error.
   118  //
   119  // See CancelReplay for more information on using the CancelReplay
   120  // API call, and error handling.
   121  //
   122  // This method is useful when you want to inject custom logic or configuration
   123  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   124  //
   125  //
   126  //    // Example sending a request using the CancelReplayRequest method.
   127  //    req, resp := client.CancelReplayRequest(params)
   128  //
   129  //    err := req.Send()
   130  //    if err == nil { // resp is now filled
   131  //        fmt.Println(resp)
   132  //    }
   133  //
   134  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CancelReplay
   135  func (c *EventBridge) CancelReplayRequest(input *CancelReplayInput) (req *request.Request, output *CancelReplayOutput) {
   136  	op := &request.Operation{
   137  		Name:       opCancelReplay,
   138  		HTTPMethod: "POST",
   139  		HTTPPath:   "/",
   140  	}
   141  
   142  	if input == nil {
   143  		input = &CancelReplayInput{}
   144  	}
   145  
   146  	output = &CancelReplayOutput{}
   147  	req = c.newRequest(op, input, output)
   148  	return
   149  }
   150  
   151  // CancelReplay API operation for Amazon EventBridge.
   152  //
   153  // Cancels the specified replay.
   154  //
   155  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   156  // with awserr.Error's Code and Message methods to get detailed information about
   157  // the error.
   158  //
   159  // See the AWS API reference guide for Amazon EventBridge's
   160  // API operation CancelReplay for usage and error information.
   161  //
   162  // Returned Error Types:
   163  //   * ResourceNotFoundException
   164  //   An entity that you specified does not exist.
   165  //
   166  //   * ConcurrentModificationException
   167  //   There is concurrent modification on a rule, target, archive, or replay.
   168  //
   169  //   * IllegalStatusException
   170  //   An error occurred because a replay can be canceled only when the state is
   171  //   Running or Starting.
   172  //
   173  //   * InternalException
   174  //   This exception occurs due to unexpected causes.
   175  //
   176  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CancelReplay
   177  func (c *EventBridge) CancelReplay(input *CancelReplayInput) (*CancelReplayOutput, error) {
   178  	req, out := c.CancelReplayRequest(input)
   179  	return out, req.Send()
   180  }
   181  
   182  // CancelReplayWithContext is the same as CancelReplay with the addition of
   183  // the ability to pass a context and additional request options.
   184  //
   185  // See CancelReplay for details on how to use this API operation.
   186  //
   187  // The context must be non-nil and will be used for request cancellation. If
   188  // the context is nil a panic will occur. In the future the SDK may create
   189  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   190  // for more information on using Contexts.
   191  func (c *EventBridge) CancelReplayWithContext(ctx aws.Context, input *CancelReplayInput, opts ...request.Option) (*CancelReplayOutput, error) {
   192  	req, out := c.CancelReplayRequest(input)
   193  	req.SetContext(ctx)
   194  	req.ApplyOptions(opts...)
   195  	return out, req.Send()
   196  }
   197  
   198  const opCreateApiDestination = "CreateApiDestination"
   199  
   200  // CreateApiDestinationRequest generates a "aws/request.Request" representing the
   201  // client's request for the CreateApiDestination operation. The "output" return
   202  // value will be populated with the request's response once the request completes
   203  // successfully.
   204  //
   205  // Use "Send" method on the returned Request to send the API call to the service.
   206  // the "output" return value is not valid until after Send returns without error.
   207  //
   208  // See CreateApiDestination for more information on using the CreateApiDestination
   209  // API call, and error handling.
   210  //
   211  // This method is useful when you want to inject custom logic or configuration
   212  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   213  //
   214  //
   215  //    // Example sending a request using the CreateApiDestinationRequest method.
   216  //    req, resp := client.CreateApiDestinationRequest(params)
   217  //
   218  //    err := req.Send()
   219  //    if err == nil { // resp is now filled
   220  //        fmt.Println(resp)
   221  //    }
   222  //
   223  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateApiDestination
   224  func (c *EventBridge) CreateApiDestinationRequest(input *CreateApiDestinationInput) (req *request.Request, output *CreateApiDestinationOutput) {
   225  	op := &request.Operation{
   226  		Name:       opCreateApiDestination,
   227  		HTTPMethod: "POST",
   228  		HTTPPath:   "/",
   229  	}
   230  
   231  	if input == nil {
   232  		input = &CreateApiDestinationInput{}
   233  	}
   234  
   235  	output = &CreateApiDestinationOutput{}
   236  	req = c.newRequest(op, input, output)
   237  	return
   238  }
   239  
   240  // CreateApiDestination API operation for Amazon EventBridge.
   241  //
   242  // Creates an API destination, which is an HTTP invocation endpoint configured
   243  // as a target for events.
   244  //
   245  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   246  // with awserr.Error's Code and Message methods to get detailed information about
   247  // the error.
   248  //
   249  // See the AWS API reference guide for Amazon EventBridge's
   250  // API operation CreateApiDestination for usage and error information.
   251  //
   252  // Returned Error Types:
   253  //   * ResourceAlreadyExistsException
   254  //   The resource you are trying to create already exists.
   255  //
   256  //   * ResourceNotFoundException
   257  //   An entity that you specified does not exist.
   258  //
   259  //   * LimitExceededException
   260  //   The request failed because it attempted to create resource beyond the allowed
   261  //   service quota.
   262  //
   263  //   * InternalException
   264  //   This exception occurs due to unexpected causes.
   265  //
   266  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateApiDestination
   267  func (c *EventBridge) CreateApiDestination(input *CreateApiDestinationInput) (*CreateApiDestinationOutput, error) {
   268  	req, out := c.CreateApiDestinationRequest(input)
   269  	return out, req.Send()
   270  }
   271  
   272  // CreateApiDestinationWithContext is the same as CreateApiDestination with the addition of
   273  // the ability to pass a context and additional request options.
   274  //
   275  // See CreateApiDestination for details on how to use this API operation.
   276  //
   277  // The context must be non-nil and will be used for request cancellation. If
   278  // the context is nil a panic will occur. In the future the SDK may create
   279  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   280  // for more information on using Contexts.
   281  func (c *EventBridge) CreateApiDestinationWithContext(ctx aws.Context, input *CreateApiDestinationInput, opts ...request.Option) (*CreateApiDestinationOutput, error) {
   282  	req, out := c.CreateApiDestinationRequest(input)
   283  	req.SetContext(ctx)
   284  	req.ApplyOptions(opts...)
   285  	return out, req.Send()
   286  }
   287  
   288  const opCreateArchive = "CreateArchive"
   289  
   290  // CreateArchiveRequest generates a "aws/request.Request" representing the
   291  // client's request for the CreateArchive operation. The "output" return
   292  // value will be populated with the request's response once the request completes
   293  // successfully.
   294  //
   295  // Use "Send" method on the returned Request to send the API call to the service.
   296  // the "output" return value is not valid until after Send returns without error.
   297  //
   298  // See CreateArchive for more information on using the CreateArchive
   299  // API call, and error handling.
   300  //
   301  // This method is useful when you want to inject custom logic or configuration
   302  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   303  //
   304  //
   305  //    // Example sending a request using the CreateArchiveRequest method.
   306  //    req, resp := client.CreateArchiveRequest(params)
   307  //
   308  //    err := req.Send()
   309  //    if err == nil { // resp is now filled
   310  //        fmt.Println(resp)
   311  //    }
   312  //
   313  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateArchive
   314  func (c *EventBridge) CreateArchiveRequest(input *CreateArchiveInput) (req *request.Request, output *CreateArchiveOutput) {
   315  	op := &request.Operation{
   316  		Name:       opCreateArchive,
   317  		HTTPMethod: "POST",
   318  		HTTPPath:   "/",
   319  	}
   320  
   321  	if input == nil {
   322  		input = &CreateArchiveInput{}
   323  	}
   324  
   325  	output = &CreateArchiveOutput{}
   326  	req = c.newRequest(op, input, output)
   327  	return
   328  }
   329  
   330  // CreateArchive API operation for Amazon EventBridge.
   331  //
   332  // Creates an archive of events with the specified settings. When you create
   333  // an archive, incoming events might not immediately start being sent to the
   334  // archive. Allow a short period of time for changes to take effect. If you
   335  // do not specify a pattern to filter events sent to the archive, all events
   336  // are sent to the archive except replayed events. Replayed events are not sent
   337  // to an archive.
   338  //
   339  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   340  // with awserr.Error's Code and Message methods to get detailed information about
   341  // the error.
   342  //
   343  // See the AWS API reference guide for Amazon EventBridge's
   344  // API operation CreateArchive for usage and error information.
   345  //
   346  // Returned Error Types:
   347  //   * ConcurrentModificationException
   348  //   There is concurrent modification on a rule, target, archive, or replay.
   349  //
   350  //   * ResourceAlreadyExistsException
   351  //   The resource you are trying to create already exists.
   352  //
   353  //   * ResourceNotFoundException
   354  //   An entity that you specified does not exist.
   355  //
   356  //   * InternalException
   357  //   This exception occurs due to unexpected causes.
   358  //
   359  //   * LimitExceededException
   360  //   The request failed because it attempted to create resource beyond the allowed
   361  //   service quota.
   362  //
   363  //   * InvalidEventPatternException
   364  //   The event pattern is not valid.
   365  //
   366  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateArchive
   367  func (c *EventBridge) CreateArchive(input *CreateArchiveInput) (*CreateArchiveOutput, error) {
   368  	req, out := c.CreateArchiveRequest(input)
   369  	return out, req.Send()
   370  }
   371  
   372  // CreateArchiveWithContext is the same as CreateArchive with the addition of
   373  // the ability to pass a context and additional request options.
   374  //
   375  // See CreateArchive for details on how to use this API operation.
   376  //
   377  // The context must be non-nil and will be used for request cancellation. If
   378  // the context is nil a panic will occur. In the future the SDK may create
   379  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   380  // for more information on using Contexts.
   381  func (c *EventBridge) CreateArchiveWithContext(ctx aws.Context, input *CreateArchiveInput, opts ...request.Option) (*CreateArchiveOutput, error) {
   382  	req, out := c.CreateArchiveRequest(input)
   383  	req.SetContext(ctx)
   384  	req.ApplyOptions(opts...)
   385  	return out, req.Send()
   386  }
   387  
   388  const opCreateConnection = "CreateConnection"
   389  
   390  // CreateConnectionRequest generates a "aws/request.Request" representing the
   391  // client's request for the CreateConnection operation. The "output" return
   392  // value will be populated with the request's response once the request completes
   393  // successfully.
   394  //
   395  // Use "Send" method on the returned Request to send the API call to the service.
   396  // the "output" return value is not valid until after Send returns without error.
   397  //
   398  // See CreateConnection for more information on using the CreateConnection
   399  // API call, and error handling.
   400  //
   401  // This method is useful when you want to inject custom logic or configuration
   402  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   403  //
   404  //
   405  //    // Example sending a request using the CreateConnectionRequest method.
   406  //    req, resp := client.CreateConnectionRequest(params)
   407  //
   408  //    err := req.Send()
   409  //    if err == nil { // resp is now filled
   410  //        fmt.Println(resp)
   411  //    }
   412  //
   413  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateConnection
   414  func (c *EventBridge) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *CreateConnectionOutput) {
   415  	op := &request.Operation{
   416  		Name:       opCreateConnection,
   417  		HTTPMethod: "POST",
   418  		HTTPPath:   "/",
   419  	}
   420  
   421  	if input == nil {
   422  		input = &CreateConnectionInput{}
   423  	}
   424  
   425  	output = &CreateConnectionOutput{}
   426  	req = c.newRequest(op, input, output)
   427  	return
   428  }
   429  
   430  // CreateConnection API operation for Amazon EventBridge.
   431  //
   432  // Creates a connection. A connection defines the authorization type and credentials
   433  // to use for authorization with an API destination HTTP endpoint.
   434  //
   435  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   436  // with awserr.Error's Code and Message methods to get detailed information about
   437  // the error.
   438  //
   439  // See the AWS API reference guide for Amazon EventBridge's
   440  // API operation CreateConnection for usage and error information.
   441  //
   442  // Returned Error Types:
   443  //   * ResourceAlreadyExistsException
   444  //   The resource you are trying to create already exists.
   445  //
   446  //   * LimitExceededException
   447  //   The request failed because it attempted to create resource beyond the allowed
   448  //   service quota.
   449  //
   450  //   * InternalException
   451  //   This exception occurs due to unexpected causes.
   452  //
   453  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateConnection
   454  func (c *EventBridge) CreateConnection(input *CreateConnectionInput) (*CreateConnectionOutput, error) {
   455  	req, out := c.CreateConnectionRequest(input)
   456  	return out, req.Send()
   457  }
   458  
   459  // CreateConnectionWithContext is the same as CreateConnection with the addition of
   460  // the ability to pass a context and additional request options.
   461  //
   462  // See CreateConnection for details on how to use this API operation.
   463  //
   464  // The context must be non-nil and will be used for request cancellation. If
   465  // the context is nil a panic will occur. In the future the SDK may create
   466  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   467  // for more information on using Contexts.
   468  func (c *EventBridge) CreateConnectionWithContext(ctx aws.Context, input *CreateConnectionInput, opts ...request.Option) (*CreateConnectionOutput, error) {
   469  	req, out := c.CreateConnectionRequest(input)
   470  	req.SetContext(ctx)
   471  	req.ApplyOptions(opts...)
   472  	return out, req.Send()
   473  }
   474  
   475  const opCreateEventBus = "CreateEventBus"
   476  
   477  // CreateEventBusRequest generates a "aws/request.Request" representing the
   478  // client's request for the CreateEventBus operation. The "output" return
   479  // value will be populated with the request's response once the request completes
   480  // successfully.
   481  //
   482  // Use "Send" method on the returned Request to send the API call to the service.
   483  // the "output" return value is not valid until after Send returns without error.
   484  //
   485  // See CreateEventBus for more information on using the CreateEventBus
   486  // API call, and error handling.
   487  //
   488  // This method is useful when you want to inject custom logic or configuration
   489  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   490  //
   491  //
   492  //    // Example sending a request using the CreateEventBusRequest method.
   493  //    req, resp := client.CreateEventBusRequest(params)
   494  //
   495  //    err := req.Send()
   496  //    if err == nil { // resp is now filled
   497  //        fmt.Println(resp)
   498  //    }
   499  //
   500  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateEventBus
   501  func (c *EventBridge) CreateEventBusRequest(input *CreateEventBusInput) (req *request.Request, output *CreateEventBusOutput) {
   502  	op := &request.Operation{
   503  		Name:       opCreateEventBus,
   504  		HTTPMethod: "POST",
   505  		HTTPPath:   "/",
   506  	}
   507  
   508  	if input == nil {
   509  		input = &CreateEventBusInput{}
   510  	}
   511  
   512  	output = &CreateEventBusOutput{}
   513  	req = c.newRequest(op, input, output)
   514  	return
   515  }
   516  
   517  // CreateEventBus API operation for Amazon EventBridge.
   518  //
   519  // Creates a new event bus within your account. This can be a custom event bus
   520  // which you can use to receive events from your custom applications and services,
   521  // or it can be a partner event bus which can be matched to a partner event
   522  // source.
   523  //
   524  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   525  // with awserr.Error's Code and Message methods to get detailed information about
   526  // the error.
   527  //
   528  // See the AWS API reference guide for Amazon EventBridge's
   529  // API operation CreateEventBus for usage and error information.
   530  //
   531  // Returned Error Types:
   532  //   * ResourceAlreadyExistsException
   533  //   The resource you are trying to create already exists.
   534  //
   535  //   * ResourceNotFoundException
   536  //   An entity that you specified does not exist.
   537  //
   538  //   * InvalidStateException
   539  //   The specified state is not a valid state for an event source.
   540  //
   541  //   * InternalException
   542  //   This exception occurs due to unexpected causes.
   543  //
   544  //   * ConcurrentModificationException
   545  //   There is concurrent modification on a rule, target, archive, or replay.
   546  //
   547  //   * LimitExceededException
   548  //   The request failed because it attempted to create resource beyond the allowed
   549  //   service quota.
   550  //
   551  //   * OperationDisabledException
   552  //   The operation you are attempting is not available in this region.
   553  //
   554  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateEventBus
   555  func (c *EventBridge) CreateEventBus(input *CreateEventBusInput) (*CreateEventBusOutput, error) {
   556  	req, out := c.CreateEventBusRequest(input)
   557  	return out, req.Send()
   558  }
   559  
   560  // CreateEventBusWithContext is the same as CreateEventBus with the addition of
   561  // the ability to pass a context and additional request options.
   562  //
   563  // See CreateEventBus for details on how to use this API operation.
   564  //
   565  // The context must be non-nil and will be used for request cancellation. If
   566  // the context is nil a panic will occur. In the future the SDK may create
   567  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   568  // for more information on using Contexts.
   569  func (c *EventBridge) CreateEventBusWithContext(ctx aws.Context, input *CreateEventBusInput, opts ...request.Option) (*CreateEventBusOutput, error) {
   570  	req, out := c.CreateEventBusRequest(input)
   571  	req.SetContext(ctx)
   572  	req.ApplyOptions(opts...)
   573  	return out, req.Send()
   574  }
   575  
   576  const opCreatePartnerEventSource = "CreatePartnerEventSource"
   577  
   578  // CreatePartnerEventSourceRequest generates a "aws/request.Request" representing the
   579  // client's request for the CreatePartnerEventSource operation. The "output" return
   580  // value will be populated with the request's response once the request completes
   581  // successfully.
   582  //
   583  // Use "Send" method on the returned Request to send the API call to the service.
   584  // the "output" return value is not valid until after Send returns without error.
   585  //
   586  // See CreatePartnerEventSource for more information on using the CreatePartnerEventSource
   587  // API call, and error handling.
   588  //
   589  // This method is useful when you want to inject custom logic or configuration
   590  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   591  //
   592  //
   593  //    // Example sending a request using the CreatePartnerEventSourceRequest method.
   594  //    req, resp := client.CreatePartnerEventSourceRequest(params)
   595  //
   596  //    err := req.Send()
   597  //    if err == nil { // resp is now filled
   598  //        fmt.Println(resp)
   599  //    }
   600  //
   601  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreatePartnerEventSource
   602  func (c *EventBridge) CreatePartnerEventSourceRequest(input *CreatePartnerEventSourceInput) (req *request.Request, output *CreatePartnerEventSourceOutput) {
   603  	op := &request.Operation{
   604  		Name:       opCreatePartnerEventSource,
   605  		HTTPMethod: "POST",
   606  		HTTPPath:   "/",
   607  	}
   608  
   609  	if input == nil {
   610  		input = &CreatePartnerEventSourceInput{}
   611  	}
   612  
   613  	output = &CreatePartnerEventSourceOutput{}
   614  	req = c.newRequest(op, input, output)
   615  	return
   616  }
   617  
   618  // CreatePartnerEventSource API operation for Amazon EventBridge.
   619  //
   620  // Called by an SaaS partner to create a partner event source. This operation
   621  // is not used by Amazon Web Services customers.
   622  //
   623  // Each partner event source can be used by one Amazon Web Services account
   624  // to create a matching partner event bus in that Amazon Web Services account.
   625  // A SaaS partner must create one partner event source for each Amazon Web Services
   626  // account that wants to receive those event types.
   627  //
   628  // A partner event source creates events based on resources within the SaaS
   629  // partner's service or application.
   630  //
   631  // An Amazon Web Services account that creates a partner event bus that matches
   632  // the partner event source can use that event bus to receive events from the
   633  // partner, and then process them using Amazon Web Services Events rules and
   634  // targets.
   635  //
   636  // Partner event source names follow this format:
   637  //
   638  // partner_name/event_namespace/event_name
   639  //
   640  // partner_name is determined during partner registration and identifies the
   641  // partner to Amazon Web Services customers. event_namespace is determined by
   642  // the partner and is a way for the partner to categorize their events. event_name
   643  // is determined by the partner, and should uniquely identify an event-generating
   644  // resource within the partner system. The combination of event_namespace and
   645  // event_name should help Amazon Web Services customers decide whether to create
   646  // an event bus to receive these events.
   647  //
   648  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   649  // with awserr.Error's Code and Message methods to get detailed information about
   650  // the error.
   651  //
   652  // See the AWS API reference guide for Amazon EventBridge's
   653  // API operation CreatePartnerEventSource for usage and error information.
   654  //
   655  // Returned Error Types:
   656  //   * ResourceAlreadyExistsException
   657  //   The resource you are trying to create already exists.
   658  //
   659  //   * InternalException
   660  //   This exception occurs due to unexpected causes.
   661  //
   662  //   * ConcurrentModificationException
   663  //   There is concurrent modification on a rule, target, archive, or replay.
   664  //
   665  //   * LimitExceededException
   666  //   The request failed because it attempted to create resource beyond the allowed
   667  //   service quota.
   668  //
   669  //   * OperationDisabledException
   670  //   The operation you are attempting is not available in this region.
   671  //
   672  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreatePartnerEventSource
   673  func (c *EventBridge) CreatePartnerEventSource(input *CreatePartnerEventSourceInput) (*CreatePartnerEventSourceOutput, error) {
   674  	req, out := c.CreatePartnerEventSourceRequest(input)
   675  	return out, req.Send()
   676  }
   677  
   678  // CreatePartnerEventSourceWithContext is the same as CreatePartnerEventSource with the addition of
   679  // the ability to pass a context and additional request options.
   680  //
   681  // See CreatePartnerEventSource for details on how to use this API operation.
   682  //
   683  // The context must be non-nil and will be used for request cancellation. If
   684  // the context is nil a panic will occur. In the future the SDK may create
   685  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   686  // for more information on using Contexts.
   687  func (c *EventBridge) CreatePartnerEventSourceWithContext(ctx aws.Context, input *CreatePartnerEventSourceInput, opts ...request.Option) (*CreatePartnerEventSourceOutput, error) {
   688  	req, out := c.CreatePartnerEventSourceRequest(input)
   689  	req.SetContext(ctx)
   690  	req.ApplyOptions(opts...)
   691  	return out, req.Send()
   692  }
   693  
   694  const opDeactivateEventSource = "DeactivateEventSource"
   695  
   696  // DeactivateEventSourceRequest generates a "aws/request.Request" representing the
   697  // client's request for the DeactivateEventSource operation. The "output" return
   698  // value will be populated with the request's response once the request completes
   699  // successfully.
   700  //
   701  // Use "Send" method on the returned Request to send the API call to the service.
   702  // the "output" return value is not valid until after Send returns without error.
   703  //
   704  // See DeactivateEventSource for more information on using the DeactivateEventSource
   705  // API call, and error handling.
   706  //
   707  // This method is useful when you want to inject custom logic or configuration
   708  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   709  //
   710  //
   711  //    // Example sending a request using the DeactivateEventSourceRequest method.
   712  //    req, resp := client.DeactivateEventSourceRequest(params)
   713  //
   714  //    err := req.Send()
   715  //    if err == nil { // resp is now filled
   716  //        fmt.Println(resp)
   717  //    }
   718  //
   719  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeactivateEventSource
   720  func (c *EventBridge) DeactivateEventSourceRequest(input *DeactivateEventSourceInput) (req *request.Request, output *DeactivateEventSourceOutput) {
   721  	op := &request.Operation{
   722  		Name:       opDeactivateEventSource,
   723  		HTTPMethod: "POST",
   724  		HTTPPath:   "/",
   725  	}
   726  
   727  	if input == nil {
   728  		input = &DeactivateEventSourceInput{}
   729  	}
   730  
   731  	output = &DeactivateEventSourceOutput{}
   732  	req = c.newRequest(op, input, output)
   733  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   734  	return
   735  }
   736  
   737  // DeactivateEventSource API operation for Amazon EventBridge.
   738  //
   739  // You can use this operation to temporarily stop receiving events from the
   740  // specified partner event source. The matching event bus is not deleted.
   741  //
   742  // When you deactivate a partner event source, the source goes into PENDING
   743  // state. If it remains in PENDING state for more than two weeks, it is deleted.
   744  //
   745  // To activate a deactivated partner event source, use ActivateEventSource (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html).
   746  //
   747  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   748  // with awserr.Error's Code and Message methods to get detailed information about
   749  // the error.
   750  //
   751  // See the AWS API reference guide for Amazon EventBridge's
   752  // API operation DeactivateEventSource for usage and error information.
   753  //
   754  // Returned Error Types:
   755  //   * ResourceNotFoundException
   756  //   An entity that you specified does not exist.
   757  //
   758  //   * ConcurrentModificationException
   759  //   There is concurrent modification on a rule, target, archive, or replay.
   760  //
   761  //   * InvalidStateException
   762  //   The specified state is not a valid state for an event source.
   763  //
   764  //   * InternalException
   765  //   This exception occurs due to unexpected causes.
   766  //
   767  //   * OperationDisabledException
   768  //   The operation you are attempting is not available in this region.
   769  //
   770  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeactivateEventSource
   771  func (c *EventBridge) DeactivateEventSource(input *DeactivateEventSourceInput) (*DeactivateEventSourceOutput, error) {
   772  	req, out := c.DeactivateEventSourceRequest(input)
   773  	return out, req.Send()
   774  }
   775  
   776  // DeactivateEventSourceWithContext is the same as DeactivateEventSource with the addition of
   777  // the ability to pass a context and additional request options.
   778  //
   779  // See DeactivateEventSource for details on how to use this API operation.
   780  //
   781  // The context must be non-nil and will be used for request cancellation. If
   782  // the context is nil a panic will occur. In the future the SDK may create
   783  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   784  // for more information on using Contexts.
   785  func (c *EventBridge) DeactivateEventSourceWithContext(ctx aws.Context, input *DeactivateEventSourceInput, opts ...request.Option) (*DeactivateEventSourceOutput, error) {
   786  	req, out := c.DeactivateEventSourceRequest(input)
   787  	req.SetContext(ctx)
   788  	req.ApplyOptions(opts...)
   789  	return out, req.Send()
   790  }
   791  
   792  const opDeauthorizeConnection = "DeauthorizeConnection"
   793  
   794  // DeauthorizeConnectionRequest generates a "aws/request.Request" representing the
   795  // client's request for the DeauthorizeConnection operation. The "output" return
   796  // value will be populated with the request's response once the request completes
   797  // successfully.
   798  //
   799  // Use "Send" method on the returned Request to send the API call to the service.
   800  // the "output" return value is not valid until after Send returns without error.
   801  //
   802  // See DeauthorizeConnection for more information on using the DeauthorizeConnection
   803  // API call, and error handling.
   804  //
   805  // This method is useful when you want to inject custom logic or configuration
   806  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   807  //
   808  //
   809  //    // Example sending a request using the DeauthorizeConnectionRequest method.
   810  //    req, resp := client.DeauthorizeConnectionRequest(params)
   811  //
   812  //    err := req.Send()
   813  //    if err == nil { // resp is now filled
   814  //        fmt.Println(resp)
   815  //    }
   816  //
   817  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeauthorizeConnection
   818  func (c *EventBridge) DeauthorizeConnectionRequest(input *DeauthorizeConnectionInput) (req *request.Request, output *DeauthorizeConnectionOutput) {
   819  	op := &request.Operation{
   820  		Name:       opDeauthorizeConnection,
   821  		HTTPMethod: "POST",
   822  		HTTPPath:   "/",
   823  	}
   824  
   825  	if input == nil {
   826  		input = &DeauthorizeConnectionInput{}
   827  	}
   828  
   829  	output = &DeauthorizeConnectionOutput{}
   830  	req = c.newRequest(op, input, output)
   831  	return
   832  }
   833  
   834  // DeauthorizeConnection API operation for Amazon EventBridge.
   835  //
   836  // Removes all authorization parameters from the connection. This lets you remove
   837  // the secret from the connection so you can reuse it without having to create
   838  // a new connection.
   839  //
   840  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   841  // with awserr.Error's Code and Message methods to get detailed information about
   842  // the error.
   843  //
   844  // See the AWS API reference guide for Amazon EventBridge's
   845  // API operation DeauthorizeConnection for usage and error information.
   846  //
   847  // Returned Error Types:
   848  //   * ConcurrentModificationException
   849  //   There is concurrent modification on a rule, target, archive, or replay.
   850  //
   851  //   * ResourceNotFoundException
   852  //   An entity that you specified does not exist.
   853  //
   854  //   * InternalException
   855  //   This exception occurs due to unexpected causes.
   856  //
   857  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeauthorizeConnection
   858  func (c *EventBridge) DeauthorizeConnection(input *DeauthorizeConnectionInput) (*DeauthorizeConnectionOutput, error) {
   859  	req, out := c.DeauthorizeConnectionRequest(input)
   860  	return out, req.Send()
   861  }
   862  
   863  // DeauthorizeConnectionWithContext is the same as DeauthorizeConnection with the addition of
   864  // the ability to pass a context and additional request options.
   865  //
   866  // See DeauthorizeConnection for details on how to use this API operation.
   867  //
   868  // The context must be non-nil and will be used for request cancellation. If
   869  // the context is nil a panic will occur. In the future the SDK may create
   870  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   871  // for more information on using Contexts.
   872  func (c *EventBridge) DeauthorizeConnectionWithContext(ctx aws.Context, input *DeauthorizeConnectionInput, opts ...request.Option) (*DeauthorizeConnectionOutput, error) {
   873  	req, out := c.DeauthorizeConnectionRequest(input)
   874  	req.SetContext(ctx)
   875  	req.ApplyOptions(opts...)
   876  	return out, req.Send()
   877  }
   878  
   879  const opDeleteApiDestination = "DeleteApiDestination"
   880  
   881  // DeleteApiDestinationRequest generates a "aws/request.Request" representing the
   882  // client's request for the DeleteApiDestination operation. The "output" return
   883  // value will be populated with the request's response once the request completes
   884  // successfully.
   885  //
   886  // Use "Send" method on the returned Request to send the API call to the service.
   887  // the "output" return value is not valid until after Send returns without error.
   888  //
   889  // See DeleteApiDestination for more information on using the DeleteApiDestination
   890  // API call, and error handling.
   891  //
   892  // This method is useful when you want to inject custom logic or configuration
   893  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   894  //
   895  //
   896  //    // Example sending a request using the DeleteApiDestinationRequest method.
   897  //    req, resp := client.DeleteApiDestinationRequest(params)
   898  //
   899  //    err := req.Send()
   900  //    if err == nil { // resp is now filled
   901  //        fmt.Println(resp)
   902  //    }
   903  //
   904  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteApiDestination
   905  func (c *EventBridge) DeleteApiDestinationRequest(input *DeleteApiDestinationInput) (req *request.Request, output *DeleteApiDestinationOutput) {
   906  	op := &request.Operation{
   907  		Name:       opDeleteApiDestination,
   908  		HTTPMethod: "POST",
   909  		HTTPPath:   "/",
   910  	}
   911  
   912  	if input == nil {
   913  		input = &DeleteApiDestinationInput{}
   914  	}
   915  
   916  	output = &DeleteApiDestinationOutput{}
   917  	req = c.newRequest(op, input, output)
   918  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   919  	return
   920  }
   921  
   922  // DeleteApiDestination API operation for Amazon EventBridge.
   923  //
   924  // Deletes the specified API destination.
   925  //
   926  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   927  // with awserr.Error's Code and Message methods to get detailed information about
   928  // the error.
   929  //
   930  // See the AWS API reference guide for Amazon EventBridge's
   931  // API operation DeleteApiDestination for usage and error information.
   932  //
   933  // Returned Error Types:
   934  //   * ConcurrentModificationException
   935  //   There is concurrent modification on a rule, target, archive, or replay.
   936  //
   937  //   * ResourceNotFoundException
   938  //   An entity that you specified does not exist.
   939  //
   940  //   * InternalException
   941  //   This exception occurs due to unexpected causes.
   942  //
   943  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteApiDestination
   944  func (c *EventBridge) DeleteApiDestination(input *DeleteApiDestinationInput) (*DeleteApiDestinationOutput, error) {
   945  	req, out := c.DeleteApiDestinationRequest(input)
   946  	return out, req.Send()
   947  }
   948  
   949  // DeleteApiDestinationWithContext is the same as DeleteApiDestination with the addition of
   950  // the ability to pass a context and additional request options.
   951  //
   952  // See DeleteApiDestination for details on how to use this API operation.
   953  //
   954  // The context must be non-nil and will be used for request cancellation. If
   955  // the context is nil a panic will occur. In the future the SDK may create
   956  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   957  // for more information on using Contexts.
   958  func (c *EventBridge) DeleteApiDestinationWithContext(ctx aws.Context, input *DeleteApiDestinationInput, opts ...request.Option) (*DeleteApiDestinationOutput, error) {
   959  	req, out := c.DeleteApiDestinationRequest(input)
   960  	req.SetContext(ctx)
   961  	req.ApplyOptions(opts...)
   962  	return out, req.Send()
   963  }
   964  
   965  const opDeleteArchive = "DeleteArchive"
   966  
   967  // DeleteArchiveRequest generates a "aws/request.Request" representing the
   968  // client's request for the DeleteArchive operation. The "output" return
   969  // value will be populated with the request's response once the request completes
   970  // successfully.
   971  //
   972  // Use "Send" method on the returned Request to send the API call to the service.
   973  // the "output" return value is not valid until after Send returns without error.
   974  //
   975  // See DeleteArchive for more information on using the DeleteArchive
   976  // API call, and error handling.
   977  //
   978  // This method is useful when you want to inject custom logic or configuration
   979  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   980  //
   981  //
   982  //    // Example sending a request using the DeleteArchiveRequest method.
   983  //    req, resp := client.DeleteArchiveRequest(params)
   984  //
   985  //    err := req.Send()
   986  //    if err == nil { // resp is now filled
   987  //        fmt.Println(resp)
   988  //    }
   989  //
   990  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteArchive
   991  func (c *EventBridge) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request.Request, output *DeleteArchiveOutput) {
   992  	op := &request.Operation{
   993  		Name:       opDeleteArchive,
   994  		HTTPMethod: "POST",
   995  		HTTPPath:   "/",
   996  	}
   997  
   998  	if input == nil {
   999  		input = &DeleteArchiveInput{}
  1000  	}
  1001  
  1002  	output = &DeleteArchiveOutput{}
  1003  	req = c.newRequest(op, input, output)
  1004  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1005  	return
  1006  }
  1007  
  1008  // DeleteArchive API operation for Amazon EventBridge.
  1009  //
  1010  // Deletes the specified archive.
  1011  //
  1012  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1013  // with awserr.Error's Code and Message methods to get detailed information about
  1014  // the error.
  1015  //
  1016  // See the AWS API reference guide for Amazon EventBridge's
  1017  // API operation DeleteArchive for usage and error information.
  1018  //
  1019  // Returned Error Types:
  1020  //   * ConcurrentModificationException
  1021  //   There is concurrent modification on a rule, target, archive, or replay.
  1022  //
  1023  //   * ResourceNotFoundException
  1024  //   An entity that you specified does not exist.
  1025  //
  1026  //   * InternalException
  1027  //   This exception occurs due to unexpected causes.
  1028  //
  1029  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteArchive
  1030  func (c *EventBridge) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput, error) {
  1031  	req, out := c.DeleteArchiveRequest(input)
  1032  	return out, req.Send()
  1033  }
  1034  
  1035  // DeleteArchiveWithContext is the same as DeleteArchive with the addition of
  1036  // the ability to pass a context and additional request options.
  1037  //
  1038  // See DeleteArchive for details on how to use this API operation.
  1039  //
  1040  // The context must be non-nil and will be used for request cancellation. If
  1041  // the context is nil a panic will occur. In the future the SDK may create
  1042  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1043  // for more information on using Contexts.
  1044  func (c *EventBridge) DeleteArchiveWithContext(ctx aws.Context, input *DeleteArchiveInput, opts ...request.Option) (*DeleteArchiveOutput, error) {
  1045  	req, out := c.DeleteArchiveRequest(input)
  1046  	req.SetContext(ctx)
  1047  	req.ApplyOptions(opts...)
  1048  	return out, req.Send()
  1049  }
  1050  
  1051  const opDeleteConnection = "DeleteConnection"
  1052  
  1053  // DeleteConnectionRequest generates a "aws/request.Request" representing the
  1054  // client's request for the DeleteConnection operation. The "output" return
  1055  // value will be populated with the request's response once the request completes
  1056  // successfully.
  1057  //
  1058  // Use "Send" method on the returned Request to send the API call to the service.
  1059  // the "output" return value is not valid until after Send returns without error.
  1060  //
  1061  // See DeleteConnection for more information on using the DeleteConnection
  1062  // API call, and error handling.
  1063  //
  1064  // This method is useful when you want to inject custom logic or configuration
  1065  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1066  //
  1067  //
  1068  //    // Example sending a request using the DeleteConnectionRequest method.
  1069  //    req, resp := client.DeleteConnectionRequest(params)
  1070  //
  1071  //    err := req.Send()
  1072  //    if err == nil { // resp is now filled
  1073  //        fmt.Println(resp)
  1074  //    }
  1075  //
  1076  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteConnection
  1077  func (c *EventBridge) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput) {
  1078  	op := &request.Operation{
  1079  		Name:       opDeleteConnection,
  1080  		HTTPMethod: "POST",
  1081  		HTTPPath:   "/",
  1082  	}
  1083  
  1084  	if input == nil {
  1085  		input = &DeleteConnectionInput{}
  1086  	}
  1087  
  1088  	output = &DeleteConnectionOutput{}
  1089  	req = c.newRequest(op, input, output)
  1090  	return
  1091  }
  1092  
  1093  // DeleteConnection API operation for Amazon EventBridge.
  1094  //
  1095  // Deletes a connection.
  1096  //
  1097  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1098  // with awserr.Error's Code and Message methods to get detailed information about
  1099  // the error.
  1100  //
  1101  // See the AWS API reference guide for Amazon EventBridge's
  1102  // API operation DeleteConnection for usage and error information.
  1103  //
  1104  // Returned Error Types:
  1105  //   * ConcurrentModificationException
  1106  //   There is concurrent modification on a rule, target, archive, or replay.
  1107  //
  1108  //   * ResourceNotFoundException
  1109  //   An entity that you specified does not exist.
  1110  //
  1111  //   * InternalException
  1112  //   This exception occurs due to unexpected causes.
  1113  //
  1114  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteConnection
  1115  func (c *EventBridge) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error) {
  1116  	req, out := c.DeleteConnectionRequest(input)
  1117  	return out, req.Send()
  1118  }
  1119  
  1120  // DeleteConnectionWithContext is the same as DeleteConnection with the addition of
  1121  // the ability to pass a context and additional request options.
  1122  //
  1123  // See DeleteConnection for details on how to use this API operation.
  1124  //
  1125  // The context must be non-nil and will be used for request cancellation. If
  1126  // the context is nil a panic will occur. In the future the SDK may create
  1127  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1128  // for more information on using Contexts.
  1129  func (c *EventBridge) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error) {
  1130  	req, out := c.DeleteConnectionRequest(input)
  1131  	req.SetContext(ctx)
  1132  	req.ApplyOptions(opts...)
  1133  	return out, req.Send()
  1134  }
  1135  
  1136  const opDeleteEventBus = "DeleteEventBus"
  1137  
  1138  // DeleteEventBusRequest generates a "aws/request.Request" representing the
  1139  // client's request for the DeleteEventBus operation. The "output" return
  1140  // value will be populated with the request's response once the request completes
  1141  // successfully.
  1142  //
  1143  // Use "Send" method on the returned Request to send the API call to the service.
  1144  // the "output" return value is not valid until after Send returns without error.
  1145  //
  1146  // See DeleteEventBus for more information on using the DeleteEventBus
  1147  // API call, and error handling.
  1148  //
  1149  // This method is useful when you want to inject custom logic or configuration
  1150  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1151  //
  1152  //
  1153  //    // Example sending a request using the DeleteEventBusRequest method.
  1154  //    req, resp := client.DeleteEventBusRequest(params)
  1155  //
  1156  //    err := req.Send()
  1157  //    if err == nil { // resp is now filled
  1158  //        fmt.Println(resp)
  1159  //    }
  1160  //
  1161  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteEventBus
  1162  func (c *EventBridge) DeleteEventBusRequest(input *DeleteEventBusInput) (req *request.Request, output *DeleteEventBusOutput) {
  1163  	op := &request.Operation{
  1164  		Name:       opDeleteEventBus,
  1165  		HTTPMethod: "POST",
  1166  		HTTPPath:   "/",
  1167  	}
  1168  
  1169  	if input == nil {
  1170  		input = &DeleteEventBusInput{}
  1171  	}
  1172  
  1173  	output = &DeleteEventBusOutput{}
  1174  	req = c.newRequest(op, input, output)
  1175  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1176  	return
  1177  }
  1178  
  1179  // DeleteEventBus API operation for Amazon EventBridge.
  1180  //
  1181  // Deletes the specified custom event bus or partner event bus. All rules associated
  1182  // with this event bus need to be deleted. You can't delete your account's default
  1183  // event bus.
  1184  //
  1185  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1186  // with awserr.Error's Code and Message methods to get detailed information about
  1187  // the error.
  1188  //
  1189  // See the AWS API reference guide for Amazon EventBridge's
  1190  // API operation DeleteEventBus for usage and error information.
  1191  //
  1192  // Returned Error Types:
  1193  //   * InternalException
  1194  //   This exception occurs due to unexpected causes.
  1195  //
  1196  //   * ConcurrentModificationException
  1197  //   There is concurrent modification on a rule, target, archive, or replay.
  1198  //
  1199  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteEventBus
  1200  func (c *EventBridge) DeleteEventBus(input *DeleteEventBusInput) (*DeleteEventBusOutput, error) {
  1201  	req, out := c.DeleteEventBusRequest(input)
  1202  	return out, req.Send()
  1203  }
  1204  
  1205  // DeleteEventBusWithContext is the same as DeleteEventBus with the addition of
  1206  // the ability to pass a context and additional request options.
  1207  //
  1208  // See DeleteEventBus for details on how to use this API operation.
  1209  //
  1210  // The context must be non-nil and will be used for request cancellation. If
  1211  // the context is nil a panic will occur. In the future the SDK may create
  1212  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1213  // for more information on using Contexts.
  1214  func (c *EventBridge) DeleteEventBusWithContext(ctx aws.Context, input *DeleteEventBusInput, opts ...request.Option) (*DeleteEventBusOutput, error) {
  1215  	req, out := c.DeleteEventBusRequest(input)
  1216  	req.SetContext(ctx)
  1217  	req.ApplyOptions(opts...)
  1218  	return out, req.Send()
  1219  }
  1220  
  1221  const opDeletePartnerEventSource = "DeletePartnerEventSource"
  1222  
  1223  // DeletePartnerEventSourceRequest generates a "aws/request.Request" representing the
  1224  // client's request for the DeletePartnerEventSource operation. The "output" return
  1225  // value will be populated with the request's response once the request completes
  1226  // successfully.
  1227  //
  1228  // Use "Send" method on the returned Request to send the API call to the service.
  1229  // the "output" return value is not valid until after Send returns without error.
  1230  //
  1231  // See DeletePartnerEventSource for more information on using the DeletePartnerEventSource
  1232  // API call, and error handling.
  1233  //
  1234  // This method is useful when you want to inject custom logic or configuration
  1235  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1236  //
  1237  //
  1238  //    // Example sending a request using the DeletePartnerEventSourceRequest method.
  1239  //    req, resp := client.DeletePartnerEventSourceRequest(params)
  1240  //
  1241  //    err := req.Send()
  1242  //    if err == nil { // resp is now filled
  1243  //        fmt.Println(resp)
  1244  //    }
  1245  //
  1246  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeletePartnerEventSource
  1247  func (c *EventBridge) DeletePartnerEventSourceRequest(input *DeletePartnerEventSourceInput) (req *request.Request, output *DeletePartnerEventSourceOutput) {
  1248  	op := &request.Operation{
  1249  		Name:       opDeletePartnerEventSource,
  1250  		HTTPMethod: "POST",
  1251  		HTTPPath:   "/",
  1252  	}
  1253  
  1254  	if input == nil {
  1255  		input = &DeletePartnerEventSourceInput{}
  1256  	}
  1257  
  1258  	output = &DeletePartnerEventSourceOutput{}
  1259  	req = c.newRequest(op, input, output)
  1260  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1261  	return
  1262  }
  1263  
  1264  // DeletePartnerEventSource API operation for Amazon EventBridge.
  1265  //
  1266  // This operation is used by SaaS partners to delete a partner event source.
  1267  // This operation is not used by Amazon Web Services customers.
  1268  //
  1269  // When you delete an event source, the status of the corresponding partner
  1270  // event bus in the Amazon Web Services customer account becomes DELETED.
  1271  //
  1272  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1273  // with awserr.Error's Code and Message methods to get detailed information about
  1274  // the error.
  1275  //
  1276  // See the AWS API reference guide for Amazon EventBridge's
  1277  // API operation DeletePartnerEventSource for usage and error information.
  1278  //
  1279  // Returned Error Types:
  1280  //   * InternalException
  1281  //   This exception occurs due to unexpected causes.
  1282  //
  1283  //   * ConcurrentModificationException
  1284  //   There is concurrent modification on a rule, target, archive, or replay.
  1285  //
  1286  //   * OperationDisabledException
  1287  //   The operation you are attempting is not available in this region.
  1288  //
  1289  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeletePartnerEventSource
  1290  func (c *EventBridge) DeletePartnerEventSource(input *DeletePartnerEventSourceInput) (*DeletePartnerEventSourceOutput, error) {
  1291  	req, out := c.DeletePartnerEventSourceRequest(input)
  1292  	return out, req.Send()
  1293  }
  1294  
  1295  // DeletePartnerEventSourceWithContext is the same as DeletePartnerEventSource with the addition of
  1296  // the ability to pass a context and additional request options.
  1297  //
  1298  // See DeletePartnerEventSource for details on how to use this API operation.
  1299  //
  1300  // The context must be non-nil and will be used for request cancellation. If
  1301  // the context is nil a panic will occur. In the future the SDK may create
  1302  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1303  // for more information on using Contexts.
  1304  func (c *EventBridge) DeletePartnerEventSourceWithContext(ctx aws.Context, input *DeletePartnerEventSourceInput, opts ...request.Option) (*DeletePartnerEventSourceOutput, error) {
  1305  	req, out := c.DeletePartnerEventSourceRequest(input)
  1306  	req.SetContext(ctx)
  1307  	req.ApplyOptions(opts...)
  1308  	return out, req.Send()
  1309  }
  1310  
  1311  const opDeleteRule = "DeleteRule"
  1312  
  1313  // DeleteRuleRequest generates a "aws/request.Request" representing the
  1314  // client's request for the DeleteRule operation. The "output" return
  1315  // value will be populated with the request's response once the request completes
  1316  // successfully.
  1317  //
  1318  // Use "Send" method on the returned Request to send the API call to the service.
  1319  // the "output" return value is not valid until after Send returns without error.
  1320  //
  1321  // See DeleteRule for more information on using the DeleteRule
  1322  // API call, and error handling.
  1323  //
  1324  // This method is useful when you want to inject custom logic or configuration
  1325  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1326  //
  1327  //
  1328  //    // Example sending a request using the DeleteRuleRequest method.
  1329  //    req, resp := client.DeleteRuleRequest(params)
  1330  //
  1331  //    err := req.Send()
  1332  //    if err == nil { // resp is now filled
  1333  //        fmt.Println(resp)
  1334  //    }
  1335  //
  1336  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteRule
  1337  func (c *EventBridge) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) {
  1338  	op := &request.Operation{
  1339  		Name:       opDeleteRule,
  1340  		HTTPMethod: "POST",
  1341  		HTTPPath:   "/",
  1342  	}
  1343  
  1344  	if input == nil {
  1345  		input = &DeleteRuleInput{}
  1346  	}
  1347  
  1348  	output = &DeleteRuleOutput{}
  1349  	req = c.newRequest(op, input, output)
  1350  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1351  	return
  1352  }
  1353  
  1354  // DeleteRule API operation for Amazon EventBridge.
  1355  //
  1356  // Deletes the specified rule.
  1357  //
  1358  // Before you can delete the rule, you must remove all targets, using RemoveTargets
  1359  // (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html).
  1360  //
  1361  // When you delete a rule, incoming events might continue to match to the deleted
  1362  // rule. Allow a short period of time for changes to take effect.
  1363  //
  1364  // If you call delete rule multiple times for the same rule, all calls will
  1365  // succeed. When you call delete rule for a non-existent custom eventbus, ResourceNotFoundException
  1366  // is returned.
  1367  //
  1368  // Managed rules are rules created and managed by another Amazon Web Services
  1369  // service on your behalf. These rules are created by those other Amazon Web
  1370  // Services services to support functionality in those services. You can delete
  1371  // these rules using the Force option, but you should do so only if you are
  1372  // sure the other service is not still using that rule.
  1373  //
  1374  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1375  // with awserr.Error's Code and Message methods to get detailed information about
  1376  // the error.
  1377  //
  1378  // See the AWS API reference guide for Amazon EventBridge's
  1379  // API operation DeleteRule for usage and error information.
  1380  //
  1381  // Returned Error Types:
  1382  //   * ConcurrentModificationException
  1383  //   There is concurrent modification on a rule, target, archive, or replay.
  1384  //
  1385  //   * ManagedRuleException
  1386  //   This rule was created by an Amazon Web Services service on behalf of your
  1387  //   account. It is managed by that service. If you see this error in response
  1388  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  1389  //   calls to delete the rule or remove targets from the rule. You cannot modify
  1390  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  1391  //   TagResource, or UntagResource.
  1392  //
  1393  //   * InternalException
  1394  //   This exception occurs due to unexpected causes.
  1395  //
  1396  //   * ResourceNotFoundException
  1397  //   An entity that you specified does not exist.
  1398  //
  1399  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteRule
  1400  func (c *EventBridge) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) {
  1401  	req, out := c.DeleteRuleRequest(input)
  1402  	return out, req.Send()
  1403  }
  1404  
  1405  // DeleteRuleWithContext is the same as DeleteRule with the addition of
  1406  // the ability to pass a context and additional request options.
  1407  //
  1408  // See DeleteRule for details on how to use this API operation.
  1409  //
  1410  // The context must be non-nil and will be used for request cancellation. If
  1411  // the context is nil a panic will occur. In the future the SDK may create
  1412  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1413  // for more information on using Contexts.
  1414  func (c *EventBridge) DeleteRuleWithContext(ctx aws.Context, input *DeleteRuleInput, opts ...request.Option) (*DeleteRuleOutput, error) {
  1415  	req, out := c.DeleteRuleRequest(input)
  1416  	req.SetContext(ctx)
  1417  	req.ApplyOptions(opts...)
  1418  	return out, req.Send()
  1419  }
  1420  
  1421  const opDescribeApiDestination = "DescribeApiDestination"
  1422  
  1423  // DescribeApiDestinationRequest generates a "aws/request.Request" representing the
  1424  // client's request for the DescribeApiDestination operation. The "output" return
  1425  // value will be populated with the request's response once the request completes
  1426  // successfully.
  1427  //
  1428  // Use "Send" method on the returned Request to send the API call to the service.
  1429  // the "output" return value is not valid until after Send returns without error.
  1430  //
  1431  // See DescribeApiDestination for more information on using the DescribeApiDestination
  1432  // API call, and error handling.
  1433  //
  1434  // This method is useful when you want to inject custom logic or configuration
  1435  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1436  //
  1437  //
  1438  //    // Example sending a request using the DescribeApiDestinationRequest method.
  1439  //    req, resp := client.DescribeApiDestinationRequest(params)
  1440  //
  1441  //    err := req.Send()
  1442  //    if err == nil { // resp is now filled
  1443  //        fmt.Println(resp)
  1444  //    }
  1445  //
  1446  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeApiDestination
  1447  func (c *EventBridge) DescribeApiDestinationRequest(input *DescribeApiDestinationInput) (req *request.Request, output *DescribeApiDestinationOutput) {
  1448  	op := &request.Operation{
  1449  		Name:       opDescribeApiDestination,
  1450  		HTTPMethod: "POST",
  1451  		HTTPPath:   "/",
  1452  	}
  1453  
  1454  	if input == nil {
  1455  		input = &DescribeApiDestinationInput{}
  1456  	}
  1457  
  1458  	output = &DescribeApiDestinationOutput{}
  1459  	req = c.newRequest(op, input, output)
  1460  	return
  1461  }
  1462  
  1463  // DescribeApiDestination API operation for Amazon EventBridge.
  1464  //
  1465  // Retrieves details about an API destination.
  1466  //
  1467  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1468  // with awserr.Error's Code and Message methods to get detailed information about
  1469  // the error.
  1470  //
  1471  // See the AWS API reference guide for Amazon EventBridge's
  1472  // API operation DescribeApiDestination for usage and error information.
  1473  //
  1474  // Returned Error Types:
  1475  //   * ResourceNotFoundException
  1476  //   An entity that you specified does not exist.
  1477  //
  1478  //   * InternalException
  1479  //   This exception occurs due to unexpected causes.
  1480  //
  1481  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeApiDestination
  1482  func (c *EventBridge) DescribeApiDestination(input *DescribeApiDestinationInput) (*DescribeApiDestinationOutput, error) {
  1483  	req, out := c.DescribeApiDestinationRequest(input)
  1484  	return out, req.Send()
  1485  }
  1486  
  1487  // DescribeApiDestinationWithContext is the same as DescribeApiDestination with the addition of
  1488  // the ability to pass a context and additional request options.
  1489  //
  1490  // See DescribeApiDestination for details on how to use this API operation.
  1491  //
  1492  // The context must be non-nil and will be used for request cancellation. If
  1493  // the context is nil a panic will occur. In the future the SDK may create
  1494  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1495  // for more information on using Contexts.
  1496  func (c *EventBridge) DescribeApiDestinationWithContext(ctx aws.Context, input *DescribeApiDestinationInput, opts ...request.Option) (*DescribeApiDestinationOutput, error) {
  1497  	req, out := c.DescribeApiDestinationRequest(input)
  1498  	req.SetContext(ctx)
  1499  	req.ApplyOptions(opts...)
  1500  	return out, req.Send()
  1501  }
  1502  
  1503  const opDescribeArchive = "DescribeArchive"
  1504  
  1505  // DescribeArchiveRequest generates a "aws/request.Request" representing the
  1506  // client's request for the DescribeArchive operation. The "output" return
  1507  // value will be populated with the request's response once the request completes
  1508  // successfully.
  1509  //
  1510  // Use "Send" method on the returned Request to send the API call to the service.
  1511  // the "output" return value is not valid until after Send returns without error.
  1512  //
  1513  // See DescribeArchive for more information on using the DescribeArchive
  1514  // API call, and error handling.
  1515  //
  1516  // This method is useful when you want to inject custom logic or configuration
  1517  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1518  //
  1519  //
  1520  //    // Example sending a request using the DescribeArchiveRequest method.
  1521  //    req, resp := client.DescribeArchiveRequest(params)
  1522  //
  1523  //    err := req.Send()
  1524  //    if err == nil { // resp is now filled
  1525  //        fmt.Println(resp)
  1526  //    }
  1527  //
  1528  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeArchive
  1529  func (c *EventBridge) DescribeArchiveRequest(input *DescribeArchiveInput) (req *request.Request, output *DescribeArchiveOutput) {
  1530  	op := &request.Operation{
  1531  		Name:       opDescribeArchive,
  1532  		HTTPMethod: "POST",
  1533  		HTTPPath:   "/",
  1534  	}
  1535  
  1536  	if input == nil {
  1537  		input = &DescribeArchiveInput{}
  1538  	}
  1539  
  1540  	output = &DescribeArchiveOutput{}
  1541  	req = c.newRequest(op, input, output)
  1542  	return
  1543  }
  1544  
  1545  // DescribeArchive API operation for Amazon EventBridge.
  1546  //
  1547  // Retrieves details about an archive.
  1548  //
  1549  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1550  // with awserr.Error's Code and Message methods to get detailed information about
  1551  // the error.
  1552  //
  1553  // See the AWS API reference guide for Amazon EventBridge's
  1554  // API operation DescribeArchive for usage and error information.
  1555  //
  1556  // Returned Error Types:
  1557  //   * ResourceAlreadyExistsException
  1558  //   The resource you are trying to create already exists.
  1559  //
  1560  //   * ResourceNotFoundException
  1561  //   An entity that you specified does not exist.
  1562  //
  1563  //   * InternalException
  1564  //   This exception occurs due to unexpected causes.
  1565  //
  1566  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeArchive
  1567  func (c *EventBridge) DescribeArchive(input *DescribeArchiveInput) (*DescribeArchiveOutput, error) {
  1568  	req, out := c.DescribeArchiveRequest(input)
  1569  	return out, req.Send()
  1570  }
  1571  
  1572  // DescribeArchiveWithContext is the same as DescribeArchive with the addition of
  1573  // the ability to pass a context and additional request options.
  1574  //
  1575  // See DescribeArchive for details on how to use this API operation.
  1576  //
  1577  // The context must be non-nil and will be used for request cancellation. If
  1578  // the context is nil a panic will occur. In the future the SDK may create
  1579  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1580  // for more information on using Contexts.
  1581  func (c *EventBridge) DescribeArchiveWithContext(ctx aws.Context, input *DescribeArchiveInput, opts ...request.Option) (*DescribeArchiveOutput, error) {
  1582  	req, out := c.DescribeArchiveRequest(input)
  1583  	req.SetContext(ctx)
  1584  	req.ApplyOptions(opts...)
  1585  	return out, req.Send()
  1586  }
  1587  
  1588  const opDescribeConnection = "DescribeConnection"
  1589  
  1590  // DescribeConnectionRequest generates a "aws/request.Request" representing the
  1591  // client's request for the DescribeConnection operation. The "output" return
  1592  // value will be populated with the request's response once the request completes
  1593  // successfully.
  1594  //
  1595  // Use "Send" method on the returned Request to send the API call to the service.
  1596  // the "output" return value is not valid until after Send returns without error.
  1597  //
  1598  // See DescribeConnection for more information on using the DescribeConnection
  1599  // API call, and error handling.
  1600  //
  1601  // This method is useful when you want to inject custom logic or configuration
  1602  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1603  //
  1604  //
  1605  //    // Example sending a request using the DescribeConnectionRequest method.
  1606  //    req, resp := client.DescribeConnectionRequest(params)
  1607  //
  1608  //    err := req.Send()
  1609  //    if err == nil { // resp is now filled
  1610  //        fmt.Println(resp)
  1611  //    }
  1612  //
  1613  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeConnection
  1614  func (c *EventBridge) DescribeConnectionRequest(input *DescribeConnectionInput) (req *request.Request, output *DescribeConnectionOutput) {
  1615  	op := &request.Operation{
  1616  		Name:       opDescribeConnection,
  1617  		HTTPMethod: "POST",
  1618  		HTTPPath:   "/",
  1619  	}
  1620  
  1621  	if input == nil {
  1622  		input = &DescribeConnectionInput{}
  1623  	}
  1624  
  1625  	output = &DescribeConnectionOutput{}
  1626  	req = c.newRequest(op, input, output)
  1627  	return
  1628  }
  1629  
  1630  // DescribeConnection API operation for Amazon EventBridge.
  1631  //
  1632  // Retrieves details about a connection.
  1633  //
  1634  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1635  // with awserr.Error's Code and Message methods to get detailed information about
  1636  // the error.
  1637  //
  1638  // See the AWS API reference guide for Amazon EventBridge's
  1639  // API operation DescribeConnection for usage and error information.
  1640  //
  1641  // Returned Error Types:
  1642  //   * ResourceNotFoundException
  1643  //   An entity that you specified does not exist.
  1644  //
  1645  //   * InternalException
  1646  //   This exception occurs due to unexpected causes.
  1647  //
  1648  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeConnection
  1649  func (c *EventBridge) DescribeConnection(input *DescribeConnectionInput) (*DescribeConnectionOutput, error) {
  1650  	req, out := c.DescribeConnectionRequest(input)
  1651  	return out, req.Send()
  1652  }
  1653  
  1654  // DescribeConnectionWithContext is the same as DescribeConnection with the addition of
  1655  // the ability to pass a context and additional request options.
  1656  //
  1657  // See DescribeConnection for details on how to use this API operation.
  1658  //
  1659  // The context must be non-nil and will be used for request cancellation. If
  1660  // the context is nil a panic will occur. In the future the SDK may create
  1661  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1662  // for more information on using Contexts.
  1663  func (c *EventBridge) DescribeConnectionWithContext(ctx aws.Context, input *DescribeConnectionInput, opts ...request.Option) (*DescribeConnectionOutput, error) {
  1664  	req, out := c.DescribeConnectionRequest(input)
  1665  	req.SetContext(ctx)
  1666  	req.ApplyOptions(opts...)
  1667  	return out, req.Send()
  1668  }
  1669  
  1670  const opDescribeEventBus = "DescribeEventBus"
  1671  
  1672  // DescribeEventBusRequest generates a "aws/request.Request" representing the
  1673  // client's request for the DescribeEventBus operation. The "output" return
  1674  // value will be populated with the request's response once the request completes
  1675  // successfully.
  1676  //
  1677  // Use "Send" method on the returned Request to send the API call to the service.
  1678  // the "output" return value is not valid until after Send returns without error.
  1679  //
  1680  // See DescribeEventBus for more information on using the DescribeEventBus
  1681  // API call, and error handling.
  1682  //
  1683  // This method is useful when you want to inject custom logic or configuration
  1684  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1685  //
  1686  //
  1687  //    // Example sending a request using the DescribeEventBusRequest method.
  1688  //    req, resp := client.DescribeEventBusRequest(params)
  1689  //
  1690  //    err := req.Send()
  1691  //    if err == nil { // resp is now filled
  1692  //        fmt.Println(resp)
  1693  //    }
  1694  //
  1695  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeEventBus
  1696  func (c *EventBridge) DescribeEventBusRequest(input *DescribeEventBusInput) (req *request.Request, output *DescribeEventBusOutput) {
  1697  	op := &request.Operation{
  1698  		Name:       opDescribeEventBus,
  1699  		HTTPMethod: "POST",
  1700  		HTTPPath:   "/",
  1701  	}
  1702  
  1703  	if input == nil {
  1704  		input = &DescribeEventBusInput{}
  1705  	}
  1706  
  1707  	output = &DescribeEventBusOutput{}
  1708  	req = c.newRequest(op, input, output)
  1709  	return
  1710  }
  1711  
  1712  // DescribeEventBus API operation for Amazon EventBridge.
  1713  //
  1714  // Displays details about an event bus in your account. This can include the
  1715  // external Amazon Web Services accounts that are permitted to write events
  1716  // to your default event bus, and the associated policy. For custom event buses
  1717  // and partner event buses, it displays the name, ARN, policy, state, and creation
  1718  // time.
  1719  //
  1720  // To enable your account to receive events from other accounts on its default
  1721  // event bus, use PutPermission (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html).
  1722  //
  1723  // For more information about partner event buses, see CreateEventBus (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html).
  1724  //
  1725  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1726  // with awserr.Error's Code and Message methods to get detailed information about
  1727  // the error.
  1728  //
  1729  // See the AWS API reference guide for Amazon EventBridge's
  1730  // API operation DescribeEventBus for usage and error information.
  1731  //
  1732  // Returned Error Types:
  1733  //   * ResourceNotFoundException
  1734  //   An entity that you specified does not exist.
  1735  //
  1736  //   * InternalException
  1737  //   This exception occurs due to unexpected causes.
  1738  //
  1739  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeEventBus
  1740  func (c *EventBridge) DescribeEventBus(input *DescribeEventBusInput) (*DescribeEventBusOutput, error) {
  1741  	req, out := c.DescribeEventBusRequest(input)
  1742  	return out, req.Send()
  1743  }
  1744  
  1745  // DescribeEventBusWithContext is the same as DescribeEventBus with the addition of
  1746  // the ability to pass a context and additional request options.
  1747  //
  1748  // See DescribeEventBus for details on how to use this API operation.
  1749  //
  1750  // The context must be non-nil and will be used for request cancellation. If
  1751  // the context is nil a panic will occur. In the future the SDK may create
  1752  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1753  // for more information on using Contexts.
  1754  func (c *EventBridge) DescribeEventBusWithContext(ctx aws.Context, input *DescribeEventBusInput, opts ...request.Option) (*DescribeEventBusOutput, error) {
  1755  	req, out := c.DescribeEventBusRequest(input)
  1756  	req.SetContext(ctx)
  1757  	req.ApplyOptions(opts...)
  1758  	return out, req.Send()
  1759  }
  1760  
  1761  const opDescribeEventSource = "DescribeEventSource"
  1762  
  1763  // DescribeEventSourceRequest generates a "aws/request.Request" representing the
  1764  // client's request for the DescribeEventSource operation. The "output" return
  1765  // value will be populated with the request's response once the request completes
  1766  // successfully.
  1767  //
  1768  // Use "Send" method on the returned Request to send the API call to the service.
  1769  // the "output" return value is not valid until after Send returns without error.
  1770  //
  1771  // See DescribeEventSource for more information on using the DescribeEventSource
  1772  // API call, and error handling.
  1773  //
  1774  // This method is useful when you want to inject custom logic or configuration
  1775  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1776  //
  1777  //
  1778  //    // Example sending a request using the DescribeEventSourceRequest method.
  1779  //    req, resp := client.DescribeEventSourceRequest(params)
  1780  //
  1781  //    err := req.Send()
  1782  //    if err == nil { // resp is now filled
  1783  //        fmt.Println(resp)
  1784  //    }
  1785  //
  1786  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeEventSource
  1787  func (c *EventBridge) DescribeEventSourceRequest(input *DescribeEventSourceInput) (req *request.Request, output *DescribeEventSourceOutput) {
  1788  	op := &request.Operation{
  1789  		Name:       opDescribeEventSource,
  1790  		HTTPMethod: "POST",
  1791  		HTTPPath:   "/",
  1792  	}
  1793  
  1794  	if input == nil {
  1795  		input = &DescribeEventSourceInput{}
  1796  	}
  1797  
  1798  	output = &DescribeEventSourceOutput{}
  1799  	req = c.newRequest(op, input, output)
  1800  	return
  1801  }
  1802  
  1803  // DescribeEventSource API operation for Amazon EventBridge.
  1804  //
  1805  // This operation lists details about a partner event source that is shared
  1806  // with your account.
  1807  //
  1808  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1809  // with awserr.Error's Code and Message methods to get detailed information about
  1810  // the error.
  1811  //
  1812  // See the AWS API reference guide for Amazon EventBridge's
  1813  // API operation DescribeEventSource for usage and error information.
  1814  //
  1815  // Returned Error Types:
  1816  //   * ResourceNotFoundException
  1817  //   An entity that you specified does not exist.
  1818  //
  1819  //   * InternalException
  1820  //   This exception occurs due to unexpected causes.
  1821  //
  1822  //   * OperationDisabledException
  1823  //   The operation you are attempting is not available in this region.
  1824  //
  1825  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeEventSource
  1826  func (c *EventBridge) DescribeEventSource(input *DescribeEventSourceInput) (*DescribeEventSourceOutput, error) {
  1827  	req, out := c.DescribeEventSourceRequest(input)
  1828  	return out, req.Send()
  1829  }
  1830  
  1831  // DescribeEventSourceWithContext is the same as DescribeEventSource with the addition of
  1832  // the ability to pass a context and additional request options.
  1833  //
  1834  // See DescribeEventSource for details on how to use this API operation.
  1835  //
  1836  // The context must be non-nil and will be used for request cancellation. If
  1837  // the context is nil a panic will occur. In the future the SDK may create
  1838  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1839  // for more information on using Contexts.
  1840  func (c *EventBridge) DescribeEventSourceWithContext(ctx aws.Context, input *DescribeEventSourceInput, opts ...request.Option) (*DescribeEventSourceOutput, error) {
  1841  	req, out := c.DescribeEventSourceRequest(input)
  1842  	req.SetContext(ctx)
  1843  	req.ApplyOptions(opts...)
  1844  	return out, req.Send()
  1845  }
  1846  
  1847  const opDescribePartnerEventSource = "DescribePartnerEventSource"
  1848  
  1849  // DescribePartnerEventSourceRequest generates a "aws/request.Request" representing the
  1850  // client's request for the DescribePartnerEventSource operation. The "output" return
  1851  // value will be populated with the request's response once the request completes
  1852  // successfully.
  1853  //
  1854  // Use "Send" method on the returned Request to send the API call to the service.
  1855  // the "output" return value is not valid until after Send returns without error.
  1856  //
  1857  // See DescribePartnerEventSource for more information on using the DescribePartnerEventSource
  1858  // API call, and error handling.
  1859  //
  1860  // This method is useful when you want to inject custom logic or configuration
  1861  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1862  //
  1863  //
  1864  //    // Example sending a request using the DescribePartnerEventSourceRequest method.
  1865  //    req, resp := client.DescribePartnerEventSourceRequest(params)
  1866  //
  1867  //    err := req.Send()
  1868  //    if err == nil { // resp is now filled
  1869  //        fmt.Println(resp)
  1870  //    }
  1871  //
  1872  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribePartnerEventSource
  1873  func (c *EventBridge) DescribePartnerEventSourceRequest(input *DescribePartnerEventSourceInput) (req *request.Request, output *DescribePartnerEventSourceOutput) {
  1874  	op := &request.Operation{
  1875  		Name:       opDescribePartnerEventSource,
  1876  		HTTPMethod: "POST",
  1877  		HTTPPath:   "/",
  1878  	}
  1879  
  1880  	if input == nil {
  1881  		input = &DescribePartnerEventSourceInput{}
  1882  	}
  1883  
  1884  	output = &DescribePartnerEventSourceOutput{}
  1885  	req = c.newRequest(op, input, output)
  1886  	return
  1887  }
  1888  
  1889  // DescribePartnerEventSource API operation for Amazon EventBridge.
  1890  //
  1891  // An SaaS partner can use this operation to list details about a partner event
  1892  // source that they have created. Amazon Web Services customers do not use this
  1893  // operation. Instead, Amazon Web Services customers can use DescribeEventSource
  1894  // (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html)
  1895  // to see details about a partner event source that is shared with them.
  1896  //
  1897  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1898  // with awserr.Error's Code and Message methods to get detailed information about
  1899  // the error.
  1900  //
  1901  // See the AWS API reference guide for Amazon EventBridge's
  1902  // API operation DescribePartnerEventSource for usage and error information.
  1903  //
  1904  // Returned Error Types:
  1905  //   * ResourceNotFoundException
  1906  //   An entity that you specified does not exist.
  1907  //
  1908  //   * InternalException
  1909  //   This exception occurs due to unexpected causes.
  1910  //
  1911  //   * OperationDisabledException
  1912  //   The operation you are attempting is not available in this region.
  1913  //
  1914  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribePartnerEventSource
  1915  func (c *EventBridge) DescribePartnerEventSource(input *DescribePartnerEventSourceInput) (*DescribePartnerEventSourceOutput, error) {
  1916  	req, out := c.DescribePartnerEventSourceRequest(input)
  1917  	return out, req.Send()
  1918  }
  1919  
  1920  // DescribePartnerEventSourceWithContext is the same as DescribePartnerEventSource with the addition of
  1921  // the ability to pass a context and additional request options.
  1922  //
  1923  // See DescribePartnerEventSource for details on how to use this API operation.
  1924  //
  1925  // The context must be non-nil and will be used for request cancellation. If
  1926  // the context is nil a panic will occur. In the future the SDK may create
  1927  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1928  // for more information on using Contexts.
  1929  func (c *EventBridge) DescribePartnerEventSourceWithContext(ctx aws.Context, input *DescribePartnerEventSourceInput, opts ...request.Option) (*DescribePartnerEventSourceOutput, error) {
  1930  	req, out := c.DescribePartnerEventSourceRequest(input)
  1931  	req.SetContext(ctx)
  1932  	req.ApplyOptions(opts...)
  1933  	return out, req.Send()
  1934  }
  1935  
  1936  const opDescribeReplay = "DescribeReplay"
  1937  
  1938  // DescribeReplayRequest generates a "aws/request.Request" representing the
  1939  // client's request for the DescribeReplay operation. The "output" return
  1940  // value will be populated with the request's response once the request completes
  1941  // successfully.
  1942  //
  1943  // Use "Send" method on the returned Request to send the API call to the service.
  1944  // the "output" return value is not valid until after Send returns without error.
  1945  //
  1946  // See DescribeReplay for more information on using the DescribeReplay
  1947  // API call, and error handling.
  1948  //
  1949  // This method is useful when you want to inject custom logic or configuration
  1950  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1951  //
  1952  //
  1953  //    // Example sending a request using the DescribeReplayRequest method.
  1954  //    req, resp := client.DescribeReplayRequest(params)
  1955  //
  1956  //    err := req.Send()
  1957  //    if err == nil { // resp is now filled
  1958  //        fmt.Println(resp)
  1959  //    }
  1960  //
  1961  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeReplay
  1962  func (c *EventBridge) DescribeReplayRequest(input *DescribeReplayInput) (req *request.Request, output *DescribeReplayOutput) {
  1963  	op := &request.Operation{
  1964  		Name:       opDescribeReplay,
  1965  		HTTPMethod: "POST",
  1966  		HTTPPath:   "/",
  1967  	}
  1968  
  1969  	if input == nil {
  1970  		input = &DescribeReplayInput{}
  1971  	}
  1972  
  1973  	output = &DescribeReplayOutput{}
  1974  	req = c.newRequest(op, input, output)
  1975  	return
  1976  }
  1977  
  1978  // DescribeReplay API operation for Amazon EventBridge.
  1979  //
  1980  // Retrieves details about a replay. Use DescribeReplay to determine the progress
  1981  // of a running replay. A replay processes events to replay based on the time
  1982  // in the event, and replays them using 1 minute intervals. If you use StartReplay
  1983  // and specify an EventStartTime and an EventEndTime that covers a 20 minute
  1984  // time range, the events are replayed from the first minute of that 20 minute
  1985  // range first. Then the events from the second minute are replayed. You can
  1986  // use DescribeReplay to determine the progress of a replay. The value returned
  1987  // for EventLastReplayedTime indicates the time within the specified time range
  1988  // associated with the last event replayed.
  1989  //
  1990  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1991  // with awserr.Error's Code and Message methods to get detailed information about
  1992  // the error.
  1993  //
  1994  // See the AWS API reference guide for Amazon EventBridge's
  1995  // API operation DescribeReplay for usage and error information.
  1996  //
  1997  // Returned Error Types:
  1998  //   * ResourceNotFoundException
  1999  //   An entity that you specified does not exist.
  2000  //
  2001  //   * InternalException
  2002  //   This exception occurs due to unexpected causes.
  2003  //
  2004  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeReplay
  2005  func (c *EventBridge) DescribeReplay(input *DescribeReplayInput) (*DescribeReplayOutput, error) {
  2006  	req, out := c.DescribeReplayRequest(input)
  2007  	return out, req.Send()
  2008  }
  2009  
  2010  // DescribeReplayWithContext is the same as DescribeReplay with the addition of
  2011  // the ability to pass a context and additional request options.
  2012  //
  2013  // See DescribeReplay for details on how to use this API operation.
  2014  //
  2015  // The context must be non-nil and will be used for request cancellation. If
  2016  // the context is nil a panic will occur. In the future the SDK may create
  2017  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2018  // for more information on using Contexts.
  2019  func (c *EventBridge) DescribeReplayWithContext(ctx aws.Context, input *DescribeReplayInput, opts ...request.Option) (*DescribeReplayOutput, error) {
  2020  	req, out := c.DescribeReplayRequest(input)
  2021  	req.SetContext(ctx)
  2022  	req.ApplyOptions(opts...)
  2023  	return out, req.Send()
  2024  }
  2025  
  2026  const opDescribeRule = "DescribeRule"
  2027  
  2028  // DescribeRuleRequest generates a "aws/request.Request" representing the
  2029  // client's request for the DescribeRule operation. The "output" return
  2030  // value will be populated with the request's response once the request completes
  2031  // successfully.
  2032  //
  2033  // Use "Send" method on the returned Request to send the API call to the service.
  2034  // the "output" return value is not valid until after Send returns without error.
  2035  //
  2036  // See DescribeRule for more information on using the DescribeRule
  2037  // API call, and error handling.
  2038  //
  2039  // This method is useful when you want to inject custom logic or configuration
  2040  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2041  //
  2042  //
  2043  //    // Example sending a request using the DescribeRuleRequest method.
  2044  //    req, resp := client.DescribeRuleRequest(params)
  2045  //
  2046  //    err := req.Send()
  2047  //    if err == nil { // resp is now filled
  2048  //        fmt.Println(resp)
  2049  //    }
  2050  //
  2051  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeRule
  2052  func (c *EventBridge) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput) {
  2053  	op := &request.Operation{
  2054  		Name:       opDescribeRule,
  2055  		HTTPMethod: "POST",
  2056  		HTTPPath:   "/",
  2057  	}
  2058  
  2059  	if input == nil {
  2060  		input = &DescribeRuleInput{}
  2061  	}
  2062  
  2063  	output = &DescribeRuleOutput{}
  2064  	req = c.newRequest(op, input, output)
  2065  	return
  2066  }
  2067  
  2068  // DescribeRule API operation for Amazon EventBridge.
  2069  //
  2070  // Describes the specified rule.
  2071  //
  2072  // DescribeRule does not list the targets of a rule. To see the targets associated
  2073  // with a rule, use ListTargetsByRule (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html).
  2074  //
  2075  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2076  // with awserr.Error's Code and Message methods to get detailed information about
  2077  // the error.
  2078  //
  2079  // See the AWS API reference guide for Amazon EventBridge's
  2080  // API operation DescribeRule for usage and error information.
  2081  //
  2082  // Returned Error Types:
  2083  //   * ResourceNotFoundException
  2084  //   An entity that you specified does not exist.
  2085  //
  2086  //   * InternalException
  2087  //   This exception occurs due to unexpected causes.
  2088  //
  2089  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeRule
  2090  func (c *EventBridge) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) {
  2091  	req, out := c.DescribeRuleRequest(input)
  2092  	return out, req.Send()
  2093  }
  2094  
  2095  // DescribeRuleWithContext is the same as DescribeRule with the addition of
  2096  // the ability to pass a context and additional request options.
  2097  //
  2098  // See DescribeRule for details on how to use this API operation.
  2099  //
  2100  // The context must be non-nil and will be used for request cancellation. If
  2101  // the context is nil a panic will occur. In the future the SDK may create
  2102  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2103  // for more information on using Contexts.
  2104  func (c *EventBridge) DescribeRuleWithContext(ctx aws.Context, input *DescribeRuleInput, opts ...request.Option) (*DescribeRuleOutput, error) {
  2105  	req, out := c.DescribeRuleRequest(input)
  2106  	req.SetContext(ctx)
  2107  	req.ApplyOptions(opts...)
  2108  	return out, req.Send()
  2109  }
  2110  
  2111  const opDisableRule = "DisableRule"
  2112  
  2113  // DisableRuleRequest generates a "aws/request.Request" representing the
  2114  // client's request for the DisableRule operation. The "output" return
  2115  // value will be populated with the request's response once the request completes
  2116  // successfully.
  2117  //
  2118  // Use "Send" method on the returned Request to send the API call to the service.
  2119  // the "output" return value is not valid until after Send returns without error.
  2120  //
  2121  // See DisableRule for more information on using the DisableRule
  2122  // API call, and error handling.
  2123  //
  2124  // This method is useful when you want to inject custom logic or configuration
  2125  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2126  //
  2127  //
  2128  //    // Example sending a request using the DisableRuleRequest method.
  2129  //    req, resp := client.DisableRuleRequest(params)
  2130  //
  2131  //    err := req.Send()
  2132  //    if err == nil { // resp is now filled
  2133  //        fmt.Println(resp)
  2134  //    }
  2135  //
  2136  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DisableRule
  2137  func (c *EventBridge) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput) {
  2138  	op := &request.Operation{
  2139  		Name:       opDisableRule,
  2140  		HTTPMethod: "POST",
  2141  		HTTPPath:   "/",
  2142  	}
  2143  
  2144  	if input == nil {
  2145  		input = &DisableRuleInput{}
  2146  	}
  2147  
  2148  	output = &DisableRuleOutput{}
  2149  	req = c.newRequest(op, input, output)
  2150  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2151  	return
  2152  }
  2153  
  2154  // DisableRule API operation for Amazon EventBridge.
  2155  //
  2156  // Disables the specified rule. A disabled rule won't match any events, and
  2157  // won't self-trigger if it has a schedule expression.
  2158  //
  2159  // When you disable a rule, incoming events might continue to match to the disabled
  2160  // rule. Allow a short period of time for changes to take effect.
  2161  //
  2162  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2163  // with awserr.Error's Code and Message methods to get detailed information about
  2164  // the error.
  2165  //
  2166  // See the AWS API reference guide for Amazon EventBridge's
  2167  // API operation DisableRule for usage and error information.
  2168  //
  2169  // Returned Error Types:
  2170  //   * ResourceNotFoundException
  2171  //   An entity that you specified does not exist.
  2172  //
  2173  //   * ConcurrentModificationException
  2174  //   There is concurrent modification on a rule, target, archive, or replay.
  2175  //
  2176  //   * ManagedRuleException
  2177  //   This rule was created by an Amazon Web Services service on behalf of your
  2178  //   account. It is managed by that service. If you see this error in response
  2179  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  2180  //   calls to delete the rule or remove targets from the rule. You cannot modify
  2181  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  2182  //   TagResource, or UntagResource.
  2183  //
  2184  //   * InternalException
  2185  //   This exception occurs due to unexpected causes.
  2186  //
  2187  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DisableRule
  2188  func (c *EventBridge) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) {
  2189  	req, out := c.DisableRuleRequest(input)
  2190  	return out, req.Send()
  2191  }
  2192  
  2193  // DisableRuleWithContext is the same as DisableRule with the addition of
  2194  // the ability to pass a context and additional request options.
  2195  //
  2196  // See DisableRule for details on how to use this API operation.
  2197  //
  2198  // The context must be non-nil and will be used for request cancellation. If
  2199  // the context is nil a panic will occur. In the future the SDK may create
  2200  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2201  // for more information on using Contexts.
  2202  func (c *EventBridge) DisableRuleWithContext(ctx aws.Context, input *DisableRuleInput, opts ...request.Option) (*DisableRuleOutput, error) {
  2203  	req, out := c.DisableRuleRequest(input)
  2204  	req.SetContext(ctx)
  2205  	req.ApplyOptions(opts...)
  2206  	return out, req.Send()
  2207  }
  2208  
  2209  const opEnableRule = "EnableRule"
  2210  
  2211  // EnableRuleRequest generates a "aws/request.Request" representing the
  2212  // client's request for the EnableRule operation. The "output" return
  2213  // value will be populated with the request's response once the request completes
  2214  // successfully.
  2215  //
  2216  // Use "Send" method on the returned Request to send the API call to the service.
  2217  // the "output" return value is not valid until after Send returns without error.
  2218  //
  2219  // See EnableRule for more information on using the EnableRule
  2220  // API call, and error handling.
  2221  //
  2222  // This method is useful when you want to inject custom logic or configuration
  2223  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2224  //
  2225  //
  2226  //    // Example sending a request using the EnableRuleRequest method.
  2227  //    req, resp := client.EnableRuleRequest(params)
  2228  //
  2229  //    err := req.Send()
  2230  //    if err == nil { // resp is now filled
  2231  //        fmt.Println(resp)
  2232  //    }
  2233  //
  2234  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/EnableRule
  2235  func (c *EventBridge) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput) {
  2236  	op := &request.Operation{
  2237  		Name:       opEnableRule,
  2238  		HTTPMethod: "POST",
  2239  		HTTPPath:   "/",
  2240  	}
  2241  
  2242  	if input == nil {
  2243  		input = &EnableRuleInput{}
  2244  	}
  2245  
  2246  	output = &EnableRuleOutput{}
  2247  	req = c.newRequest(op, input, output)
  2248  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2249  	return
  2250  }
  2251  
  2252  // EnableRule API operation for Amazon EventBridge.
  2253  //
  2254  // Enables the specified rule. If the rule does not exist, the operation fails.
  2255  //
  2256  // When you enable a rule, incoming events might not immediately start matching
  2257  // to a newly enabled rule. Allow a short period of time for changes to take
  2258  // effect.
  2259  //
  2260  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2261  // with awserr.Error's Code and Message methods to get detailed information about
  2262  // the error.
  2263  //
  2264  // See the AWS API reference guide for Amazon EventBridge's
  2265  // API operation EnableRule for usage and error information.
  2266  //
  2267  // Returned Error Types:
  2268  //   * ResourceNotFoundException
  2269  //   An entity that you specified does not exist.
  2270  //
  2271  //   * ConcurrentModificationException
  2272  //   There is concurrent modification on a rule, target, archive, or replay.
  2273  //
  2274  //   * ManagedRuleException
  2275  //   This rule was created by an Amazon Web Services service on behalf of your
  2276  //   account. It is managed by that service. If you see this error in response
  2277  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  2278  //   calls to delete the rule or remove targets from the rule. You cannot modify
  2279  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  2280  //   TagResource, or UntagResource.
  2281  //
  2282  //   * InternalException
  2283  //   This exception occurs due to unexpected causes.
  2284  //
  2285  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/EnableRule
  2286  func (c *EventBridge) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) {
  2287  	req, out := c.EnableRuleRequest(input)
  2288  	return out, req.Send()
  2289  }
  2290  
  2291  // EnableRuleWithContext is the same as EnableRule with the addition of
  2292  // the ability to pass a context and additional request options.
  2293  //
  2294  // See EnableRule for details on how to use this API operation.
  2295  //
  2296  // The context must be non-nil and will be used for request cancellation. If
  2297  // the context is nil a panic will occur. In the future the SDK may create
  2298  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2299  // for more information on using Contexts.
  2300  func (c *EventBridge) EnableRuleWithContext(ctx aws.Context, input *EnableRuleInput, opts ...request.Option) (*EnableRuleOutput, error) {
  2301  	req, out := c.EnableRuleRequest(input)
  2302  	req.SetContext(ctx)
  2303  	req.ApplyOptions(opts...)
  2304  	return out, req.Send()
  2305  }
  2306  
  2307  const opListApiDestinations = "ListApiDestinations"
  2308  
  2309  // ListApiDestinationsRequest generates a "aws/request.Request" representing the
  2310  // client's request for the ListApiDestinations operation. The "output" return
  2311  // value will be populated with the request's response once the request completes
  2312  // successfully.
  2313  //
  2314  // Use "Send" method on the returned Request to send the API call to the service.
  2315  // the "output" return value is not valid until after Send returns without error.
  2316  //
  2317  // See ListApiDestinations for more information on using the ListApiDestinations
  2318  // API call, and error handling.
  2319  //
  2320  // This method is useful when you want to inject custom logic or configuration
  2321  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2322  //
  2323  //
  2324  //    // Example sending a request using the ListApiDestinationsRequest method.
  2325  //    req, resp := client.ListApiDestinationsRequest(params)
  2326  //
  2327  //    err := req.Send()
  2328  //    if err == nil { // resp is now filled
  2329  //        fmt.Println(resp)
  2330  //    }
  2331  //
  2332  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListApiDestinations
  2333  func (c *EventBridge) ListApiDestinationsRequest(input *ListApiDestinationsInput) (req *request.Request, output *ListApiDestinationsOutput) {
  2334  	op := &request.Operation{
  2335  		Name:       opListApiDestinations,
  2336  		HTTPMethod: "POST",
  2337  		HTTPPath:   "/",
  2338  	}
  2339  
  2340  	if input == nil {
  2341  		input = &ListApiDestinationsInput{}
  2342  	}
  2343  
  2344  	output = &ListApiDestinationsOutput{}
  2345  	req = c.newRequest(op, input, output)
  2346  	return
  2347  }
  2348  
  2349  // ListApiDestinations API operation for Amazon EventBridge.
  2350  //
  2351  // Retrieves a list of API destination in the account in the current Region.
  2352  //
  2353  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2354  // with awserr.Error's Code and Message methods to get detailed information about
  2355  // the error.
  2356  //
  2357  // See the AWS API reference guide for Amazon EventBridge's
  2358  // API operation ListApiDestinations for usage and error information.
  2359  //
  2360  // Returned Error Types:
  2361  //   * InternalException
  2362  //   This exception occurs due to unexpected causes.
  2363  //
  2364  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListApiDestinations
  2365  func (c *EventBridge) ListApiDestinations(input *ListApiDestinationsInput) (*ListApiDestinationsOutput, error) {
  2366  	req, out := c.ListApiDestinationsRequest(input)
  2367  	return out, req.Send()
  2368  }
  2369  
  2370  // ListApiDestinationsWithContext is the same as ListApiDestinations with the addition of
  2371  // the ability to pass a context and additional request options.
  2372  //
  2373  // See ListApiDestinations for details on how to use this API operation.
  2374  //
  2375  // The context must be non-nil and will be used for request cancellation. If
  2376  // the context is nil a panic will occur. In the future the SDK may create
  2377  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2378  // for more information on using Contexts.
  2379  func (c *EventBridge) ListApiDestinationsWithContext(ctx aws.Context, input *ListApiDestinationsInput, opts ...request.Option) (*ListApiDestinationsOutput, error) {
  2380  	req, out := c.ListApiDestinationsRequest(input)
  2381  	req.SetContext(ctx)
  2382  	req.ApplyOptions(opts...)
  2383  	return out, req.Send()
  2384  }
  2385  
  2386  const opListArchives = "ListArchives"
  2387  
  2388  // ListArchivesRequest generates a "aws/request.Request" representing the
  2389  // client's request for the ListArchives operation. The "output" return
  2390  // value will be populated with the request's response once the request completes
  2391  // successfully.
  2392  //
  2393  // Use "Send" method on the returned Request to send the API call to the service.
  2394  // the "output" return value is not valid until after Send returns without error.
  2395  //
  2396  // See ListArchives for more information on using the ListArchives
  2397  // API call, and error handling.
  2398  //
  2399  // This method is useful when you want to inject custom logic or configuration
  2400  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2401  //
  2402  //
  2403  //    // Example sending a request using the ListArchivesRequest method.
  2404  //    req, resp := client.ListArchivesRequest(params)
  2405  //
  2406  //    err := req.Send()
  2407  //    if err == nil { // resp is now filled
  2408  //        fmt.Println(resp)
  2409  //    }
  2410  //
  2411  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListArchives
  2412  func (c *EventBridge) ListArchivesRequest(input *ListArchivesInput) (req *request.Request, output *ListArchivesOutput) {
  2413  	op := &request.Operation{
  2414  		Name:       opListArchives,
  2415  		HTTPMethod: "POST",
  2416  		HTTPPath:   "/",
  2417  	}
  2418  
  2419  	if input == nil {
  2420  		input = &ListArchivesInput{}
  2421  	}
  2422  
  2423  	output = &ListArchivesOutput{}
  2424  	req = c.newRequest(op, input, output)
  2425  	return
  2426  }
  2427  
  2428  // ListArchives API operation for Amazon EventBridge.
  2429  //
  2430  // Lists your archives. You can either list all the archives or you can provide
  2431  // a prefix to match to the archive names. Filter parameters are exclusive.
  2432  //
  2433  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2434  // with awserr.Error's Code and Message methods to get detailed information about
  2435  // the error.
  2436  //
  2437  // See the AWS API reference guide for Amazon EventBridge's
  2438  // API operation ListArchives for usage and error information.
  2439  //
  2440  // Returned Error Types:
  2441  //   * ResourceNotFoundException
  2442  //   An entity that you specified does not exist.
  2443  //
  2444  //   * InternalException
  2445  //   This exception occurs due to unexpected causes.
  2446  //
  2447  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListArchives
  2448  func (c *EventBridge) ListArchives(input *ListArchivesInput) (*ListArchivesOutput, error) {
  2449  	req, out := c.ListArchivesRequest(input)
  2450  	return out, req.Send()
  2451  }
  2452  
  2453  // ListArchivesWithContext is the same as ListArchives with the addition of
  2454  // the ability to pass a context and additional request options.
  2455  //
  2456  // See ListArchives for details on how to use this API operation.
  2457  //
  2458  // The context must be non-nil and will be used for request cancellation. If
  2459  // the context is nil a panic will occur. In the future the SDK may create
  2460  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2461  // for more information on using Contexts.
  2462  func (c *EventBridge) ListArchivesWithContext(ctx aws.Context, input *ListArchivesInput, opts ...request.Option) (*ListArchivesOutput, error) {
  2463  	req, out := c.ListArchivesRequest(input)
  2464  	req.SetContext(ctx)
  2465  	req.ApplyOptions(opts...)
  2466  	return out, req.Send()
  2467  }
  2468  
  2469  const opListConnections = "ListConnections"
  2470  
  2471  // ListConnectionsRequest generates a "aws/request.Request" representing the
  2472  // client's request for the ListConnections operation. The "output" return
  2473  // value will be populated with the request's response once the request completes
  2474  // successfully.
  2475  //
  2476  // Use "Send" method on the returned Request to send the API call to the service.
  2477  // the "output" return value is not valid until after Send returns without error.
  2478  //
  2479  // See ListConnections for more information on using the ListConnections
  2480  // API call, and error handling.
  2481  //
  2482  // This method is useful when you want to inject custom logic or configuration
  2483  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2484  //
  2485  //
  2486  //    // Example sending a request using the ListConnectionsRequest method.
  2487  //    req, resp := client.ListConnectionsRequest(params)
  2488  //
  2489  //    err := req.Send()
  2490  //    if err == nil { // resp is now filled
  2491  //        fmt.Println(resp)
  2492  //    }
  2493  //
  2494  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListConnections
  2495  func (c *EventBridge) ListConnectionsRequest(input *ListConnectionsInput) (req *request.Request, output *ListConnectionsOutput) {
  2496  	op := &request.Operation{
  2497  		Name:       opListConnections,
  2498  		HTTPMethod: "POST",
  2499  		HTTPPath:   "/",
  2500  	}
  2501  
  2502  	if input == nil {
  2503  		input = &ListConnectionsInput{}
  2504  	}
  2505  
  2506  	output = &ListConnectionsOutput{}
  2507  	req = c.newRequest(op, input, output)
  2508  	return
  2509  }
  2510  
  2511  // ListConnections API operation for Amazon EventBridge.
  2512  //
  2513  // Retrieves a list of connections from the account.
  2514  //
  2515  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2516  // with awserr.Error's Code and Message methods to get detailed information about
  2517  // the error.
  2518  //
  2519  // See the AWS API reference guide for Amazon EventBridge's
  2520  // API operation ListConnections for usage and error information.
  2521  //
  2522  // Returned Error Types:
  2523  //   * InternalException
  2524  //   This exception occurs due to unexpected causes.
  2525  //
  2526  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListConnections
  2527  func (c *EventBridge) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) {
  2528  	req, out := c.ListConnectionsRequest(input)
  2529  	return out, req.Send()
  2530  }
  2531  
  2532  // ListConnectionsWithContext is the same as ListConnections with the addition of
  2533  // the ability to pass a context and additional request options.
  2534  //
  2535  // See ListConnections for details on how to use this API operation.
  2536  //
  2537  // The context must be non-nil and will be used for request cancellation. If
  2538  // the context is nil a panic will occur. In the future the SDK may create
  2539  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2540  // for more information on using Contexts.
  2541  func (c *EventBridge) ListConnectionsWithContext(ctx aws.Context, input *ListConnectionsInput, opts ...request.Option) (*ListConnectionsOutput, error) {
  2542  	req, out := c.ListConnectionsRequest(input)
  2543  	req.SetContext(ctx)
  2544  	req.ApplyOptions(opts...)
  2545  	return out, req.Send()
  2546  }
  2547  
  2548  const opListEventBuses = "ListEventBuses"
  2549  
  2550  // ListEventBusesRequest generates a "aws/request.Request" representing the
  2551  // client's request for the ListEventBuses operation. The "output" return
  2552  // value will be populated with the request's response once the request completes
  2553  // successfully.
  2554  //
  2555  // Use "Send" method on the returned Request to send the API call to the service.
  2556  // the "output" return value is not valid until after Send returns without error.
  2557  //
  2558  // See ListEventBuses for more information on using the ListEventBuses
  2559  // API call, and error handling.
  2560  //
  2561  // This method is useful when you want to inject custom logic or configuration
  2562  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2563  //
  2564  //
  2565  //    // Example sending a request using the ListEventBusesRequest method.
  2566  //    req, resp := client.ListEventBusesRequest(params)
  2567  //
  2568  //    err := req.Send()
  2569  //    if err == nil { // resp is now filled
  2570  //        fmt.Println(resp)
  2571  //    }
  2572  //
  2573  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListEventBuses
  2574  func (c *EventBridge) ListEventBusesRequest(input *ListEventBusesInput) (req *request.Request, output *ListEventBusesOutput) {
  2575  	op := &request.Operation{
  2576  		Name:       opListEventBuses,
  2577  		HTTPMethod: "POST",
  2578  		HTTPPath:   "/",
  2579  	}
  2580  
  2581  	if input == nil {
  2582  		input = &ListEventBusesInput{}
  2583  	}
  2584  
  2585  	output = &ListEventBusesOutput{}
  2586  	req = c.newRequest(op, input, output)
  2587  	return
  2588  }
  2589  
  2590  // ListEventBuses API operation for Amazon EventBridge.
  2591  //
  2592  // Lists all the event buses in your account, including the default event bus,
  2593  // custom event buses, and partner event buses.
  2594  //
  2595  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2596  // with awserr.Error's Code and Message methods to get detailed information about
  2597  // the error.
  2598  //
  2599  // See the AWS API reference guide for Amazon EventBridge's
  2600  // API operation ListEventBuses for usage and error information.
  2601  //
  2602  // Returned Error Types:
  2603  //   * InternalException
  2604  //   This exception occurs due to unexpected causes.
  2605  //
  2606  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListEventBuses
  2607  func (c *EventBridge) ListEventBuses(input *ListEventBusesInput) (*ListEventBusesOutput, error) {
  2608  	req, out := c.ListEventBusesRequest(input)
  2609  	return out, req.Send()
  2610  }
  2611  
  2612  // ListEventBusesWithContext is the same as ListEventBuses with the addition of
  2613  // the ability to pass a context and additional request options.
  2614  //
  2615  // See ListEventBuses for details on how to use this API operation.
  2616  //
  2617  // The context must be non-nil and will be used for request cancellation. If
  2618  // the context is nil a panic will occur. In the future the SDK may create
  2619  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2620  // for more information on using Contexts.
  2621  func (c *EventBridge) ListEventBusesWithContext(ctx aws.Context, input *ListEventBusesInput, opts ...request.Option) (*ListEventBusesOutput, error) {
  2622  	req, out := c.ListEventBusesRequest(input)
  2623  	req.SetContext(ctx)
  2624  	req.ApplyOptions(opts...)
  2625  	return out, req.Send()
  2626  }
  2627  
  2628  const opListEventSources = "ListEventSources"
  2629  
  2630  // ListEventSourcesRequest generates a "aws/request.Request" representing the
  2631  // client's request for the ListEventSources operation. The "output" return
  2632  // value will be populated with the request's response once the request completes
  2633  // successfully.
  2634  //
  2635  // Use "Send" method on the returned Request to send the API call to the service.
  2636  // the "output" return value is not valid until after Send returns without error.
  2637  //
  2638  // See ListEventSources for more information on using the ListEventSources
  2639  // API call, and error handling.
  2640  //
  2641  // This method is useful when you want to inject custom logic or configuration
  2642  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2643  //
  2644  //
  2645  //    // Example sending a request using the ListEventSourcesRequest method.
  2646  //    req, resp := client.ListEventSourcesRequest(params)
  2647  //
  2648  //    err := req.Send()
  2649  //    if err == nil { // resp is now filled
  2650  //        fmt.Println(resp)
  2651  //    }
  2652  //
  2653  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListEventSources
  2654  func (c *EventBridge) ListEventSourcesRequest(input *ListEventSourcesInput) (req *request.Request, output *ListEventSourcesOutput) {
  2655  	op := &request.Operation{
  2656  		Name:       opListEventSources,
  2657  		HTTPMethod: "POST",
  2658  		HTTPPath:   "/",
  2659  	}
  2660  
  2661  	if input == nil {
  2662  		input = &ListEventSourcesInput{}
  2663  	}
  2664  
  2665  	output = &ListEventSourcesOutput{}
  2666  	req = c.newRequest(op, input, output)
  2667  	return
  2668  }
  2669  
  2670  // ListEventSources API operation for Amazon EventBridge.
  2671  //
  2672  // You can use this to see all the partner event sources that have been shared
  2673  // with your Amazon Web Services account. For more information about partner
  2674  // event sources, see CreateEventBus (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html).
  2675  //
  2676  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2677  // with awserr.Error's Code and Message methods to get detailed information about
  2678  // the error.
  2679  //
  2680  // See the AWS API reference guide for Amazon EventBridge's
  2681  // API operation ListEventSources for usage and error information.
  2682  //
  2683  // Returned Error Types:
  2684  //   * InternalException
  2685  //   This exception occurs due to unexpected causes.
  2686  //
  2687  //   * OperationDisabledException
  2688  //   The operation you are attempting is not available in this region.
  2689  //
  2690  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListEventSources
  2691  func (c *EventBridge) ListEventSources(input *ListEventSourcesInput) (*ListEventSourcesOutput, error) {
  2692  	req, out := c.ListEventSourcesRequest(input)
  2693  	return out, req.Send()
  2694  }
  2695  
  2696  // ListEventSourcesWithContext is the same as ListEventSources with the addition of
  2697  // the ability to pass a context and additional request options.
  2698  //
  2699  // See ListEventSources for details on how to use this API operation.
  2700  //
  2701  // The context must be non-nil and will be used for request cancellation. If
  2702  // the context is nil a panic will occur. In the future the SDK may create
  2703  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2704  // for more information on using Contexts.
  2705  func (c *EventBridge) ListEventSourcesWithContext(ctx aws.Context, input *ListEventSourcesInput, opts ...request.Option) (*ListEventSourcesOutput, error) {
  2706  	req, out := c.ListEventSourcesRequest(input)
  2707  	req.SetContext(ctx)
  2708  	req.ApplyOptions(opts...)
  2709  	return out, req.Send()
  2710  }
  2711  
  2712  const opListPartnerEventSourceAccounts = "ListPartnerEventSourceAccounts"
  2713  
  2714  // ListPartnerEventSourceAccountsRequest generates a "aws/request.Request" representing the
  2715  // client's request for the ListPartnerEventSourceAccounts operation. The "output" return
  2716  // value will be populated with the request's response once the request completes
  2717  // successfully.
  2718  //
  2719  // Use "Send" method on the returned Request to send the API call to the service.
  2720  // the "output" return value is not valid until after Send returns without error.
  2721  //
  2722  // See ListPartnerEventSourceAccounts for more information on using the ListPartnerEventSourceAccounts
  2723  // API call, and error handling.
  2724  //
  2725  // This method is useful when you want to inject custom logic or configuration
  2726  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2727  //
  2728  //
  2729  //    // Example sending a request using the ListPartnerEventSourceAccountsRequest method.
  2730  //    req, resp := client.ListPartnerEventSourceAccountsRequest(params)
  2731  //
  2732  //    err := req.Send()
  2733  //    if err == nil { // resp is now filled
  2734  //        fmt.Println(resp)
  2735  //    }
  2736  //
  2737  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListPartnerEventSourceAccounts
  2738  func (c *EventBridge) ListPartnerEventSourceAccountsRequest(input *ListPartnerEventSourceAccountsInput) (req *request.Request, output *ListPartnerEventSourceAccountsOutput) {
  2739  	op := &request.Operation{
  2740  		Name:       opListPartnerEventSourceAccounts,
  2741  		HTTPMethod: "POST",
  2742  		HTTPPath:   "/",
  2743  	}
  2744  
  2745  	if input == nil {
  2746  		input = &ListPartnerEventSourceAccountsInput{}
  2747  	}
  2748  
  2749  	output = &ListPartnerEventSourceAccountsOutput{}
  2750  	req = c.newRequest(op, input, output)
  2751  	return
  2752  }
  2753  
  2754  // ListPartnerEventSourceAccounts API operation for Amazon EventBridge.
  2755  //
  2756  // An SaaS partner can use this operation to display the Amazon Web Services
  2757  // account ID that a particular partner event source name is associated with.
  2758  // This operation is not used by Amazon Web Services customers.
  2759  //
  2760  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2761  // with awserr.Error's Code and Message methods to get detailed information about
  2762  // the error.
  2763  //
  2764  // See the AWS API reference guide for Amazon EventBridge's
  2765  // API operation ListPartnerEventSourceAccounts for usage and error information.
  2766  //
  2767  // Returned Error Types:
  2768  //   * ResourceNotFoundException
  2769  //   An entity that you specified does not exist.
  2770  //
  2771  //   * InternalException
  2772  //   This exception occurs due to unexpected causes.
  2773  //
  2774  //   * OperationDisabledException
  2775  //   The operation you are attempting is not available in this region.
  2776  //
  2777  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListPartnerEventSourceAccounts
  2778  func (c *EventBridge) ListPartnerEventSourceAccounts(input *ListPartnerEventSourceAccountsInput) (*ListPartnerEventSourceAccountsOutput, error) {
  2779  	req, out := c.ListPartnerEventSourceAccountsRequest(input)
  2780  	return out, req.Send()
  2781  }
  2782  
  2783  // ListPartnerEventSourceAccountsWithContext is the same as ListPartnerEventSourceAccounts with the addition of
  2784  // the ability to pass a context and additional request options.
  2785  //
  2786  // See ListPartnerEventSourceAccounts for details on how to use this API operation.
  2787  //
  2788  // The context must be non-nil and will be used for request cancellation. If
  2789  // the context is nil a panic will occur. In the future the SDK may create
  2790  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2791  // for more information on using Contexts.
  2792  func (c *EventBridge) ListPartnerEventSourceAccountsWithContext(ctx aws.Context, input *ListPartnerEventSourceAccountsInput, opts ...request.Option) (*ListPartnerEventSourceAccountsOutput, error) {
  2793  	req, out := c.ListPartnerEventSourceAccountsRequest(input)
  2794  	req.SetContext(ctx)
  2795  	req.ApplyOptions(opts...)
  2796  	return out, req.Send()
  2797  }
  2798  
  2799  const opListPartnerEventSources = "ListPartnerEventSources"
  2800  
  2801  // ListPartnerEventSourcesRequest generates a "aws/request.Request" representing the
  2802  // client's request for the ListPartnerEventSources operation. The "output" return
  2803  // value will be populated with the request's response once the request completes
  2804  // successfully.
  2805  //
  2806  // Use "Send" method on the returned Request to send the API call to the service.
  2807  // the "output" return value is not valid until after Send returns without error.
  2808  //
  2809  // See ListPartnerEventSources for more information on using the ListPartnerEventSources
  2810  // API call, and error handling.
  2811  //
  2812  // This method is useful when you want to inject custom logic or configuration
  2813  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2814  //
  2815  //
  2816  //    // Example sending a request using the ListPartnerEventSourcesRequest method.
  2817  //    req, resp := client.ListPartnerEventSourcesRequest(params)
  2818  //
  2819  //    err := req.Send()
  2820  //    if err == nil { // resp is now filled
  2821  //        fmt.Println(resp)
  2822  //    }
  2823  //
  2824  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListPartnerEventSources
  2825  func (c *EventBridge) ListPartnerEventSourcesRequest(input *ListPartnerEventSourcesInput) (req *request.Request, output *ListPartnerEventSourcesOutput) {
  2826  	op := &request.Operation{
  2827  		Name:       opListPartnerEventSources,
  2828  		HTTPMethod: "POST",
  2829  		HTTPPath:   "/",
  2830  	}
  2831  
  2832  	if input == nil {
  2833  		input = &ListPartnerEventSourcesInput{}
  2834  	}
  2835  
  2836  	output = &ListPartnerEventSourcesOutput{}
  2837  	req = c.newRequest(op, input, output)
  2838  	return
  2839  }
  2840  
  2841  // ListPartnerEventSources API operation for Amazon EventBridge.
  2842  //
  2843  // An SaaS partner can use this operation to list all the partner event source
  2844  // names that they have created. This operation is not used by Amazon Web Services
  2845  // customers.
  2846  //
  2847  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2848  // with awserr.Error's Code and Message methods to get detailed information about
  2849  // the error.
  2850  //
  2851  // See the AWS API reference guide for Amazon EventBridge's
  2852  // API operation ListPartnerEventSources for usage and error information.
  2853  //
  2854  // Returned Error Types:
  2855  //   * InternalException
  2856  //   This exception occurs due to unexpected causes.
  2857  //
  2858  //   * OperationDisabledException
  2859  //   The operation you are attempting is not available in this region.
  2860  //
  2861  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListPartnerEventSources
  2862  func (c *EventBridge) ListPartnerEventSources(input *ListPartnerEventSourcesInput) (*ListPartnerEventSourcesOutput, error) {
  2863  	req, out := c.ListPartnerEventSourcesRequest(input)
  2864  	return out, req.Send()
  2865  }
  2866  
  2867  // ListPartnerEventSourcesWithContext is the same as ListPartnerEventSources with the addition of
  2868  // the ability to pass a context and additional request options.
  2869  //
  2870  // See ListPartnerEventSources for details on how to use this API operation.
  2871  //
  2872  // The context must be non-nil and will be used for request cancellation. If
  2873  // the context is nil a panic will occur. In the future the SDK may create
  2874  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2875  // for more information on using Contexts.
  2876  func (c *EventBridge) ListPartnerEventSourcesWithContext(ctx aws.Context, input *ListPartnerEventSourcesInput, opts ...request.Option) (*ListPartnerEventSourcesOutput, error) {
  2877  	req, out := c.ListPartnerEventSourcesRequest(input)
  2878  	req.SetContext(ctx)
  2879  	req.ApplyOptions(opts...)
  2880  	return out, req.Send()
  2881  }
  2882  
  2883  const opListReplays = "ListReplays"
  2884  
  2885  // ListReplaysRequest generates a "aws/request.Request" representing the
  2886  // client's request for the ListReplays operation. The "output" return
  2887  // value will be populated with the request's response once the request completes
  2888  // successfully.
  2889  //
  2890  // Use "Send" method on the returned Request to send the API call to the service.
  2891  // the "output" return value is not valid until after Send returns without error.
  2892  //
  2893  // See ListReplays for more information on using the ListReplays
  2894  // API call, and error handling.
  2895  //
  2896  // This method is useful when you want to inject custom logic or configuration
  2897  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2898  //
  2899  //
  2900  //    // Example sending a request using the ListReplaysRequest method.
  2901  //    req, resp := client.ListReplaysRequest(params)
  2902  //
  2903  //    err := req.Send()
  2904  //    if err == nil { // resp is now filled
  2905  //        fmt.Println(resp)
  2906  //    }
  2907  //
  2908  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListReplays
  2909  func (c *EventBridge) ListReplaysRequest(input *ListReplaysInput) (req *request.Request, output *ListReplaysOutput) {
  2910  	op := &request.Operation{
  2911  		Name:       opListReplays,
  2912  		HTTPMethod: "POST",
  2913  		HTTPPath:   "/",
  2914  	}
  2915  
  2916  	if input == nil {
  2917  		input = &ListReplaysInput{}
  2918  	}
  2919  
  2920  	output = &ListReplaysOutput{}
  2921  	req = c.newRequest(op, input, output)
  2922  	return
  2923  }
  2924  
  2925  // ListReplays API operation for Amazon EventBridge.
  2926  //
  2927  // Lists your replays. You can either list all the replays or you can provide
  2928  // a prefix to match to the replay names. Filter parameters are exclusive.
  2929  //
  2930  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2931  // with awserr.Error's Code and Message methods to get detailed information about
  2932  // the error.
  2933  //
  2934  // See the AWS API reference guide for Amazon EventBridge's
  2935  // API operation ListReplays for usage and error information.
  2936  //
  2937  // Returned Error Types:
  2938  //   * InternalException
  2939  //   This exception occurs due to unexpected causes.
  2940  //
  2941  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListReplays
  2942  func (c *EventBridge) ListReplays(input *ListReplaysInput) (*ListReplaysOutput, error) {
  2943  	req, out := c.ListReplaysRequest(input)
  2944  	return out, req.Send()
  2945  }
  2946  
  2947  // ListReplaysWithContext is the same as ListReplays with the addition of
  2948  // the ability to pass a context and additional request options.
  2949  //
  2950  // See ListReplays for details on how to use this API operation.
  2951  //
  2952  // The context must be non-nil and will be used for request cancellation. If
  2953  // the context is nil a panic will occur. In the future the SDK may create
  2954  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2955  // for more information on using Contexts.
  2956  func (c *EventBridge) ListReplaysWithContext(ctx aws.Context, input *ListReplaysInput, opts ...request.Option) (*ListReplaysOutput, error) {
  2957  	req, out := c.ListReplaysRequest(input)
  2958  	req.SetContext(ctx)
  2959  	req.ApplyOptions(opts...)
  2960  	return out, req.Send()
  2961  }
  2962  
  2963  const opListRuleNamesByTarget = "ListRuleNamesByTarget"
  2964  
  2965  // ListRuleNamesByTargetRequest generates a "aws/request.Request" representing the
  2966  // client's request for the ListRuleNamesByTarget operation. The "output" return
  2967  // value will be populated with the request's response once the request completes
  2968  // successfully.
  2969  //
  2970  // Use "Send" method on the returned Request to send the API call to the service.
  2971  // the "output" return value is not valid until after Send returns without error.
  2972  //
  2973  // See ListRuleNamesByTarget for more information on using the ListRuleNamesByTarget
  2974  // API call, and error handling.
  2975  //
  2976  // This method is useful when you want to inject custom logic or configuration
  2977  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2978  //
  2979  //
  2980  //    // Example sending a request using the ListRuleNamesByTargetRequest method.
  2981  //    req, resp := client.ListRuleNamesByTargetRequest(params)
  2982  //
  2983  //    err := req.Send()
  2984  //    if err == nil { // resp is now filled
  2985  //        fmt.Println(resp)
  2986  //    }
  2987  //
  2988  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListRuleNamesByTarget
  2989  func (c *EventBridge) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) (req *request.Request, output *ListRuleNamesByTargetOutput) {
  2990  	op := &request.Operation{
  2991  		Name:       opListRuleNamesByTarget,
  2992  		HTTPMethod: "POST",
  2993  		HTTPPath:   "/",
  2994  	}
  2995  
  2996  	if input == nil {
  2997  		input = &ListRuleNamesByTargetInput{}
  2998  	}
  2999  
  3000  	output = &ListRuleNamesByTargetOutput{}
  3001  	req = c.newRequest(op, input, output)
  3002  	return
  3003  }
  3004  
  3005  // ListRuleNamesByTarget API operation for Amazon EventBridge.
  3006  //
  3007  // Lists the rules for the specified target. You can see which of the rules
  3008  // in Amazon EventBridge can invoke a specific target in your account.
  3009  //
  3010  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3011  // with awserr.Error's Code and Message methods to get detailed information about
  3012  // the error.
  3013  //
  3014  // See the AWS API reference guide for Amazon EventBridge's
  3015  // API operation ListRuleNamesByTarget for usage and error information.
  3016  //
  3017  // Returned Error Types:
  3018  //   * InternalException
  3019  //   This exception occurs due to unexpected causes.
  3020  //
  3021  //   * ResourceNotFoundException
  3022  //   An entity that you specified does not exist.
  3023  //
  3024  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListRuleNamesByTarget
  3025  func (c *EventBridge) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) {
  3026  	req, out := c.ListRuleNamesByTargetRequest(input)
  3027  	return out, req.Send()
  3028  }
  3029  
  3030  // ListRuleNamesByTargetWithContext is the same as ListRuleNamesByTarget with the addition of
  3031  // the ability to pass a context and additional request options.
  3032  //
  3033  // See ListRuleNamesByTarget for details on how to use this API operation.
  3034  //
  3035  // The context must be non-nil and will be used for request cancellation. If
  3036  // the context is nil a panic will occur. In the future the SDK may create
  3037  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3038  // for more information on using Contexts.
  3039  func (c *EventBridge) ListRuleNamesByTargetWithContext(ctx aws.Context, input *ListRuleNamesByTargetInput, opts ...request.Option) (*ListRuleNamesByTargetOutput, error) {
  3040  	req, out := c.ListRuleNamesByTargetRequest(input)
  3041  	req.SetContext(ctx)
  3042  	req.ApplyOptions(opts...)
  3043  	return out, req.Send()
  3044  }
  3045  
  3046  const opListRules = "ListRules"
  3047  
  3048  // ListRulesRequest generates a "aws/request.Request" representing the
  3049  // client's request for the ListRules operation. The "output" return
  3050  // value will be populated with the request's response once the request completes
  3051  // successfully.
  3052  //
  3053  // Use "Send" method on the returned Request to send the API call to the service.
  3054  // the "output" return value is not valid until after Send returns without error.
  3055  //
  3056  // See ListRules for more information on using the ListRules
  3057  // API call, and error handling.
  3058  //
  3059  // This method is useful when you want to inject custom logic or configuration
  3060  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3061  //
  3062  //
  3063  //    // Example sending a request using the ListRulesRequest method.
  3064  //    req, resp := client.ListRulesRequest(params)
  3065  //
  3066  //    err := req.Send()
  3067  //    if err == nil { // resp is now filled
  3068  //        fmt.Println(resp)
  3069  //    }
  3070  //
  3071  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListRules
  3072  func (c *EventBridge) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) {
  3073  	op := &request.Operation{
  3074  		Name:       opListRules,
  3075  		HTTPMethod: "POST",
  3076  		HTTPPath:   "/",
  3077  	}
  3078  
  3079  	if input == nil {
  3080  		input = &ListRulesInput{}
  3081  	}
  3082  
  3083  	output = &ListRulesOutput{}
  3084  	req = c.newRequest(op, input, output)
  3085  	return
  3086  }
  3087  
  3088  // ListRules API operation for Amazon EventBridge.
  3089  //
  3090  // Lists your Amazon EventBridge rules. You can either list all the rules or
  3091  // you can provide a prefix to match to the rule names.
  3092  //
  3093  // ListRules does not list the targets of a rule. To see the targets associated
  3094  // with a rule, use ListTargetsByRule (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html).
  3095  //
  3096  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3097  // with awserr.Error's Code and Message methods to get detailed information about
  3098  // the error.
  3099  //
  3100  // See the AWS API reference guide for Amazon EventBridge's
  3101  // API operation ListRules for usage and error information.
  3102  //
  3103  // Returned Error Types:
  3104  //   * InternalException
  3105  //   This exception occurs due to unexpected causes.
  3106  //
  3107  //   * ResourceNotFoundException
  3108  //   An entity that you specified does not exist.
  3109  //
  3110  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListRules
  3111  func (c *EventBridge) ListRules(input *ListRulesInput) (*ListRulesOutput, error) {
  3112  	req, out := c.ListRulesRequest(input)
  3113  	return out, req.Send()
  3114  }
  3115  
  3116  // ListRulesWithContext is the same as ListRules with the addition of
  3117  // the ability to pass a context and additional request options.
  3118  //
  3119  // See ListRules for details on how to use this API operation.
  3120  //
  3121  // The context must be non-nil and will be used for request cancellation. If
  3122  // the context is nil a panic will occur. In the future the SDK may create
  3123  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3124  // for more information on using Contexts.
  3125  func (c *EventBridge) ListRulesWithContext(ctx aws.Context, input *ListRulesInput, opts ...request.Option) (*ListRulesOutput, error) {
  3126  	req, out := c.ListRulesRequest(input)
  3127  	req.SetContext(ctx)
  3128  	req.ApplyOptions(opts...)
  3129  	return out, req.Send()
  3130  }
  3131  
  3132  const opListTagsForResource = "ListTagsForResource"
  3133  
  3134  // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  3135  // client's request for the ListTagsForResource operation. The "output" return
  3136  // value will be populated with the request's response once the request completes
  3137  // successfully.
  3138  //
  3139  // Use "Send" method on the returned Request to send the API call to the service.
  3140  // the "output" return value is not valid until after Send returns without error.
  3141  //
  3142  // See ListTagsForResource for more information on using the ListTagsForResource
  3143  // API call, and error handling.
  3144  //
  3145  // This method is useful when you want to inject custom logic or configuration
  3146  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3147  //
  3148  //
  3149  //    // Example sending a request using the ListTagsForResourceRequest method.
  3150  //    req, resp := client.ListTagsForResourceRequest(params)
  3151  //
  3152  //    err := req.Send()
  3153  //    if err == nil { // resp is now filled
  3154  //        fmt.Println(resp)
  3155  //    }
  3156  //
  3157  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListTagsForResource
  3158  func (c *EventBridge) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  3159  	op := &request.Operation{
  3160  		Name:       opListTagsForResource,
  3161  		HTTPMethod: "POST",
  3162  		HTTPPath:   "/",
  3163  	}
  3164  
  3165  	if input == nil {
  3166  		input = &ListTagsForResourceInput{}
  3167  	}
  3168  
  3169  	output = &ListTagsForResourceOutput{}
  3170  	req = c.newRequest(op, input, output)
  3171  	return
  3172  }
  3173  
  3174  // ListTagsForResource API operation for Amazon EventBridge.
  3175  //
  3176  // Displays the tags associated with an EventBridge resource. In EventBridge,
  3177  // rules and event buses can be tagged.
  3178  //
  3179  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3180  // with awserr.Error's Code and Message methods to get detailed information about
  3181  // the error.
  3182  //
  3183  // See the AWS API reference guide for Amazon EventBridge's
  3184  // API operation ListTagsForResource for usage and error information.
  3185  //
  3186  // Returned Error Types:
  3187  //   * ResourceNotFoundException
  3188  //   An entity that you specified does not exist.
  3189  //
  3190  //   * InternalException
  3191  //   This exception occurs due to unexpected causes.
  3192  //
  3193  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListTagsForResource
  3194  func (c *EventBridge) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  3195  	req, out := c.ListTagsForResourceRequest(input)
  3196  	return out, req.Send()
  3197  }
  3198  
  3199  // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  3200  // the ability to pass a context and additional request options.
  3201  //
  3202  // See ListTagsForResource for details on how to use this API operation.
  3203  //
  3204  // The context must be non-nil and will be used for request cancellation. If
  3205  // the context is nil a panic will occur. In the future the SDK may create
  3206  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3207  // for more information on using Contexts.
  3208  func (c *EventBridge) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  3209  	req, out := c.ListTagsForResourceRequest(input)
  3210  	req.SetContext(ctx)
  3211  	req.ApplyOptions(opts...)
  3212  	return out, req.Send()
  3213  }
  3214  
  3215  const opListTargetsByRule = "ListTargetsByRule"
  3216  
  3217  // ListTargetsByRuleRequest generates a "aws/request.Request" representing the
  3218  // client's request for the ListTargetsByRule operation. The "output" return
  3219  // value will be populated with the request's response once the request completes
  3220  // successfully.
  3221  //
  3222  // Use "Send" method on the returned Request to send the API call to the service.
  3223  // the "output" return value is not valid until after Send returns without error.
  3224  //
  3225  // See ListTargetsByRule for more information on using the ListTargetsByRule
  3226  // API call, and error handling.
  3227  //
  3228  // This method is useful when you want to inject custom logic or configuration
  3229  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3230  //
  3231  //
  3232  //    // Example sending a request using the ListTargetsByRuleRequest method.
  3233  //    req, resp := client.ListTargetsByRuleRequest(params)
  3234  //
  3235  //    err := req.Send()
  3236  //    if err == nil { // resp is now filled
  3237  //        fmt.Println(resp)
  3238  //    }
  3239  //
  3240  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListTargetsByRule
  3241  func (c *EventBridge) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (req *request.Request, output *ListTargetsByRuleOutput) {
  3242  	op := &request.Operation{
  3243  		Name:       opListTargetsByRule,
  3244  		HTTPMethod: "POST",
  3245  		HTTPPath:   "/",
  3246  	}
  3247  
  3248  	if input == nil {
  3249  		input = &ListTargetsByRuleInput{}
  3250  	}
  3251  
  3252  	output = &ListTargetsByRuleOutput{}
  3253  	req = c.newRequest(op, input, output)
  3254  	return
  3255  }
  3256  
  3257  // ListTargetsByRule API operation for Amazon EventBridge.
  3258  //
  3259  // Lists the targets assigned to the specified rule.
  3260  //
  3261  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3262  // with awserr.Error's Code and Message methods to get detailed information about
  3263  // the error.
  3264  //
  3265  // See the AWS API reference guide for Amazon EventBridge's
  3266  // API operation ListTargetsByRule for usage and error information.
  3267  //
  3268  // Returned Error Types:
  3269  //   * ResourceNotFoundException
  3270  //   An entity that you specified does not exist.
  3271  //
  3272  //   * InternalException
  3273  //   This exception occurs due to unexpected causes.
  3274  //
  3275  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListTargetsByRule
  3276  func (c *EventBridge) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) {
  3277  	req, out := c.ListTargetsByRuleRequest(input)
  3278  	return out, req.Send()
  3279  }
  3280  
  3281  // ListTargetsByRuleWithContext is the same as ListTargetsByRule with the addition of
  3282  // the ability to pass a context and additional request options.
  3283  //
  3284  // See ListTargetsByRule for details on how to use this API operation.
  3285  //
  3286  // The context must be non-nil and will be used for request cancellation. If
  3287  // the context is nil a panic will occur. In the future the SDK may create
  3288  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3289  // for more information on using Contexts.
  3290  func (c *EventBridge) ListTargetsByRuleWithContext(ctx aws.Context, input *ListTargetsByRuleInput, opts ...request.Option) (*ListTargetsByRuleOutput, error) {
  3291  	req, out := c.ListTargetsByRuleRequest(input)
  3292  	req.SetContext(ctx)
  3293  	req.ApplyOptions(opts...)
  3294  	return out, req.Send()
  3295  }
  3296  
  3297  const opPutEvents = "PutEvents"
  3298  
  3299  // PutEventsRequest generates a "aws/request.Request" representing the
  3300  // client's request for the PutEvents operation. The "output" return
  3301  // value will be populated with the request's response once the request completes
  3302  // successfully.
  3303  //
  3304  // Use "Send" method on the returned Request to send the API call to the service.
  3305  // the "output" return value is not valid until after Send returns without error.
  3306  //
  3307  // See PutEvents for more information on using the PutEvents
  3308  // API call, and error handling.
  3309  //
  3310  // This method is useful when you want to inject custom logic or configuration
  3311  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3312  //
  3313  //
  3314  //    // Example sending a request using the PutEventsRequest method.
  3315  //    req, resp := client.PutEventsRequest(params)
  3316  //
  3317  //    err := req.Send()
  3318  //    if err == nil { // resp is now filled
  3319  //        fmt.Println(resp)
  3320  //    }
  3321  //
  3322  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutEvents
  3323  func (c *EventBridge) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) {
  3324  	op := &request.Operation{
  3325  		Name:       opPutEvents,
  3326  		HTTPMethod: "POST",
  3327  		HTTPPath:   "/",
  3328  	}
  3329  
  3330  	if input == nil {
  3331  		input = &PutEventsInput{}
  3332  	}
  3333  
  3334  	output = &PutEventsOutput{}
  3335  	req = c.newRequest(op, input, output)
  3336  	return
  3337  }
  3338  
  3339  // PutEvents API operation for Amazon EventBridge.
  3340  //
  3341  // Sends custom events to Amazon EventBridge so that they can be matched to
  3342  // rules.
  3343  //
  3344  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3345  // with awserr.Error's Code and Message methods to get detailed information about
  3346  // the error.
  3347  //
  3348  // See the AWS API reference guide for Amazon EventBridge's
  3349  // API operation PutEvents for usage and error information.
  3350  //
  3351  // Returned Error Types:
  3352  //   * InternalException
  3353  //   This exception occurs due to unexpected causes.
  3354  //
  3355  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutEvents
  3356  func (c *EventBridge) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) {
  3357  	req, out := c.PutEventsRequest(input)
  3358  	return out, req.Send()
  3359  }
  3360  
  3361  // PutEventsWithContext is the same as PutEvents with the addition of
  3362  // the ability to pass a context and additional request options.
  3363  //
  3364  // See PutEvents for details on how to use this API operation.
  3365  //
  3366  // The context must be non-nil and will be used for request cancellation. If
  3367  // the context is nil a panic will occur. In the future the SDK may create
  3368  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3369  // for more information on using Contexts.
  3370  func (c *EventBridge) PutEventsWithContext(ctx aws.Context, input *PutEventsInput, opts ...request.Option) (*PutEventsOutput, error) {
  3371  	req, out := c.PutEventsRequest(input)
  3372  	req.SetContext(ctx)
  3373  	req.ApplyOptions(opts...)
  3374  	return out, req.Send()
  3375  }
  3376  
  3377  const opPutPartnerEvents = "PutPartnerEvents"
  3378  
  3379  // PutPartnerEventsRequest generates a "aws/request.Request" representing the
  3380  // client's request for the PutPartnerEvents operation. The "output" return
  3381  // value will be populated with the request's response once the request completes
  3382  // successfully.
  3383  //
  3384  // Use "Send" method on the returned Request to send the API call to the service.
  3385  // the "output" return value is not valid until after Send returns without error.
  3386  //
  3387  // See PutPartnerEvents for more information on using the PutPartnerEvents
  3388  // API call, and error handling.
  3389  //
  3390  // This method is useful when you want to inject custom logic or configuration
  3391  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3392  //
  3393  //
  3394  //    // Example sending a request using the PutPartnerEventsRequest method.
  3395  //    req, resp := client.PutPartnerEventsRequest(params)
  3396  //
  3397  //    err := req.Send()
  3398  //    if err == nil { // resp is now filled
  3399  //        fmt.Println(resp)
  3400  //    }
  3401  //
  3402  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPartnerEvents
  3403  func (c *EventBridge) PutPartnerEventsRequest(input *PutPartnerEventsInput) (req *request.Request, output *PutPartnerEventsOutput) {
  3404  	op := &request.Operation{
  3405  		Name:       opPutPartnerEvents,
  3406  		HTTPMethod: "POST",
  3407  		HTTPPath:   "/",
  3408  	}
  3409  
  3410  	if input == nil {
  3411  		input = &PutPartnerEventsInput{}
  3412  	}
  3413  
  3414  	output = &PutPartnerEventsOutput{}
  3415  	req = c.newRequest(op, input, output)
  3416  	return
  3417  }
  3418  
  3419  // PutPartnerEvents API operation for Amazon EventBridge.
  3420  //
  3421  // This is used by SaaS partners to write events to a customer's partner event
  3422  // bus. Amazon Web Services customers do not use this operation.
  3423  //
  3424  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3425  // with awserr.Error's Code and Message methods to get detailed information about
  3426  // the error.
  3427  //
  3428  // See the AWS API reference guide for Amazon EventBridge's
  3429  // API operation PutPartnerEvents for usage and error information.
  3430  //
  3431  // Returned Error Types:
  3432  //   * InternalException
  3433  //   This exception occurs due to unexpected causes.
  3434  //
  3435  //   * OperationDisabledException
  3436  //   The operation you are attempting is not available in this region.
  3437  //
  3438  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPartnerEvents
  3439  func (c *EventBridge) PutPartnerEvents(input *PutPartnerEventsInput) (*PutPartnerEventsOutput, error) {
  3440  	req, out := c.PutPartnerEventsRequest(input)
  3441  	return out, req.Send()
  3442  }
  3443  
  3444  // PutPartnerEventsWithContext is the same as PutPartnerEvents with the addition of
  3445  // the ability to pass a context and additional request options.
  3446  //
  3447  // See PutPartnerEvents for details on how to use this API operation.
  3448  //
  3449  // The context must be non-nil and will be used for request cancellation. If
  3450  // the context is nil a panic will occur. In the future the SDK may create
  3451  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3452  // for more information on using Contexts.
  3453  func (c *EventBridge) PutPartnerEventsWithContext(ctx aws.Context, input *PutPartnerEventsInput, opts ...request.Option) (*PutPartnerEventsOutput, error) {
  3454  	req, out := c.PutPartnerEventsRequest(input)
  3455  	req.SetContext(ctx)
  3456  	req.ApplyOptions(opts...)
  3457  	return out, req.Send()
  3458  }
  3459  
  3460  const opPutPermission = "PutPermission"
  3461  
  3462  // PutPermissionRequest generates a "aws/request.Request" representing the
  3463  // client's request for the PutPermission operation. The "output" return
  3464  // value will be populated with the request's response once the request completes
  3465  // successfully.
  3466  //
  3467  // Use "Send" method on the returned Request to send the API call to the service.
  3468  // the "output" return value is not valid until after Send returns without error.
  3469  //
  3470  // See PutPermission for more information on using the PutPermission
  3471  // API call, and error handling.
  3472  //
  3473  // This method is useful when you want to inject custom logic or configuration
  3474  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3475  //
  3476  //
  3477  //    // Example sending a request using the PutPermissionRequest method.
  3478  //    req, resp := client.PutPermissionRequest(params)
  3479  //
  3480  //    err := req.Send()
  3481  //    if err == nil { // resp is now filled
  3482  //        fmt.Println(resp)
  3483  //    }
  3484  //
  3485  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPermission
  3486  func (c *EventBridge) PutPermissionRequest(input *PutPermissionInput) (req *request.Request, output *PutPermissionOutput) {
  3487  	op := &request.Operation{
  3488  		Name:       opPutPermission,
  3489  		HTTPMethod: "POST",
  3490  		HTTPPath:   "/",
  3491  	}
  3492  
  3493  	if input == nil {
  3494  		input = &PutPermissionInput{}
  3495  	}
  3496  
  3497  	output = &PutPermissionOutput{}
  3498  	req = c.newRequest(op, input, output)
  3499  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3500  	return
  3501  }
  3502  
  3503  // PutPermission API operation for Amazon EventBridge.
  3504  //
  3505  // Running PutPermission permits the specified Amazon Web Services account or
  3506  // Amazon Web Services organization to put events to the specified event bus.
  3507  // Amazon EventBridge (CloudWatch Events) rules in your account are triggered
  3508  // by these events arriving to an event bus in your account.
  3509  //
  3510  // For another account to send events to your account, that external account
  3511  // must have an EventBridge rule with your account's event bus as a target.
  3512  //
  3513  // To enable multiple Amazon Web Services accounts to put events to your event
  3514  // bus, run PutPermission once for each of these accounts. Or, if all the accounts
  3515  // are members of the same Amazon Web Services organization, you can run PutPermission
  3516  // once specifying Principal as "*" and specifying the Amazon Web Services organization
  3517  // ID in Condition, to grant permissions to all accounts in that organization.
  3518  //
  3519  // If you grant permissions using an organization, then accounts in that organization
  3520  // must specify a RoleArn with proper permissions when they use PutTarget to
  3521  // add your account's event bus as a target. For more information, see Sending
  3522  // and Receiving Events Between Amazon Web Services Accounts (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html)
  3523  // in the Amazon EventBridge User Guide.
  3524  //
  3525  // The permission policy on the event bus cannot exceed 10 KB in size.
  3526  //
  3527  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3528  // with awserr.Error's Code and Message methods to get detailed information about
  3529  // the error.
  3530  //
  3531  // See the AWS API reference guide for Amazon EventBridge's
  3532  // API operation PutPermission for usage and error information.
  3533  //
  3534  // Returned Error Types:
  3535  //   * ResourceNotFoundException
  3536  //   An entity that you specified does not exist.
  3537  //
  3538  //   * PolicyLengthExceededException
  3539  //   The event bus policy is too long. For more information, see the limits.
  3540  //
  3541  //   * InternalException
  3542  //   This exception occurs due to unexpected causes.
  3543  //
  3544  //   * ConcurrentModificationException
  3545  //   There is concurrent modification on a rule, target, archive, or replay.
  3546  //
  3547  //   * OperationDisabledException
  3548  //   The operation you are attempting is not available in this region.
  3549  //
  3550  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPermission
  3551  func (c *EventBridge) PutPermission(input *PutPermissionInput) (*PutPermissionOutput, error) {
  3552  	req, out := c.PutPermissionRequest(input)
  3553  	return out, req.Send()
  3554  }
  3555  
  3556  // PutPermissionWithContext is the same as PutPermission with the addition of
  3557  // the ability to pass a context and additional request options.
  3558  //
  3559  // See PutPermission for details on how to use this API operation.
  3560  //
  3561  // The context must be non-nil and will be used for request cancellation. If
  3562  // the context is nil a panic will occur. In the future the SDK may create
  3563  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3564  // for more information on using Contexts.
  3565  func (c *EventBridge) PutPermissionWithContext(ctx aws.Context, input *PutPermissionInput, opts ...request.Option) (*PutPermissionOutput, error) {
  3566  	req, out := c.PutPermissionRequest(input)
  3567  	req.SetContext(ctx)
  3568  	req.ApplyOptions(opts...)
  3569  	return out, req.Send()
  3570  }
  3571  
  3572  const opPutRule = "PutRule"
  3573  
  3574  // PutRuleRequest generates a "aws/request.Request" representing the
  3575  // client's request for the PutRule operation. The "output" return
  3576  // value will be populated with the request's response once the request completes
  3577  // successfully.
  3578  //
  3579  // Use "Send" method on the returned Request to send the API call to the service.
  3580  // the "output" return value is not valid until after Send returns without error.
  3581  //
  3582  // See PutRule for more information on using the PutRule
  3583  // API call, and error handling.
  3584  //
  3585  // This method is useful when you want to inject custom logic or configuration
  3586  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3587  //
  3588  //
  3589  //    // Example sending a request using the PutRuleRequest method.
  3590  //    req, resp := client.PutRuleRequest(params)
  3591  //
  3592  //    err := req.Send()
  3593  //    if err == nil { // resp is now filled
  3594  //        fmt.Println(resp)
  3595  //    }
  3596  //
  3597  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutRule
  3598  func (c *EventBridge) PutRuleRequest(input *PutRuleInput) (req *request.Request, output *PutRuleOutput) {
  3599  	op := &request.Operation{
  3600  		Name:       opPutRule,
  3601  		HTTPMethod: "POST",
  3602  		HTTPPath:   "/",
  3603  	}
  3604  
  3605  	if input == nil {
  3606  		input = &PutRuleInput{}
  3607  	}
  3608  
  3609  	output = &PutRuleOutput{}
  3610  	req = c.newRequest(op, input, output)
  3611  	return
  3612  }
  3613  
  3614  // PutRule API operation for Amazon EventBridge.
  3615  //
  3616  // Creates or updates the specified rule. Rules are enabled by default, or based
  3617  // on value of the state. You can disable a rule using DisableRule (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html).
  3618  //
  3619  // A single rule watches for events from a single event bus. Events generated
  3620  // by Amazon Web Services services go to your account's default event bus. Events
  3621  // generated by SaaS partner services or applications go to the matching partner
  3622  // event bus. If you have custom applications or services, you can specify whether
  3623  // their events go to your default event bus or a custom event bus that you
  3624  // have created. For more information, see CreateEventBus (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html).
  3625  //
  3626  // If you are updating an existing rule, the rule is replaced with what you
  3627  // specify in this PutRule command. If you omit arguments in PutRule, the old
  3628  // values for those arguments are not kept. Instead, they are replaced with
  3629  // null values.
  3630  //
  3631  // When you create or update a rule, incoming events might not immediately start
  3632  // matching to new or updated rules. Allow a short period of time for changes
  3633  // to take effect.
  3634  //
  3635  // A rule must contain at least an EventPattern or ScheduleExpression. Rules
  3636  // with EventPatterns are triggered when a matching event is observed. Rules
  3637  // with ScheduleExpressions self-trigger based on the given schedule. A rule
  3638  // can have both an EventPattern and a ScheduleExpression, in which case the
  3639  // rule triggers on matching events as well as on a schedule.
  3640  //
  3641  // When you initially create a rule, you can optionally assign one or more tags
  3642  // to the rule. Tags can help you organize and categorize your resources. You
  3643  // can also use them to scope user permissions, by granting a user permission
  3644  // to access or change only rules with certain tag values. To use the PutRule
  3645  // operation and assign tags, you must have both the events:PutRule and events:TagResource
  3646  // permissions.
  3647  //
  3648  // If you are updating an existing rule, any tags you specify in the PutRule
  3649  // operation are ignored. To update the tags of an existing rule, use TagResource
  3650  // (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html)
  3651  // and UntagResource (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html).
  3652  //
  3653  // Most services in Amazon Web Services treat : or / as the same character in
  3654  // Amazon Resource Names (ARNs). However, EventBridge uses an exact match in
  3655  // event patterns and rules. Be sure to use the correct ARN characters when
  3656  // creating event patterns so that they match the ARN syntax in the event you
  3657  // want to match.
  3658  //
  3659  // In EventBridge, it is possible to create rules that lead to infinite loops,
  3660  // where a rule is fired repeatedly. For example, a rule might detect that ACLs
  3661  // have changed on an S3 bucket, and trigger software to change them to the
  3662  // desired state. If the rule is not written carefully, the subsequent change
  3663  // to the ACLs fires the rule again, creating an infinite loop.
  3664  //
  3665  // To prevent this, write the rules so that the triggered actions do not re-fire
  3666  // the same rule. For example, your rule could fire only if ACLs are found to
  3667  // be in a bad state, instead of after any change.
  3668  //
  3669  // An infinite loop can quickly cause higher than expected charges. We recommend
  3670  // that you use budgeting, which alerts you when charges exceed your specified
  3671  // limit. For more information, see Managing Your Costs with Budgets (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html).
  3672  //
  3673  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3674  // with awserr.Error's Code and Message methods to get detailed information about
  3675  // the error.
  3676  //
  3677  // See the AWS API reference guide for Amazon EventBridge's
  3678  // API operation PutRule for usage and error information.
  3679  //
  3680  // Returned Error Types:
  3681  //   * InvalidEventPatternException
  3682  //   The event pattern is not valid.
  3683  //
  3684  //   * LimitExceededException
  3685  //   The request failed because it attempted to create resource beyond the allowed
  3686  //   service quota.
  3687  //
  3688  //   * ConcurrentModificationException
  3689  //   There is concurrent modification on a rule, target, archive, or replay.
  3690  //
  3691  //   * ManagedRuleException
  3692  //   This rule was created by an Amazon Web Services service on behalf of your
  3693  //   account. It is managed by that service. If you see this error in response
  3694  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  3695  //   calls to delete the rule or remove targets from the rule. You cannot modify
  3696  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  3697  //   TagResource, or UntagResource.
  3698  //
  3699  //   * InternalException
  3700  //   This exception occurs due to unexpected causes.
  3701  //
  3702  //   * ResourceNotFoundException
  3703  //   An entity that you specified does not exist.
  3704  //
  3705  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutRule
  3706  func (c *EventBridge) PutRule(input *PutRuleInput) (*PutRuleOutput, error) {
  3707  	req, out := c.PutRuleRequest(input)
  3708  	return out, req.Send()
  3709  }
  3710  
  3711  // PutRuleWithContext is the same as PutRule with the addition of
  3712  // the ability to pass a context and additional request options.
  3713  //
  3714  // See PutRule for details on how to use this API operation.
  3715  //
  3716  // The context must be non-nil and will be used for request cancellation. If
  3717  // the context is nil a panic will occur. In the future the SDK may create
  3718  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3719  // for more information on using Contexts.
  3720  func (c *EventBridge) PutRuleWithContext(ctx aws.Context, input *PutRuleInput, opts ...request.Option) (*PutRuleOutput, error) {
  3721  	req, out := c.PutRuleRequest(input)
  3722  	req.SetContext(ctx)
  3723  	req.ApplyOptions(opts...)
  3724  	return out, req.Send()
  3725  }
  3726  
  3727  const opPutTargets = "PutTargets"
  3728  
  3729  // PutTargetsRequest generates a "aws/request.Request" representing the
  3730  // client's request for the PutTargets operation. The "output" return
  3731  // value will be populated with the request's response once the request completes
  3732  // successfully.
  3733  //
  3734  // Use "Send" method on the returned Request to send the API call to the service.
  3735  // the "output" return value is not valid until after Send returns without error.
  3736  //
  3737  // See PutTargets for more information on using the PutTargets
  3738  // API call, and error handling.
  3739  //
  3740  // This method is useful when you want to inject custom logic or configuration
  3741  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3742  //
  3743  //
  3744  //    // Example sending a request using the PutTargetsRequest method.
  3745  //    req, resp := client.PutTargetsRequest(params)
  3746  //
  3747  //    err := req.Send()
  3748  //    if err == nil { // resp is now filled
  3749  //        fmt.Println(resp)
  3750  //    }
  3751  //
  3752  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutTargets
  3753  func (c *EventBridge) PutTargetsRequest(input *PutTargetsInput) (req *request.Request, output *PutTargetsOutput) {
  3754  	op := &request.Operation{
  3755  		Name:       opPutTargets,
  3756  		HTTPMethod: "POST",
  3757  		HTTPPath:   "/",
  3758  	}
  3759  
  3760  	if input == nil {
  3761  		input = &PutTargetsInput{}
  3762  	}
  3763  
  3764  	output = &PutTargetsOutput{}
  3765  	req = c.newRequest(op, input, output)
  3766  	return
  3767  }
  3768  
  3769  // PutTargets API operation for Amazon EventBridge.
  3770  //
  3771  // Adds the specified targets to the specified rule, or updates the targets
  3772  // if they are already associated with the rule.
  3773  //
  3774  // Targets are the resources that are invoked when a rule is triggered.
  3775  //
  3776  // You can configure the following as targets for Events:
  3777  //
  3778  //    * API destination (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html)
  3779  //
  3780  //    * Amazon API Gateway REST API endpoints
  3781  //
  3782  //    * API Gateway
  3783  //
  3784  //    * Batch job queue
  3785  //
  3786  //    * CloudWatch Logs group
  3787  //
  3788  //    * CodeBuild project
  3789  //
  3790  //    * CodePipeline
  3791  //
  3792  //    * Amazon EC2 CreateSnapshot API call
  3793  //
  3794  //    * Amazon EC2 RebootInstances API call
  3795  //
  3796  //    * Amazon EC2 StopInstances API call
  3797  //
  3798  //    * Amazon EC2 TerminateInstances API call
  3799  //
  3800  //    * Amazon ECS tasks
  3801  //
  3802  //    * Event bus in a different Amazon Web Services account or Region. You
  3803  //    can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
  3804  //    us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.
  3805  //
  3806  //    * Firehose delivery stream (Kinesis Data Firehose)
  3807  //
  3808  //    * Inspector assessment template (Amazon Inspector)
  3809  //
  3810  //    * Kinesis stream (Kinesis Data Stream)
  3811  //
  3812  //    * Lambda function
  3813  //
  3814  //    * Redshift clusters (Data API statement execution)
  3815  //
  3816  //    * Amazon SNS topic
  3817  //
  3818  //    * Amazon SQS queues (includes FIFO queues
  3819  //
  3820  //    * SSM Automation
  3821  //
  3822  //    * SSM OpsItem
  3823  //
  3824  //    * SSM Run Command
  3825  //
  3826  //    * Step Functions state machines
  3827  //
  3828  // Creating rules with built-in targets is supported only in the Amazon Web
  3829  // Services Management Console. The built-in targets are EC2 CreateSnapshot
  3830  // API call, EC2 RebootInstances API call, EC2 StopInstances API call, and EC2
  3831  // TerminateInstances API call.
  3832  //
  3833  // For some target types, PutTargets provides target-specific parameters. If
  3834  // the target is a Kinesis data stream, you can optionally specify which shard
  3835  // the event goes to by using the KinesisParameters argument. To invoke a command
  3836  // on multiple EC2 instances with one rule, you can use the RunCommandParameters
  3837  // field.
  3838  //
  3839  // To be able to make API calls against the resources that you own, Amazon EventBridge
  3840  // needs the appropriate permissions. For Lambda and Amazon SNS resources, EventBridge
  3841  // relies on resource-based policies. For EC2 instances, Kinesis Data Streams,
  3842  // Step Functions state machines and API Gateway REST APIs, EventBridge relies
  3843  // on IAM roles that you specify in the RoleARN argument in PutTargets. For
  3844  // more information, see Authentication and Access Control (https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html)
  3845  // in the Amazon EventBridge User Guide.
  3846  //
  3847  // If another Amazon Web Services account is in the same region and has granted
  3848  // you permission (using PutPermission), you can send events to that account.
  3849  // Set that account's event bus as a target of the rules in your account. To
  3850  // send the matched events to the other account, specify that account's event
  3851  // bus as the Arn value when you run PutTargets. If your account sends events
  3852  // to another account, your account is charged for each sent event. Each event
  3853  // sent to another account is charged as a custom event. The account receiving
  3854  // the event is not charged. For more information, see Amazon EventBridge Pricing
  3855  // (http://aws.amazon.com/eventbridge/pricing/).
  3856  //
  3857  // Input, InputPath, and InputTransformer are not available with PutTarget if
  3858  // the target is an event bus of a different Amazon Web Services account.
  3859  //
  3860  // If you are setting the event bus of another account as the target, and that
  3861  // account granted permission to your account through an organization instead
  3862  // of directly by the account ID, then you must specify a RoleArn with proper
  3863  // permissions in the Target structure. For more information, see Sending and
  3864  // Receiving Events Between Amazon Web Services Accounts (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html)
  3865  // in the Amazon EventBridge User Guide.
  3866  //
  3867  // For more information about enabling cross-account events, see PutPermission
  3868  // (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html).
  3869  //
  3870  // Input, InputPath, and InputTransformer are mutually exclusive and optional
  3871  // parameters of a target. When a rule is triggered due to a matched event:
  3872  //
  3873  //    * If none of the following arguments are specified for a target, then
  3874  //    the entire event is passed to the target in JSON format (unless the target
  3875  //    is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from
  3876  //    the event is passed to the target).
  3877  //
  3878  //    * If Input is specified in the form of valid JSON, then the matched event
  3879  //    is overridden with this constant.
  3880  //
  3881  //    * If InputPath is specified in the form of JSONPath (for example, $.detail),
  3882  //    then only the part of the event specified in the path is passed to the
  3883  //    target (for example, only the detail part of the event is passed).
  3884  //
  3885  //    * If InputTransformer is specified, then one or more specified JSONPaths
  3886  //    are extracted from the event and used as values in a template that you
  3887  //    specify as the input to the target.
  3888  //
  3889  // When you specify InputPath or InputTransformer, you must use JSON dot notation,
  3890  // not bracket notation.
  3891  //
  3892  // When you add targets to a rule and the associated rule triggers soon after,
  3893  // new or updated targets might not be immediately invoked. Allow a short period
  3894  // of time for changes to take effect.
  3895  //
  3896  // This action can partially fail if too many requests are made at the same
  3897  // time. If that happens, FailedEntryCount is non-zero in the response and each
  3898  // entry in FailedEntries provides the ID of the failed target and the error
  3899  // code.
  3900  //
  3901  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3902  // with awserr.Error's Code and Message methods to get detailed information about
  3903  // the error.
  3904  //
  3905  // See the AWS API reference guide for Amazon EventBridge's
  3906  // API operation PutTargets for usage and error information.
  3907  //
  3908  // Returned Error Types:
  3909  //   * ResourceNotFoundException
  3910  //   An entity that you specified does not exist.
  3911  //
  3912  //   * ConcurrentModificationException
  3913  //   There is concurrent modification on a rule, target, archive, or replay.
  3914  //
  3915  //   * LimitExceededException
  3916  //   The request failed because it attempted to create resource beyond the allowed
  3917  //   service quota.
  3918  //
  3919  //   * ManagedRuleException
  3920  //   This rule was created by an Amazon Web Services service on behalf of your
  3921  //   account. It is managed by that service. If you see this error in response
  3922  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  3923  //   calls to delete the rule or remove targets from the rule. You cannot modify
  3924  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  3925  //   TagResource, or UntagResource.
  3926  //
  3927  //   * InternalException
  3928  //   This exception occurs due to unexpected causes.
  3929  //
  3930  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutTargets
  3931  func (c *EventBridge) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) {
  3932  	req, out := c.PutTargetsRequest(input)
  3933  	return out, req.Send()
  3934  }
  3935  
  3936  // PutTargetsWithContext is the same as PutTargets with the addition of
  3937  // the ability to pass a context and additional request options.
  3938  //
  3939  // See PutTargets for details on how to use this API operation.
  3940  //
  3941  // The context must be non-nil and will be used for request cancellation. If
  3942  // the context is nil a panic will occur. In the future the SDK may create
  3943  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3944  // for more information on using Contexts.
  3945  func (c *EventBridge) PutTargetsWithContext(ctx aws.Context, input *PutTargetsInput, opts ...request.Option) (*PutTargetsOutput, error) {
  3946  	req, out := c.PutTargetsRequest(input)
  3947  	req.SetContext(ctx)
  3948  	req.ApplyOptions(opts...)
  3949  	return out, req.Send()
  3950  }
  3951  
  3952  const opRemovePermission = "RemovePermission"
  3953  
  3954  // RemovePermissionRequest generates a "aws/request.Request" representing the
  3955  // client's request for the RemovePermission operation. The "output" return
  3956  // value will be populated with the request's response once the request completes
  3957  // successfully.
  3958  //
  3959  // Use "Send" method on the returned Request to send the API call to the service.
  3960  // the "output" return value is not valid until after Send returns without error.
  3961  //
  3962  // See RemovePermission for more information on using the RemovePermission
  3963  // API call, and error handling.
  3964  //
  3965  // This method is useful when you want to inject custom logic or configuration
  3966  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3967  //
  3968  //
  3969  //    // Example sending a request using the RemovePermissionRequest method.
  3970  //    req, resp := client.RemovePermissionRequest(params)
  3971  //
  3972  //    err := req.Send()
  3973  //    if err == nil { // resp is now filled
  3974  //        fmt.Println(resp)
  3975  //    }
  3976  //
  3977  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemovePermission
  3978  func (c *EventBridge) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) {
  3979  	op := &request.Operation{
  3980  		Name:       opRemovePermission,
  3981  		HTTPMethod: "POST",
  3982  		HTTPPath:   "/",
  3983  	}
  3984  
  3985  	if input == nil {
  3986  		input = &RemovePermissionInput{}
  3987  	}
  3988  
  3989  	output = &RemovePermissionOutput{}
  3990  	req = c.newRequest(op, input, output)
  3991  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3992  	return
  3993  }
  3994  
  3995  // RemovePermission API operation for Amazon EventBridge.
  3996  //
  3997  // Revokes the permission of another Amazon Web Services account to be able
  3998  // to put events to the specified event bus. Specify the account to revoke by
  3999  // the StatementId value that you associated with the account when you granted
  4000  // it permission with PutPermission. You can find the StatementId by using DescribeEventBus
  4001  // (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html).
  4002  //
  4003  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4004  // with awserr.Error's Code and Message methods to get detailed information about
  4005  // the error.
  4006  //
  4007  // See the AWS API reference guide for Amazon EventBridge's
  4008  // API operation RemovePermission for usage and error information.
  4009  //
  4010  // Returned Error Types:
  4011  //   * ResourceNotFoundException
  4012  //   An entity that you specified does not exist.
  4013  //
  4014  //   * InternalException
  4015  //   This exception occurs due to unexpected causes.
  4016  //
  4017  //   * ConcurrentModificationException
  4018  //   There is concurrent modification on a rule, target, archive, or replay.
  4019  //
  4020  //   * OperationDisabledException
  4021  //   The operation you are attempting is not available in this region.
  4022  //
  4023  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemovePermission
  4024  func (c *EventBridge) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) {
  4025  	req, out := c.RemovePermissionRequest(input)
  4026  	return out, req.Send()
  4027  }
  4028  
  4029  // RemovePermissionWithContext is the same as RemovePermission with the addition of
  4030  // the ability to pass a context and additional request options.
  4031  //
  4032  // See RemovePermission for details on how to use this API operation.
  4033  //
  4034  // The context must be non-nil and will be used for request cancellation. If
  4035  // the context is nil a panic will occur. In the future the SDK may create
  4036  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4037  // for more information on using Contexts.
  4038  func (c *EventBridge) RemovePermissionWithContext(ctx aws.Context, input *RemovePermissionInput, opts ...request.Option) (*RemovePermissionOutput, error) {
  4039  	req, out := c.RemovePermissionRequest(input)
  4040  	req.SetContext(ctx)
  4041  	req.ApplyOptions(opts...)
  4042  	return out, req.Send()
  4043  }
  4044  
  4045  const opRemoveTargets = "RemoveTargets"
  4046  
  4047  // RemoveTargetsRequest generates a "aws/request.Request" representing the
  4048  // client's request for the RemoveTargets operation. The "output" return
  4049  // value will be populated with the request's response once the request completes
  4050  // successfully.
  4051  //
  4052  // Use "Send" method on the returned Request to send the API call to the service.
  4053  // the "output" return value is not valid until after Send returns without error.
  4054  //
  4055  // See RemoveTargets for more information on using the RemoveTargets
  4056  // API call, and error handling.
  4057  //
  4058  // This method is useful when you want to inject custom logic or configuration
  4059  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4060  //
  4061  //
  4062  //    // Example sending a request using the RemoveTargetsRequest method.
  4063  //    req, resp := client.RemoveTargetsRequest(params)
  4064  //
  4065  //    err := req.Send()
  4066  //    if err == nil { // resp is now filled
  4067  //        fmt.Println(resp)
  4068  //    }
  4069  //
  4070  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemoveTargets
  4071  func (c *EventBridge) RemoveTargetsRequest(input *RemoveTargetsInput) (req *request.Request, output *RemoveTargetsOutput) {
  4072  	op := &request.Operation{
  4073  		Name:       opRemoveTargets,
  4074  		HTTPMethod: "POST",
  4075  		HTTPPath:   "/",
  4076  	}
  4077  
  4078  	if input == nil {
  4079  		input = &RemoveTargetsInput{}
  4080  	}
  4081  
  4082  	output = &RemoveTargetsOutput{}
  4083  	req = c.newRequest(op, input, output)
  4084  	return
  4085  }
  4086  
  4087  // RemoveTargets API operation for Amazon EventBridge.
  4088  //
  4089  // Removes the specified targets from the specified rule. When the rule is triggered,
  4090  // those targets are no longer be invoked.
  4091  //
  4092  // When you remove a target, when the associated rule triggers, removed targets
  4093  // might continue to be invoked. Allow a short period of time for changes to
  4094  // take effect.
  4095  //
  4096  // This action can partially fail if too many requests are made at the same
  4097  // time. If that happens, FailedEntryCount is non-zero in the response and each
  4098  // entry in FailedEntries provides the ID of the failed target and the error
  4099  // code.
  4100  //
  4101  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4102  // with awserr.Error's Code and Message methods to get detailed information about
  4103  // the error.
  4104  //
  4105  // See the AWS API reference guide for Amazon EventBridge's
  4106  // API operation RemoveTargets for usage and error information.
  4107  //
  4108  // Returned Error Types:
  4109  //   * ResourceNotFoundException
  4110  //   An entity that you specified does not exist.
  4111  //
  4112  //   * ConcurrentModificationException
  4113  //   There is concurrent modification on a rule, target, archive, or replay.
  4114  //
  4115  //   * ManagedRuleException
  4116  //   This rule was created by an Amazon Web Services service on behalf of your
  4117  //   account. It is managed by that service. If you see this error in response
  4118  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  4119  //   calls to delete the rule or remove targets from the rule. You cannot modify
  4120  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  4121  //   TagResource, or UntagResource.
  4122  //
  4123  //   * InternalException
  4124  //   This exception occurs due to unexpected causes.
  4125  //
  4126  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemoveTargets
  4127  func (c *EventBridge) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) {
  4128  	req, out := c.RemoveTargetsRequest(input)
  4129  	return out, req.Send()
  4130  }
  4131  
  4132  // RemoveTargetsWithContext is the same as RemoveTargets with the addition of
  4133  // the ability to pass a context and additional request options.
  4134  //
  4135  // See RemoveTargets for details on how to use this API operation.
  4136  //
  4137  // The context must be non-nil and will be used for request cancellation. If
  4138  // the context is nil a panic will occur. In the future the SDK may create
  4139  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4140  // for more information on using Contexts.
  4141  func (c *EventBridge) RemoveTargetsWithContext(ctx aws.Context, input *RemoveTargetsInput, opts ...request.Option) (*RemoveTargetsOutput, error) {
  4142  	req, out := c.RemoveTargetsRequest(input)
  4143  	req.SetContext(ctx)
  4144  	req.ApplyOptions(opts...)
  4145  	return out, req.Send()
  4146  }
  4147  
  4148  const opStartReplay = "StartReplay"
  4149  
  4150  // StartReplayRequest generates a "aws/request.Request" representing the
  4151  // client's request for the StartReplay operation. The "output" return
  4152  // value will be populated with the request's response once the request completes
  4153  // successfully.
  4154  //
  4155  // Use "Send" method on the returned Request to send the API call to the service.
  4156  // the "output" return value is not valid until after Send returns without error.
  4157  //
  4158  // See StartReplay for more information on using the StartReplay
  4159  // API call, and error handling.
  4160  //
  4161  // This method is useful when you want to inject custom logic or configuration
  4162  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4163  //
  4164  //
  4165  //    // Example sending a request using the StartReplayRequest method.
  4166  //    req, resp := client.StartReplayRequest(params)
  4167  //
  4168  //    err := req.Send()
  4169  //    if err == nil { // resp is now filled
  4170  //        fmt.Println(resp)
  4171  //    }
  4172  //
  4173  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/StartReplay
  4174  func (c *EventBridge) StartReplayRequest(input *StartReplayInput) (req *request.Request, output *StartReplayOutput) {
  4175  	op := &request.Operation{
  4176  		Name:       opStartReplay,
  4177  		HTTPMethod: "POST",
  4178  		HTTPPath:   "/",
  4179  	}
  4180  
  4181  	if input == nil {
  4182  		input = &StartReplayInput{}
  4183  	}
  4184  
  4185  	output = &StartReplayOutput{}
  4186  	req = c.newRequest(op, input, output)
  4187  	return
  4188  }
  4189  
  4190  // StartReplay API operation for Amazon EventBridge.
  4191  //
  4192  // Starts the specified replay. Events are not necessarily replayed in the exact
  4193  // same order that they were added to the archive. A replay processes events
  4194  // to replay based on the time in the event, and replays them using 1 minute
  4195  // intervals. If you specify an EventStartTime and an EventEndTime that covers
  4196  // a 20 minute time range, the events are replayed from the first minute of
  4197  // that 20 minute range first. Then the events from the second minute are replayed.
  4198  // You can use DescribeReplay to determine the progress of a replay. The value
  4199  // returned for EventLastReplayedTime indicates the time within the specified
  4200  // time range associated with the last event replayed.
  4201  //
  4202  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4203  // with awserr.Error's Code and Message methods to get detailed information about
  4204  // the error.
  4205  //
  4206  // See the AWS API reference guide for Amazon EventBridge's
  4207  // API operation StartReplay for usage and error information.
  4208  //
  4209  // Returned Error Types:
  4210  //   * ResourceNotFoundException
  4211  //   An entity that you specified does not exist.
  4212  //
  4213  //   * ResourceAlreadyExistsException
  4214  //   The resource you are trying to create already exists.
  4215  //
  4216  //   * InvalidEventPatternException
  4217  //   The event pattern is not valid.
  4218  //
  4219  //   * LimitExceededException
  4220  //   The request failed because it attempted to create resource beyond the allowed
  4221  //   service quota.
  4222  //
  4223  //   * InternalException
  4224  //   This exception occurs due to unexpected causes.
  4225  //
  4226  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/StartReplay
  4227  func (c *EventBridge) StartReplay(input *StartReplayInput) (*StartReplayOutput, error) {
  4228  	req, out := c.StartReplayRequest(input)
  4229  	return out, req.Send()
  4230  }
  4231  
  4232  // StartReplayWithContext is the same as StartReplay with the addition of
  4233  // the ability to pass a context and additional request options.
  4234  //
  4235  // See StartReplay for details on how to use this API operation.
  4236  //
  4237  // The context must be non-nil and will be used for request cancellation. If
  4238  // the context is nil a panic will occur. In the future the SDK may create
  4239  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4240  // for more information on using Contexts.
  4241  func (c *EventBridge) StartReplayWithContext(ctx aws.Context, input *StartReplayInput, opts ...request.Option) (*StartReplayOutput, error) {
  4242  	req, out := c.StartReplayRequest(input)
  4243  	req.SetContext(ctx)
  4244  	req.ApplyOptions(opts...)
  4245  	return out, req.Send()
  4246  }
  4247  
  4248  const opTagResource = "TagResource"
  4249  
  4250  // TagResourceRequest generates a "aws/request.Request" representing the
  4251  // client's request for the TagResource operation. The "output" return
  4252  // value will be populated with the request's response once the request completes
  4253  // successfully.
  4254  //
  4255  // Use "Send" method on the returned Request to send the API call to the service.
  4256  // the "output" return value is not valid until after Send returns without error.
  4257  //
  4258  // See TagResource for more information on using the TagResource
  4259  // API call, and error handling.
  4260  //
  4261  // This method is useful when you want to inject custom logic or configuration
  4262  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4263  //
  4264  //
  4265  //    // Example sending a request using the TagResourceRequest method.
  4266  //    req, resp := client.TagResourceRequest(params)
  4267  //
  4268  //    err := req.Send()
  4269  //    if err == nil { // resp is now filled
  4270  //        fmt.Println(resp)
  4271  //    }
  4272  //
  4273  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/TagResource
  4274  func (c *EventBridge) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  4275  	op := &request.Operation{
  4276  		Name:       opTagResource,
  4277  		HTTPMethod: "POST",
  4278  		HTTPPath:   "/",
  4279  	}
  4280  
  4281  	if input == nil {
  4282  		input = &TagResourceInput{}
  4283  	}
  4284  
  4285  	output = &TagResourceOutput{}
  4286  	req = c.newRequest(op, input, output)
  4287  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  4288  	return
  4289  }
  4290  
  4291  // TagResource API operation for Amazon EventBridge.
  4292  //
  4293  // Assigns one or more tags (key-value pairs) to the specified EventBridge resource.
  4294  // Tags can help you organize and categorize your resources. You can also use
  4295  // them to scope user permissions by granting a user permission to access or
  4296  // change only resources with certain tag values. In EventBridge, rules and
  4297  // event buses can be tagged.
  4298  //
  4299  // Tags don't have any semantic meaning to Amazon Web Services and are interpreted
  4300  // strictly as strings of characters.
  4301  //
  4302  // You can use the TagResource action with a resource that already has tags.
  4303  // If you specify a new tag key, this tag is appended to the list of tags associated
  4304  // with the resource. If you specify a tag key that is already associated with
  4305  // the resource, the new tag value that you specify replaces the previous value
  4306  // for that tag.
  4307  //
  4308  // You can associate as many as 50 tags with a resource.
  4309  //
  4310  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4311  // with awserr.Error's Code and Message methods to get detailed information about
  4312  // the error.
  4313  //
  4314  // See the AWS API reference guide for Amazon EventBridge's
  4315  // API operation TagResource for usage and error information.
  4316  //
  4317  // Returned Error Types:
  4318  //   * ResourceNotFoundException
  4319  //   An entity that you specified does not exist.
  4320  //
  4321  //   * ConcurrentModificationException
  4322  //   There is concurrent modification on a rule, target, archive, or replay.
  4323  //
  4324  //   * InternalException
  4325  //   This exception occurs due to unexpected causes.
  4326  //
  4327  //   * ManagedRuleException
  4328  //   This rule was created by an Amazon Web Services service on behalf of your
  4329  //   account. It is managed by that service. If you see this error in response
  4330  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  4331  //   calls to delete the rule or remove targets from the rule. You cannot modify
  4332  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  4333  //   TagResource, or UntagResource.
  4334  //
  4335  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/TagResource
  4336  func (c *EventBridge) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  4337  	req, out := c.TagResourceRequest(input)
  4338  	return out, req.Send()
  4339  }
  4340  
  4341  // TagResourceWithContext is the same as TagResource with the addition of
  4342  // the ability to pass a context and additional request options.
  4343  //
  4344  // See TagResource for details on how to use this API operation.
  4345  //
  4346  // The context must be non-nil and will be used for request cancellation. If
  4347  // the context is nil a panic will occur. In the future the SDK may create
  4348  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4349  // for more information on using Contexts.
  4350  func (c *EventBridge) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  4351  	req, out := c.TagResourceRequest(input)
  4352  	req.SetContext(ctx)
  4353  	req.ApplyOptions(opts...)
  4354  	return out, req.Send()
  4355  }
  4356  
  4357  const opTestEventPattern = "TestEventPattern"
  4358  
  4359  // TestEventPatternRequest generates a "aws/request.Request" representing the
  4360  // client's request for the TestEventPattern operation. The "output" return
  4361  // value will be populated with the request's response once the request completes
  4362  // successfully.
  4363  //
  4364  // Use "Send" method on the returned Request to send the API call to the service.
  4365  // the "output" return value is not valid until after Send returns without error.
  4366  //
  4367  // See TestEventPattern for more information on using the TestEventPattern
  4368  // API call, and error handling.
  4369  //
  4370  // This method is useful when you want to inject custom logic or configuration
  4371  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4372  //
  4373  //
  4374  //    // Example sending a request using the TestEventPatternRequest method.
  4375  //    req, resp := client.TestEventPatternRequest(params)
  4376  //
  4377  //    err := req.Send()
  4378  //    if err == nil { // resp is now filled
  4379  //        fmt.Println(resp)
  4380  //    }
  4381  //
  4382  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/TestEventPattern
  4383  func (c *EventBridge) TestEventPatternRequest(input *TestEventPatternInput) (req *request.Request, output *TestEventPatternOutput) {
  4384  	op := &request.Operation{
  4385  		Name:       opTestEventPattern,
  4386  		HTTPMethod: "POST",
  4387  		HTTPPath:   "/",
  4388  	}
  4389  
  4390  	if input == nil {
  4391  		input = &TestEventPatternInput{}
  4392  	}
  4393  
  4394  	output = &TestEventPatternOutput{}
  4395  	req = c.newRequest(op, input, output)
  4396  	return
  4397  }
  4398  
  4399  // TestEventPattern API operation for Amazon EventBridge.
  4400  //
  4401  // Tests whether the specified event pattern matches the provided event.
  4402  //
  4403  // Most services in Amazon Web Services treat : or / as the same character in
  4404  // Amazon Resource Names (ARNs). However, EventBridge uses an exact match in
  4405  // event patterns and rules. Be sure to use the correct ARN characters when
  4406  // creating event patterns so that they match the ARN syntax in the event you
  4407  // want to match.
  4408  //
  4409  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4410  // with awserr.Error's Code and Message methods to get detailed information about
  4411  // the error.
  4412  //
  4413  // See the AWS API reference guide for Amazon EventBridge's
  4414  // API operation TestEventPattern for usage and error information.
  4415  //
  4416  // Returned Error Types:
  4417  //   * InvalidEventPatternException
  4418  //   The event pattern is not valid.
  4419  //
  4420  //   * InternalException
  4421  //   This exception occurs due to unexpected causes.
  4422  //
  4423  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/TestEventPattern
  4424  func (c *EventBridge) TestEventPattern(input *TestEventPatternInput) (*TestEventPatternOutput, error) {
  4425  	req, out := c.TestEventPatternRequest(input)
  4426  	return out, req.Send()
  4427  }
  4428  
  4429  // TestEventPatternWithContext is the same as TestEventPattern with the addition of
  4430  // the ability to pass a context and additional request options.
  4431  //
  4432  // See TestEventPattern for details on how to use this API operation.
  4433  //
  4434  // The context must be non-nil and will be used for request cancellation. If
  4435  // the context is nil a panic will occur. In the future the SDK may create
  4436  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4437  // for more information on using Contexts.
  4438  func (c *EventBridge) TestEventPatternWithContext(ctx aws.Context, input *TestEventPatternInput, opts ...request.Option) (*TestEventPatternOutput, error) {
  4439  	req, out := c.TestEventPatternRequest(input)
  4440  	req.SetContext(ctx)
  4441  	req.ApplyOptions(opts...)
  4442  	return out, req.Send()
  4443  }
  4444  
  4445  const opUntagResource = "UntagResource"
  4446  
  4447  // UntagResourceRequest generates a "aws/request.Request" representing the
  4448  // client's request for the UntagResource operation. The "output" return
  4449  // value will be populated with the request's response once the request completes
  4450  // successfully.
  4451  //
  4452  // Use "Send" method on the returned Request to send the API call to the service.
  4453  // the "output" return value is not valid until after Send returns without error.
  4454  //
  4455  // See UntagResource for more information on using the UntagResource
  4456  // API call, and error handling.
  4457  //
  4458  // This method is useful when you want to inject custom logic or configuration
  4459  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4460  //
  4461  //
  4462  //    // Example sending a request using the UntagResourceRequest method.
  4463  //    req, resp := client.UntagResourceRequest(params)
  4464  //
  4465  //    err := req.Send()
  4466  //    if err == nil { // resp is now filled
  4467  //        fmt.Println(resp)
  4468  //    }
  4469  //
  4470  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UntagResource
  4471  func (c *EventBridge) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  4472  	op := &request.Operation{
  4473  		Name:       opUntagResource,
  4474  		HTTPMethod: "POST",
  4475  		HTTPPath:   "/",
  4476  	}
  4477  
  4478  	if input == nil {
  4479  		input = &UntagResourceInput{}
  4480  	}
  4481  
  4482  	output = &UntagResourceOutput{}
  4483  	req = c.newRequest(op, input, output)
  4484  	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  4485  	return
  4486  }
  4487  
  4488  // UntagResource API operation for Amazon EventBridge.
  4489  //
  4490  // Removes one or more tags from the specified EventBridge resource. In Amazon
  4491  // EventBridge (CloudWatch Events), rules and event buses can be tagged.
  4492  //
  4493  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4494  // with awserr.Error's Code and Message methods to get detailed information about
  4495  // the error.
  4496  //
  4497  // See the AWS API reference guide for Amazon EventBridge's
  4498  // API operation UntagResource for usage and error information.
  4499  //
  4500  // Returned Error Types:
  4501  //   * ResourceNotFoundException
  4502  //   An entity that you specified does not exist.
  4503  //
  4504  //   * InternalException
  4505  //   This exception occurs due to unexpected causes.
  4506  //
  4507  //   * ConcurrentModificationException
  4508  //   There is concurrent modification on a rule, target, archive, or replay.
  4509  //
  4510  //   * ManagedRuleException
  4511  //   This rule was created by an Amazon Web Services service on behalf of your
  4512  //   account. It is managed by that service. If you see this error in response
  4513  //   to DeleteRule or RemoveTargets, you can use the Force parameter in those
  4514  //   calls to delete the rule or remove targets from the rule. You cannot modify
  4515  //   these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
  4516  //   TagResource, or UntagResource.
  4517  //
  4518  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UntagResource
  4519  func (c *EventBridge) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  4520  	req, out := c.UntagResourceRequest(input)
  4521  	return out, req.Send()
  4522  }
  4523  
  4524  // UntagResourceWithContext is the same as UntagResource with the addition of
  4525  // the ability to pass a context and additional request options.
  4526  //
  4527  // See UntagResource for details on how to use this API operation.
  4528  //
  4529  // The context must be non-nil and will be used for request cancellation. If
  4530  // the context is nil a panic will occur. In the future the SDK may create
  4531  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4532  // for more information on using Contexts.
  4533  func (c *EventBridge) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  4534  	req, out := c.UntagResourceRequest(input)
  4535  	req.SetContext(ctx)
  4536  	req.ApplyOptions(opts...)
  4537  	return out, req.Send()
  4538  }
  4539  
  4540  const opUpdateApiDestination = "UpdateApiDestination"
  4541  
  4542  // UpdateApiDestinationRequest generates a "aws/request.Request" representing the
  4543  // client's request for the UpdateApiDestination operation. The "output" return
  4544  // value will be populated with the request's response once the request completes
  4545  // successfully.
  4546  //
  4547  // Use "Send" method on the returned Request to send the API call to the service.
  4548  // the "output" return value is not valid until after Send returns without error.
  4549  //
  4550  // See UpdateApiDestination for more information on using the UpdateApiDestination
  4551  // API call, and error handling.
  4552  //
  4553  // This method is useful when you want to inject custom logic or configuration
  4554  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4555  //
  4556  //
  4557  //    // Example sending a request using the UpdateApiDestinationRequest method.
  4558  //    req, resp := client.UpdateApiDestinationRequest(params)
  4559  //
  4560  //    err := req.Send()
  4561  //    if err == nil { // resp is now filled
  4562  //        fmt.Println(resp)
  4563  //    }
  4564  //
  4565  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateApiDestination
  4566  func (c *EventBridge) UpdateApiDestinationRequest(input *UpdateApiDestinationInput) (req *request.Request, output *UpdateApiDestinationOutput) {
  4567  	op := &request.Operation{
  4568  		Name:       opUpdateApiDestination,
  4569  		HTTPMethod: "POST",
  4570  		HTTPPath:   "/",
  4571  	}
  4572  
  4573  	if input == nil {
  4574  		input = &UpdateApiDestinationInput{}
  4575  	}
  4576  
  4577  	output = &UpdateApiDestinationOutput{}
  4578  	req = c.newRequest(op, input, output)
  4579  	return
  4580  }
  4581  
  4582  // UpdateApiDestination API operation for Amazon EventBridge.
  4583  //
  4584  // Updates an API destination.
  4585  //
  4586  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4587  // with awserr.Error's Code and Message methods to get detailed information about
  4588  // the error.
  4589  //
  4590  // See the AWS API reference guide for Amazon EventBridge's
  4591  // API operation UpdateApiDestination for usage and error information.
  4592  //
  4593  // Returned Error Types:
  4594  //   * ConcurrentModificationException
  4595  //   There is concurrent modification on a rule, target, archive, or replay.
  4596  //
  4597  //   * ResourceNotFoundException
  4598  //   An entity that you specified does not exist.
  4599  //
  4600  //   * InternalException
  4601  //   This exception occurs due to unexpected causes.
  4602  //
  4603  //   * LimitExceededException
  4604  //   The request failed because it attempted to create resource beyond the allowed
  4605  //   service quota.
  4606  //
  4607  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateApiDestination
  4608  func (c *EventBridge) UpdateApiDestination(input *UpdateApiDestinationInput) (*UpdateApiDestinationOutput, error) {
  4609  	req, out := c.UpdateApiDestinationRequest(input)
  4610  	return out, req.Send()
  4611  }
  4612  
  4613  // UpdateApiDestinationWithContext is the same as UpdateApiDestination with the addition of
  4614  // the ability to pass a context and additional request options.
  4615  //
  4616  // See UpdateApiDestination for details on how to use this API operation.
  4617  //
  4618  // The context must be non-nil and will be used for request cancellation. If
  4619  // the context is nil a panic will occur. In the future the SDK may create
  4620  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4621  // for more information on using Contexts.
  4622  func (c *EventBridge) UpdateApiDestinationWithContext(ctx aws.Context, input *UpdateApiDestinationInput, opts ...request.Option) (*UpdateApiDestinationOutput, error) {
  4623  	req, out := c.UpdateApiDestinationRequest(input)
  4624  	req.SetContext(ctx)
  4625  	req.ApplyOptions(opts...)
  4626  	return out, req.Send()
  4627  }
  4628  
  4629  const opUpdateArchive = "UpdateArchive"
  4630  
  4631  // UpdateArchiveRequest generates a "aws/request.Request" representing the
  4632  // client's request for the UpdateArchive operation. The "output" return
  4633  // value will be populated with the request's response once the request completes
  4634  // successfully.
  4635  //
  4636  // Use "Send" method on the returned Request to send the API call to the service.
  4637  // the "output" return value is not valid until after Send returns without error.
  4638  //
  4639  // See UpdateArchive for more information on using the UpdateArchive
  4640  // API call, and error handling.
  4641  //
  4642  // This method is useful when you want to inject custom logic or configuration
  4643  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4644  //
  4645  //
  4646  //    // Example sending a request using the UpdateArchiveRequest method.
  4647  //    req, resp := client.UpdateArchiveRequest(params)
  4648  //
  4649  //    err := req.Send()
  4650  //    if err == nil { // resp is now filled
  4651  //        fmt.Println(resp)
  4652  //    }
  4653  //
  4654  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateArchive
  4655  func (c *EventBridge) UpdateArchiveRequest(input *UpdateArchiveInput) (req *request.Request, output *UpdateArchiveOutput) {
  4656  	op := &request.Operation{
  4657  		Name:       opUpdateArchive,
  4658  		HTTPMethod: "POST",
  4659  		HTTPPath:   "/",
  4660  	}
  4661  
  4662  	if input == nil {
  4663  		input = &UpdateArchiveInput{}
  4664  	}
  4665  
  4666  	output = &UpdateArchiveOutput{}
  4667  	req = c.newRequest(op, input, output)
  4668  	return
  4669  }
  4670  
  4671  // UpdateArchive API operation for Amazon EventBridge.
  4672  //
  4673  // Updates the specified archive.
  4674  //
  4675  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4676  // with awserr.Error's Code and Message methods to get detailed information about
  4677  // the error.
  4678  //
  4679  // See the AWS API reference guide for Amazon EventBridge's
  4680  // API operation UpdateArchive for usage and error information.
  4681  //
  4682  // Returned Error Types:
  4683  //   * ConcurrentModificationException
  4684  //   There is concurrent modification on a rule, target, archive, or replay.
  4685  //
  4686  //   * ResourceNotFoundException
  4687  //   An entity that you specified does not exist.
  4688  //
  4689  //   * InternalException
  4690  //   This exception occurs due to unexpected causes.
  4691  //
  4692  //   * LimitExceededException
  4693  //   The request failed because it attempted to create resource beyond the allowed
  4694  //   service quota.
  4695  //
  4696  //   * InvalidEventPatternException
  4697  //   The event pattern is not valid.
  4698  //
  4699  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateArchive
  4700  func (c *EventBridge) UpdateArchive(input *UpdateArchiveInput) (*UpdateArchiveOutput, error) {
  4701  	req, out := c.UpdateArchiveRequest(input)
  4702  	return out, req.Send()
  4703  }
  4704  
  4705  // UpdateArchiveWithContext is the same as UpdateArchive with the addition of
  4706  // the ability to pass a context and additional request options.
  4707  //
  4708  // See UpdateArchive for details on how to use this API operation.
  4709  //
  4710  // The context must be non-nil and will be used for request cancellation. If
  4711  // the context is nil a panic will occur. In the future the SDK may create
  4712  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4713  // for more information on using Contexts.
  4714  func (c *EventBridge) UpdateArchiveWithContext(ctx aws.Context, input *UpdateArchiveInput, opts ...request.Option) (*UpdateArchiveOutput, error) {
  4715  	req, out := c.UpdateArchiveRequest(input)
  4716  	req.SetContext(ctx)
  4717  	req.ApplyOptions(opts...)
  4718  	return out, req.Send()
  4719  }
  4720  
  4721  const opUpdateConnection = "UpdateConnection"
  4722  
  4723  // UpdateConnectionRequest generates a "aws/request.Request" representing the
  4724  // client's request for the UpdateConnection operation. The "output" return
  4725  // value will be populated with the request's response once the request completes
  4726  // successfully.
  4727  //
  4728  // Use "Send" method on the returned Request to send the API call to the service.
  4729  // the "output" return value is not valid until after Send returns without error.
  4730  //
  4731  // See UpdateConnection for more information on using the UpdateConnection
  4732  // API call, and error handling.
  4733  //
  4734  // This method is useful when you want to inject custom logic or configuration
  4735  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4736  //
  4737  //
  4738  //    // Example sending a request using the UpdateConnectionRequest method.
  4739  //    req, resp := client.UpdateConnectionRequest(params)
  4740  //
  4741  //    err := req.Send()
  4742  //    if err == nil { // resp is now filled
  4743  //        fmt.Println(resp)
  4744  //    }
  4745  //
  4746  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateConnection
  4747  func (c *EventBridge) UpdateConnectionRequest(input *UpdateConnectionInput) (req *request.Request, output *UpdateConnectionOutput) {
  4748  	op := &request.Operation{
  4749  		Name:       opUpdateConnection,
  4750  		HTTPMethod: "POST",
  4751  		HTTPPath:   "/",
  4752  	}
  4753  
  4754  	if input == nil {
  4755  		input = &UpdateConnectionInput{}
  4756  	}
  4757  
  4758  	output = &UpdateConnectionOutput{}
  4759  	req = c.newRequest(op, input, output)
  4760  	return
  4761  }
  4762  
  4763  // UpdateConnection API operation for Amazon EventBridge.
  4764  //
  4765  // Updates settings for a connection.
  4766  //
  4767  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4768  // with awserr.Error's Code and Message methods to get detailed information about
  4769  // the error.
  4770  //
  4771  // See the AWS API reference guide for Amazon EventBridge's
  4772  // API operation UpdateConnection for usage and error information.
  4773  //
  4774  // Returned Error Types:
  4775  //   * ConcurrentModificationException
  4776  //   There is concurrent modification on a rule, target, archive, or replay.
  4777  //
  4778  //   * ResourceNotFoundException
  4779  //   An entity that you specified does not exist.
  4780  //
  4781  //   * InternalException
  4782  //   This exception occurs due to unexpected causes.
  4783  //
  4784  //   * LimitExceededException
  4785  //   The request failed because it attempted to create resource beyond the allowed
  4786  //   service quota.
  4787  //
  4788  // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/UpdateConnection
  4789  func (c *EventBridge) UpdateConnection(input *UpdateConnectionInput) (*UpdateConnectionOutput, error) {
  4790  	req, out := c.UpdateConnectionRequest(input)
  4791  	return out, req.Send()
  4792  }
  4793  
  4794  // UpdateConnectionWithContext is the same as UpdateConnection with the addition of
  4795  // the ability to pass a context and additional request options.
  4796  //
  4797  // See UpdateConnection for details on how to use this API operation.
  4798  //
  4799  // The context must be non-nil and will be used for request cancellation. If
  4800  // the context is nil a panic will occur. In the future the SDK may create
  4801  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4802  // for more information on using Contexts.
  4803  func (c *EventBridge) UpdateConnectionWithContext(ctx aws.Context, input *UpdateConnectionInput, opts ...request.Option) (*UpdateConnectionOutput, error) {
  4804  	req, out := c.UpdateConnectionRequest(input)
  4805  	req.SetContext(ctx)
  4806  	req.ApplyOptions(opts...)
  4807  	return out, req.Send()
  4808  }
  4809  
  4810  type ActivateEventSourceInput struct {
  4811  	_ struct{} `type:"structure"`
  4812  
  4813  	// The name of the partner event source to activate.
  4814  	//
  4815  	// Name is a required field
  4816  	Name *string `min:"1" type:"string" required:"true"`
  4817  }
  4818  
  4819  // String returns the string representation.
  4820  //
  4821  // API parameter values that are decorated as "sensitive" in the API will not
  4822  // be included in the string output. The member name will be present, but the
  4823  // value will be replaced with "sensitive".
  4824  func (s ActivateEventSourceInput) String() string {
  4825  	return awsutil.Prettify(s)
  4826  }
  4827  
  4828  // GoString returns the string representation.
  4829  //
  4830  // API parameter values that are decorated as "sensitive" in the API will not
  4831  // be included in the string output. The member name will be present, but the
  4832  // value will be replaced with "sensitive".
  4833  func (s ActivateEventSourceInput) GoString() string {
  4834  	return s.String()
  4835  }
  4836  
  4837  // Validate inspects the fields of the type to determine if they are valid.
  4838  func (s *ActivateEventSourceInput) Validate() error {
  4839  	invalidParams := request.ErrInvalidParams{Context: "ActivateEventSourceInput"}
  4840  	if s.Name == nil {
  4841  		invalidParams.Add(request.NewErrParamRequired("Name"))
  4842  	}
  4843  	if s.Name != nil && len(*s.Name) < 1 {
  4844  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4845  	}
  4846  
  4847  	if invalidParams.Len() > 0 {
  4848  		return invalidParams
  4849  	}
  4850  	return nil
  4851  }
  4852  
  4853  // SetName sets the Name field's value.
  4854  func (s *ActivateEventSourceInput) SetName(v string) *ActivateEventSourceInput {
  4855  	s.Name = &v
  4856  	return s
  4857  }
  4858  
  4859  type ActivateEventSourceOutput struct {
  4860  	_ struct{} `type:"structure"`
  4861  }
  4862  
  4863  // String returns the string representation.
  4864  //
  4865  // API parameter values that are decorated as "sensitive" in the API will not
  4866  // be included in the string output. The member name will be present, but the
  4867  // value will be replaced with "sensitive".
  4868  func (s ActivateEventSourceOutput) String() string {
  4869  	return awsutil.Prettify(s)
  4870  }
  4871  
  4872  // GoString returns the string representation.
  4873  //
  4874  // API parameter values that are decorated as "sensitive" in the API will not
  4875  // be included in the string output. The member name will be present, but the
  4876  // value will be replaced with "sensitive".
  4877  func (s ActivateEventSourceOutput) GoString() string {
  4878  	return s.String()
  4879  }
  4880  
  4881  // Contains details about an API destination.
  4882  type ApiDestination struct {
  4883  	_ struct{} `type:"structure"`
  4884  
  4885  	// The ARN of the API destination.
  4886  	ApiDestinationArn *string `min:"1" type:"string"`
  4887  
  4888  	// The state of the API destination.
  4889  	ApiDestinationState *string `type:"string" enum:"ApiDestinationState"`
  4890  
  4891  	// The ARN of the connection specified for the API destination.
  4892  	ConnectionArn *string `min:"1" type:"string"`
  4893  
  4894  	// A time stamp for the time that the API destination was created.
  4895  	CreationTime *time.Time `type:"timestamp"`
  4896  
  4897  	// The method to use to connect to the HTTP endpoint.
  4898  	HttpMethod *string `type:"string" enum:"ApiDestinationHttpMethod"`
  4899  
  4900  	// The URL to the endpoint for the API destination.
  4901  	InvocationEndpoint *string `min:"1" type:"string"`
  4902  
  4903  	// The maximum number of invocations per second to send to the HTTP endpoint.
  4904  	InvocationRateLimitPerSecond *int64 `min:"1" type:"integer"`
  4905  
  4906  	// A time stamp for the time that the API destination was last modified.
  4907  	LastModifiedTime *time.Time `type:"timestamp"`
  4908  
  4909  	// The name of the API destination.
  4910  	Name *string `min:"1" type:"string"`
  4911  }
  4912  
  4913  // String returns the string representation.
  4914  //
  4915  // API parameter values that are decorated as "sensitive" in the API will not
  4916  // be included in the string output. The member name will be present, but the
  4917  // value will be replaced with "sensitive".
  4918  func (s ApiDestination) String() string {
  4919  	return awsutil.Prettify(s)
  4920  }
  4921  
  4922  // GoString returns the string representation.
  4923  //
  4924  // API parameter values that are decorated as "sensitive" in the API will not
  4925  // be included in the string output. The member name will be present, but the
  4926  // value will be replaced with "sensitive".
  4927  func (s ApiDestination) GoString() string {
  4928  	return s.String()
  4929  }
  4930  
  4931  // SetApiDestinationArn sets the ApiDestinationArn field's value.
  4932  func (s *ApiDestination) SetApiDestinationArn(v string) *ApiDestination {
  4933  	s.ApiDestinationArn = &v
  4934  	return s
  4935  }
  4936  
  4937  // SetApiDestinationState sets the ApiDestinationState field's value.
  4938  func (s *ApiDestination) SetApiDestinationState(v string) *ApiDestination {
  4939  	s.ApiDestinationState = &v
  4940  	return s
  4941  }
  4942  
  4943  // SetConnectionArn sets the ConnectionArn field's value.
  4944  func (s *ApiDestination) SetConnectionArn(v string) *ApiDestination {
  4945  	s.ConnectionArn = &v
  4946  	return s
  4947  }
  4948  
  4949  // SetCreationTime sets the CreationTime field's value.
  4950  func (s *ApiDestination) SetCreationTime(v time.Time) *ApiDestination {
  4951  	s.CreationTime = &v
  4952  	return s
  4953  }
  4954  
  4955  // SetHttpMethod sets the HttpMethod field's value.
  4956  func (s *ApiDestination) SetHttpMethod(v string) *ApiDestination {
  4957  	s.HttpMethod = &v
  4958  	return s
  4959  }
  4960  
  4961  // SetInvocationEndpoint sets the InvocationEndpoint field's value.
  4962  func (s *ApiDestination) SetInvocationEndpoint(v string) *ApiDestination {
  4963  	s.InvocationEndpoint = &v
  4964  	return s
  4965  }
  4966  
  4967  // SetInvocationRateLimitPerSecond sets the InvocationRateLimitPerSecond field's value.
  4968  func (s *ApiDestination) SetInvocationRateLimitPerSecond(v int64) *ApiDestination {
  4969  	s.InvocationRateLimitPerSecond = &v
  4970  	return s
  4971  }
  4972  
  4973  // SetLastModifiedTime sets the LastModifiedTime field's value.
  4974  func (s *ApiDestination) SetLastModifiedTime(v time.Time) *ApiDestination {
  4975  	s.LastModifiedTime = &v
  4976  	return s
  4977  }
  4978  
  4979  // SetName sets the Name field's value.
  4980  func (s *ApiDestination) SetName(v string) *ApiDestination {
  4981  	s.Name = &v
  4982  	return s
  4983  }
  4984  
  4985  // An Archive object that contains details about an archive.
  4986  type Archive struct {
  4987  	_ struct{} `type:"structure"`
  4988  
  4989  	// The name of the archive.
  4990  	ArchiveName *string `min:"1" type:"string"`
  4991  
  4992  	// The time stamp for the time that the archive was created.
  4993  	CreationTime *time.Time `type:"timestamp"`
  4994  
  4995  	// The number of events in the archive.
  4996  	EventCount *int64 `type:"long"`
  4997  
  4998  	// The ARN of the event bus associated with the archive. Only events from this
  4999  	// event bus are sent to the archive.
  5000  	EventSourceArn *string `min:"1" type:"string"`
  5001  
  5002  	// The number of days to retain events in the archive before they are deleted.
  5003  	RetentionDays *int64 `type:"integer"`
  5004  
  5005  	// The size of the archive, in bytes.
  5006  	SizeBytes *int64 `type:"long"`
  5007  
  5008  	// The current state of the archive.
  5009  	State *string `type:"string" enum:"ArchiveState"`
  5010  
  5011  	// A description for the reason that the archive is in the current state.
  5012  	StateReason *string `type:"string"`
  5013  }
  5014  
  5015  // String returns the string representation.
  5016  //
  5017  // API parameter values that are decorated as "sensitive" in the API will not
  5018  // be included in the string output. The member name will be present, but the
  5019  // value will be replaced with "sensitive".
  5020  func (s Archive) String() string {
  5021  	return awsutil.Prettify(s)
  5022  }
  5023  
  5024  // GoString returns the string representation.
  5025  //
  5026  // API parameter values that are decorated as "sensitive" in the API will not
  5027  // be included in the string output. The member name will be present, but the
  5028  // value will be replaced with "sensitive".
  5029  func (s Archive) GoString() string {
  5030  	return s.String()
  5031  }
  5032  
  5033  // SetArchiveName sets the ArchiveName field's value.
  5034  func (s *Archive) SetArchiveName(v string) *Archive {
  5035  	s.ArchiveName = &v
  5036  	return s
  5037  }
  5038  
  5039  // SetCreationTime sets the CreationTime field's value.
  5040  func (s *Archive) SetCreationTime(v time.Time) *Archive {
  5041  	s.CreationTime = &v
  5042  	return s
  5043  }
  5044  
  5045  // SetEventCount sets the EventCount field's value.
  5046  func (s *Archive) SetEventCount(v int64) *Archive {
  5047  	s.EventCount = &v
  5048  	return s
  5049  }
  5050  
  5051  // SetEventSourceArn sets the EventSourceArn field's value.
  5052  func (s *Archive) SetEventSourceArn(v string) *Archive {
  5053  	s.EventSourceArn = &v
  5054  	return s
  5055  }
  5056  
  5057  // SetRetentionDays sets the RetentionDays field's value.
  5058  func (s *Archive) SetRetentionDays(v int64) *Archive {
  5059  	s.RetentionDays = &v
  5060  	return s
  5061  }
  5062  
  5063  // SetSizeBytes sets the SizeBytes field's value.
  5064  func (s *Archive) SetSizeBytes(v int64) *Archive {
  5065  	s.SizeBytes = &v
  5066  	return s
  5067  }
  5068  
  5069  // SetState sets the State field's value.
  5070  func (s *Archive) SetState(v string) *Archive {
  5071  	s.State = &v
  5072  	return s
  5073  }
  5074  
  5075  // SetStateReason sets the StateReason field's value.
  5076  func (s *Archive) SetStateReason(v string) *Archive {
  5077  	s.StateReason = &v
  5078  	return s
  5079  }
  5080  
  5081  // This structure specifies the VPC subnets and security groups for the task,
  5082  // and whether a public IP address is to be used. This structure is relevant
  5083  // only for ECS tasks that use the awsvpc network mode.
  5084  type AwsVpcConfiguration struct {
  5085  	_ struct{} `type:"structure"`
  5086  
  5087  	// Specifies whether the task's elastic network interface receives a public
  5088  	// IP address. You can specify ENABLED only when LaunchType in EcsParameters
  5089  	// is set to FARGATE.
  5090  	AssignPublicIp *string `type:"string" enum:"AssignPublicIp"`
  5091  
  5092  	// Specifies the security groups associated with the task. These security groups
  5093  	// must all be in the same VPC. You can specify as many as five security groups.
  5094  	// If you do not specify a security group, the default security group for the
  5095  	// VPC is used.
  5096  	SecurityGroups []*string `type:"list"`
  5097  
  5098  	// Specifies the subnets associated with the task. These subnets must all be
  5099  	// in the same VPC. You can specify as many as 16 subnets.
  5100  	//
  5101  	// Subnets is a required field
  5102  	Subnets []*string `type:"list" required:"true"`
  5103  }
  5104  
  5105  // String returns the string representation.
  5106  //
  5107  // API parameter values that are decorated as "sensitive" in the API will not
  5108  // be included in the string output. The member name will be present, but the
  5109  // value will be replaced with "sensitive".
  5110  func (s AwsVpcConfiguration) String() string {
  5111  	return awsutil.Prettify(s)
  5112  }
  5113  
  5114  // GoString returns the string representation.
  5115  //
  5116  // API parameter values that are decorated as "sensitive" in the API will not
  5117  // be included in the string output. The member name will be present, but the
  5118  // value will be replaced with "sensitive".
  5119  func (s AwsVpcConfiguration) GoString() string {
  5120  	return s.String()
  5121  }
  5122  
  5123  // Validate inspects the fields of the type to determine if they are valid.
  5124  func (s *AwsVpcConfiguration) Validate() error {
  5125  	invalidParams := request.ErrInvalidParams{Context: "AwsVpcConfiguration"}
  5126  	if s.Subnets == nil {
  5127  		invalidParams.Add(request.NewErrParamRequired("Subnets"))
  5128  	}
  5129  
  5130  	if invalidParams.Len() > 0 {
  5131  		return invalidParams
  5132  	}
  5133  	return nil
  5134  }
  5135  
  5136  // SetAssignPublicIp sets the AssignPublicIp field's value.
  5137  func (s *AwsVpcConfiguration) SetAssignPublicIp(v string) *AwsVpcConfiguration {
  5138  	s.AssignPublicIp = &v
  5139  	return s
  5140  }
  5141  
  5142  // SetSecurityGroups sets the SecurityGroups field's value.
  5143  func (s *AwsVpcConfiguration) SetSecurityGroups(v []*string) *AwsVpcConfiguration {
  5144  	s.SecurityGroups = v
  5145  	return s
  5146  }
  5147  
  5148  // SetSubnets sets the Subnets field's value.
  5149  func (s *AwsVpcConfiguration) SetSubnets(v []*string) *AwsVpcConfiguration {
  5150  	s.Subnets = v
  5151  	return s
  5152  }
  5153  
  5154  // The array properties for the submitted job, such as the size of the array.
  5155  // The array size can be between 2 and 10,000. If you specify array properties
  5156  // for a job, it becomes an array job. This parameter is used only if the target
  5157  // is an Batch job.
  5158  type BatchArrayProperties struct {
  5159  	_ struct{} `type:"structure"`
  5160  
  5161  	// The size of the array, if this is an array batch job. Valid values are integers
  5162  	// between 2 and 10,000.
  5163  	Size *int64 `type:"integer"`
  5164  }
  5165  
  5166  // String returns the string representation.
  5167  //
  5168  // API parameter values that are decorated as "sensitive" in the API will not
  5169  // be included in the string output. The member name will be present, but the
  5170  // value will be replaced with "sensitive".
  5171  func (s BatchArrayProperties) String() string {
  5172  	return awsutil.Prettify(s)
  5173  }
  5174  
  5175  // GoString returns the string representation.
  5176  //
  5177  // API parameter values that are decorated as "sensitive" in the API will not
  5178  // be included in the string output. The member name will be present, but the
  5179  // value will be replaced with "sensitive".
  5180  func (s BatchArrayProperties) GoString() string {
  5181  	return s.String()
  5182  }
  5183  
  5184  // SetSize sets the Size field's value.
  5185  func (s *BatchArrayProperties) SetSize(v int64) *BatchArrayProperties {
  5186  	s.Size = &v
  5187  	return s
  5188  }
  5189  
  5190  // The custom parameters to be used when the target is an Batch job.
  5191  type BatchParameters struct {
  5192  	_ struct{} `type:"structure"`
  5193  
  5194  	// The array properties for the submitted job, such as the size of the array.
  5195  	// The array size can be between 2 and 10,000. If you specify array properties
  5196  	// for a job, it becomes an array job. This parameter is used only if the target
  5197  	// is an Batch job.
  5198  	ArrayProperties *BatchArrayProperties `type:"structure"`
  5199  
  5200  	// The ARN or name of the job definition to use if the event target is an Batch
  5201  	// job. This job definition must already exist.
  5202  	//
  5203  	// JobDefinition is a required field
  5204  	JobDefinition *string `type:"string" required:"true"`
  5205  
  5206  	// The name to use for this execution of the job, if the target is an Batch
  5207  	// job.
  5208  	//
  5209  	// JobName is a required field
  5210  	JobName *string `type:"string" required:"true"`
  5211  
  5212  	// The retry strategy to use for failed jobs, if the target is an Batch job.
  5213  	// The retry strategy is the number of times to retry the failed job execution.
  5214  	// Valid values are 1–10. When you specify a retry strategy here, it overrides
  5215  	// the retry strategy defined in the job definition.
  5216  	RetryStrategy *BatchRetryStrategy `type:"structure"`
  5217  }
  5218  
  5219  // String returns the string representation.
  5220  //
  5221  // API parameter values that are decorated as "sensitive" in the API will not
  5222  // be included in the string output. The member name will be present, but the
  5223  // value will be replaced with "sensitive".
  5224  func (s BatchParameters) String() string {
  5225  	return awsutil.Prettify(s)
  5226  }
  5227  
  5228  // GoString returns the string representation.
  5229  //
  5230  // API parameter values that are decorated as "sensitive" in the API will not
  5231  // be included in the string output. The member name will be present, but the
  5232  // value will be replaced with "sensitive".
  5233  func (s BatchParameters) GoString() string {
  5234  	return s.String()
  5235  }
  5236  
  5237  // Validate inspects the fields of the type to determine if they are valid.
  5238  func (s *BatchParameters) Validate() error {
  5239  	invalidParams := request.ErrInvalidParams{Context: "BatchParameters"}
  5240  	if s.JobDefinition == nil {
  5241  		invalidParams.Add(request.NewErrParamRequired("JobDefinition"))
  5242  	}
  5243  	if s.JobName == nil {
  5244  		invalidParams.Add(request.NewErrParamRequired("JobName"))
  5245  	}
  5246  
  5247  	if invalidParams.Len() > 0 {
  5248  		return invalidParams
  5249  	}
  5250  	return nil
  5251  }
  5252  
  5253  // SetArrayProperties sets the ArrayProperties field's value.
  5254  func (s *BatchParameters) SetArrayProperties(v *BatchArrayProperties) *BatchParameters {
  5255  	s.ArrayProperties = v
  5256  	return s
  5257  }
  5258  
  5259  // SetJobDefinition sets the JobDefinition field's value.
  5260  func (s *BatchParameters) SetJobDefinition(v string) *BatchParameters {
  5261  	s.JobDefinition = &v
  5262  	return s
  5263  }
  5264  
  5265  // SetJobName sets the JobName field's value.
  5266  func (s *BatchParameters) SetJobName(v string) *BatchParameters {
  5267  	s.JobName = &v
  5268  	return s
  5269  }
  5270  
  5271  // SetRetryStrategy sets the RetryStrategy field's value.
  5272  func (s *BatchParameters) SetRetryStrategy(v *BatchRetryStrategy) *BatchParameters {
  5273  	s.RetryStrategy = v
  5274  	return s
  5275  }
  5276  
  5277  // The retry strategy to use for failed jobs, if the target is an Batch job.
  5278  // If you specify a retry strategy here, it overrides the retry strategy defined
  5279  // in the job definition.
  5280  type BatchRetryStrategy struct {
  5281  	_ struct{} `type:"structure"`
  5282  
  5283  	// The number of times to attempt to retry, if the job fails. Valid values are
  5284  	// 1–10.
  5285  	Attempts *int64 `type:"integer"`
  5286  }
  5287  
  5288  // String returns the string representation.
  5289  //
  5290  // API parameter values that are decorated as "sensitive" in the API will not
  5291  // be included in the string output. The member name will be present, but the
  5292  // value will be replaced with "sensitive".
  5293  func (s BatchRetryStrategy) String() string {
  5294  	return awsutil.Prettify(s)
  5295  }
  5296  
  5297  // GoString returns the string representation.
  5298  //
  5299  // API parameter values that are decorated as "sensitive" in the API will not
  5300  // be included in the string output. The member name will be present, but the
  5301  // value will be replaced with "sensitive".
  5302  func (s BatchRetryStrategy) GoString() string {
  5303  	return s.String()
  5304  }
  5305  
  5306  // SetAttempts sets the Attempts field's value.
  5307  func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy {
  5308  	s.Attempts = &v
  5309  	return s
  5310  }
  5311  
  5312  type CancelReplayInput struct {
  5313  	_ struct{} `type:"structure"`
  5314  
  5315  	// The name of the replay to cancel.
  5316  	//
  5317  	// ReplayName is a required field
  5318  	ReplayName *string `min:"1" type:"string" required:"true"`
  5319  }
  5320  
  5321  // String returns the string representation.
  5322  //
  5323  // API parameter values that are decorated as "sensitive" in the API will not
  5324  // be included in the string output. The member name will be present, but the
  5325  // value will be replaced with "sensitive".
  5326  func (s CancelReplayInput) String() string {
  5327  	return awsutil.Prettify(s)
  5328  }
  5329  
  5330  // GoString returns the string representation.
  5331  //
  5332  // API parameter values that are decorated as "sensitive" in the API will not
  5333  // be included in the string output. The member name will be present, but the
  5334  // value will be replaced with "sensitive".
  5335  func (s CancelReplayInput) GoString() string {
  5336  	return s.String()
  5337  }
  5338  
  5339  // Validate inspects the fields of the type to determine if they are valid.
  5340  func (s *CancelReplayInput) Validate() error {
  5341  	invalidParams := request.ErrInvalidParams{Context: "CancelReplayInput"}
  5342  	if s.ReplayName == nil {
  5343  		invalidParams.Add(request.NewErrParamRequired("ReplayName"))
  5344  	}
  5345  	if s.ReplayName != nil && len(*s.ReplayName) < 1 {
  5346  		invalidParams.Add(request.NewErrParamMinLen("ReplayName", 1))
  5347  	}
  5348  
  5349  	if invalidParams.Len() > 0 {
  5350  		return invalidParams
  5351  	}
  5352  	return nil
  5353  }
  5354  
  5355  // SetReplayName sets the ReplayName field's value.
  5356  func (s *CancelReplayInput) SetReplayName(v string) *CancelReplayInput {
  5357  	s.ReplayName = &v
  5358  	return s
  5359  }
  5360  
  5361  type CancelReplayOutput struct {
  5362  	_ struct{} `type:"structure"`
  5363  
  5364  	// The ARN of the replay to cancel.
  5365  	ReplayArn *string `min:"1" type:"string"`
  5366  
  5367  	// The current state of the replay.
  5368  	State *string `type:"string" enum:"ReplayState"`
  5369  
  5370  	// The reason that the replay is in the current state.
  5371  	StateReason *string `type:"string"`
  5372  }
  5373  
  5374  // String returns the string representation.
  5375  //
  5376  // API parameter values that are decorated as "sensitive" in the API will not
  5377  // be included in the string output. The member name will be present, but the
  5378  // value will be replaced with "sensitive".
  5379  func (s CancelReplayOutput) String() string {
  5380  	return awsutil.Prettify(s)
  5381  }
  5382  
  5383  // GoString returns the string representation.
  5384  //
  5385  // API parameter values that are decorated as "sensitive" in the API will not
  5386  // be included in the string output. The member name will be present, but the
  5387  // value will be replaced with "sensitive".
  5388  func (s CancelReplayOutput) GoString() string {
  5389  	return s.String()
  5390  }
  5391  
  5392  // SetReplayArn sets the ReplayArn field's value.
  5393  func (s *CancelReplayOutput) SetReplayArn(v string) *CancelReplayOutput {
  5394  	s.ReplayArn = &v
  5395  	return s
  5396  }
  5397  
  5398  // SetState sets the State field's value.
  5399  func (s *CancelReplayOutput) SetState(v string) *CancelReplayOutput {
  5400  	s.State = &v
  5401  	return s
  5402  }
  5403  
  5404  // SetStateReason sets the StateReason field's value.
  5405  func (s *CancelReplayOutput) SetStateReason(v string) *CancelReplayOutput {
  5406  	s.StateReason = &v
  5407  	return s
  5408  }
  5409  
  5410  // The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem
  5411  // (https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CapacityProviderStrategyItem.html)
  5412  // in the Amazon ECS API Reference.
  5413  type CapacityProviderStrategyItem struct {
  5414  	_ struct{} `type:"structure"`
  5415  
  5416  	// The base value designates how many tasks, at a minimum, to run on the specified
  5417  	// capacity provider. Only one capacity provider in a capacity provider strategy
  5418  	// can have a base defined. If no value is specified, the default value of 0
  5419  	// is used.
  5420  	Base *int64 `locationName:"base" type:"integer"`
  5421  
  5422  	// The short name of the capacity provider.
  5423  	//
  5424  	// CapacityProvider is a required field
  5425  	CapacityProvider *string `locationName:"capacityProvider" min:"1" type:"string" required:"true"`
  5426  
  5427  	// The weight value designates the relative percentage of the total number of
  5428  	// tasks launched that should use the specified capacity provider. The weight
  5429  	// value is taken into consideration after the base value, if defined, is satisfied.
  5430  	Weight *int64 `locationName:"weight" type:"integer"`
  5431  }
  5432  
  5433  // String returns the string representation.
  5434  //
  5435  // API parameter values that are decorated as "sensitive" in the API will not
  5436  // be included in the string output. The member name will be present, but the
  5437  // value will be replaced with "sensitive".
  5438  func (s CapacityProviderStrategyItem) String() string {
  5439  	return awsutil.Prettify(s)
  5440  }
  5441  
  5442  // GoString returns the string representation.
  5443  //
  5444  // API parameter values that are decorated as "sensitive" in the API will not
  5445  // be included in the string output. The member name will be present, but the
  5446  // value will be replaced with "sensitive".
  5447  func (s CapacityProviderStrategyItem) GoString() string {
  5448  	return s.String()
  5449  }
  5450  
  5451  // Validate inspects the fields of the type to determine if they are valid.
  5452  func (s *CapacityProviderStrategyItem) Validate() error {
  5453  	invalidParams := request.ErrInvalidParams{Context: "CapacityProviderStrategyItem"}
  5454  	if s.CapacityProvider == nil {
  5455  		invalidParams.Add(request.NewErrParamRequired("CapacityProvider"))
  5456  	}
  5457  	if s.CapacityProvider != nil && len(*s.CapacityProvider) < 1 {
  5458  		invalidParams.Add(request.NewErrParamMinLen("CapacityProvider", 1))
  5459  	}
  5460  
  5461  	if invalidParams.Len() > 0 {
  5462  		return invalidParams
  5463  	}
  5464  	return nil
  5465  }
  5466  
  5467  // SetBase sets the Base field's value.
  5468  func (s *CapacityProviderStrategyItem) SetBase(v int64) *CapacityProviderStrategyItem {
  5469  	s.Base = &v
  5470  	return s
  5471  }
  5472  
  5473  // SetCapacityProvider sets the CapacityProvider field's value.
  5474  func (s *CapacityProviderStrategyItem) SetCapacityProvider(v string) *CapacityProviderStrategyItem {
  5475  	s.CapacityProvider = &v
  5476  	return s
  5477  }
  5478  
  5479  // SetWeight sets the Weight field's value.
  5480  func (s *CapacityProviderStrategyItem) SetWeight(v int64) *CapacityProviderStrategyItem {
  5481  	s.Weight = &v
  5482  	return s
  5483  }
  5484  
  5485  // There is concurrent modification on a rule, target, archive, or replay.
  5486  type ConcurrentModificationException struct {
  5487  	_            struct{}                  `type:"structure"`
  5488  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  5489  
  5490  	Message_ *string `locationName:"message" type:"string"`
  5491  }
  5492  
  5493  // String returns the string representation.
  5494  //
  5495  // API parameter values that are decorated as "sensitive" in the API will not
  5496  // be included in the string output. The member name will be present, but the
  5497  // value will be replaced with "sensitive".
  5498  func (s ConcurrentModificationException) String() string {
  5499  	return awsutil.Prettify(s)
  5500  }
  5501  
  5502  // GoString returns the string representation.
  5503  //
  5504  // API parameter values that are decorated as "sensitive" in the API will not
  5505  // be included in the string output. The member name will be present, but the
  5506  // value will be replaced with "sensitive".
  5507  func (s ConcurrentModificationException) GoString() string {
  5508  	return s.String()
  5509  }
  5510  
  5511  func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error {
  5512  	return &ConcurrentModificationException{
  5513  		RespMetadata: v,
  5514  	}
  5515  }
  5516  
  5517  // Code returns the exception type name.
  5518  func (s *ConcurrentModificationException) Code() string {
  5519  	return "ConcurrentModificationException"
  5520  }
  5521  
  5522  // Message returns the exception's message.
  5523  func (s *ConcurrentModificationException) Message() string {
  5524  	if s.Message_ != nil {
  5525  		return *s.Message_
  5526  	}
  5527  	return ""
  5528  }
  5529  
  5530  // OrigErr always returns nil, satisfies awserr.Error interface.
  5531  func (s *ConcurrentModificationException) OrigErr() error {
  5532  	return nil
  5533  }
  5534  
  5535  func (s *ConcurrentModificationException) Error() string {
  5536  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  5537  }
  5538  
  5539  // Status code returns the HTTP status code for the request's response error.
  5540  func (s *ConcurrentModificationException) StatusCode() int {
  5541  	return s.RespMetadata.StatusCode
  5542  }
  5543  
  5544  // RequestID returns the service's response RequestID for request.
  5545  func (s *ConcurrentModificationException) RequestID() string {
  5546  	return s.RespMetadata.RequestID
  5547  }
  5548  
  5549  // A JSON string which you can use to limit the event bus permissions you are
  5550  // granting to only accounts that fulfill the condition. Currently, the only
  5551  // supported condition is membership in a certain Amazon Web Services organization.
  5552  // The string must contain Type, Key, and Value fields. The Value field specifies
  5553  // the ID of the Amazon Web Services organization. Following is an example value
  5554  // for Condition:
  5555  //
  5556  // '{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'
  5557  type Condition struct {
  5558  	_ struct{} `type:"structure"`
  5559  
  5560  	// Specifies the key for the condition. Currently the only supported key is
  5561  	// aws:PrincipalOrgID.
  5562  	//
  5563  	// Key is a required field
  5564  	Key *string `type:"string" required:"true"`
  5565  
  5566  	// Specifies the type of condition. Currently the only supported value is StringEquals.
  5567  	//
  5568  	// Type is a required field
  5569  	Type *string `type:"string" required:"true"`
  5570  
  5571  	// Specifies the value for the key. Currently, this must be the ID of the organization.
  5572  	//
  5573  	// Value is a required field
  5574  	Value *string `type:"string" required:"true"`
  5575  }
  5576  
  5577  // String returns the string representation.
  5578  //
  5579  // API parameter values that are decorated as "sensitive" in the API will not
  5580  // be included in the string output. The member name will be present, but the
  5581  // value will be replaced with "sensitive".
  5582  func (s Condition) String() string {
  5583  	return awsutil.Prettify(s)
  5584  }
  5585  
  5586  // GoString returns the string representation.
  5587  //
  5588  // API parameter values that are decorated as "sensitive" in the API will not
  5589  // be included in the string output. The member name will be present, but the
  5590  // value will be replaced with "sensitive".
  5591  func (s Condition) GoString() string {
  5592  	return s.String()
  5593  }
  5594  
  5595  // Validate inspects the fields of the type to determine if they are valid.
  5596  func (s *Condition) Validate() error {
  5597  	invalidParams := request.ErrInvalidParams{Context: "Condition"}
  5598  	if s.Key == nil {
  5599  		invalidParams.Add(request.NewErrParamRequired("Key"))
  5600  	}
  5601  	if s.Type == nil {
  5602  		invalidParams.Add(request.NewErrParamRequired("Type"))
  5603  	}
  5604  	if s.Value == nil {
  5605  		invalidParams.Add(request.NewErrParamRequired("Value"))
  5606  	}
  5607  
  5608  	if invalidParams.Len() > 0 {
  5609  		return invalidParams
  5610  	}
  5611  	return nil
  5612  }
  5613  
  5614  // SetKey sets the Key field's value.
  5615  func (s *Condition) SetKey(v string) *Condition {
  5616  	s.Key = &v
  5617  	return s
  5618  }
  5619  
  5620  // SetType sets the Type field's value.
  5621  func (s *Condition) SetType(v string) *Condition {
  5622  	s.Type = &v
  5623  	return s
  5624  }
  5625  
  5626  // SetValue sets the Value field's value.
  5627  func (s *Condition) SetValue(v string) *Condition {
  5628  	s.Value = &v
  5629  	return s
  5630  }
  5631  
  5632  // Contains information about a connection.
  5633  type Connection struct {
  5634  	_ struct{} `type:"structure"`
  5635  
  5636  	// The authorization type specified for the connection.
  5637  	AuthorizationType *string `type:"string" enum:"ConnectionAuthorizationType"`
  5638  
  5639  	// The ARN of the connection.
  5640  	ConnectionArn *string `min:"1" type:"string"`
  5641  
  5642  	// The state of the connection.
  5643  	ConnectionState *string `type:"string" enum:"ConnectionState"`
  5644  
  5645  	// A time stamp for the time that the connection was created.
  5646  	CreationTime *time.Time `type:"timestamp"`
  5647  
  5648  	// A time stamp for the time that the connection was last authorized.
  5649  	LastAuthorizedTime *time.Time `type:"timestamp"`
  5650  
  5651  	// A time stamp for the time that the connection was last modified.
  5652  	LastModifiedTime *time.Time `type:"timestamp"`
  5653  
  5654  	// The name of the connection.
  5655  	Name *string `min:"1" type:"string"`
  5656  
  5657  	// The reason that the connection is in the connection state.
  5658  	StateReason *string `type:"string"`
  5659  }
  5660  
  5661  // String returns the string representation.
  5662  //
  5663  // API parameter values that are decorated as "sensitive" in the API will not
  5664  // be included in the string output. The member name will be present, but the
  5665  // value will be replaced with "sensitive".
  5666  func (s Connection) String() string {
  5667  	return awsutil.Prettify(s)
  5668  }
  5669  
  5670  // GoString returns the string representation.
  5671  //
  5672  // API parameter values that are decorated as "sensitive" in the API will not
  5673  // be included in the string output. The member name will be present, but the
  5674  // value will be replaced with "sensitive".
  5675  func (s Connection) GoString() string {
  5676  	return s.String()
  5677  }
  5678  
  5679  // SetAuthorizationType sets the AuthorizationType field's value.
  5680  func (s *Connection) SetAuthorizationType(v string) *Connection {
  5681  	s.AuthorizationType = &v
  5682  	return s
  5683  }
  5684  
  5685  // SetConnectionArn sets the ConnectionArn field's value.
  5686  func (s *Connection) SetConnectionArn(v string) *Connection {
  5687  	s.ConnectionArn = &v
  5688  	return s
  5689  }
  5690  
  5691  // SetConnectionState sets the ConnectionState field's value.
  5692  func (s *Connection) SetConnectionState(v string) *Connection {
  5693  	s.ConnectionState = &v
  5694  	return s
  5695  }
  5696  
  5697  // SetCreationTime sets the CreationTime field's value.
  5698  func (s *Connection) SetCreationTime(v time.Time) *Connection {
  5699  	s.CreationTime = &v
  5700  	return s
  5701  }
  5702  
  5703  // SetLastAuthorizedTime sets the LastAuthorizedTime field's value.
  5704  func (s *Connection) SetLastAuthorizedTime(v time.Time) *Connection {
  5705  	s.LastAuthorizedTime = &v
  5706  	return s
  5707  }
  5708  
  5709  // SetLastModifiedTime sets the LastModifiedTime field's value.
  5710  func (s *Connection) SetLastModifiedTime(v time.Time) *Connection {
  5711  	s.LastModifiedTime = &v
  5712  	return s
  5713  }
  5714  
  5715  // SetName sets the Name field's value.
  5716  func (s *Connection) SetName(v string) *Connection {
  5717  	s.Name = &v
  5718  	return s
  5719  }
  5720  
  5721  // SetStateReason sets the StateReason field's value.
  5722  func (s *Connection) SetStateReason(v string) *Connection {
  5723  	s.StateReason = &v
  5724  	return s
  5725  }
  5726  
  5727  // Contains the authorization parameters for the connection if API Key is specified
  5728  // as the authorization type.
  5729  type ConnectionApiKeyAuthResponseParameters struct {
  5730  	_ struct{} `type:"structure"`
  5731  
  5732  	// The name of the header to use for the APIKeyValue used for authorization.
  5733  	ApiKeyName *string `min:"1" type:"string"`
  5734  }
  5735  
  5736  // String returns the string representation.
  5737  //
  5738  // API parameter values that are decorated as "sensitive" in the API will not
  5739  // be included in the string output. The member name will be present, but the
  5740  // value will be replaced with "sensitive".
  5741  func (s ConnectionApiKeyAuthResponseParameters) String() string {
  5742  	return awsutil.Prettify(s)
  5743  }
  5744  
  5745  // GoString returns the string representation.
  5746  //
  5747  // API parameter values that are decorated as "sensitive" in the API will not
  5748  // be included in the string output. The member name will be present, but the
  5749  // value will be replaced with "sensitive".
  5750  func (s ConnectionApiKeyAuthResponseParameters) GoString() string {
  5751  	return s.String()
  5752  }
  5753  
  5754  // SetApiKeyName sets the ApiKeyName field's value.
  5755  func (s *ConnectionApiKeyAuthResponseParameters) SetApiKeyName(v string) *ConnectionApiKeyAuthResponseParameters {
  5756  	s.ApiKeyName = &v
  5757  	return s
  5758  }
  5759  
  5760  // Contains the authorization parameters to use for the connection.
  5761  type ConnectionAuthResponseParameters struct {
  5762  	_ struct{} `type:"structure"`
  5763  
  5764  	// The API Key parameters to use for authorization.
  5765  	ApiKeyAuthParameters *ConnectionApiKeyAuthResponseParameters `type:"structure"`
  5766  
  5767  	// The authorization parameters for Basic authorization.
  5768  	BasicAuthParameters *ConnectionBasicAuthResponseParameters `type:"structure"`
  5769  
  5770  	// Additional parameters for the connection that are passed through with every
  5771  	// invocation to the HTTP endpoint.
  5772  	InvocationHttpParameters *ConnectionHttpParameters `type:"structure"`
  5773  
  5774  	// The OAuth parameters to use for authorization.
  5775  	OAuthParameters *ConnectionOAuthResponseParameters `type:"structure"`
  5776  }
  5777  
  5778  // String returns the string representation.
  5779  //
  5780  // API parameter values that are decorated as "sensitive" in the API will not
  5781  // be included in the string output. The member name will be present, but the
  5782  // value will be replaced with "sensitive".
  5783  func (s ConnectionAuthResponseParameters) String() string {
  5784  	return awsutil.Prettify(s)
  5785  }
  5786  
  5787  // GoString returns the string representation.
  5788  //
  5789  // API parameter values that are decorated as "sensitive" in the API will not
  5790  // be included in the string output. The member name will be present, but the
  5791  // value will be replaced with "sensitive".
  5792  func (s ConnectionAuthResponseParameters) GoString() string {
  5793  	return s.String()
  5794  }
  5795  
  5796  // SetApiKeyAuthParameters sets the ApiKeyAuthParameters field's value.
  5797  func (s *ConnectionAuthResponseParameters) SetApiKeyAuthParameters(v *ConnectionApiKeyAuthResponseParameters) *ConnectionAuthResponseParameters {
  5798  	s.ApiKeyAuthParameters = v
  5799  	return s
  5800  }
  5801  
  5802  // SetBasicAuthParameters sets the BasicAuthParameters field's value.
  5803  func (s *ConnectionAuthResponseParameters) SetBasicAuthParameters(v *ConnectionBasicAuthResponseParameters) *ConnectionAuthResponseParameters {
  5804  	s.BasicAuthParameters = v
  5805  	return s
  5806  }
  5807  
  5808  // SetInvocationHttpParameters sets the InvocationHttpParameters field's value.
  5809  func (s *ConnectionAuthResponseParameters) SetInvocationHttpParameters(v *ConnectionHttpParameters) *ConnectionAuthResponseParameters {
  5810  	s.InvocationHttpParameters = v
  5811  	return s
  5812  }
  5813  
  5814  // SetOAuthParameters sets the OAuthParameters field's value.
  5815  func (s *ConnectionAuthResponseParameters) SetOAuthParameters(v *ConnectionOAuthResponseParameters) *ConnectionAuthResponseParameters {
  5816  	s.OAuthParameters = v
  5817  	return s
  5818  }
  5819  
  5820  // Contains the authorization parameters for the connection if Basic is specified
  5821  // as the authorization type.
  5822  type ConnectionBasicAuthResponseParameters struct {
  5823  	_ struct{} `type:"structure"`
  5824  
  5825  	// The user name to use for Basic authorization.
  5826  	Username *string `min:"1" type:"string"`
  5827  }
  5828  
  5829  // String returns the string representation.
  5830  //
  5831  // API parameter values that are decorated as "sensitive" in the API will not
  5832  // be included in the string output. The member name will be present, but the
  5833  // value will be replaced with "sensitive".
  5834  func (s ConnectionBasicAuthResponseParameters) String() string {
  5835  	return awsutil.Prettify(s)
  5836  }
  5837  
  5838  // GoString returns the string representation.
  5839  //
  5840  // API parameter values that are decorated as "sensitive" in the API will not
  5841  // be included in the string output. The member name will be present, but the
  5842  // value will be replaced with "sensitive".
  5843  func (s ConnectionBasicAuthResponseParameters) GoString() string {
  5844  	return s.String()
  5845  }
  5846  
  5847  // SetUsername sets the Username field's value.
  5848  func (s *ConnectionBasicAuthResponseParameters) SetUsername(v string) *ConnectionBasicAuthResponseParameters {
  5849  	s.Username = &v
  5850  	return s
  5851  }
  5852  
  5853  // Additional parameter included in the body. You can include up to 100 additional
  5854  // body parameters per request. An event payload cannot exceed 64 KB.
  5855  type ConnectionBodyParameter struct {
  5856  	_ struct{} `type:"structure"`
  5857  
  5858  	// Specified whether the value is secret.
  5859  	IsValueSecret *bool `type:"boolean"`
  5860  
  5861  	// The key for the parameter.
  5862  	Key *string `type:"string"`
  5863  
  5864  	// The value associated with the key.
  5865  	Value *string `type:"string"`
  5866  }
  5867  
  5868  // String returns the string representation.
  5869  //
  5870  // API parameter values that are decorated as "sensitive" in the API will not
  5871  // be included in the string output. The member name will be present, but the
  5872  // value will be replaced with "sensitive".
  5873  func (s ConnectionBodyParameter) String() string {
  5874  	return awsutil.Prettify(s)
  5875  }
  5876  
  5877  // GoString returns the string representation.
  5878  //
  5879  // API parameter values that are decorated as "sensitive" in the API will not
  5880  // be included in the string output. The member name will be present, but the
  5881  // value will be replaced with "sensitive".
  5882  func (s ConnectionBodyParameter) GoString() string {
  5883  	return s.String()
  5884  }
  5885  
  5886  // SetIsValueSecret sets the IsValueSecret field's value.
  5887  func (s *ConnectionBodyParameter) SetIsValueSecret(v bool) *ConnectionBodyParameter {
  5888  	s.IsValueSecret = &v
  5889  	return s
  5890  }
  5891  
  5892  // SetKey sets the Key field's value.
  5893  func (s *ConnectionBodyParameter) SetKey(v string) *ConnectionBodyParameter {
  5894  	s.Key = &v
  5895  	return s
  5896  }
  5897  
  5898  // SetValue sets the Value field's value.
  5899  func (s *ConnectionBodyParameter) SetValue(v string) *ConnectionBodyParameter {
  5900  	s.Value = &v
  5901  	return s
  5902  }
  5903  
  5904  // Additional parameter included in the header. You can include up to 100 additional
  5905  // header parameters per request. An event payload cannot exceed 64 KB.
  5906  type ConnectionHeaderParameter struct {
  5907  	_ struct{} `type:"structure"`
  5908  
  5909  	// Specified whether the value is a secret.
  5910  	IsValueSecret *bool `type:"boolean"`
  5911  
  5912  	// The key for the parameter.
  5913  	Key *string `type:"string"`
  5914  
  5915  	// The value associated with the key.
  5916  	Value *string `type:"string"`
  5917  }
  5918  
  5919  // String returns the string representation.
  5920  //
  5921  // API parameter values that are decorated as "sensitive" in the API will not
  5922  // be included in the string output. The member name will be present, but the
  5923  // value will be replaced with "sensitive".
  5924  func (s ConnectionHeaderParameter) String() string {
  5925  	return awsutil.Prettify(s)
  5926  }
  5927  
  5928  // GoString returns the string representation.
  5929  //
  5930  // API parameter values that are decorated as "sensitive" in the API will not
  5931  // be included in the string output. The member name will be present, but the
  5932  // value will be replaced with "sensitive".
  5933  func (s ConnectionHeaderParameter) GoString() string {
  5934  	return s.String()
  5935  }
  5936  
  5937  // SetIsValueSecret sets the IsValueSecret field's value.
  5938  func (s *ConnectionHeaderParameter) SetIsValueSecret(v bool) *ConnectionHeaderParameter {
  5939  	s.IsValueSecret = &v
  5940  	return s
  5941  }
  5942  
  5943  // SetKey sets the Key field's value.
  5944  func (s *ConnectionHeaderParameter) SetKey(v string) *ConnectionHeaderParameter {
  5945  	s.Key = &v
  5946  	return s
  5947  }
  5948  
  5949  // SetValue sets the Value field's value.
  5950  func (s *ConnectionHeaderParameter) SetValue(v string) *ConnectionHeaderParameter {
  5951  	s.Value = &v
  5952  	return s
  5953  }
  5954  
  5955  // Contains additional parameters for the connection.
  5956  type ConnectionHttpParameters struct {
  5957  	_ struct{} `type:"structure"`
  5958  
  5959  	// Contains additional body string parameters for the connection.
  5960  	BodyParameters []*ConnectionBodyParameter `type:"list"`
  5961  
  5962  	// Contains additional header parameters for the connection.
  5963  	HeaderParameters []*ConnectionHeaderParameter `type:"list"`
  5964  
  5965  	// Contains additional query string parameters for the connection.
  5966  	QueryStringParameters []*ConnectionQueryStringParameter `type:"list"`
  5967  }
  5968  
  5969  // String returns the string representation.
  5970  //
  5971  // API parameter values that are decorated as "sensitive" in the API will not
  5972  // be included in the string output. The member name will be present, but the
  5973  // value will be replaced with "sensitive".
  5974  func (s ConnectionHttpParameters) String() string {
  5975  	return awsutil.Prettify(s)
  5976  }
  5977  
  5978  // GoString returns the string representation.
  5979  //
  5980  // API parameter values that are decorated as "sensitive" in the API will not
  5981  // be included in the string output. The member name will be present, but the
  5982  // value will be replaced with "sensitive".
  5983  func (s ConnectionHttpParameters) GoString() string {
  5984  	return s.String()
  5985  }
  5986  
  5987  // SetBodyParameters sets the BodyParameters field's value.
  5988  func (s *ConnectionHttpParameters) SetBodyParameters(v []*ConnectionBodyParameter) *ConnectionHttpParameters {
  5989  	s.BodyParameters = v
  5990  	return s
  5991  }
  5992  
  5993  // SetHeaderParameters sets the HeaderParameters field's value.
  5994  func (s *ConnectionHttpParameters) SetHeaderParameters(v []*ConnectionHeaderParameter) *ConnectionHttpParameters {
  5995  	s.HeaderParameters = v
  5996  	return s
  5997  }
  5998  
  5999  // SetQueryStringParameters sets the QueryStringParameters field's value.
  6000  func (s *ConnectionHttpParameters) SetQueryStringParameters(v []*ConnectionQueryStringParameter) *ConnectionHttpParameters {
  6001  	s.QueryStringParameters = v
  6002  	return s
  6003  }
  6004  
  6005  // Contains the client response parameters for the connection when OAuth is
  6006  // specified as the authorization type.
  6007  type ConnectionOAuthClientResponseParameters struct {
  6008  	_ struct{} `type:"structure"`
  6009  
  6010  	// The client ID associated with the response to the connection request.
  6011  	ClientID *string `min:"1" type:"string"`
  6012  }
  6013  
  6014  // String returns the string representation.
  6015  //
  6016  // API parameter values that are decorated as "sensitive" in the API will not
  6017  // be included in the string output. The member name will be present, but the
  6018  // value will be replaced with "sensitive".
  6019  func (s ConnectionOAuthClientResponseParameters) String() string {
  6020  	return awsutil.Prettify(s)
  6021  }
  6022  
  6023  // GoString returns the string representation.
  6024  //
  6025  // API parameter values that are decorated as "sensitive" in the API will not
  6026  // be included in the string output. The member name will be present, but the
  6027  // value will be replaced with "sensitive".
  6028  func (s ConnectionOAuthClientResponseParameters) GoString() string {
  6029  	return s.String()
  6030  }
  6031  
  6032  // SetClientID sets the ClientID field's value.
  6033  func (s *ConnectionOAuthClientResponseParameters) SetClientID(v string) *ConnectionOAuthClientResponseParameters {
  6034  	s.ClientID = &v
  6035  	return s
  6036  }
  6037  
  6038  // Contains the response parameters when OAuth is specified as the authorization
  6039  // type.
  6040  type ConnectionOAuthResponseParameters struct {
  6041  	_ struct{} `type:"structure"`
  6042  
  6043  	// The URL to the HTTP endpoint that authorized the request.
  6044  	AuthorizationEndpoint *string `min:"1" type:"string"`
  6045  
  6046  	// A ConnectionOAuthClientResponseParameters object that contains details about
  6047  	// the client parameters returned when OAuth is specified as the authorization
  6048  	// type.
  6049  	ClientParameters *ConnectionOAuthClientResponseParameters `type:"structure"`
  6050  
  6051  	// The method used to connect to the HTTP endpoint.
  6052  	HttpMethod *string `type:"string" enum:"ConnectionOAuthHttpMethod"`
  6053  
  6054  	// The additional HTTP parameters used for the OAuth authorization request.
  6055  	OAuthHttpParameters *ConnectionHttpParameters `type:"structure"`
  6056  }
  6057  
  6058  // String returns the string representation.
  6059  //
  6060  // API parameter values that are decorated as "sensitive" in the API will not
  6061  // be included in the string output. The member name will be present, but the
  6062  // value will be replaced with "sensitive".
  6063  func (s ConnectionOAuthResponseParameters) String() string {
  6064  	return awsutil.Prettify(s)
  6065  }
  6066  
  6067  // GoString returns the string representation.
  6068  //
  6069  // API parameter values that are decorated as "sensitive" in the API will not
  6070  // be included in the string output. The member name will be present, but the
  6071  // value will be replaced with "sensitive".
  6072  func (s ConnectionOAuthResponseParameters) GoString() string {
  6073  	return s.String()
  6074  }
  6075  
  6076  // SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value.
  6077  func (s *ConnectionOAuthResponseParameters) SetAuthorizationEndpoint(v string) *ConnectionOAuthResponseParameters {
  6078  	s.AuthorizationEndpoint = &v
  6079  	return s
  6080  }
  6081  
  6082  // SetClientParameters sets the ClientParameters field's value.
  6083  func (s *ConnectionOAuthResponseParameters) SetClientParameters(v *ConnectionOAuthClientResponseParameters) *ConnectionOAuthResponseParameters {
  6084  	s.ClientParameters = v
  6085  	return s
  6086  }
  6087  
  6088  // SetHttpMethod sets the HttpMethod field's value.
  6089  func (s *ConnectionOAuthResponseParameters) SetHttpMethod(v string) *ConnectionOAuthResponseParameters {
  6090  	s.HttpMethod = &v
  6091  	return s
  6092  }
  6093  
  6094  // SetOAuthHttpParameters sets the OAuthHttpParameters field's value.
  6095  func (s *ConnectionOAuthResponseParameters) SetOAuthHttpParameters(v *ConnectionHttpParameters) *ConnectionOAuthResponseParameters {
  6096  	s.OAuthHttpParameters = v
  6097  	return s
  6098  }
  6099  
  6100  // Additional query string parameter for the connection. You can include up
  6101  // to 100 additional query string parameters per request. Each additional parameter
  6102  // counts towards the event payload size, which cannot exceed 64 KB.
  6103  type ConnectionQueryStringParameter struct {
  6104  	_ struct{} `type:"structure"`
  6105  
  6106  	// Specifies whether the value is secret.
  6107  	IsValueSecret *bool `type:"boolean"`
  6108  
  6109  	// The key for a query string parameter.
  6110  	Key *string `type:"string"`
  6111  
  6112  	// The value associated with the key for the query string parameter.
  6113  	Value *string `type:"string"`
  6114  }
  6115  
  6116  // String returns the string representation.
  6117  //
  6118  // API parameter values that are decorated as "sensitive" in the API will not
  6119  // be included in the string output. The member name will be present, but the
  6120  // value will be replaced with "sensitive".
  6121  func (s ConnectionQueryStringParameter) String() string {
  6122  	return awsutil.Prettify(s)
  6123  }
  6124  
  6125  // GoString returns the string representation.
  6126  //
  6127  // API parameter values that are decorated as "sensitive" in the API will not
  6128  // be included in the string output. The member name will be present, but the
  6129  // value will be replaced with "sensitive".
  6130  func (s ConnectionQueryStringParameter) GoString() string {
  6131  	return s.String()
  6132  }
  6133  
  6134  // SetIsValueSecret sets the IsValueSecret field's value.
  6135  func (s *ConnectionQueryStringParameter) SetIsValueSecret(v bool) *ConnectionQueryStringParameter {
  6136  	s.IsValueSecret = &v
  6137  	return s
  6138  }
  6139  
  6140  // SetKey sets the Key field's value.
  6141  func (s *ConnectionQueryStringParameter) SetKey(v string) *ConnectionQueryStringParameter {
  6142  	s.Key = &v
  6143  	return s
  6144  }
  6145  
  6146  // SetValue sets the Value field's value.
  6147  func (s *ConnectionQueryStringParameter) SetValue(v string) *ConnectionQueryStringParameter {
  6148  	s.Value = &v
  6149  	return s
  6150  }
  6151  
  6152  type CreateApiDestinationInput struct {
  6153  	_ struct{} `type:"structure"`
  6154  
  6155  	// The ARN of the connection to use for the API destination. The destination
  6156  	// endpoint must support the authorization type specified for the connection.
  6157  	//
  6158  	// ConnectionArn is a required field
  6159  	ConnectionArn *string `min:"1" type:"string" required:"true"`
  6160  
  6161  	// A description for the API destination to create.
  6162  	Description *string `type:"string"`
  6163  
  6164  	// The method to use for the request to the HTTP invocation endpoint.
  6165  	//
  6166  	// HttpMethod is a required field
  6167  	HttpMethod *string `type:"string" required:"true" enum:"ApiDestinationHttpMethod"`
  6168  
  6169  	// The URL to the HTTP invocation endpoint for the API destination.
  6170  	//
  6171  	// InvocationEndpoint is a required field
  6172  	InvocationEndpoint *string `min:"1" type:"string" required:"true"`
  6173  
  6174  	// The maximum number of requests per second to send to the HTTP invocation
  6175  	// endpoint.
  6176  	InvocationRateLimitPerSecond *int64 `min:"1" type:"integer"`
  6177  
  6178  	// The name for the API destination to create.
  6179  	//
  6180  	// Name is a required field
  6181  	Name *string `min:"1" type:"string" required:"true"`
  6182  }
  6183  
  6184  // String returns the string representation.
  6185  //
  6186  // API parameter values that are decorated as "sensitive" in the API will not
  6187  // be included in the string output. The member name will be present, but the
  6188  // value will be replaced with "sensitive".
  6189  func (s CreateApiDestinationInput) String() string {
  6190  	return awsutil.Prettify(s)
  6191  }
  6192  
  6193  // GoString returns the string representation.
  6194  //
  6195  // API parameter values that are decorated as "sensitive" in the API will not
  6196  // be included in the string output. The member name will be present, but the
  6197  // value will be replaced with "sensitive".
  6198  func (s CreateApiDestinationInput) GoString() string {
  6199  	return s.String()
  6200  }
  6201  
  6202  // Validate inspects the fields of the type to determine if they are valid.
  6203  func (s *CreateApiDestinationInput) Validate() error {
  6204  	invalidParams := request.ErrInvalidParams{Context: "CreateApiDestinationInput"}
  6205  	if s.ConnectionArn == nil {
  6206  		invalidParams.Add(request.NewErrParamRequired("ConnectionArn"))
  6207  	}
  6208  	if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 {
  6209  		invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1))
  6210  	}
  6211  	if s.HttpMethod == nil {
  6212  		invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
  6213  	}
  6214  	if s.InvocationEndpoint == nil {
  6215  		invalidParams.Add(request.NewErrParamRequired("InvocationEndpoint"))
  6216  	}
  6217  	if s.InvocationEndpoint != nil && len(*s.InvocationEndpoint) < 1 {
  6218  		invalidParams.Add(request.NewErrParamMinLen("InvocationEndpoint", 1))
  6219  	}
  6220  	if s.InvocationRateLimitPerSecond != nil && *s.InvocationRateLimitPerSecond < 1 {
  6221  		invalidParams.Add(request.NewErrParamMinValue("InvocationRateLimitPerSecond", 1))
  6222  	}
  6223  	if s.Name == nil {
  6224  		invalidParams.Add(request.NewErrParamRequired("Name"))
  6225  	}
  6226  	if s.Name != nil && len(*s.Name) < 1 {
  6227  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6228  	}
  6229  
  6230  	if invalidParams.Len() > 0 {
  6231  		return invalidParams
  6232  	}
  6233  	return nil
  6234  }
  6235  
  6236  // SetConnectionArn sets the ConnectionArn field's value.
  6237  func (s *CreateApiDestinationInput) SetConnectionArn(v string) *CreateApiDestinationInput {
  6238  	s.ConnectionArn = &v
  6239  	return s
  6240  }
  6241  
  6242  // SetDescription sets the Description field's value.
  6243  func (s *CreateApiDestinationInput) SetDescription(v string) *CreateApiDestinationInput {
  6244  	s.Description = &v
  6245  	return s
  6246  }
  6247  
  6248  // SetHttpMethod sets the HttpMethod field's value.
  6249  func (s *CreateApiDestinationInput) SetHttpMethod(v string) *CreateApiDestinationInput {
  6250  	s.HttpMethod = &v
  6251  	return s
  6252  }
  6253  
  6254  // SetInvocationEndpoint sets the InvocationEndpoint field's value.
  6255  func (s *CreateApiDestinationInput) SetInvocationEndpoint(v string) *CreateApiDestinationInput {
  6256  	s.InvocationEndpoint = &v
  6257  	return s
  6258  }
  6259  
  6260  // SetInvocationRateLimitPerSecond sets the InvocationRateLimitPerSecond field's value.
  6261  func (s *CreateApiDestinationInput) SetInvocationRateLimitPerSecond(v int64) *CreateApiDestinationInput {
  6262  	s.InvocationRateLimitPerSecond = &v
  6263  	return s
  6264  }
  6265  
  6266  // SetName sets the Name field's value.
  6267  func (s *CreateApiDestinationInput) SetName(v string) *CreateApiDestinationInput {
  6268  	s.Name = &v
  6269  	return s
  6270  }
  6271  
  6272  type CreateApiDestinationOutput struct {
  6273  	_ struct{} `type:"structure"`
  6274  
  6275  	// The ARN of the API destination that was created by the request.
  6276  	ApiDestinationArn *string `min:"1" type:"string"`
  6277  
  6278  	// The state of the API destination that was created by the request.
  6279  	ApiDestinationState *string `type:"string" enum:"ApiDestinationState"`
  6280  
  6281  	// A time stamp indicating the time that the API destination was created.
  6282  	CreationTime *time.Time `type:"timestamp"`
  6283  
  6284  	// A time stamp indicating the time that the API destination was last modified.
  6285  	LastModifiedTime *time.Time `type:"timestamp"`
  6286  }
  6287  
  6288  // String returns the string representation.
  6289  //
  6290  // API parameter values that are decorated as "sensitive" in the API will not
  6291  // be included in the string output. The member name will be present, but the
  6292  // value will be replaced with "sensitive".
  6293  func (s CreateApiDestinationOutput) String() string {
  6294  	return awsutil.Prettify(s)
  6295  }
  6296  
  6297  // GoString returns the string representation.
  6298  //
  6299  // API parameter values that are decorated as "sensitive" in the API will not
  6300  // be included in the string output. The member name will be present, but the
  6301  // value will be replaced with "sensitive".
  6302  func (s CreateApiDestinationOutput) GoString() string {
  6303  	return s.String()
  6304  }
  6305  
  6306  // SetApiDestinationArn sets the ApiDestinationArn field's value.
  6307  func (s *CreateApiDestinationOutput) SetApiDestinationArn(v string) *CreateApiDestinationOutput {
  6308  	s.ApiDestinationArn = &v
  6309  	return s
  6310  }
  6311  
  6312  // SetApiDestinationState sets the ApiDestinationState field's value.
  6313  func (s *CreateApiDestinationOutput) SetApiDestinationState(v string) *CreateApiDestinationOutput {
  6314  	s.ApiDestinationState = &v
  6315  	return s
  6316  }
  6317  
  6318  // SetCreationTime sets the CreationTime field's value.
  6319  func (s *CreateApiDestinationOutput) SetCreationTime(v time.Time) *CreateApiDestinationOutput {
  6320  	s.CreationTime = &v
  6321  	return s
  6322  }
  6323  
  6324  // SetLastModifiedTime sets the LastModifiedTime field's value.
  6325  func (s *CreateApiDestinationOutput) SetLastModifiedTime(v time.Time) *CreateApiDestinationOutput {
  6326  	s.LastModifiedTime = &v
  6327  	return s
  6328  }
  6329  
  6330  type CreateArchiveInput struct {
  6331  	_ struct{} `type:"structure"`
  6332  
  6333  	// The name for the archive to create.
  6334  	//
  6335  	// ArchiveName is a required field
  6336  	ArchiveName *string `min:"1" type:"string" required:"true"`
  6337  
  6338  	// A description for the archive.
  6339  	Description *string `type:"string"`
  6340  
  6341  	// An event pattern to use to filter events sent to the archive.
  6342  	EventPattern *string `type:"string"`
  6343  
  6344  	// The ARN of the event bus that sends events to the archive.
  6345  	//
  6346  	// EventSourceArn is a required field
  6347  	EventSourceArn *string `min:"1" type:"string" required:"true"`
  6348  
  6349  	// The number of days to retain events for. Default value is 0. If set to 0,
  6350  	// events are retained indefinitely
  6351  	RetentionDays *int64 `type:"integer"`
  6352  }
  6353  
  6354  // String returns the string representation.
  6355  //
  6356  // API parameter values that are decorated as "sensitive" in the API will not
  6357  // be included in the string output. The member name will be present, but the
  6358  // value will be replaced with "sensitive".
  6359  func (s CreateArchiveInput) String() string {
  6360  	return awsutil.Prettify(s)
  6361  }
  6362  
  6363  // GoString returns the string representation.
  6364  //
  6365  // API parameter values that are decorated as "sensitive" in the API will not
  6366  // be included in the string output. The member name will be present, but the
  6367  // value will be replaced with "sensitive".
  6368  func (s CreateArchiveInput) GoString() string {
  6369  	return s.String()
  6370  }
  6371  
  6372  // Validate inspects the fields of the type to determine if they are valid.
  6373  func (s *CreateArchiveInput) Validate() error {
  6374  	invalidParams := request.ErrInvalidParams{Context: "CreateArchiveInput"}
  6375  	if s.ArchiveName == nil {
  6376  		invalidParams.Add(request.NewErrParamRequired("ArchiveName"))
  6377  	}
  6378  	if s.ArchiveName != nil && len(*s.ArchiveName) < 1 {
  6379  		invalidParams.Add(request.NewErrParamMinLen("ArchiveName", 1))
  6380  	}
  6381  	if s.EventSourceArn == nil {
  6382  		invalidParams.Add(request.NewErrParamRequired("EventSourceArn"))
  6383  	}
  6384  	if s.EventSourceArn != nil && len(*s.EventSourceArn) < 1 {
  6385  		invalidParams.Add(request.NewErrParamMinLen("EventSourceArn", 1))
  6386  	}
  6387  
  6388  	if invalidParams.Len() > 0 {
  6389  		return invalidParams
  6390  	}
  6391  	return nil
  6392  }
  6393  
  6394  // SetArchiveName sets the ArchiveName field's value.
  6395  func (s *CreateArchiveInput) SetArchiveName(v string) *CreateArchiveInput {
  6396  	s.ArchiveName = &v
  6397  	return s
  6398  }
  6399  
  6400  // SetDescription sets the Description field's value.
  6401  func (s *CreateArchiveInput) SetDescription(v string) *CreateArchiveInput {
  6402  	s.Description = &v
  6403  	return s
  6404  }
  6405  
  6406  // SetEventPattern sets the EventPattern field's value.
  6407  func (s *CreateArchiveInput) SetEventPattern(v string) *CreateArchiveInput {
  6408  	s.EventPattern = &v
  6409  	return s
  6410  }
  6411  
  6412  // SetEventSourceArn sets the EventSourceArn field's value.
  6413  func (s *CreateArchiveInput) SetEventSourceArn(v string) *CreateArchiveInput {
  6414  	s.EventSourceArn = &v
  6415  	return s
  6416  }
  6417  
  6418  // SetRetentionDays sets the RetentionDays field's value.
  6419  func (s *CreateArchiveInput) SetRetentionDays(v int64) *CreateArchiveInput {
  6420  	s.RetentionDays = &v
  6421  	return s
  6422  }
  6423  
  6424  type CreateArchiveOutput struct {
  6425  	_ struct{} `type:"structure"`
  6426  
  6427  	// The ARN of the archive that was created.
  6428  	ArchiveArn *string `min:"1" type:"string"`
  6429  
  6430  	// The time at which the archive was created.
  6431  	CreationTime *time.Time `type:"timestamp"`
  6432  
  6433  	// The state of the archive that was created.
  6434  	State *string `type:"string" enum:"ArchiveState"`
  6435  
  6436  	// The reason that the archive is in the state.
  6437  	StateReason *string `type:"string"`
  6438  }
  6439  
  6440  // String returns the string representation.
  6441  //
  6442  // API parameter values that are decorated as "sensitive" in the API will not
  6443  // be included in the string output. The member name will be present, but the
  6444  // value will be replaced with "sensitive".
  6445  func (s CreateArchiveOutput) String() string {
  6446  	return awsutil.Prettify(s)
  6447  }
  6448  
  6449  // GoString returns the string representation.
  6450  //
  6451  // API parameter values that are decorated as "sensitive" in the API will not
  6452  // be included in the string output. The member name will be present, but the
  6453  // value will be replaced with "sensitive".
  6454  func (s CreateArchiveOutput) GoString() string {
  6455  	return s.String()
  6456  }
  6457  
  6458  // SetArchiveArn sets the ArchiveArn field's value.
  6459  func (s *CreateArchiveOutput) SetArchiveArn(v string) *CreateArchiveOutput {
  6460  	s.ArchiveArn = &v
  6461  	return s
  6462  }
  6463  
  6464  // SetCreationTime sets the CreationTime field's value.
  6465  func (s *CreateArchiveOutput) SetCreationTime(v time.Time) *CreateArchiveOutput {
  6466  	s.CreationTime = &v
  6467  	return s
  6468  }
  6469  
  6470  // SetState sets the State field's value.
  6471  func (s *CreateArchiveOutput) SetState(v string) *CreateArchiveOutput {
  6472  	s.State = &v
  6473  	return s
  6474  }
  6475  
  6476  // SetStateReason sets the StateReason field's value.
  6477  func (s *CreateArchiveOutput) SetStateReason(v string) *CreateArchiveOutput {
  6478  	s.StateReason = &v
  6479  	return s
  6480  }
  6481  
  6482  // Contains the API key authorization parameters for the connection.
  6483  type CreateConnectionApiKeyAuthRequestParameters struct {
  6484  	_ struct{} `type:"structure"`
  6485  
  6486  	// The name of the API key to use for authorization.
  6487  	//
  6488  	// ApiKeyName is a required field
  6489  	ApiKeyName *string `min:"1" type:"string" required:"true"`
  6490  
  6491  	// The value for the API key to use for authorization.
  6492  	//
  6493  	// ApiKeyValue is a required field
  6494  	ApiKeyValue *string `min:"1" type:"string" required:"true"`
  6495  }
  6496  
  6497  // String returns the string representation.
  6498  //
  6499  // API parameter values that are decorated as "sensitive" in the API will not
  6500  // be included in the string output. The member name will be present, but the
  6501  // value will be replaced with "sensitive".
  6502  func (s CreateConnectionApiKeyAuthRequestParameters) String() string {
  6503  	return awsutil.Prettify(s)
  6504  }
  6505  
  6506  // GoString returns the string representation.
  6507  //
  6508  // API parameter values that are decorated as "sensitive" in the API will not
  6509  // be included in the string output. The member name will be present, but the
  6510  // value will be replaced with "sensitive".
  6511  func (s CreateConnectionApiKeyAuthRequestParameters) GoString() string {
  6512  	return s.String()
  6513  }
  6514  
  6515  // Validate inspects the fields of the type to determine if they are valid.
  6516  func (s *CreateConnectionApiKeyAuthRequestParameters) Validate() error {
  6517  	invalidParams := request.ErrInvalidParams{Context: "CreateConnectionApiKeyAuthRequestParameters"}
  6518  	if s.ApiKeyName == nil {
  6519  		invalidParams.Add(request.NewErrParamRequired("ApiKeyName"))
  6520  	}
  6521  	if s.ApiKeyName != nil && len(*s.ApiKeyName) < 1 {
  6522  		invalidParams.Add(request.NewErrParamMinLen("ApiKeyName", 1))
  6523  	}
  6524  	if s.ApiKeyValue == nil {
  6525  		invalidParams.Add(request.NewErrParamRequired("ApiKeyValue"))
  6526  	}
  6527  	if s.ApiKeyValue != nil && len(*s.ApiKeyValue) < 1 {
  6528  		invalidParams.Add(request.NewErrParamMinLen("ApiKeyValue", 1))
  6529  	}
  6530  
  6531  	if invalidParams.Len() > 0 {
  6532  		return invalidParams
  6533  	}
  6534  	return nil
  6535  }
  6536  
  6537  // SetApiKeyName sets the ApiKeyName field's value.
  6538  func (s *CreateConnectionApiKeyAuthRequestParameters) SetApiKeyName(v string) *CreateConnectionApiKeyAuthRequestParameters {
  6539  	s.ApiKeyName = &v
  6540  	return s
  6541  }
  6542  
  6543  // SetApiKeyValue sets the ApiKeyValue field's value.
  6544  func (s *CreateConnectionApiKeyAuthRequestParameters) SetApiKeyValue(v string) *CreateConnectionApiKeyAuthRequestParameters {
  6545  	s.ApiKeyValue = &v
  6546  	return s
  6547  }
  6548  
  6549  // Contains the authorization parameters for the connection.
  6550  type CreateConnectionAuthRequestParameters struct {
  6551  	_ struct{} `type:"structure"`
  6552  
  6553  	// A CreateConnectionApiKeyAuthRequestParameters object that contains the API
  6554  	// key authorization parameters to use for the connection.
  6555  	ApiKeyAuthParameters *CreateConnectionApiKeyAuthRequestParameters `type:"structure"`
  6556  
  6557  	// A CreateConnectionBasicAuthRequestParameters object that contains the Basic
  6558  	// authorization parameters to use for the connection.
  6559  	BasicAuthParameters *CreateConnectionBasicAuthRequestParameters `type:"structure"`
  6560  
  6561  	// A ConnectionHttpParameters object that contains the API key authorization
  6562  	// parameters to use for the connection. Note that if you include additional
  6563  	// parameters for the target of a rule via HttpParameters, including query strings,
  6564  	// the parameters added for the connection take precedence.
  6565  	InvocationHttpParameters *ConnectionHttpParameters `type:"structure"`
  6566  
  6567  	// A CreateConnectionOAuthRequestParameters object that contains the OAuth authorization
  6568  	// parameters to use for the connection.
  6569  	OAuthParameters *CreateConnectionOAuthRequestParameters `type:"structure"`
  6570  }
  6571  
  6572  // String returns the string representation.
  6573  //
  6574  // API parameter values that are decorated as "sensitive" in the API will not
  6575  // be included in the string output. The member name will be present, but the
  6576  // value will be replaced with "sensitive".
  6577  func (s CreateConnectionAuthRequestParameters) String() string {
  6578  	return awsutil.Prettify(s)
  6579  }
  6580  
  6581  // GoString returns the string representation.
  6582  //
  6583  // API parameter values that are decorated as "sensitive" in the API will not
  6584  // be included in the string output. The member name will be present, but the
  6585  // value will be replaced with "sensitive".
  6586  func (s CreateConnectionAuthRequestParameters) GoString() string {
  6587  	return s.String()
  6588  }
  6589  
  6590  // Validate inspects the fields of the type to determine if they are valid.
  6591  func (s *CreateConnectionAuthRequestParameters) Validate() error {
  6592  	invalidParams := request.ErrInvalidParams{Context: "CreateConnectionAuthRequestParameters"}
  6593  	if s.ApiKeyAuthParameters != nil {
  6594  		if err := s.ApiKeyAuthParameters.Validate(); err != nil {
  6595  			invalidParams.AddNested("ApiKeyAuthParameters", err.(request.ErrInvalidParams))
  6596  		}
  6597  	}
  6598  	if s.BasicAuthParameters != nil {
  6599  		if err := s.BasicAuthParameters.Validate(); err != nil {
  6600  			invalidParams.AddNested("BasicAuthParameters", err.(request.ErrInvalidParams))
  6601  		}
  6602  	}
  6603  	if s.OAuthParameters != nil {
  6604  		if err := s.OAuthParameters.Validate(); err != nil {
  6605  			invalidParams.AddNested("OAuthParameters", err.(request.ErrInvalidParams))
  6606  		}
  6607  	}
  6608  
  6609  	if invalidParams.Len() > 0 {
  6610  		return invalidParams
  6611  	}
  6612  	return nil
  6613  }
  6614  
  6615  // SetApiKeyAuthParameters sets the ApiKeyAuthParameters field's value.
  6616  func (s *CreateConnectionAuthRequestParameters) SetApiKeyAuthParameters(v *CreateConnectionApiKeyAuthRequestParameters) *CreateConnectionAuthRequestParameters {
  6617  	s.ApiKeyAuthParameters = v
  6618  	return s
  6619  }
  6620  
  6621  // SetBasicAuthParameters sets the BasicAuthParameters field's value.
  6622  func (s *CreateConnectionAuthRequestParameters) SetBasicAuthParameters(v *CreateConnectionBasicAuthRequestParameters) *CreateConnectionAuthRequestParameters {
  6623  	s.BasicAuthParameters = v
  6624  	return s
  6625  }
  6626  
  6627  // SetInvocationHttpParameters sets the InvocationHttpParameters field's value.
  6628  func (s *CreateConnectionAuthRequestParameters) SetInvocationHttpParameters(v *ConnectionHttpParameters) *CreateConnectionAuthRequestParameters {
  6629  	s.InvocationHttpParameters = v
  6630  	return s
  6631  }
  6632  
  6633  // SetOAuthParameters sets the OAuthParameters field's value.
  6634  func (s *CreateConnectionAuthRequestParameters) SetOAuthParameters(v *CreateConnectionOAuthRequestParameters) *CreateConnectionAuthRequestParameters {
  6635  	s.OAuthParameters = v
  6636  	return s
  6637  }
  6638  
  6639  // Contains the Basic authorization parameters to use for the connection.
  6640  type CreateConnectionBasicAuthRequestParameters struct {
  6641  	_ struct{} `type:"structure"`
  6642  
  6643  	// The password associated with the user name to use for Basic authorization.
  6644  	//
  6645  	// Password is a required field
  6646  	Password *string `min:"1" type:"string" required:"true"`
  6647  
  6648  	// The user name to use for Basic authorization.
  6649  	//
  6650  	// Username is a required field
  6651  	Username *string `min:"1" type:"string" required:"true"`
  6652  }
  6653  
  6654  // String returns the string representation.
  6655  //
  6656  // API parameter values that are decorated as "sensitive" in the API will not
  6657  // be included in the string output. The member name will be present, but the
  6658  // value will be replaced with "sensitive".
  6659  func (s CreateConnectionBasicAuthRequestParameters) String() string {
  6660  	return awsutil.Prettify(s)
  6661  }
  6662  
  6663  // GoString returns the string representation.
  6664  //
  6665  // API parameter values that are decorated as "sensitive" in the API will not
  6666  // be included in the string output. The member name will be present, but the
  6667  // value will be replaced with "sensitive".
  6668  func (s CreateConnectionBasicAuthRequestParameters) GoString() string {
  6669  	return s.String()
  6670  }
  6671  
  6672  // Validate inspects the fields of the type to determine if they are valid.
  6673  func (s *CreateConnectionBasicAuthRequestParameters) Validate() error {
  6674  	invalidParams := request.ErrInvalidParams{Context: "CreateConnectionBasicAuthRequestParameters"}
  6675  	if s.Password == nil {
  6676  		invalidParams.Add(request.NewErrParamRequired("Password"))
  6677  	}
  6678  	if s.Password != nil && len(*s.Password) < 1 {
  6679  		invalidParams.Add(request.NewErrParamMinLen("Password", 1))
  6680  	}
  6681  	if s.Username == nil {
  6682  		invalidParams.Add(request.NewErrParamRequired("Username"))
  6683  	}
  6684  	if s.Username != nil && len(*s.Username) < 1 {
  6685  		invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  6686  	}
  6687  
  6688  	if invalidParams.Len() > 0 {
  6689  		return invalidParams
  6690  	}
  6691  	return nil
  6692  }
  6693  
  6694  // SetPassword sets the Password field's value.
  6695  func (s *CreateConnectionBasicAuthRequestParameters) SetPassword(v string) *CreateConnectionBasicAuthRequestParameters {
  6696  	s.Password = &v
  6697  	return s
  6698  }
  6699  
  6700  // SetUsername sets the Username field's value.
  6701  func (s *CreateConnectionBasicAuthRequestParameters) SetUsername(v string) *CreateConnectionBasicAuthRequestParameters {
  6702  	s.Username = &v
  6703  	return s
  6704  }
  6705  
  6706  type CreateConnectionInput struct {
  6707  	_ struct{} `type:"structure"`
  6708  
  6709  	// A CreateConnectionAuthRequestParameters object that contains the authorization
  6710  	// parameters to use to authorize with the endpoint.
  6711  	//
  6712  	// AuthParameters is a required field
  6713  	AuthParameters *CreateConnectionAuthRequestParameters `type:"structure" required:"true"`
  6714  
  6715  	// The type of authorization to use for the connection.
  6716  	//
  6717  	// AuthorizationType is a required field
  6718  	AuthorizationType *string `type:"string" required:"true" enum:"ConnectionAuthorizationType"`
  6719  
  6720  	// A description for the connection to create.
  6721  	Description *string `type:"string"`
  6722  
  6723  	// The name for the connection to create.
  6724  	//
  6725  	// Name is a required field
  6726  	Name *string `min:"1" type:"string" required:"true"`
  6727  }
  6728  
  6729  // String returns the string representation.
  6730  //
  6731  // API parameter values that are decorated as "sensitive" in the API will not
  6732  // be included in the string output. The member name will be present, but the
  6733  // value will be replaced with "sensitive".
  6734  func (s CreateConnectionInput) String() string {
  6735  	return awsutil.Prettify(s)
  6736  }
  6737  
  6738  // GoString returns the string representation.
  6739  //
  6740  // API parameter values that are decorated as "sensitive" in the API will not
  6741  // be included in the string output. The member name will be present, but the
  6742  // value will be replaced with "sensitive".
  6743  func (s CreateConnectionInput) GoString() string {
  6744  	return s.String()
  6745  }
  6746  
  6747  // Validate inspects the fields of the type to determine if they are valid.
  6748  func (s *CreateConnectionInput) Validate() error {
  6749  	invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"}
  6750  	if s.AuthParameters == nil {
  6751  		invalidParams.Add(request.NewErrParamRequired("AuthParameters"))
  6752  	}
  6753  	if s.AuthorizationType == nil {
  6754  		invalidParams.Add(request.NewErrParamRequired("AuthorizationType"))
  6755  	}
  6756  	if s.Name == nil {
  6757  		invalidParams.Add(request.NewErrParamRequired("Name"))
  6758  	}
  6759  	if s.Name != nil && len(*s.Name) < 1 {
  6760  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6761  	}
  6762  	if s.AuthParameters != nil {
  6763  		if err := s.AuthParameters.Validate(); err != nil {
  6764  			invalidParams.AddNested("AuthParameters", err.(request.ErrInvalidParams))
  6765  		}
  6766  	}
  6767  
  6768  	if invalidParams.Len() > 0 {
  6769  		return invalidParams
  6770  	}
  6771  	return nil
  6772  }
  6773  
  6774  // SetAuthParameters sets the AuthParameters field's value.
  6775  func (s *CreateConnectionInput) SetAuthParameters(v *CreateConnectionAuthRequestParameters) *CreateConnectionInput {
  6776  	s.AuthParameters = v
  6777  	return s
  6778  }
  6779  
  6780  // SetAuthorizationType sets the AuthorizationType field's value.
  6781  func (s *CreateConnectionInput) SetAuthorizationType(v string) *CreateConnectionInput {
  6782  	s.AuthorizationType = &v
  6783  	return s
  6784  }
  6785  
  6786  // SetDescription sets the Description field's value.
  6787  func (s *CreateConnectionInput) SetDescription(v string) *CreateConnectionInput {
  6788  	s.Description = &v
  6789  	return s
  6790  }
  6791  
  6792  // SetName sets the Name field's value.
  6793  func (s *CreateConnectionInput) SetName(v string) *CreateConnectionInput {
  6794  	s.Name = &v
  6795  	return s
  6796  }
  6797  
  6798  // Contains the Basic authorization parameters to use for the connection.
  6799  type CreateConnectionOAuthClientRequestParameters struct {
  6800  	_ struct{} `type:"structure"`
  6801  
  6802  	// The client ID to use for OAuth authorization for the connection.
  6803  	//
  6804  	// ClientID is a required field
  6805  	ClientID *string `min:"1" type:"string" required:"true"`
  6806  
  6807  	// The client secret associated with the client ID to use for OAuth authorization
  6808  	// for the connection.
  6809  	//
  6810  	// ClientSecret is a required field
  6811  	ClientSecret *string `min:"1" type:"string" required:"true"`
  6812  }
  6813  
  6814  // String returns the string representation.
  6815  //
  6816  // API parameter values that are decorated as "sensitive" in the API will not
  6817  // be included in the string output. The member name will be present, but the
  6818  // value will be replaced with "sensitive".
  6819  func (s CreateConnectionOAuthClientRequestParameters) String() string {
  6820  	return awsutil.Prettify(s)
  6821  }
  6822  
  6823  // GoString returns the string representation.
  6824  //
  6825  // API parameter values that are decorated as "sensitive" in the API will not
  6826  // be included in the string output. The member name will be present, but the
  6827  // value will be replaced with "sensitive".
  6828  func (s CreateConnectionOAuthClientRequestParameters) GoString() string {
  6829  	return s.String()
  6830  }
  6831  
  6832  // Validate inspects the fields of the type to determine if they are valid.
  6833  func (s *CreateConnectionOAuthClientRequestParameters) Validate() error {
  6834  	invalidParams := request.ErrInvalidParams{Context: "CreateConnectionOAuthClientRequestParameters"}
  6835  	if s.ClientID == nil {
  6836  		invalidParams.Add(request.NewErrParamRequired("ClientID"))
  6837  	}
  6838  	if s.ClientID != nil && len(*s.ClientID) < 1 {
  6839  		invalidParams.Add(request.NewErrParamMinLen("ClientID", 1))
  6840  	}
  6841  	if s.ClientSecret == nil {
  6842  		invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
  6843  	}
  6844  	if s.ClientSecret != nil && len(*s.ClientSecret) < 1 {
  6845  		invalidParams.Add(request.NewErrParamMinLen("ClientSecret", 1))
  6846  	}
  6847  
  6848  	if invalidParams.Len() > 0 {
  6849  		return invalidParams
  6850  	}
  6851  	return nil
  6852  }
  6853  
  6854  // SetClientID sets the ClientID field's value.
  6855  func (s *CreateConnectionOAuthClientRequestParameters) SetClientID(v string) *CreateConnectionOAuthClientRequestParameters {
  6856  	s.ClientID = &v
  6857  	return s
  6858  }
  6859  
  6860  // SetClientSecret sets the ClientSecret field's value.
  6861  func (s *CreateConnectionOAuthClientRequestParameters) SetClientSecret(v string) *CreateConnectionOAuthClientRequestParameters {
  6862  	s.ClientSecret = &v
  6863  	return s
  6864  }
  6865  
  6866  // Contains the OAuth authorization parameters to use for the connection.
  6867  type CreateConnectionOAuthRequestParameters struct {
  6868  	_ struct{} `type:"structure"`
  6869  
  6870  	// The URL to the authorization endpoint when OAuth is specified as the authorization
  6871  	// type.
  6872  	//
  6873  	// AuthorizationEndpoint is a required field
  6874  	AuthorizationEndpoint *string `min:"1" type:"string" required:"true"`
  6875  
  6876  	// A CreateConnectionOAuthClientRequestParameters object that contains the client
  6877  	// parameters for OAuth authorization.
  6878  	//
  6879  	// ClientParameters is a required field
  6880  	ClientParameters *CreateConnectionOAuthClientRequestParameters `type:"structure" required:"true"`
  6881  
  6882  	// The method to use for the authorization request.
  6883  	//
  6884  	// HttpMethod is a required field
  6885  	HttpMethod *string `type:"string" required:"true" enum:"ConnectionOAuthHttpMethod"`
  6886  
  6887  	// A ConnectionHttpParameters object that contains details about the additional
  6888  	// parameters to use for the connection.
  6889  	OAuthHttpParameters *ConnectionHttpParameters `type:"structure"`
  6890  }
  6891  
  6892  // String returns the string representation.
  6893  //
  6894  // API parameter values that are decorated as "sensitive" in the API will not
  6895  // be included in the string output. The member name will be present, but the
  6896  // value will be replaced with "sensitive".
  6897  func (s CreateConnectionOAuthRequestParameters) String() string {
  6898  	return awsutil.Prettify(s)
  6899  }
  6900  
  6901  // GoString returns the string representation.
  6902  //
  6903  // API parameter values that are decorated as "sensitive" in the API will not
  6904  // be included in the string output. The member name will be present, but the
  6905  // value will be replaced with "sensitive".
  6906  func (s CreateConnectionOAuthRequestParameters) GoString() string {
  6907  	return s.String()
  6908  }
  6909  
  6910  // Validate inspects the fields of the type to determine if they are valid.
  6911  func (s *CreateConnectionOAuthRequestParameters) Validate() error {
  6912  	invalidParams := request.ErrInvalidParams{Context: "CreateConnectionOAuthRequestParameters"}
  6913  	if s.AuthorizationEndpoint == nil {
  6914  		invalidParams.Add(request.NewErrParamRequired("AuthorizationEndpoint"))
  6915  	}
  6916  	if s.AuthorizationEndpoint != nil && len(*s.AuthorizationEndpoint) < 1 {
  6917  		invalidParams.Add(request.NewErrParamMinLen("AuthorizationEndpoint", 1))
  6918  	}
  6919  	if s.ClientParameters == nil {
  6920  		invalidParams.Add(request.NewErrParamRequired("ClientParameters"))
  6921  	}
  6922  	if s.HttpMethod == nil {
  6923  		invalidParams.Add(request.NewErrParamRequired("HttpMethod"))
  6924  	}
  6925  	if s.ClientParameters != nil {
  6926  		if err := s.ClientParameters.Validate(); err != nil {
  6927  			invalidParams.AddNested("ClientParameters", err.(request.ErrInvalidParams))
  6928  		}
  6929  	}
  6930  
  6931  	if invalidParams.Len() > 0 {
  6932  		return invalidParams
  6933  	}
  6934  	return nil
  6935  }
  6936  
  6937  // SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value.
  6938  func (s *CreateConnectionOAuthRequestParameters) SetAuthorizationEndpoint(v string) *CreateConnectionOAuthRequestParameters {
  6939  	s.AuthorizationEndpoint = &v
  6940  	return s
  6941  }
  6942  
  6943  // SetClientParameters sets the ClientParameters field's value.
  6944  func (s *CreateConnectionOAuthRequestParameters) SetClientParameters(v *CreateConnectionOAuthClientRequestParameters) *CreateConnectionOAuthRequestParameters {
  6945  	s.ClientParameters = v
  6946  	return s
  6947  }
  6948  
  6949  // SetHttpMethod sets the HttpMethod field's value.
  6950  func (s *CreateConnectionOAuthRequestParameters) SetHttpMethod(v string) *CreateConnectionOAuthRequestParameters {
  6951  	s.HttpMethod = &v
  6952  	return s
  6953  }
  6954  
  6955  // SetOAuthHttpParameters sets the OAuthHttpParameters field's value.
  6956  func (s *CreateConnectionOAuthRequestParameters) SetOAuthHttpParameters(v *ConnectionHttpParameters) *CreateConnectionOAuthRequestParameters {
  6957  	s.OAuthHttpParameters = v
  6958  	return s
  6959  }
  6960  
  6961  type CreateConnectionOutput struct {
  6962  	_ struct{} `type:"structure"`
  6963  
  6964  	// The ARN of the connection that was created by the request.
  6965  	ConnectionArn *string `min:"1" type:"string"`
  6966  
  6967  	// The state of the connection that was created by the request.
  6968  	ConnectionState *string `type:"string" enum:"ConnectionState"`
  6969  
  6970  	// A time stamp for the time that the connection was created.
  6971  	CreationTime *time.Time `type:"timestamp"`
  6972  
  6973  	// A time stamp for the time that the connection was last updated.
  6974  	LastModifiedTime *time.Time `type:"timestamp"`
  6975  }
  6976  
  6977  // String returns the string representation.
  6978  //
  6979  // API parameter values that are decorated as "sensitive" in the API will not
  6980  // be included in the string output. The member name will be present, but the
  6981  // value will be replaced with "sensitive".
  6982  func (s CreateConnectionOutput) String() string {
  6983  	return awsutil.Prettify(s)
  6984  }
  6985  
  6986  // GoString returns the string representation.
  6987  //
  6988  // API parameter values that are decorated as "sensitive" in the API will not
  6989  // be included in the string output. The member name will be present, but the
  6990  // value will be replaced with "sensitive".
  6991  func (s CreateConnectionOutput) GoString() string {
  6992  	return s.String()
  6993  }
  6994  
  6995  // SetConnectionArn sets the ConnectionArn field's value.
  6996  func (s *CreateConnectionOutput) SetConnectionArn(v string) *CreateConnectionOutput {
  6997  	s.ConnectionArn = &v
  6998  	return s
  6999  }
  7000  
  7001  // SetConnectionState sets the ConnectionState field's value.
  7002  func (s *CreateConnectionOutput) SetConnectionState(v string) *CreateConnectionOutput {
  7003  	s.ConnectionState = &v
  7004  	return s
  7005  }
  7006  
  7007  // SetCreationTime sets the CreationTime field's value.
  7008  func (s *CreateConnectionOutput) SetCreationTime(v time.Time) *CreateConnectionOutput {
  7009  	s.CreationTime = &v
  7010  	return s
  7011  }
  7012  
  7013  // SetLastModifiedTime sets the LastModifiedTime field's value.
  7014  func (s *CreateConnectionOutput) SetLastModifiedTime(v time.Time) *CreateConnectionOutput {
  7015  	s.LastModifiedTime = &v
  7016  	return s
  7017  }
  7018  
  7019  type CreateEventBusInput struct {
  7020  	_ struct{} `type:"structure"`
  7021  
  7022  	// If you are creating a partner event bus, this specifies the partner event
  7023  	// source that the new event bus will be matched with.
  7024  	EventSourceName *string `min:"1" type:"string"`
  7025  
  7026  	// The name of the new event bus.
  7027  	//
  7028  	// Event bus names cannot contain the / character. You can't use the name default
  7029  	// for a custom event bus, as this name is already used for your account's default
  7030  	// event bus.
  7031  	//
  7032  	// If this is a partner event bus, the name must exactly match the name of the
  7033  	// partner event source that this event bus is matched to.
  7034  	//
  7035  	// Name is a required field
  7036  	Name *string `min:"1" type:"string" required:"true"`
  7037  
  7038  	// Tags to associate with the event bus.
  7039  	Tags []*Tag `type:"list"`
  7040  }
  7041  
  7042  // String returns the string representation.
  7043  //
  7044  // API parameter values that are decorated as "sensitive" in the API will not
  7045  // be included in the string output. The member name will be present, but the
  7046  // value will be replaced with "sensitive".
  7047  func (s CreateEventBusInput) String() string {
  7048  	return awsutil.Prettify(s)
  7049  }
  7050  
  7051  // GoString returns the string representation.
  7052  //
  7053  // API parameter values that are decorated as "sensitive" in the API will not
  7054  // be included in the string output. The member name will be present, but the
  7055  // value will be replaced with "sensitive".
  7056  func (s CreateEventBusInput) GoString() string {
  7057  	return s.String()
  7058  }
  7059  
  7060  // Validate inspects the fields of the type to determine if they are valid.
  7061  func (s *CreateEventBusInput) Validate() error {
  7062  	invalidParams := request.ErrInvalidParams{Context: "CreateEventBusInput"}
  7063  	if s.EventSourceName != nil && len(*s.EventSourceName) < 1 {
  7064  		invalidParams.Add(request.NewErrParamMinLen("EventSourceName", 1))
  7065  	}
  7066  	if s.Name == nil {
  7067  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7068  	}
  7069  	if s.Name != nil && len(*s.Name) < 1 {
  7070  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7071  	}
  7072  	if s.Tags != nil {
  7073  		for i, v := range s.Tags {
  7074  			if v == nil {
  7075  				continue
  7076  			}
  7077  			if err := v.Validate(); err != nil {
  7078  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  7079  			}
  7080  		}
  7081  	}
  7082  
  7083  	if invalidParams.Len() > 0 {
  7084  		return invalidParams
  7085  	}
  7086  	return nil
  7087  }
  7088  
  7089  // SetEventSourceName sets the EventSourceName field's value.
  7090  func (s *CreateEventBusInput) SetEventSourceName(v string) *CreateEventBusInput {
  7091  	s.EventSourceName = &v
  7092  	return s
  7093  }
  7094  
  7095  // SetName sets the Name field's value.
  7096  func (s *CreateEventBusInput) SetName(v string) *CreateEventBusInput {
  7097  	s.Name = &v
  7098  	return s
  7099  }
  7100  
  7101  // SetTags sets the Tags field's value.
  7102  func (s *CreateEventBusInput) SetTags(v []*Tag) *CreateEventBusInput {
  7103  	s.Tags = v
  7104  	return s
  7105  }
  7106  
  7107  type CreateEventBusOutput struct {
  7108  	_ struct{} `type:"structure"`
  7109  
  7110  	// The ARN of the new event bus.
  7111  	EventBusArn *string `type:"string"`
  7112  }
  7113  
  7114  // String returns the string representation.
  7115  //
  7116  // API parameter values that are decorated as "sensitive" in the API will not
  7117  // be included in the string output. The member name will be present, but the
  7118  // value will be replaced with "sensitive".
  7119  func (s CreateEventBusOutput) String() string {
  7120  	return awsutil.Prettify(s)
  7121  }
  7122  
  7123  // GoString returns the string representation.
  7124  //
  7125  // API parameter values that are decorated as "sensitive" in the API will not
  7126  // be included in the string output. The member name will be present, but the
  7127  // value will be replaced with "sensitive".
  7128  func (s CreateEventBusOutput) GoString() string {
  7129  	return s.String()
  7130  }
  7131  
  7132  // SetEventBusArn sets the EventBusArn field's value.
  7133  func (s *CreateEventBusOutput) SetEventBusArn(v string) *CreateEventBusOutput {
  7134  	s.EventBusArn = &v
  7135  	return s
  7136  }
  7137  
  7138  type CreatePartnerEventSourceInput struct {
  7139  	_ struct{} `type:"structure"`
  7140  
  7141  	// The Amazon Web Services account ID that is permitted to create a matching
  7142  	// partner event bus for this partner event source.
  7143  	//
  7144  	// Account is a required field
  7145  	Account *string `min:"12" type:"string" required:"true"`
  7146  
  7147  	// The name of the partner event source. This name must be unique and must be
  7148  	// in the format partner_name/event_namespace/event_name . The Amazon Web Services
  7149  	// account that wants to use this partner event source must create a partner
  7150  	// event bus with a name that matches the name of the partner event source.
  7151  	//
  7152  	// Name is a required field
  7153  	Name *string `min:"1" type:"string" required:"true"`
  7154  }
  7155  
  7156  // String returns the string representation.
  7157  //
  7158  // API parameter values that are decorated as "sensitive" in the API will not
  7159  // be included in the string output. The member name will be present, but the
  7160  // value will be replaced with "sensitive".
  7161  func (s CreatePartnerEventSourceInput) String() string {
  7162  	return awsutil.Prettify(s)
  7163  }
  7164  
  7165  // GoString returns the string representation.
  7166  //
  7167  // API parameter values that are decorated as "sensitive" in the API will not
  7168  // be included in the string output. The member name will be present, but the
  7169  // value will be replaced with "sensitive".
  7170  func (s CreatePartnerEventSourceInput) GoString() string {
  7171  	return s.String()
  7172  }
  7173  
  7174  // Validate inspects the fields of the type to determine if they are valid.
  7175  func (s *CreatePartnerEventSourceInput) Validate() error {
  7176  	invalidParams := request.ErrInvalidParams{Context: "CreatePartnerEventSourceInput"}
  7177  	if s.Account == nil {
  7178  		invalidParams.Add(request.NewErrParamRequired("Account"))
  7179  	}
  7180  	if s.Account != nil && len(*s.Account) < 12 {
  7181  		invalidParams.Add(request.NewErrParamMinLen("Account", 12))
  7182  	}
  7183  	if s.Name == nil {
  7184  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7185  	}
  7186  	if s.Name != nil && len(*s.Name) < 1 {
  7187  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7188  	}
  7189  
  7190  	if invalidParams.Len() > 0 {
  7191  		return invalidParams
  7192  	}
  7193  	return nil
  7194  }
  7195  
  7196  // SetAccount sets the Account field's value.
  7197  func (s *CreatePartnerEventSourceInput) SetAccount(v string) *CreatePartnerEventSourceInput {
  7198  	s.Account = &v
  7199  	return s
  7200  }
  7201  
  7202  // SetName sets the Name field's value.
  7203  func (s *CreatePartnerEventSourceInput) SetName(v string) *CreatePartnerEventSourceInput {
  7204  	s.Name = &v
  7205  	return s
  7206  }
  7207  
  7208  type CreatePartnerEventSourceOutput struct {
  7209  	_ struct{} `type:"structure"`
  7210  
  7211  	// The ARN of the partner event source.
  7212  	EventSourceArn *string `type:"string"`
  7213  }
  7214  
  7215  // String returns the string representation.
  7216  //
  7217  // API parameter values that are decorated as "sensitive" in the API will not
  7218  // be included in the string output. The member name will be present, but the
  7219  // value will be replaced with "sensitive".
  7220  func (s CreatePartnerEventSourceOutput) String() string {
  7221  	return awsutil.Prettify(s)
  7222  }
  7223  
  7224  // GoString returns the string representation.
  7225  //
  7226  // API parameter values that are decorated as "sensitive" in the API will not
  7227  // be included in the string output. The member name will be present, but the
  7228  // value will be replaced with "sensitive".
  7229  func (s CreatePartnerEventSourceOutput) GoString() string {
  7230  	return s.String()
  7231  }
  7232  
  7233  // SetEventSourceArn sets the EventSourceArn field's value.
  7234  func (s *CreatePartnerEventSourceOutput) SetEventSourceArn(v string) *CreatePartnerEventSourceOutput {
  7235  	s.EventSourceArn = &v
  7236  	return s
  7237  }
  7238  
  7239  type DeactivateEventSourceInput struct {
  7240  	_ struct{} `type:"structure"`
  7241  
  7242  	// The name of the partner event source to deactivate.
  7243  	//
  7244  	// Name is a required field
  7245  	Name *string `min:"1" type:"string" required:"true"`
  7246  }
  7247  
  7248  // String returns the string representation.
  7249  //
  7250  // API parameter values that are decorated as "sensitive" in the API will not
  7251  // be included in the string output. The member name will be present, but the
  7252  // value will be replaced with "sensitive".
  7253  func (s DeactivateEventSourceInput) String() string {
  7254  	return awsutil.Prettify(s)
  7255  }
  7256  
  7257  // GoString returns the string representation.
  7258  //
  7259  // API parameter values that are decorated as "sensitive" in the API will not
  7260  // be included in the string output. The member name will be present, but the
  7261  // value will be replaced with "sensitive".
  7262  func (s DeactivateEventSourceInput) GoString() string {
  7263  	return s.String()
  7264  }
  7265  
  7266  // Validate inspects the fields of the type to determine if they are valid.
  7267  func (s *DeactivateEventSourceInput) Validate() error {
  7268  	invalidParams := request.ErrInvalidParams{Context: "DeactivateEventSourceInput"}
  7269  	if s.Name == nil {
  7270  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7271  	}
  7272  	if s.Name != nil && len(*s.Name) < 1 {
  7273  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7274  	}
  7275  
  7276  	if invalidParams.Len() > 0 {
  7277  		return invalidParams
  7278  	}
  7279  	return nil
  7280  }
  7281  
  7282  // SetName sets the Name field's value.
  7283  func (s *DeactivateEventSourceInput) SetName(v string) *DeactivateEventSourceInput {
  7284  	s.Name = &v
  7285  	return s
  7286  }
  7287  
  7288  type DeactivateEventSourceOutput struct {
  7289  	_ struct{} `type:"structure"`
  7290  }
  7291  
  7292  // String returns the string representation.
  7293  //
  7294  // API parameter values that are decorated as "sensitive" in the API will not
  7295  // be included in the string output. The member name will be present, but the
  7296  // value will be replaced with "sensitive".
  7297  func (s DeactivateEventSourceOutput) String() string {
  7298  	return awsutil.Prettify(s)
  7299  }
  7300  
  7301  // GoString returns the string representation.
  7302  //
  7303  // API parameter values that are decorated as "sensitive" in the API will not
  7304  // be included in the string output. The member name will be present, but the
  7305  // value will be replaced with "sensitive".
  7306  func (s DeactivateEventSourceOutput) GoString() string {
  7307  	return s.String()
  7308  }
  7309  
  7310  // A DeadLetterConfig object that contains information about a dead-letter queue
  7311  // configuration.
  7312  type DeadLetterConfig struct {
  7313  	_ struct{} `type:"structure"`
  7314  
  7315  	// The ARN of the SQS queue specified as the target for the dead-letter queue.
  7316  	Arn *string `min:"1" type:"string"`
  7317  }
  7318  
  7319  // String returns the string representation.
  7320  //
  7321  // API parameter values that are decorated as "sensitive" in the API will not
  7322  // be included in the string output. The member name will be present, but the
  7323  // value will be replaced with "sensitive".
  7324  func (s DeadLetterConfig) String() string {
  7325  	return awsutil.Prettify(s)
  7326  }
  7327  
  7328  // GoString returns the string representation.
  7329  //
  7330  // API parameter values that are decorated as "sensitive" in the API will not
  7331  // be included in the string output. The member name will be present, but the
  7332  // value will be replaced with "sensitive".
  7333  func (s DeadLetterConfig) GoString() string {
  7334  	return s.String()
  7335  }
  7336  
  7337  // Validate inspects the fields of the type to determine if they are valid.
  7338  func (s *DeadLetterConfig) Validate() error {
  7339  	invalidParams := request.ErrInvalidParams{Context: "DeadLetterConfig"}
  7340  	if s.Arn != nil && len(*s.Arn) < 1 {
  7341  		invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
  7342  	}
  7343  
  7344  	if invalidParams.Len() > 0 {
  7345  		return invalidParams
  7346  	}
  7347  	return nil
  7348  }
  7349  
  7350  // SetArn sets the Arn field's value.
  7351  func (s *DeadLetterConfig) SetArn(v string) *DeadLetterConfig {
  7352  	s.Arn = &v
  7353  	return s
  7354  }
  7355  
  7356  type DeauthorizeConnectionInput struct {
  7357  	_ struct{} `type:"structure"`
  7358  
  7359  	// The name of the connection to remove authorization from.
  7360  	//
  7361  	// Name is a required field
  7362  	Name *string `min:"1" type:"string" required:"true"`
  7363  }
  7364  
  7365  // String returns the string representation.
  7366  //
  7367  // API parameter values that are decorated as "sensitive" in the API will not
  7368  // be included in the string output. The member name will be present, but the
  7369  // value will be replaced with "sensitive".
  7370  func (s DeauthorizeConnectionInput) String() string {
  7371  	return awsutil.Prettify(s)
  7372  }
  7373  
  7374  // GoString returns the string representation.
  7375  //
  7376  // API parameter values that are decorated as "sensitive" in the API will not
  7377  // be included in the string output. The member name will be present, but the
  7378  // value will be replaced with "sensitive".
  7379  func (s DeauthorizeConnectionInput) GoString() string {
  7380  	return s.String()
  7381  }
  7382  
  7383  // Validate inspects the fields of the type to determine if they are valid.
  7384  func (s *DeauthorizeConnectionInput) Validate() error {
  7385  	invalidParams := request.ErrInvalidParams{Context: "DeauthorizeConnectionInput"}
  7386  	if s.Name == nil {
  7387  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7388  	}
  7389  	if s.Name != nil && len(*s.Name) < 1 {
  7390  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7391  	}
  7392  
  7393  	if invalidParams.Len() > 0 {
  7394  		return invalidParams
  7395  	}
  7396  	return nil
  7397  }
  7398  
  7399  // SetName sets the Name field's value.
  7400  func (s *DeauthorizeConnectionInput) SetName(v string) *DeauthorizeConnectionInput {
  7401  	s.Name = &v
  7402  	return s
  7403  }
  7404  
  7405  type DeauthorizeConnectionOutput struct {
  7406  	_ struct{} `type:"structure"`
  7407  
  7408  	// The ARN of the connection that authorization was removed from.
  7409  	ConnectionArn *string `min:"1" type:"string"`
  7410  
  7411  	// The state of the connection.
  7412  	ConnectionState *string `type:"string" enum:"ConnectionState"`
  7413  
  7414  	// A time stamp for the time that the connection was created.
  7415  	CreationTime *time.Time `type:"timestamp"`
  7416  
  7417  	// A time stamp for the time that the connection was last authorized.
  7418  	LastAuthorizedTime *time.Time `type:"timestamp"`
  7419  
  7420  	// A time stamp for the time that the connection was last updated.
  7421  	LastModifiedTime *time.Time `type:"timestamp"`
  7422  }
  7423  
  7424  // String returns the string representation.
  7425  //
  7426  // API parameter values that are decorated as "sensitive" in the API will not
  7427  // be included in the string output. The member name will be present, but the
  7428  // value will be replaced with "sensitive".
  7429  func (s DeauthorizeConnectionOutput) String() string {
  7430  	return awsutil.Prettify(s)
  7431  }
  7432  
  7433  // GoString returns the string representation.
  7434  //
  7435  // API parameter values that are decorated as "sensitive" in the API will not
  7436  // be included in the string output. The member name will be present, but the
  7437  // value will be replaced with "sensitive".
  7438  func (s DeauthorizeConnectionOutput) GoString() string {
  7439  	return s.String()
  7440  }
  7441  
  7442  // SetConnectionArn sets the ConnectionArn field's value.
  7443  func (s *DeauthorizeConnectionOutput) SetConnectionArn(v string) *DeauthorizeConnectionOutput {
  7444  	s.ConnectionArn = &v
  7445  	return s
  7446  }
  7447  
  7448  // SetConnectionState sets the ConnectionState field's value.
  7449  func (s *DeauthorizeConnectionOutput) SetConnectionState(v string) *DeauthorizeConnectionOutput {
  7450  	s.ConnectionState = &v
  7451  	return s
  7452  }
  7453  
  7454  // SetCreationTime sets the CreationTime field's value.
  7455  func (s *DeauthorizeConnectionOutput) SetCreationTime(v time.Time) *DeauthorizeConnectionOutput {
  7456  	s.CreationTime = &v
  7457  	return s
  7458  }
  7459  
  7460  // SetLastAuthorizedTime sets the LastAuthorizedTime field's value.
  7461  func (s *DeauthorizeConnectionOutput) SetLastAuthorizedTime(v time.Time) *DeauthorizeConnectionOutput {
  7462  	s.LastAuthorizedTime = &v
  7463  	return s
  7464  }
  7465  
  7466  // SetLastModifiedTime sets the LastModifiedTime field's value.
  7467  func (s *DeauthorizeConnectionOutput) SetLastModifiedTime(v time.Time) *DeauthorizeConnectionOutput {
  7468  	s.LastModifiedTime = &v
  7469  	return s
  7470  }
  7471  
  7472  type DeleteApiDestinationInput struct {
  7473  	_ struct{} `type:"structure"`
  7474  
  7475  	// The name of the destination to delete.
  7476  	//
  7477  	// Name is a required field
  7478  	Name *string `min:"1" type:"string" required:"true"`
  7479  }
  7480  
  7481  // String returns the string representation.
  7482  //
  7483  // API parameter values that are decorated as "sensitive" in the API will not
  7484  // be included in the string output. The member name will be present, but the
  7485  // value will be replaced with "sensitive".
  7486  func (s DeleteApiDestinationInput) String() string {
  7487  	return awsutil.Prettify(s)
  7488  }
  7489  
  7490  // GoString returns the string representation.
  7491  //
  7492  // API parameter values that are decorated as "sensitive" in the API will not
  7493  // be included in the string output. The member name will be present, but the
  7494  // value will be replaced with "sensitive".
  7495  func (s DeleteApiDestinationInput) GoString() string {
  7496  	return s.String()
  7497  }
  7498  
  7499  // Validate inspects the fields of the type to determine if they are valid.
  7500  func (s *DeleteApiDestinationInput) Validate() error {
  7501  	invalidParams := request.ErrInvalidParams{Context: "DeleteApiDestinationInput"}
  7502  	if s.Name == nil {
  7503  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7504  	}
  7505  	if s.Name != nil && len(*s.Name) < 1 {
  7506  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7507  	}
  7508  
  7509  	if invalidParams.Len() > 0 {
  7510  		return invalidParams
  7511  	}
  7512  	return nil
  7513  }
  7514  
  7515  // SetName sets the Name field's value.
  7516  func (s *DeleteApiDestinationInput) SetName(v string) *DeleteApiDestinationInput {
  7517  	s.Name = &v
  7518  	return s
  7519  }
  7520  
  7521  type DeleteApiDestinationOutput struct {
  7522  	_ struct{} `type:"structure"`
  7523  }
  7524  
  7525  // String returns the string representation.
  7526  //
  7527  // API parameter values that are decorated as "sensitive" in the API will not
  7528  // be included in the string output. The member name will be present, but the
  7529  // value will be replaced with "sensitive".
  7530  func (s DeleteApiDestinationOutput) String() string {
  7531  	return awsutil.Prettify(s)
  7532  }
  7533  
  7534  // GoString returns the string representation.
  7535  //
  7536  // API parameter values that are decorated as "sensitive" in the API will not
  7537  // be included in the string output. The member name will be present, but the
  7538  // value will be replaced with "sensitive".
  7539  func (s DeleteApiDestinationOutput) GoString() string {
  7540  	return s.String()
  7541  }
  7542  
  7543  type DeleteArchiveInput struct {
  7544  	_ struct{} `type:"structure"`
  7545  
  7546  	// The name of the archive to delete.
  7547  	//
  7548  	// ArchiveName is a required field
  7549  	ArchiveName *string `min:"1" type:"string" required:"true"`
  7550  }
  7551  
  7552  // String returns the string representation.
  7553  //
  7554  // API parameter values that are decorated as "sensitive" in the API will not
  7555  // be included in the string output. The member name will be present, but the
  7556  // value will be replaced with "sensitive".
  7557  func (s DeleteArchiveInput) String() string {
  7558  	return awsutil.Prettify(s)
  7559  }
  7560  
  7561  // GoString returns the string representation.
  7562  //
  7563  // API parameter values that are decorated as "sensitive" in the API will not
  7564  // be included in the string output. The member name will be present, but the
  7565  // value will be replaced with "sensitive".
  7566  func (s DeleteArchiveInput) GoString() string {
  7567  	return s.String()
  7568  }
  7569  
  7570  // Validate inspects the fields of the type to determine if they are valid.
  7571  func (s *DeleteArchiveInput) Validate() error {
  7572  	invalidParams := request.ErrInvalidParams{Context: "DeleteArchiveInput"}
  7573  	if s.ArchiveName == nil {
  7574  		invalidParams.Add(request.NewErrParamRequired("ArchiveName"))
  7575  	}
  7576  	if s.ArchiveName != nil && len(*s.ArchiveName) < 1 {
  7577  		invalidParams.Add(request.NewErrParamMinLen("ArchiveName", 1))
  7578  	}
  7579  
  7580  	if invalidParams.Len() > 0 {
  7581  		return invalidParams
  7582  	}
  7583  	return nil
  7584  }
  7585  
  7586  // SetArchiveName sets the ArchiveName field's value.
  7587  func (s *DeleteArchiveInput) SetArchiveName(v string) *DeleteArchiveInput {
  7588  	s.ArchiveName = &v
  7589  	return s
  7590  }
  7591  
  7592  type DeleteArchiveOutput struct {
  7593  	_ struct{} `type:"structure"`
  7594  }
  7595  
  7596  // String returns the string representation.
  7597  //
  7598  // API parameter values that are decorated as "sensitive" in the API will not
  7599  // be included in the string output. The member name will be present, but the
  7600  // value will be replaced with "sensitive".
  7601  func (s DeleteArchiveOutput) String() string {
  7602  	return awsutil.Prettify(s)
  7603  }
  7604  
  7605  // GoString returns the string representation.
  7606  //
  7607  // API parameter values that are decorated as "sensitive" in the API will not
  7608  // be included in the string output. The member name will be present, but the
  7609  // value will be replaced with "sensitive".
  7610  func (s DeleteArchiveOutput) GoString() string {
  7611  	return s.String()
  7612  }
  7613  
  7614  type DeleteConnectionInput struct {
  7615  	_ struct{} `type:"structure"`
  7616  
  7617  	// The name of the connection to delete.
  7618  	//
  7619  	// Name is a required field
  7620  	Name *string `min:"1" type:"string" required:"true"`
  7621  }
  7622  
  7623  // String returns the string representation.
  7624  //
  7625  // API parameter values that are decorated as "sensitive" in the API will not
  7626  // be included in the string output. The member name will be present, but the
  7627  // value will be replaced with "sensitive".
  7628  func (s DeleteConnectionInput) String() string {
  7629  	return awsutil.Prettify(s)
  7630  }
  7631  
  7632  // GoString returns the string representation.
  7633  //
  7634  // API parameter values that are decorated as "sensitive" in the API will not
  7635  // be included in the string output. The member name will be present, but the
  7636  // value will be replaced with "sensitive".
  7637  func (s DeleteConnectionInput) GoString() string {
  7638  	return s.String()
  7639  }
  7640  
  7641  // Validate inspects the fields of the type to determine if they are valid.
  7642  func (s *DeleteConnectionInput) Validate() error {
  7643  	invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"}
  7644  	if s.Name == nil {
  7645  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7646  	}
  7647  	if s.Name != nil && len(*s.Name) < 1 {
  7648  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7649  	}
  7650  
  7651  	if invalidParams.Len() > 0 {
  7652  		return invalidParams
  7653  	}
  7654  	return nil
  7655  }
  7656  
  7657  // SetName sets the Name field's value.
  7658  func (s *DeleteConnectionInput) SetName(v string) *DeleteConnectionInput {
  7659  	s.Name = &v
  7660  	return s
  7661  }
  7662  
  7663  type DeleteConnectionOutput struct {
  7664  	_ struct{} `type:"structure"`
  7665  
  7666  	// The ARN of the connection that was deleted.
  7667  	ConnectionArn *string `min:"1" type:"string"`
  7668  
  7669  	// The state of the connection before it was deleted.
  7670  	ConnectionState *string `type:"string" enum:"ConnectionState"`
  7671  
  7672  	// A time stamp for the time that the connection was created.
  7673  	CreationTime *time.Time `type:"timestamp"`
  7674  
  7675  	// A time stamp for the time that the connection was last authorized before
  7676  	// it wa deleted.
  7677  	LastAuthorizedTime *time.Time `type:"timestamp"`
  7678  
  7679  	// A time stamp for the time that the connection was last modified before it
  7680  	// was deleted.
  7681  	LastModifiedTime *time.Time `type:"timestamp"`
  7682  }
  7683  
  7684  // String returns the string representation.
  7685  //
  7686  // API parameter values that are decorated as "sensitive" in the API will not
  7687  // be included in the string output. The member name will be present, but the
  7688  // value will be replaced with "sensitive".
  7689  func (s DeleteConnectionOutput) String() string {
  7690  	return awsutil.Prettify(s)
  7691  }
  7692  
  7693  // GoString returns the string representation.
  7694  //
  7695  // API parameter values that are decorated as "sensitive" in the API will not
  7696  // be included in the string output. The member name will be present, but the
  7697  // value will be replaced with "sensitive".
  7698  func (s DeleteConnectionOutput) GoString() string {
  7699  	return s.String()
  7700  }
  7701  
  7702  // SetConnectionArn sets the ConnectionArn field's value.
  7703  func (s *DeleteConnectionOutput) SetConnectionArn(v string) *DeleteConnectionOutput {
  7704  	s.ConnectionArn = &v
  7705  	return s
  7706  }
  7707  
  7708  // SetConnectionState sets the ConnectionState field's value.
  7709  func (s *DeleteConnectionOutput) SetConnectionState(v string) *DeleteConnectionOutput {
  7710  	s.ConnectionState = &v
  7711  	return s
  7712  }
  7713  
  7714  // SetCreationTime sets the CreationTime field's value.
  7715  func (s *DeleteConnectionOutput) SetCreationTime(v time.Time) *DeleteConnectionOutput {
  7716  	s.CreationTime = &v
  7717  	return s
  7718  }
  7719  
  7720  // SetLastAuthorizedTime sets the LastAuthorizedTime field's value.
  7721  func (s *DeleteConnectionOutput) SetLastAuthorizedTime(v time.Time) *DeleteConnectionOutput {
  7722  	s.LastAuthorizedTime = &v
  7723  	return s
  7724  }
  7725  
  7726  // SetLastModifiedTime sets the LastModifiedTime field's value.
  7727  func (s *DeleteConnectionOutput) SetLastModifiedTime(v time.Time) *DeleteConnectionOutput {
  7728  	s.LastModifiedTime = &v
  7729  	return s
  7730  }
  7731  
  7732  type DeleteEventBusInput struct {
  7733  	_ struct{} `type:"structure"`
  7734  
  7735  	// The name of the event bus to delete.
  7736  	//
  7737  	// Name is a required field
  7738  	Name *string `min:"1" type:"string" required:"true"`
  7739  }
  7740  
  7741  // String returns the string representation.
  7742  //
  7743  // API parameter values that are decorated as "sensitive" in the API will not
  7744  // be included in the string output. The member name will be present, but the
  7745  // value will be replaced with "sensitive".
  7746  func (s DeleteEventBusInput) String() string {
  7747  	return awsutil.Prettify(s)
  7748  }
  7749  
  7750  // GoString returns the string representation.
  7751  //
  7752  // API parameter values that are decorated as "sensitive" in the API will not
  7753  // be included in the string output. The member name will be present, but the
  7754  // value will be replaced with "sensitive".
  7755  func (s DeleteEventBusInput) GoString() string {
  7756  	return s.String()
  7757  }
  7758  
  7759  // Validate inspects the fields of the type to determine if they are valid.
  7760  func (s *DeleteEventBusInput) Validate() error {
  7761  	invalidParams := request.ErrInvalidParams{Context: "DeleteEventBusInput"}
  7762  	if s.Name == nil {
  7763  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7764  	}
  7765  	if s.Name != nil && len(*s.Name) < 1 {
  7766  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7767  	}
  7768  
  7769  	if invalidParams.Len() > 0 {
  7770  		return invalidParams
  7771  	}
  7772  	return nil
  7773  }
  7774  
  7775  // SetName sets the Name field's value.
  7776  func (s *DeleteEventBusInput) SetName(v string) *DeleteEventBusInput {
  7777  	s.Name = &v
  7778  	return s
  7779  }
  7780  
  7781  type DeleteEventBusOutput struct {
  7782  	_ struct{} `type:"structure"`
  7783  }
  7784  
  7785  // String returns the string representation.
  7786  //
  7787  // API parameter values that are decorated as "sensitive" in the API will not
  7788  // be included in the string output. The member name will be present, but the
  7789  // value will be replaced with "sensitive".
  7790  func (s DeleteEventBusOutput) String() string {
  7791  	return awsutil.Prettify(s)
  7792  }
  7793  
  7794  // GoString returns the string representation.
  7795  //
  7796  // API parameter values that are decorated as "sensitive" in the API will not
  7797  // be included in the string output. The member name will be present, but the
  7798  // value will be replaced with "sensitive".
  7799  func (s DeleteEventBusOutput) GoString() string {
  7800  	return s.String()
  7801  }
  7802  
  7803  type DeletePartnerEventSourceInput struct {
  7804  	_ struct{} `type:"structure"`
  7805  
  7806  	// The Amazon Web Services account ID of the Amazon Web Services customer that
  7807  	// the event source was created for.
  7808  	//
  7809  	// Account is a required field
  7810  	Account *string `min:"12" type:"string" required:"true"`
  7811  
  7812  	// The name of the event source to delete.
  7813  	//
  7814  	// Name is a required field
  7815  	Name *string `min:"1" type:"string" required:"true"`
  7816  }
  7817  
  7818  // String returns the string representation.
  7819  //
  7820  // API parameter values that are decorated as "sensitive" in the API will not
  7821  // be included in the string output. The member name will be present, but the
  7822  // value will be replaced with "sensitive".
  7823  func (s DeletePartnerEventSourceInput) String() string {
  7824  	return awsutil.Prettify(s)
  7825  }
  7826  
  7827  // GoString returns the string representation.
  7828  //
  7829  // API parameter values that are decorated as "sensitive" in the API will not
  7830  // be included in the string output. The member name will be present, but the
  7831  // value will be replaced with "sensitive".
  7832  func (s DeletePartnerEventSourceInput) GoString() string {
  7833  	return s.String()
  7834  }
  7835  
  7836  // Validate inspects the fields of the type to determine if they are valid.
  7837  func (s *DeletePartnerEventSourceInput) Validate() error {
  7838  	invalidParams := request.ErrInvalidParams{Context: "DeletePartnerEventSourceInput"}
  7839  	if s.Account == nil {
  7840  		invalidParams.Add(request.NewErrParamRequired("Account"))
  7841  	}
  7842  	if s.Account != nil && len(*s.Account) < 12 {
  7843  		invalidParams.Add(request.NewErrParamMinLen("Account", 12))
  7844  	}
  7845  	if s.Name == nil {
  7846  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7847  	}
  7848  	if s.Name != nil && len(*s.Name) < 1 {
  7849  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7850  	}
  7851  
  7852  	if invalidParams.Len() > 0 {
  7853  		return invalidParams
  7854  	}
  7855  	return nil
  7856  }
  7857  
  7858  // SetAccount sets the Account field's value.
  7859  func (s *DeletePartnerEventSourceInput) SetAccount(v string) *DeletePartnerEventSourceInput {
  7860  	s.Account = &v
  7861  	return s
  7862  }
  7863  
  7864  // SetName sets the Name field's value.
  7865  func (s *DeletePartnerEventSourceInput) SetName(v string) *DeletePartnerEventSourceInput {
  7866  	s.Name = &v
  7867  	return s
  7868  }
  7869  
  7870  type DeletePartnerEventSourceOutput struct {
  7871  	_ struct{} `type:"structure"`
  7872  }
  7873  
  7874  // String returns the string representation.
  7875  //
  7876  // API parameter values that are decorated as "sensitive" in the API will not
  7877  // be included in the string output. The member name will be present, but the
  7878  // value will be replaced with "sensitive".
  7879  func (s DeletePartnerEventSourceOutput) String() string {
  7880  	return awsutil.Prettify(s)
  7881  }
  7882  
  7883  // GoString returns the string representation.
  7884  //
  7885  // API parameter values that are decorated as "sensitive" in the API will not
  7886  // be included in the string output. The member name will be present, but the
  7887  // value will be replaced with "sensitive".
  7888  func (s DeletePartnerEventSourceOutput) GoString() string {
  7889  	return s.String()
  7890  }
  7891  
  7892  type DeleteRuleInput struct {
  7893  	_ struct{} `type:"structure"`
  7894  
  7895  	// The name or ARN of the event bus associated with the rule. If you omit this,
  7896  	// the default event bus is used.
  7897  	EventBusName *string `min:"1" type:"string"`
  7898  
  7899  	// If this is a managed rule, created by an Amazon Web Services service on your
  7900  	// behalf, you must specify Force as True to delete the rule. This parameter
  7901  	// is ignored for rules that are not managed rules. You can check whether a
  7902  	// rule is a managed rule by using DescribeRule or ListRules and checking the
  7903  	// ManagedBy field of the response.
  7904  	Force *bool `type:"boolean"`
  7905  
  7906  	// The name of the rule.
  7907  	//
  7908  	// Name is a required field
  7909  	Name *string `min:"1" type:"string" required:"true"`
  7910  }
  7911  
  7912  // String returns the string representation.
  7913  //
  7914  // API parameter values that are decorated as "sensitive" in the API will not
  7915  // be included in the string output. The member name will be present, but the
  7916  // value will be replaced with "sensitive".
  7917  func (s DeleteRuleInput) String() string {
  7918  	return awsutil.Prettify(s)
  7919  }
  7920  
  7921  // GoString returns the string representation.
  7922  //
  7923  // API parameter values that are decorated as "sensitive" in the API will not
  7924  // be included in the string output. The member name will be present, but the
  7925  // value will be replaced with "sensitive".
  7926  func (s DeleteRuleInput) GoString() string {
  7927  	return s.String()
  7928  }
  7929  
  7930  // Validate inspects the fields of the type to determine if they are valid.
  7931  func (s *DeleteRuleInput) Validate() error {
  7932  	invalidParams := request.ErrInvalidParams{Context: "DeleteRuleInput"}
  7933  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
  7934  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
  7935  	}
  7936  	if s.Name == nil {
  7937  		invalidParams.Add(request.NewErrParamRequired("Name"))
  7938  	}
  7939  	if s.Name != nil && len(*s.Name) < 1 {
  7940  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7941  	}
  7942  
  7943  	if invalidParams.Len() > 0 {
  7944  		return invalidParams
  7945  	}
  7946  	return nil
  7947  }
  7948  
  7949  // SetEventBusName sets the EventBusName field's value.
  7950  func (s *DeleteRuleInput) SetEventBusName(v string) *DeleteRuleInput {
  7951  	s.EventBusName = &v
  7952  	return s
  7953  }
  7954  
  7955  // SetForce sets the Force field's value.
  7956  func (s *DeleteRuleInput) SetForce(v bool) *DeleteRuleInput {
  7957  	s.Force = &v
  7958  	return s
  7959  }
  7960  
  7961  // SetName sets the Name field's value.
  7962  func (s *DeleteRuleInput) SetName(v string) *DeleteRuleInput {
  7963  	s.Name = &v
  7964  	return s
  7965  }
  7966  
  7967  type DeleteRuleOutput struct {
  7968  	_ struct{} `type:"structure"`
  7969  }
  7970  
  7971  // String returns the string representation.
  7972  //
  7973  // API parameter values that are decorated as "sensitive" in the API will not
  7974  // be included in the string output. The member name will be present, but the
  7975  // value will be replaced with "sensitive".
  7976  func (s DeleteRuleOutput) String() string {
  7977  	return awsutil.Prettify(s)
  7978  }
  7979  
  7980  // GoString returns the string representation.
  7981  //
  7982  // API parameter values that are decorated as "sensitive" in the API will not
  7983  // be included in the string output. The member name will be present, but the
  7984  // value will be replaced with "sensitive".
  7985  func (s DeleteRuleOutput) GoString() string {
  7986  	return s.String()
  7987  }
  7988  
  7989  type DescribeApiDestinationInput struct {
  7990  	_ struct{} `type:"structure"`
  7991  
  7992  	// The name of the API destination to retrieve.
  7993  	//
  7994  	// Name is a required field
  7995  	Name *string `min:"1" type:"string" required:"true"`
  7996  }
  7997  
  7998  // String returns the string representation.
  7999  //
  8000  // API parameter values that are decorated as "sensitive" in the API will not
  8001  // be included in the string output. The member name will be present, but the
  8002  // value will be replaced with "sensitive".
  8003  func (s DescribeApiDestinationInput) String() string {
  8004  	return awsutil.Prettify(s)
  8005  }
  8006  
  8007  // GoString returns the string representation.
  8008  //
  8009  // API parameter values that are decorated as "sensitive" in the API will not
  8010  // be included in the string output. The member name will be present, but the
  8011  // value will be replaced with "sensitive".
  8012  func (s DescribeApiDestinationInput) GoString() string {
  8013  	return s.String()
  8014  }
  8015  
  8016  // Validate inspects the fields of the type to determine if they are valid.
  8017  func (s *DescribeApiDestinationInput) Validate() error {
  8018  	invalidParams := request.ErrInvalidParams{Context: "DescribeApiDestinationInput"}
  8019  	if s.Name == nil {
  8020  		invalidParams.Add(request.NewErrParamRequired("Name"))
  8021  	}
  8022  	if s.Name != nil && len(*s.Name) < 1 {
  8023  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8024  	}
  8025  
  8026  	if invalidParams.Len() > 0 {
  8027  		return invalidParams
  8028  	}
  8029  	return nil
  8030  }
  8031  
  8032  // SetName sets the Name field's value.
  8033  func (s *DescribeApiDestinationInput) SetName(v string) *DescribeApiDestinationInput {
  8034  	s.Name = &v
  8035  	return s
  8036  }
  8037  
  8038  type DescribeApiDestinationOutput struct {
  8039  	_ struct{} `type:"structure"`
  8040  
  8041  	// The ARN of the API destination retrieved.
  8042  	ApiDestinationArn *string `min:"1" type:"string"`
  8043  
  8044  	// The state of the API destination retrieved.
  8045  	ApiDestinationState *string `type:"string" enum:"ApiDestinationState"`
  8046  
  8047  	// The ARN of the connection specified for the API destination retrieved.
  8048  	ConnectionArn *string `min:"1" type:"string"`
  8049  
  8050  	// A time stamp for the time that the API destination was created.
  8051  	CreationTime *time.Time `type:"timestamp"`
  8052  
  8053  	// The description for the API destination retrieved.
  8054  	Description *string `type:"string"`
  8055  
  8056  	// The method to use to connect to the HTTP endpoint.
  8057  	HttpMethod *string `type:"string" enum:"ApiDestinationHttpMethod"`
  8058  
  8059  	// The URL to use to connect to the HTTP endpoint.
  8060  	InvocationEndpoint *string `min:"1" type:"string"`
  8061  
  8062  	// The maximum number of invocations per second to specified for the API destination.
  8063  	// Note that if you set the invocation rate maximum to a value lower the rate
  8064  	// necessary to send all events received on to the destination HTTP endpoint,
  8065  	// some events may not be delivered within the 24-hour retry window. If you
  8066  	// plan to set the rate lower than the rate necessary to deliver all events,
  8067  	// consider using a dead-letter queue to catch events that are not delivered
  8068  	// within 24 hours.
  8069  	InvocationRateLimitPerSecond *int64 `min:"1" type:"integer"`
  8070  
  8071  	// A time stamp for the time that the API destination was last modified.
  8072  	LastModifiedTime *time.Time `type:"timestamp"`
  8073  
  8074  	// The name of the API destination retrieved.
  8075  	Name *string `min:"1" type:"string"`
  8076  }
  8077  
  8078  // String returns the string representation.
  8079  //
  8080  // API parameter values that are decorated as "sensitive" in the API will not
  8081  // be included in the string output. The member name will be present, but the
  8082  // value will be replaced with "sensitive".
  8083  func (s DescribeApiDestinationOutput) String() string {
  8084  	return awsutil.Prettify(s)
  8085  }
  8086  
  8087  // GoString returns the string representation.
  8088  //
  8089  // API parameter values that are decorated as "sensitive" in the API will not
  8090  // be included in the string output. The member name will be present, but the
  8091  // value will be replaced with "sensitive".
  8092  func (s DescribeApiDestinationOutput) GoString() string {
  8093  	return s.String()
  8094  }
  8095  
  8096  // SetApiDestinationArn sets the ApiDestinationArn field's value.
  8097  func (s *DescribeApiDestinationOutput) SetApiDestinationArn(v string) *DescribeApiDestinationOutput {
  8098  	s.ApiDestinationArn = &v
  8099  	return s
  8100  }
  8101  
  8102  // SetApiDestinationState sets the ApiDestinationState field's value.
  8103  func (s *DescribeApiDestinationOutput) SetApiDestinationState(v string) *DescribeApiDestinationOutput {
  8104  	s.ApiDestinationState = &v
  8105  	return s
  8106  }
  8107  
  8108  // SetConnectionArn sets the ConnectionArn field's value.
  8109  func (s *DescribeApiDestinationOutput) SetConnectionArn(v string) *DescribeApiDestinationOutput {
  8110  	s.ConnectionArn = &v
  8111  	return s
  8112  }
  8113  
  8114  // SetCreationTime sets the CreationTime field's value.
  8115  func (s *DescribeApiDestinationOutput) SetCreationTime(v time.Time) *DescribeApiDestinationOutput {
  8116  	s.CreationTime = &v
  8117  	return s
  8118  }
  8119  
  8120  // SetDescription sets the Description field's value.
  8121  func (s *DescribeApiDestinationOutput) SetDescription(v string) *DescribeApiDestinationOutput {
  8122  	s.Description = &v
  8123  	return s
  8124  }
  8125  
  8126  // SetHttpMethod sets the HttpMethod field's value.
  8127  func (s *DescribeApiDestinationOutput) SetHttpMethod(v string) *DescribeApiDestinationOutput {
  8128  	s.HttpMethod = &v
  8129  	return s
  8130  }
  8131  
  8132  // SetInvocationEndpoint sets the InvocationEndpoint field's value.
  8133  func (s *DescribeApiDestinationOutput) SetInvocationEndpoint(v string) *DescribeApiDestinationOutput {
  8134  	s.InvocationEndpoint = &v
  8135  	return s
  8136  }
  8137  
  8138  // SetInvocationRateLimitPerSecond sets the InvocationRateLimitPerSecond field's value.
  8139  func (s *DescribeApiDestinationOutput) SetInvocationRateLimitPerSecond(v int64) *DescribeApiDestinationOutput {
  8140  	s.InvocationRateLimitPerSecond = &v
  8141  	return s
  8142  }
  8143  
  8144  // SetLastModifiedTime sets the LastModifiedTime field's value.
  8145  func (s *DescribeApiDestinationOutput) SetLastModifiedTime(v time.Time) *DescribeApiDestinationOutput {
  8146  	s.LastModifiedTime = &v
  8147  	return s
  8148  }
  8149  
  8150  // SetName sets the Name field's value.
  8151  func (s *DescribeApiDestinationOutput) SetName(v string) *DescribeApiDestinationOutput {
  8152  	s.Name = &v
  8153  	return s
  8154  }
  8155  
  8156  type DescribeArchiveInput struct {
  8157  	_ struct{} `type:"structure"`
  8158  
  8159  	// The name of the archive to retrieve.
  8160  	//
  8161  	// ArchiveName is a required field
  8162  	ArchiveName *string `min:"1" type:"string" required:"true"`
  8163  }
  8164  
  8165  // String returns the string representation.
  8166  //
  8167  // API parameter values that are decorated as "sensitive" in the API will not
  8168  // be included in the string output. The member name will be present, but the
  8169  // value will be replaced with "sensitive".
  8170  func (s DescribeArchiveInput) String() string {
  8171  	return awsutil.Prettify(s)
  8172  }
  8173  
  8174  // GoString returns the string representation.
  8175  //
  8176  // API parameter values that are decorated as "sensitive" in the API will not
  8177  // be included in the string output. The member name will be present, but the
  8178  // value will be replaced with "sensitive".
  8179  func (s DescribeArchiveInput) GoString() string {
  8180  	return s.String()
  8181  }
  8182  
  8183  // Validate inspects the fields of the type to determine if they are valid.
  8184  func (s *DescribeArchiveInput) Validate() error {
  8185  	invalidParams := request.ErrInvalidParams{Context: "DescribeArchiveInput"}
  8186  	if s.ArchiveName == nil {
  8187  		invalidParams.Add(request.NewErrParamRequired("ArchiveName"))
  8188  	}
  8189  	if s.ArchiveName != nil && len(*s.ArchiveName) < 1 {
  8190  		invalidParams.Add(request.NewErrParamMinLen("ArchiveName", 1))
  8191  	}
  8192  
  8193  	if invalidParams.Len() > 0 {
  8194  		return invalidParams
  8195  	}
  8196  	return nil
  8197  }
  8198  
  8199  // SetArchiveName sets the ArchiveName field's value.
  8200  func (s *DescribeArchiveInput) SetArchiveName(v string) *DescribeArchiveInput {
  8201  	s.ArchiveName = &v
  8202  	return s
  8203  }
  8204  
  8205  type DescribeArchiveOutput struct {
  8206  	_ struct{} `type:"structure"`
  8207  
  8208  	// The ARN of the archive.
  8209  	ArchiveArn *string `min:"1" type:"string"`
  8210  
  8211  	// The name of the archive.
  8212  	ArchiveName *string `min:"1" type:"string"`
  8213  
  8214  	// The time at which the archive was created.
  8215  	CreationTime *time.Time `type:"timestamp"`
  8216  
  8217  	// The description of the archive.
  8218  	Description *string `type:"string"`
  8219  
  8220  	// The number of events in the archive.
  8221  	EventCount *int64 `type:"long"`
  8222  
  8223  	// The event pattern used to filter events sent to the archive.
  8224  	EventPattern *string `type:"string"`
  8225  
  8226  	// The ARN of the event source associated with the archive.
  8227  	EventSourceArn *string `min:"1" type:"string"`
  8228  
  8229  	// The number of days to retain events for in the archive.
  8230  	RetentionDays *int64 `type:"integer"`
  8231  
  8232  	// The size of the archive in bytes.
  8233  	SizeBytes *int64 `type:"long"`
  8234  
  8235  	// The state of the archive.
  8236  	State *string `type:"string" enum:"ArchiveState"`
  8237  
  8238  	// The reason that the archive is in the state.
  8239  	StateReason *string `type:"string"`
  8240  }
  8241  
  8242  // String returns the string representation.
  8243  //
  8244  // API parameter values that are decorated as "sensitive" in the API will not
  8245  // be included in the string output. The member name will be present, but the
  8246  // value will be replaced with "sensitive".
  8247  func (s DescribeArchiveOutput) String() string {
  8248  	return awsutil.Prettify(s)
  8249  }
  8250  
  8251  // GoString returns the string representation.
  8252  //
  8253  // API parameter values that are decorated as "sensitive" in the API will not
  8254  // be included in the string output. The member name will be present, but the
  8255  // value will be replaced with "sensitive".
  8256  func (s DescribeArchiveOutput) GoString() string {
  8257  	return s.String()
  8258  }
  8259  
  8260  // SetArchiveArn sets the ArchiveArn field's value.
  8261  func (s *DescribeArchiveOutput) SetArchiveArn(v string) *DescribeArchiveOutput {
  8262  	s.ArchiveArn = &v
  8263  	return s
  8264  }
  8265  
  8266  // SetArchiveName sets the ArchiveName field's value.
  8267  func (s *DescribeArchiveOutput) SetArchiveName(v string) *DescribeArchiveOutput {
  8268  	s.ArchiveName = &v
  8269  	return s
  8270  }
  8271  
  8272  // SetCreationTime sets the CreationTime field's value.
  8273  func (s *DescribeArchiveOutput) SetCreationTime(v time.Time) *DescribeArchiveOutput {
  8274  	s.CreationTime = &v
  8275  	return s
  8276  }
  8277  
  8278  // SetDescription sets the Description field's value.
  8279  func (s *DescribeArchiveOutput) SetDescription(v string) *DescribeArchiveOutput {
  8280  	s.Description = &v
  8281  	return s
  8282  }
  8283  
  8284  // SetEventCount sets the EventCount field's value.
  8285  func (s *DescribeArchiveOutput) SetEventCount(v int64) *DescribeArchiveOutput {
  8286  	s.EventCount = &v
  8287  	return s
  8288  }
  8289  
  8290  // SetEventPattern sets the EventPattern field's value.
  8291  func (s *DescribeArchiveOutput) SetEventPattern(v string) *DescribeArchiveOutput {
  8292  	s.EventPattern = &v
  8293  	return s
  8294  }
  8295  
  8296  // SetEventSourceArn sets the EventSourceArn field's value.
  8297  func (s *DescribeArchiveOutput) SetEventSourceArn(v string) *DescribeArchiveOutput {
  8298  	s.EventSourceArn = &v
  8299  	return s
  8300  }
  8301  
  8302  // SetRetentionDays sets the RetentionDays field's value.
  8303  func (s *DescribeArchiveOutput) SetRetentionDays(v int64) *DescribeArchiveOutput {
  8304  	s.RetentionDays = &v
  8305  	return s
  8306  }
  8307  
  8308  // SetSizeBytes sets the SizeBytes field's value.
  8309  func (s *DescribeArchiveOutput) SetSizeBytes(v int64) *DescribeArchiveOutput {
  8310  	s.SizeBytes = &v
  8311  	return s
  8312  }
  8313  
  8314  // SetState sets the State field's value.
  8315  func (s *DescribeArchiveOutput) SetState(v string) *DescribeArchiveOutput {
  8316  	s.State = &v
  8317  	return s
  8318  }
  8319  
  8320  // SetStateReason sets the StateReason field's value.
  8321  func (s *DescribeArchiveOutput) SetStateReason(v string) *DescribeArchiveOutput {
  8322  	s.StateReason = &v
  8323  	return s
  8324  }
  8325  
  8326  type DescribeConnectionInput struct {
  8327  	_ struct{} `type:"structure"`
  8328  
  8329  	// The name of the connection to retrieve.
  8330  	//
  8331  	// Name is a required field
  8332  	Name *string `min:"1" type:"string" required:"true"`
  8333  }
  8334  
  8335  // String returns the string representation.
  8336  //
  8337  // API parameter values that are decorated as "sensitive" in the API will not
  8338  // be included in the string output. The member name will be present, but the
  8339  // value will be replaced with "sensitive".
  8340  func (s DescribeConnectionInput) String() string {
  8341  	return awsutil.Prettify(s)
  8342  }
  8343  
  8344  // GoString returns the string representation.
  8345  //
  8346  // API parameter values that are decorated as "sensitive" in the API will not
  8347  // be included in the string output. The member name will be present, but the
  8348  // value will be replaced with "sensitive".
  8349  func (s DescribeConnectionInput) GoString() string {
  8350  	return s.String()
  8351  }
  8352  
  8353  // Validate inspects the fields of the type to determine if they are valid.
  8354  func (s *DescribeConnectionInput) Validate() error {
  8355  	invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionInput"}
  8356  	if s.Name == nil {
  8357  		invalidParams.Add(request.NewErrParamRequired("Name"))
  8358  	}
  8359  	if s.Name != nil && len(*s.Name) < 1 {
  8360  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8361  	}
  8362  
  8363  	if invalidParams.Len() > 0 {
  8364  		return invalidParams
  8365  	}
  8366  	return nil
  8367  }
  8368  
  8369  // SetName sets the Name field's value.
  8370  func (s *DescribeConnectionInput) SetName(v string) *DescribeConnectionInput {
  8371  	s.Name = &v
  8372  	return s
  8373  }
  8374  
  8375  type DescribeConnectionOutput struct {
  8376  	_ struct{} `type:"structure"`
  8377  
  8378  	// The parameters to use for authorization for the connection.
  8379  	AuthParameters *ConnectionAuthResponseParameters `type:"structure"`
  8380  
  8381  	// The type of authorization specified for the connection.
  8382  	AuthorizationType *string `type:"string" enum:"ConnectionAuthorizationType"`
  8383  
  8384  	// The ARN of the connection retrieved.
  8385  	ConnectionArn *string `min:"1" type:"string"`
  8386  
  8387  	// The state of the connection retrieved.
  8388  	ConnectionState *string `type:"string" enum:"ConnectionState"`
  8389  
  8390  	// A time stamp for the time that the connection was created.
  8391  	CreationTime *time.Time `type:"timestamp"`
  8392  
  8393  	// The description for the connection retrieved.
  8394  	Description *string `type:"string"`
  8395  
  8396  	// A time stamp for the time that the connection was last authorized.
  8397  	LastAuthorizedTime *time.Time `type:"timestamp"`
  8398  
  8399  	// A time stamp for the time that the connection was last modified.
  8400  	LastModifiedTime *time.Time `type:"timestamp"`
  8401  
  8402  	// The name of the connection retrieved.
  8403  	Name *string `min:"1" type:"string"`
  8404  
  8405  	// The ARN of the secret created from the authorization parameters specified
  8406  	// for the connection.
  8407  	SecretArn *string `min:"20" type:"string"`
  8408  
  8409  	// The reason that the connection is in the current connection state.
  8410  	StateReason *string `type:"string"`
  8411  }
  8412  
  8413  // String returns the string representation.
  8414  //
  8415  // API parameter values that are decorated as "sensitive" in the API will not
  8416  // be included in the string output. The member name will be present, but the
  8417  // value will be replaced with "sensitive".
  8418  func (s DescribeConnectionOutput) String() string {
  8419  	return awsutil.Prettify(s)
  8420  }
  8421  
  8422  // GoString returns the string representation.
  8423  //
  8424  // API parameter values that are decorated as "sensitive" in the API will not
  8425  // be included in the string output. The member name will be present, but the
  8426  // value will be replaced with "sensitive".
  8427  func (s DescribeConnectionOutput) GoString() string {
  8428  	return s.String()
  8429  }
  8430  
  8431  // SetAuthParameters sets the AuthParameters field's value.
  8432  func (s *DescribeConnectionOutput) SetAuthParameters(v *ConnectionAuthResponseParameters) *DescribeConnectionOutput {
  8433  	s.AuthParameters = v
  8434  	return s
  8435  }
  8436  
  8437  // SetAuthorizationType sets the AuthorizationType field's value.
  8438  func (s *DescribeConnectionOutput) SetAuthorizationType(v string) *DescribeConnectionOutput {
  8439  	s.AuthorizationType = &v
  8440  	return s
  8441  }
  8442  
  8443  // SetConnectionArn sets the ConnectionArn field's value.
  8444  func (s *DescribeConnectionOutput) SetConnectionArn(v string) *DescribeConnectionOutput {
  8445  	s.ConnectionArn = &v
  8446  	return s
  8447  }
  8448  
  8449  // SetConnectionState sets the ConnectionState field's value.
  8450  func (s *DescribeConnectionOutput) SetConnectionState(v string) *DescribeConnectionOutput {
  8451  	s.ConnectionState = &v
  8452  	return s
  8453  }
  8454  
  8455  // SetCreationTime sets the CreationTime field's value.
  8456  func (s *DescribeConnectionOutput) SetCreationTime(v time.Time) *DescribeConnectionOutput {
  8457  	s.CreationTime = &v
  8458  	return s
  8459  }
  8460  
  8461  // SetDescription sets the Description field's value.
  8462  func (s *DescribeConnectionOutput) SetDescription(v string) *DescribeConnectionOutput {
  8463  	s.Description = &v
  8464  	return s
  8465  }
  8466  
  8467  // SetLastAuthorizedTime sets the LastAuthorizedTime field's value.
  8468  func (s *DescribeConnectionOutput) SetLastAuthorizedTime(v time.Time) *DescribeConnectionOutput {
  8469  	s.LastAuthorizedTime = &v
  8470  	return s
  8471  }
  8472  
  8473  // SetLastModifiedTime sets the LastModifiedTime field's value.
  8474  func (s *DescribeConnectionOutput) SetLastModifiedTime(v time.Time) *DescribeConnectionOutput {
  8475  	s.LastModifiedTime = &v
  8476  	return s
  8477  }
  8478  
  8479  // SetName sets the Name field's value.
  8480  func (s *DescribeConnectionOutput) SetName(v string) *DescribeConnectionOutput {
  8481  	s.Name = &v
  8482  	return s
  8483  }
  8484  
  8485  // SetSecretArn sets the SecretArn field's value.
  8486  func (s *DescribeConnectionOutput) SetSecretArn(v string) *DescribeConnectionOutput {
  8487  	s.SecretArn = &v
  8488  	return s
  8489  }
  8490  
  8491  // SetStateReason sets the StateReason field's value.
  8492  func (s *DescribeConnectionOutput) SetStateReason(v string) *DescribeConnectionOutput {
  8493  	s.StateReason = &v
  8494  	return s
  8495  }
  8496  
  8497  type DescribeEventBusInput struct {
  8498  	_ struct{} `type:"structure"`
  8499  
  8500  	// The name or ARN of the event bus to show details for. If you omit this, the
  8501  	// default event bus is displayed.
  8502  	Name *string `min:"1" type:"string"`
  8503  }
  8504  
  8505  // String returns the string representation.
  8506  //
  8507  // API parameter values that are decorated as "sensitive" in the API will not
  8508  // be included in the string output. The member name will be present, but the
  8509  // value will be replaced with "sensitive".
  8510  func (s DescribeEventBusInput) String() string {
  8511  	return awsutil.Prettify(s)
  8512  }
  8513  
  8514  // GoString returns the string representation.
  8515  //
  8516  // API parameter values that are decorated as "sensitive" in the API will not
  8517  // be included in the string output. The member name will be present, but the
  8518  // value will be replaced with "sensitive".
  8519  func (s DescribeEventBusInput) GoString() string {
  8520  	return s.String()
  8521  }
  8522  
  8523  // Validate inspects the fields of the type to determine if they are valid.
  8524  func (s *DescribeEventBusInput) Validate() error {
  8525  	invalidParams := request.ErrInvalidParams{Context: "DescribeEventBusInput"}
  8526  	if s.Name != nil && len(*s.Name) < 1 {
  8527  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8528  	}
  8529  
  8530  	if invalidParams.Len() > 0 {
  8531  		return invalidParams
  8532  	}
  8533  	return nil
  8534  }
  8535  
  8536  // SetName sets the Name field's value.
  8537  func (s *DescribeEventBusInput) SetName(v string) *DescribeEventBusInput {
  8538  	s.Name = &v
  8539  	return s
  8540  }
  8541  
  8542  type DescribeEventBusOutput struct {
  8543  	_ struct{} `type:"structure"`
  8544  
  8545  	// The Amazon Resource Name (ARN) of the account permitted to write events to
  8546  	// the current account.
  8547  	Arn *string `type:"string"`
  8548  
  8549  	// The name of the event bus. Currently, this is always default.
  8550  	Name *string `type:"string"`
  8551  
  8552  	// The policy that enables the external account to send events to your account.
  8553  	Policy *string `type:"string"`
  8554  }
  8555  
  8556  // String returns the string representation.
  8557  //
  8558  // API parameter values that are decorated as "sensitive" in the API will not
  8559  // be included in the string output. The member name will be present, but the
  8560  // value will be replaced with "sensitive".
  8561  func (s DescribeEventBusOutput) String() string {
  8562  	return awsutil.Prettify(s)
  8563  }
  8564  
  8565  // GoString returns the string representation.
  8566  //
  8567  // API parameter values that are decorated as "sensitive" in the API will not
  8568  // be included in the string output. The member name will be present, but the
  8569  // value will be replaced with "sensitive".
  8570  func (s DescribeEventBusOutput) GoString() string {
  8571  	return s.String()
  8572  }
  8573  
  8574  // SetArn sets the Arn field's value.
  8575  func (s *DescribeEventBusOutput) SetArn(v string) *DescribeEventBusOutput {
  8576  	s.Arn = &v
  8577  	return s
  8578  }
  8579  
  8580  // SetName sets the Name field's value.
  8581  func (s *DescribeEventBusOutput) SetName(v string) *DescribeEventBusOutput {
  8582  	s.Name = &v
  8583  	return s
  8584  }
  8585  
  8586  // SetPolicy sets the Policy field's value.
  8587  func (s *DescribeEventBusOutput) SetPolicy(v string) *DescribeEventBusOutput {
  8588  	s.Policy = &v
  8589  	return s
  8590  }
  8591  
  8592  type DescribeEventSourceInput struct {
  8593  	_ struct{} `type:"structure"`
  8594  
  8595  	// The name of the partner event source to display the details of.
  8596  	//
  8597  	// Name is a required field
  8598  	Name *string `min:"1" type:"string" required:"true"`
  8599  }
  8600  
  8601  // String returns the string representation.
  8602  //
  8603  // API parameter values that are decorated as "sensitive" in the API will not
  8604  // be included in the string output. The member name will be present, but the
  8605  // value will be replaced with "sensitive".
  8606  func (s DescribeEventSourceInput) String() string {
  8607  	return awsutil.Prettify(s)
  8608  }
  8609  
  8610  // GoString returns the string representation.
  8611  //
  8612  // API parameter values that are decorated as "sensitive" in the API will not
  8613  // be included in the string output. The member name will be present, but the
  8614  // value will be replaced with "sensitive".
  8615  func (s DescribeEventSourceInput) GoString() string {
  8616  	return s.String()
  8617  }
  8618  
  8619  // Validate inspects the fields of the type to determine if they are valid.
  8620  func (s *DescribeEventSourceInput) Validate() error {
  8621  	invalidParams := request.ErrInvalidParams{Context: "DescribeEventSourceInput"}
  8622  	if s.Name == nil {
  8623  		invalidParams.Add(request.NewErrParamRequired("Name"))
  8624  	}
  8625  	if s.Name != nil && len(*s.Name) < 1 {
  8626  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8627  	}
  8628  
  8629  	if invalidParams.Len() > 0 {
  8630  		return invalidParams
  8631  	}
  8632  	return nil
  8633  }
  8634  
  8635  // SetName sets the Name field's value.
  8636  func (s *DescribeEventSourceInput) SetName(v string) *DescribeEventSourceInput {
  8637  	s.Name = &v
  8638  	return s
  8639  }
  8640  
  8641  type DescribeEventSourceOutput struct {
  8642  	_ struct{} `type:"structure"`
  8643  
  8644  	// The ARN of the partner event source.
  8645  	Arn *string `type:"string"`
  8646  
  8647  	// The name of the SaaS partner that created the event source.
  8648  	CreatedBy *string `type:"string"`
  8649  
  8650  	// The date and time that the event source was created.
  8651  	CreationTime *time.Time `type:"timestamp"`
  8652  
  8653  	// The date and time that the event source will expire if you do not create
  8654  	// a matching event bus.
  8655  	ExpirationTime *time.Time `type:"timestamp"`
  8656  
  8657  	// The name of the partner event source.
  8658  	Name *string `type:"string"`
  8659  
  8660  	// The state of the event source. If it is ACTIVE, you have already created
  8661  	// a matching event bus for this event source, and that event bus is active.
  8662  	// If it is PENDING, either you haven't yet created a matching event bus, or
  8663  	// that event bus is deactivated. If it is DELETED, you have created a matching
  8664  	// event bus, but the event source has since been deleted.
  8665  	State *string `type:"string" enum:"EventSourceState"`
  8666  }
  8667  
  8668  // String returns the string representation.
  8669  //
  8670  // API parameter values that are decorated as "sensitive" in the API will not
  8671  // be included in the string output. The member name will be present, but the
  8672  // value will be replaced with "sensitive".
  8673  func (s DescribeEventSourceOutput) String() string {
  8674  	return awsutil.Prettify(s)
  8675  }
  8676  
  8677  // GoString returns the string representation.
  8678  //
  8679  // API parameter values that are decorated as "sensitive" in the API will not
  8680  // be included in the string output. The member name will be present, but the
  8681  // value will be replaced with "sensitive".
  8682  func (s DescribeEventSourceOutput) GoString() string {
  8683  	return s.String()
  8684  }
  8685  
  8686  // SetArn sets the Arn field's value.
  8687  func (s *DescribeEventSourceOutput) SetArn(v string) *DescribeEventSourceOutput {
  8688  	s.Arn = &v
  8689  	return s
  8690  }
  8691  
  8692  // SetCreatedBy sets the CreatedBy field's value.
  8693  func (s *DescribeEventSourceOutput) SetCreatedBy(v string) *DescribeEventSourceOutput {
  8694  	s.CreatedBy = &v
  8695  	return s
  8696  }
  8697  
  8698  // SetCreationTime sets the CreationTime field's value.
  8699  func (s *DescribeEventSourceOutput) SetCreationTime(v time.Time) *DescribeEventSourceOutput {
  8700  	s.CreationTime = &v
  8701  	return s
  8702  }
  8703  
  8704  // SetExpirationTime sets the ExpirationTime field's value.
  8705  func (s *DescribeEventSourceOutput) SetExpirationTime(v time.Time) *DescribeEventSourceOutput {
  8706  	s.ExpirationTime = &v
  8707  	return s
  8708  }
  8709  
  8710  // SetName sets the Name field's value.
  8711  func (s *DescribeEventSourceOutput) SetName(v string) *DescribeEventSourceOutput {
  8712  	s.Name = &v
  8713  	return s
  8714  }
  8715  
  8716  // SetState sets the State field's value.
  8717  func (s *DescribeEventSourceOutput) SetState(v string) *DescribeEventSourceOutput {
  8718  	s.State = &v
  8719  	return s
  8720  }
  8721  
  8722  type DescribePartnerEventSourceInput struct {
  8723  	_ struct{} `type:"structure"`
  8724  
  8725  	// The name of the event source to display.
  8726  	//
  8727  	// Name is a required field
  8728  	Name *string `min:"1" type:"string" required:"true"`
  8729  }
  8730  
  8731  // String returns the string representation.
  8732  //
  8733  // API parameter values that are decorated as "sensitive" in the API will not
  8734  // be included in the string output. The member name will be present, but the
  8735  // value will be replaced with "sensitive".
  8736  func (s DescribePartnerEventSourceInput) String() string {
  8737  	return awsutil.Prettify(s)
  8738  }
  8739  
  8740  // GoString returns the string representation.
  8741  //
  8742  // API parameter values that are decorated as "sensitive" in the API will not
  8743  // be included in the string output. The member name will be present, but the
  8744  // value will be replaced with "sensitive".
  8745  func (s DescribePartnerEventSourceInput) GoString() string {
  8746  	return s.String()
  8747  }
  8748  
  8749  // Validate inspects the fields of the type to determine if they are valid.
  8750  func (s *DescribePartnerEventSourceInput) Validate() error {
  8751  	invalidParams := request.ErrInvalidParams{Context: "DescribePartnerEventSourceInput"}
  8752  	if s.Name == nil {
  8753  		invalidParams.Add(request.NewErrParamRequired("Name"))
  8754  	}
  8755  	if s.Name != nil && len(*s.Name) < 1 {
  8756  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8757  	}
  8758  
  8759  	if invalidParams.Len() > 0 {
  8760  		return invalidParams
  8761  	}
  8762  	return nil
  8763  }
  8764  
  8765  // SetName sets the Name field's value.
  8766  func (s *DescribePartnerEventSourceInput) SetName(v string) *DescribePartnerEventSourceInput {
  8767  	s.Name = &v
  8768  	return s
  8769  }
  8770  
  8771  type DescribePartnerEventSourceOutput struct {
  8772  	_ struct{} `type:"structure"`
  8773  
  8774  	// The ARN of the event source.
  8775  	Arn *string `type:"string"`
  8776  
  8777  	// The name of the event source.
  8778  	Name *string `type:"string"`
  8779  }
  8780  
  8781  // String returns the string representation.
  8782  //
  8783  // API parameter values that are decorated as "sensitive" in the API will not
  8784  // be included in the string output. The member name will be present, but the
  8785  // value will be replaced with "sensitive".
  8786  func (s DescribePartnerEventSourceOutput) String() string {
  8787  	return awsutil.Prettify(s)
  8788  }
  8789  
  8790  // GoString returns the string representation.
  8791  //
  8792  // API parameter values that are decorated as "sensitive" in the API will not
  8793  // be included in the string output. The member name will be present, but the
  8794  // value will be replaced with "sensitive".
  8795  func (s DescribePartnerEventSourceOutput) GoString() string {
  8796  	return s.String()
  8797  }
  8798  
  8799  // SetArn sets the Arn field's value.
  8800  func (s *DescribePartnerEventSourceOutput) SetArn(v string) *DescribePartnerEventSourceOutput {
  8801  	s.Arn = &v
  8802  	return s
  8803  }
  8804  
  8805  // SetName sets the Name field's value.
  8806  func (s *DescribePartnerEventSourceOutput) SetName(v string) *DescribePartnerEventSourceOutput {
  8807  	s.Name = &v
  8808  	return s
  8809  }
  8810  
  8811  type DescribeReplayInput struct {
  8812  	_ struct{} `type:"structure"`
  8813  
  8814  	// The name of the replay to retrieve.
  8815  	//
  8816  	// ReplayName is a required field
  8817  	ReplayName *string `min:"1" type:"string" required:"true"`
  8818  }
  8819  
  8820  // String returns the string representation.
  8821  //
  8822  // API parameter values that are decorated as "sensitive" in the API will not
  8823  // be included in the string output. The member name will be present, but the
  8824  // value will be replaced with "sensitive".
  8825  func (s DescribeReplayInput) String() string {
  8826  	return awsutil.Prettify(s)
  8827  }
  8828  
  8829  // GoString returns the string representation.
  8830  //
  8831  // API parameter values that are decorated as "sensitive" in the API will not
  8832  // be included in the string output. The member name will be present, but the
  8833  // value will be replaced with "sensitive".
  8834  func (s DescribeReplayInput) GoString() string {
  8835  	return s.String()
  8836  }
  8837  
  8838  // Validate inspects the fields of the type to determine if they are valid.
  8839  func (s *DescribeReplayInput) Validate() error {
  8840  	invalidParams := request.ErrInvalidParams{Context: "DescribeReplayInput"}
  8841  	if s.ReplayName == nil {
  8842  		invalidParams.Add(request.NewErrParamRequired("ReplayName"))
  8843  	}
  8844  	if s.ReplayName != nil && len(*s.ReplayName) < 1 {
  8845  		invalidParams.Add(request.NewErrParamMinLen("ReplayName", 1))
  8846  	}
  8847  
  8848  	if invalidParams.Len() > 0 {
  8849  		return invalidParams
  8850  	}
  8851  	return nil
  8852  }
  8853  
  8854  // SetReplayName sets the ReplayName field's value.
  8855  func (s *DescribeReplayInput) SetReplayName(v string) *DescribeReplayInput {
  8856  	s.ReplayName = &v
  8857  	return s
  8858  }
  8859  
  8860  type DescribeReplayOutput struct {
  8861  	_ struct{} `type:"structure"`
  8862  
  8863  	// The description of the replay.
  8864  	Description *string `type:"string"`
  8865  
  8866  	// A ReplayDestination object that contains details about the replay.
  8867  	Destination *ReplayDestination `type:"structure"`
  8868  
  8869  	// The time stamp for the last event that was replayed from the archive.
  8870  	EventEndTime *time.Time `type:"timestamp"`
  8871  
  8872  	// The time that the event was last replayed.
  8873  	EventLastReplayedTime *time.Time `type:"timestamp"`
  8874  
  8875  	// The ARN of the archive events were replayed from.
  8876  	EventSourceArn *string `min:"1" type:"string"`
  8877  
  8878  	// The time stamp of the first event that was last replayed from the archive.
  8879  	EventStartTime *time.Time `type:"timestamp"`
  8880  
  8881  	// The ARN of the replay.
  8882  	ReplayArn *string `min:"1" type:"string"`
  8883  
  8884  	// A time stamp for the time that the replay stopped.
  8885  	ReplayEndTime *time.Time `type:"timestamp"`
  8886  
  8887  	// The name of the replay.
  8888  	ReplayName *string `min:"1" type:"string"`
  8889  
  8890  	// A time stamp for the time that the replay started.
  8891  	ReplayStartTime *time.Time `type:"timestamp"`
  8892  
  8893  	// The current state of the replay.
  8894  	State *string `type:"string" enum:"ReplayState"`
  8895  
  8896  	// The reason that the replay is in the current state.
  8897  	StateReason *string `type:"string"`
  8898  }
  8899  
  8900  // String returns the string representation.
  8901  //
  8902  // API parameter values that are decorated as "sensitive" in the API will not
  8903  // be included in the string output. The member name will be present, but the
  8904  // value will be replaced with "sensitive".
  8905  func (s DescribeReplayOutput) String() string {
  8906  	return awsutil.Prettify(s)
  8907  }
  8908  
  8909  // GoString returns the string representation.
  8910  //
  8911  // API parameter values that are decorated as "sensitive" in the API will not
  8912  // be included in the string output. The member name will be present, but the
  8913  // value will be replaced with "sensitive".
  8914  func (s DescribeReplayOutput) GoString() string {
  8915  	return s.String()
  8916  }
  8917  
  8918  // SetDescription sets the Description field's value.
  8919  func (s *DescribeReplayOutput) SetDescription(v string) *DescribeReplayOutput {
  8920  	s.Description = &v
  8921  	return s
  8922  }
  8923  
  8924  // SetDestination sets the Destination field's value.
  8925  func (s *DescribeReplayOutput) SetDestination(v *ReplayDestination) *DescribeReplayOutput {
  8926  	s.Destination = v
  8927  	return s
  8928  }
  8929  
  8930  // SetEventEndTime sets the EventEndTime field's value.
  8931  func (s *DescribeReplayOutput) SetEventEndTime(v time.Time) *DescribeReplayOutput {
  8932  	s.EventEndTime = &v
  8933  	return s
  8934  }
  8935  
  8936  // SetEventLastReplayedTime sets the EventLastReplayedTime field's value.
  8937  func (s *DescribeReplayOutput) SetEventLastReplayedTime(v time.Time) *DescribeReplayOutput {
  8938  	s.EventLastReplayedTime = &v
  8939  	return s
  8940  }
  8941  
  8942  // SetEventSourceArn sets the EventSourceArn field's value.
  8943  func (s *DescribeReplayOutput) SetEventSourceArn(v string) *DescribeReplayOutput {
  8944  	s.EventSourceArn = &v
  8945  	return s
  8946  }
  8947  
  8948  // SetEventStartTime sets the EventStartTime field's value.
  8949  func (s *DescribeReplayOutput) SetEventStartTime(v time.Time) *DescribeReplayOutput {
  8950  	s.EventStartTime = &v
  8951  	return s
  8952  }
  8953  
  8954  // SetReplayArn sets the ReplayArn field's value.
  8955  func (s *DescribeReplayOutput) SetReplayArn(v string) *DescribeReplayOutput {
  8956  	s.ReplayArn = &v
  8957  	return s
  8958  }
  8959  
  8960  // SetReplayEndTime sets the ReplayEndTime field's value.
  8961  func (s *DescribeReplayOutput) SetReplayEndTime(v time.Time) *DescribeReplayOutput {
  8962  	s.ReplayEndTime = &v
  8963  	return s
  8964  }
  8965  
  8966  // SetReplayName sets the ReplayName field's value.
  8967  func (s *DescribeReplayOutput) SetReplayName(v string) *DescribeReplayOutput {
  8968  	s.ReplayName = &v
  8969  	return s
  8970  }
  8971  
  8972  // SetReplayStartTime sets the ReplayStartTime field's value.
  8973  func (s *DescribeReplayOutput) SetReplayStartTime(v time.Time) *DescribeReplayOutput {
  8974  	s.ReplayStartTime = &v
  8975  	return s
  8976  }
  8977  
  8978  // SetState sets the State field's value.
  8979  func (s *DescribeReplayOutput) SetState(v string) *DescribeReplayOutput {
  8980  	s.State = &v
  8981  	return s
  8982  }
  8983  
  8984  // SetStateReason sets the StateReason field's value.
  8985  func (s *DescribeReplayOutput) SetStateReason(v string) *DescribeReplayOutput {
  8986  	s.StateReason = &v
  8987  	return s
  8988  }
  8989  
  8990  type DescribeRuleInput struct {
  8991  	_ struct{} `type:"structure"`
  8992  
  8993  	// The name or ARN of the event bus associated with the rule. If you omit this,
  8994  	// the default event bus is used.
  8995  	EventBusName *string `min:"1" type:"string"`
  8996  
  8997  	// The name of the rule.
  8998  	//
  8999  	// Name is a required field
  9000  	Name *string `min:"1" type:"string" required:"true"`
  9001  }
  9002  
  9003  // String returns the string representation.
  9004  //
  9005  // API parameter values that are decorated as "sensitive" in the API will not
  9006  // be included in the string output. The member name will be present, but the
  9007  // value will be replaced with "sensitive".
  9008  func (s DescribeRuleInput) String() string {
  9009  	return awsutil.Prettify(s)
  9010  }
  9011  
  9012  // GoString returns the string representation.
  9013  //
  9014  // API parameter values that are decorated as "sensitive" in the API will not
  9015  // be included in the string output. The member name will be present, but the
  9016  // value will be replaced with "sensitive".
  9017  func (s DescribeRuleInput) GoString() string {
  9018  	return s.String()
  9019  }
  9020  
  9021  // Validate inspects the fields of the type to determine if they are valid.
  9022  func (s *DescribeRuleInput) Validate() error {
  9023  	invalidParams := request.ErrInvalidParams{Context: "DescribeRuleInput"}
  9024  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
  9025  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
  9026  	}
  9027  	if s.Name == nil {
  9028  		invalidParams.Add(request.NewErrParamRequired("Name"))
  9029  	}
  9030  	if s.Name != nil && len(*s.Name) < 1 {
  9031  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  9032  	}
  9033  
  9034  	if invalidParams.Len() > 0 {
  9035  		return invalidParams
  9036  	}
  9037  	return nil
  9038  }
  9039  
  9040  // SetEventBusName sets the EventBusName field's value.
  9041  func (s *DescribeRuleInput) SetEventBusName(v string) *DescribeRuleInput {
  9042  	s.EventBusName = &v
  9043  	return s
  9044  }
  9045  
  9046  // SetName sets the Name field's value.
  9047  func (s *DescribeRuleInput) SetName(v string) *DescribeRuleInput {
  9048  	s.Name = &v
  9049  	return s
  9050  }
  9051  
  9052  type DescribeRuleOutput struct {
  9053  	_ struct{} `type:"structure"`
  9054  
  9055  	// The Amazon Resource Name (ARN) of the rule.
  9056  	Arn *string `min:"1" type:"string"`
  9057  
  9058  	// The account ID of the user that created the rule. If you use PutRule to put
  9059  	// a rule on an event bus in another account, the other account is the owner
  9060  	// of the rule, and the rule ARN includes the account ID for that account. However,
  9061  	// the value for CreatedBy is the account ID as the account that created the
  9062  	// rule in the other account.
  9063  	CreatedBy *string `min:"1" type:"string"`
  9064  
  9065  	// The description of the rule.
  9066  	Description *string `type:"string"`
  9067  
  9068  	// The name of the event bus associated with the rule.
  9069  	EventBusName *string `min:"1" type:"string"`
  9070  
  9071  	// The event pattern. For more information, see Events and Event Patterns (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html)
  9072  	// in the Amazon EventBridge User Guide.
  9073  	EventPattern *string `type:"string"`
  9074  
  9075  	// If this is a managed rule, created by an Amazon Web Services service on your
  9076  	// behalf, this field displays the principal name of the Amazon Web Services
  9077  	// service that created the rule.
  9078  	ManagedBy *string `min:"1" type:"string"`
  9079  
  9080  	// The name of the rule.
  9081  	Name *string `min:"1" type:"string"`
  9082  
  9083  	// The Amazon Resource Name (ARN) of the IAM role associated with the rule.
  9084  	RoleArn *string `min:"1" type:"string"`
  9085  
  9086  	// The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
  9087  	ScheduleExpression *string `type:"string"`
  9088  
  9089  	// Specifies whether the rule is enabled or disabled.
  9090  	State *string `type:"string" enum:"RuleState"`
  9091  }
  9092  
  9093  // String returns the string representation.
  9094  //
  9095  // API parameter values that are decorated as "sensitive" in the API will not
  9096  // be included in the string output. The member name will be present, but the
  9097  // value will be replaced with "sensitive".
  9098  func (s DescribeRuleOutput) String() string {
  9099  	return awsutil.Prettify(s)
  9100  }
  9101  
  9102  // GoString returns the string representation.
  9103  //
  9104  // API parameter values that are decorated as "sensitive" in the API will not
  9105  // be included in the string output. The member name will be present, but the
  9106  // value will be replaced with "sensitive".
  9107  func (s DescribeRuleOutput) GoString() string {
  9108  	return s.String()
  9109  }
  9110  
  9111  // SetArn sets the Arn field's value.
  9112  func (s *DescribeRuleOutput) SetArn(v string) *DescribeRuleOutput {
  9113  	s.Arn = &v
  9114  	return s
  9115  }
  9116  
  9117  // SetCreatedBy sets the CreatedBy field's value.
  9118  func (s *DescribeRuleOutput) SetCreatedBy(v string) *DescribeRuleOutput {
  9119  	s.CreatedBy = &v
  9120  	return s
  9121  }
  9122  
  9123  // SetDescription sets the Description field's value.
  9124  func (s *DescribeRuleOutput) SetDescription(v string) *DescribeRuleOutput {
  9125  	s.Description = &v
  9126  	return s
  9127  }
  9128  
  9129  // SetEventBusName sets the EventBusName field's value.
  9130  func (s *DescribeRuleOutput) SetEventBusName(v string) *DescribeRuleOutput {
  9131  	s.EventBusName = &v
  9132  	return s
  9133  }
  9134  
  9135  // SetEventPattern sets the EventPattern field's value.
  9136  func (s *DescribeRuleOutput) SetEventPattern(v string) *DescribeRuleOutput {
  9137  	s.EventPattern = &v
  9138  	return s
  9139  }
  9140  
  9141  // SetManagedBy sets the ManagedBy field's value.
  9142  func (s *DescribeRuleOutput) SetManagedBy(v string) *DescribeRuleOutput {
  9143  	s.ManagedBy = &v
  9144  	return s
  9145  }
  9146  
  9147  // SetName sets the Name field's value.
  9148  func (s *DescribeRuleOutput) SetName(v string) *DescribeRuleOutput {
  9149  	s.Name = &v
  9150  	return s
  9151  }
  9152  
  9153  // SetRoleArn sets the RoleArn field's value.
  9154  func (s *DescribeRuleOutput) SetRoleArn(v string) *DescribeRuleOutput {
  9155  	s.RoleArn = &v
  9156  	return s
  9157  }
  9158  
  9159  // SetScheduleExpression sets the ScheduleExpression field's value.
  9160  func (s *DescribeRuleOutput) SetScheduleExpression(v string) *DescribeRuleOutput {
  9161  	s.ScheduleExpression = &v
  9162  	return s
  9163  }
  9164  
  9165  // SetState sets the State field's value.
  9166  func (s *DescribeRuleOutput) SetState(v string) *DescribeRuleOutput {
  9167  	s.State = &v
  9168  	return s
  9169  }
  9170  
  9171  type DisableRuleInput struct {
  9172  	_ struct{} `type:"structure"`
  9173  
  9174  	// The name or ARN of the event bus associated with the rule. If you omit this,
  9175  	// the default event bus is used.
  9176  	EventBusName *string `min:"1" type:"string"`
  9177  
  9178  	// The name of the rule.
  9179  	//
  9180  	// Name is a required field
  9181  	Name *string `min:"1" type:"string" required:"true"`
  9182  }
  9183  
  9184  // String returns the string representation.
  9185  //
  9186  // API parameter values that are decorated as "sensitive" in the API will not
  9187  // be included in the string output. The member name will be present, but the
  9188  // value will be replaced with "sensitive".
  9189  func (s DisableRuleInput) String() string {
  9190  	return awsutil.Prettify(s)
  9191  }
  9192  
  9193  // GoString returns the string representation.
  9194  //
  9195  // API parameter values that are decorated as "sensitive" in the API will not
  9196  // be included in the string output. The member name will be present, but the
  9197  // value will be replaced with "sensitive".
  9198  func (s DisableRuleInput) GoString() string {
  9199  	return s.String()
  9200  }
  9201  
  9202  // Validate inspects the fields of the type to determine if they are valid.
  9203  func (s *DisableRuleInput) Validate() error {
  9204  	invalidParams := request.ErrInvalidParams{Context: "DisableRuleInput"}
  9205  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
  9206  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
  9207  	}
  9208  	if s.Name == nil {
  9209  		invalidParams.Add(request.NewErrParamRequired("Name"))
  9210  	}
  9211  	if s.Name != nil && len(*s.Name) < 1 {
  9212  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  9213  	}
  9214  
  9215  	if invalidParams.Len() > 0 {
  9216  		return invalidParams
  9217  	}
  9218  	return nil
  9219  }
  9220  
  9221  // SetEventBusName sets the EventBusName field's value.
  9222  func (s *DisableRuleInput) SetEventBusName(v string) *DisableRuleInput {
  9223  	s.EventBusName = &v
  9224  	return s
  9225  }
  9226  
  9227  // SetName sets the Name field's value.
  9228  func (s *DisableRuleInput) SetName(v string) *DisableRuleInput {
  9229  	s.Name = &v
  9230  	return s
  9231  }
  9232  
  9233  type DisableRuleOutput struct {
  9234  	_ struct{} `type:"structure"`
  9235  }
  9236  
  9237  // String returns the string representation.
  9238  //
  9239  // API parameter values that are decorated as "sensitive" in the API will not
  9240  // be included in the string output. The member name will be present, but the
  9241  // value will be replaced with "sensitive".
  9242  func (s DisableRuleOutput) String() string {
  9243  	return awsutil.Prettify(s)
  9244  }
  9245  
  9246  // GoString returns the string representation.
  9247  //
  9248  // API parameter values that are decorated as "sensitive" in the API will not
  9249  // be included in the string output. The member name will be present, but the
  9250  // value will be replaced with "sensitive".
  9251  func (s DisableRuleOutput) GoString() string {
  9252  	return s.String()
  9253  }
  9254  
  9255  // The custom parameters to be used when the target is an Amazon ECS task.
  9256  type EcsParameters struct {
  9257  	_ struct{} `type:"structure"`
  9258  
  9259  	// The capacity provider strategy to use for the task.
  9260  	//
  9261  	// If a capacityProviderStrategy is specified, the launchType parameter must
  9262  	// be omitted. If no capacityProviderStrategy or launchType is specified, the
  9263  	// defaultCapacityProviderStrategy for the cluster is used.
  9264  	CapacityProviderStrategy []*CapacityProviderStrategyItem `type:"list"`
  9265  
  9266  	// Specifies whether to enable Amazon ECS managed tags for the task. For more
  9267  	// information, see Tagging Your Amazon ECS Resources (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html)
  9268  	// in the Amazon Elastic Container Service Developer Guide.
  9269  	EnableECSManagedTags *bool `type:"boolean"`
  9270  
  9271  	// Whether or not to enable the execute command functionality for the containers
  9272  	// in this task. If true, this enables execute command functionality on all
  9273  	// containers in the task.
  9274  	EnableExecuteCommand *bool `type:"boolean"`
  9275  
  9276  	// Specifies an ECS task group for the task. The maximum length is 255 characters.
  9277  	Group *string `type:"string"`
  9278  
  9279  	// Specifies the launch type on which your task is running. The launch type
  9280  	// that you specify here must match one of the launch type (compatibilities)
  9281  	// of the target task. The FARGATE value is supported only in the Regions where
  9282  	// Fargate witt Amazon ECS is supported. For more information, see Fargate on
  9283  	// Amazon ECS (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html)
  9284  	// in the Amazon Elastic Container Service Developer Guide.
  9285  	LaunchType *string `type:"string" enum:"LaunchType"`
  9286  
  9287  	// Use this structure if the Amazon ECS task uses the awsvpc network mode. This
  9288  	// structure specifies the VPC subnets and security groups associated with the
  9289  	// task, and whether a public IP address is to be used. This structure is required
  9290  	// if LaunchType is FARGATE because the awsvpc mode is required for Fargate
  9291  	// tasks.
  9292  	//
  9293  	// If you specify NetworkConfiguration when the target ECS task does not use
  9294  	// the awsvpc network mode, the task fails.
  9295  	NetworkConfiguration *NetworkConfiguration `type:"structure"`
  9296  
  9297  	// An array of placement constraint objects to use for the task. You can specify
  9298  	// up to 10 constraints per task (including constraints in the task definition
  9299  	// and those specified at runtime).
  9300  	PlacementConstraints []*PlacementConstraint `type:"list"`
  9301  
  9302  	// The placement strategy objects to use for the task. You can specify a maximum
  9303  	// of five strategy rules per task.
  9304  	PlacementStrategy []*PlacementStrategy `type:"list"`
  9305  
  9306  	// Specifies the platform version for the task. Specify only the numeric portion
  9307  	// of the platform version, such as 1.1.0.
  9308  	//
  9309  	// This structure is used only if LaunchType is FARGATE. For more information
  9310  	// about valid platform versions, see Fargate Platform Versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html)
  9311  	// in the Amazon Elastic Container Service Developer Guide.
  9312  	PlatformVersion *string `type:"string"`
  9313  
  9314  	// Specifies whether to propagate the tags from the task definition to the task.
  9315  	// If no value is specified, the tags are not propagated. Tags can only be propagated
  9316  	// to the task during task creation. To add tags to a task after task creation,
  9317  	// use the TagResource API action.
  9318  	PropagateTags *string `type:"string" enum:"PropagateTags"`
  9319  
  9320  	// The reference ID to use for the task.
  9321  	ReferenceId *string `type:"string"`
  9322  
  9323  	// The metadata that you apply to the task to help you categorize and organize
  9324  	// them. Each tag consists of a key and an optional value, both of which you
  9325  	// define. To learn more, see RunTask (https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-tags)
  9326  	// in the Amazon ECS API Reference.
  9327  	Tags []*Tag `type:"list"`
  9328  
  9329  	// The number of tasks to create based on TaskDefinition. The default is 1.
  9330  	TaskCount *int64 `min:"1" type:"integer"`
  9331  
  9332  	// The ARN of the task definition to use if the event target is an Amazon ECS
  9333  	// task.
  9334  	//
  9335  	// TaskDefinitionArn is a required field
  9336  	TaskDefinitionArn *string `min:"1" type:"string" required:"true"`
  9337  }
  9338  
  9339  // String returns the string representation.
  9340  //
  9341  // API parameter values that are decorated as "sensitive" in the API will not
  9342  // be included in the string output. The member name will be present, but the
  9343  // value will be replaced with "sensitive".
  9344  func (s EcsParameters) String() string {
  9345  	return awsutil.Prettify(s)
  9346  }
  9347  
  9348  // GoString returns the string representation.
  9349  //
  9350  // API parameter values that are decorated as "sensitive" in the API will not
  9351  // be included in the string output. The member name will be present, but the
  9352  // value will be replaced with "sensitive".
  9353  func (s EcsParameters) GoString() string {
  9354  	return s.String()
  9355  }
  9356  
  9357  // Validate inspects the fields of the type to determine if they are valid.
  9358  func (s *EcsParameters) Validate() error {
  9359  	invalidParams := request.ErrInvalidParams{Context: "EcsParameters"}
  9360  	if s.TaskCount != nil && *s.TaskCount < 1 {
  9361  		invalidParams.Add(request.NewErrParamMinValue("TaskCount", 1))
  9362  	}
  9363  	if s.TaskDefinitionArn == nil {
  9364  		invalidParams.Add(request.NewErrParamRequired("TaskDefinitionArn"))
  9365  	}
  9366  	if s.TaskDefinitionArn != nil && len(*s.TaskDefinitionArn) < 1 {
  9367  		invalidParams.Add(request.NewErrParamMinLen("TaskDefinitionArn", 1))
  9368  	}
  9369  	if s.CapacityProviderStrategy != nil {
  9370  		for i, v := range s.CapacityProviderStrategy {
  9371  			if v == nil {
  9372  				continue
  9373  			}
  9374  			if err := v.Validate(); err != nil {
  9375  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CapacityProviderStrategy", i), err.(request.ErrInvalidParams))
  9376  			}
  9377  		}
  9378  	}
  9379  	if s.NetworkConfiguration != nil {
  9380  		if err := s.NetworkConfiguration.Validate(); err != nil {
  9381  			invalidParams.AddNested("NetworkConfiguration", err.(request.ErrInvalidParams))
  9382  		}
  9383  	}
  9384  	if s.Tags != nil {
  9385  		for i, v := range s.Tags {
  9386  			if v == nil {
  9387  				continue
  9388  			}
  9389  			if err := v.Validate(); err != nil {
  9390  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  9391  			}
  9392  		}
  9393  	}
  9394  
  9395  	if invalidParams.Len() > 0 {
  9396  		return invalidParams
  9397  	}
  9398  	return nil
  9399  }
  9400  
  9401  // SetCapacityProviderStrategy sets the CapacityProviderStrategy field's value.
  9402  func (s *EcsParameters) SetCapacityProviderStrategy(v []*CapacityProviderStrategyItem) *EcsParameters {
  9403  	s.CapacityProviderStrategy = v
  9404  	return s
  9405  }
  9406  
  9407  // SetEnableECSManagedTags sets the EnableECSManagedTags field's value.
  9408  func (s *EcsParameters) SetEnableECSManagedTags(v bool) *EcsParameters {
  9409  	s.EnableECSManagedTags = &v
  9410  	return s
  9411  }
  9412  
  9413  // SetEnableExecuteCommand sets the EnableExecuteCommand field's value.
  9414  func (s *EcsParameters) SetEnableExecuteCommand(v bool) *EcsParameters {
  9415  	s.EnableExecuteCommand = &v
  9416  	return s
  9417  }
  9418  
  9419  // SetGroup sets the Group field's value.
  9420  func (s *EcsParameters) SetGroup(v string) *EcsParameters {
  9421  	s.Group = &v
  9422  	return s
  9423  }
  9424  
  9425  // SetLaunchType sets the LaunchType field's value.
  9426  func (s *EcsParameters) SetLaunchType(v string) *EcsParameters {
  9427  	s.LaunchType = &v
  9428  	return s
  9429  }
  9430  
  9431  // SetNetworkConfiguration sets the NetworkConfiguration field's value.
  9432  func (s *EcsParameters) SetNetworkConfiguration(v *NetworkConfiguration) *EcsParameters {
  9433  	s.NetworkConfiguration = v
  9434  	return s
  9435  }
  9436  
  9437  // SetPlacementConstraints sets the PlacementConstraints field's value.
  9438  func (s *EcsParameters) SetPlacementConstraints(v []*PlacementConstraint) *EcsParameters {
  9439  	s.PlacementConstraints = v
  9440  	return s
  9441  }
  9442  
  9443  // SetPlacementStrategy sets the PlacementStrategy field's value.
  9444  func (s *EcsParameters) SetPlacementStrategy(v []*PlacementStrategy) *EcsParameters {
  9445  	s.PlacementStrategy = v
  9446  	return s
  9447  }
  9448  
  9449  // SetPlatformVersion sets the PlatformVersion field's value.
  9450  func (s *EcsParameters) SetPlatformVersion(v string) *EcsParameters {
  9451  	s.PlatformVersion = &v
  9452  	return s
  9453  }
  9454  
  9455  // SetPropagateTags sets the PropagateTags field's value.
  9456  func (s *EcsParameters) SetPropagateTags(v string) *EcsParameters {
  9457  	s.PropagateTags = &v
  9458  	return s
  9459  }
  9460  
  9461  // SetReferenceId sets the ReferenceId field's value.
  9462  func (s *EcsParameters) SetReferenceId(v string) *EcsParameters {
  9463  	s.ReferenceId = &v
  9464  	return s
  9465  }
  9466  
  9467  // SetTags sets the Tags field's value.
  9468  func (s *EcsParameters) SetTags(v []*Tag) *EcsParameters {
  9469  	s.Tags = v
  9470  	return s
  9471  }
  9472  
  9473  // SetTaskCount sets the TaskCount field's value.
  9474  func (s *EcsParameters) SetTaskCount(v int64) *EcsParameters {
  9475  	s.TaskCount = &v
  9476  	return s
  9477  }
  9478  
  9479  // SetTaskDefinitionArn sets the TaskDefinitionArn field's value.
  9480  func (s *EcsParameters) SetTaskDefinitionArn(v string) *EcsParameters {
  9481  	s.TaskDefinitionArn = &v
  9482  	return s
  9483  }
  9484  
  9485  type EnableRuleInput struct {
  9486  	_ struct{} `type:"structure"`
  9487  
  9488  	// The name or ARN of the event bus associated with the rule. If you omit this,
  9489  	// the default event bus is used.
  9490  	EventBusName *string `min:"1" type:"string"`
  9491  
  9492  	// The name of the rule.
  9493  	//
  9494  	// Name is a required field
  9495  	Name *string `min:"1" type:"string" required:"true"`
  9496  }
  9497  
  9498  // String returns the string representation.
  9499  //
  9500  // API parameter values that are decorated as "sensitive" in the API will not
  9501  // be included in the string output. The member name will be present, but the
  9502  // value will be replaced with "sensitive".
  9503  func (s EnableRuleInput) String() string {
  9504  	return awsutil.Prettify(s)
  9505  }
  9506  
  9507  // GoString returns the string representation.
  9508  //
  9509  // API parameter values that are decorated as "sensitive" in the API will not
  9510  // be included in the string output. The member name will be present, but the
  9511  // value will be replaced with "sensitive".
  9512  func (s EnableRuleInput) GoString() string {
  9513  	return s.String()
  9514  }
  9515  
  9516  // Validate inspects the fields of the type to determine if they are valid.
  9517  func (s *EnableRuleInput) Validate() error {
  9518  	invalidParams := request.ErrInvalidParams{Context: "EnableRuleInput"}
  9519  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
  9520  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
  9521  	}
  9522  	if s.Name == nil {
  9523  		invalidParams.Add(request.NewErrParamRequired("Name"))
  9524  	}
  9525  	if s.Name != nil && len(*s.Name) < 1 {
  9526  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  9527  	}
  9528  
  9529  	if invalidParams.Len() > 0 {
  9530  		return invalidParams
  9531  	}
  9532  	return nil
  9533  }
  9534  
  9535  // SetEventBusName sets the EventBusName field's value.
  9536  func (s *EnableRuleInput) SetEventBusName(v string) *EnableRuleInput {
  9537  	s.EventBusName = &v
  9538  	return s
  9539  }
  9540  
  9541  // SetName sets the Name field's value.
  9542  func (s *EnableRuleInput) SetName(v string) *EnableRuleInput {
  9543  	s.Name = &v
  9544  	return s
  9545  }
  9546  
  9547  type EnableRuleOutput struct {
  9548  	_ struct{} `type:"structure"`
  9549  }
  9550  
  9551  // String returns the string representation.
  9552  //
  9553  // API parameter values that are decorated as "sensitive" in the API will not
  9554  // be included in the string output. The member name will be present, but the
  9555  // value will be replaced with "sensitive".
  9556  func (s EnableRuleOutput) String() string {
  9557  	return awsutil.Prettify(s)
  9558  }
  9559  
  9560  // GoString returns the string representation.
  9561  //
  9562  // API parameter values that are decorated as "sensitive" in the API will not
  9563  // be included in the string output. The member name will be present, but the
  9564  // value will be replaced with "sensitive".
  9565  func (s EnableRuleOutput) GoString() string {
  9566  	return s.String()
  9567  }
  9568  
  9569  // An event bus receives events from a source and routes them to rules associated
  9570  // with that event bus. Your account's default event bus receives events from
  9571  // Amazon Web Services services. A custom event bus can receive events from
  9572  // your custom applications and services. A partner event bus receives events
  9573  // from an event source created by an SaaS partner. These events come from the
  9574  // partners services or applications.
  9575  type EventBus struct {
  9576  	_ struct{} `type:"structure"`
  9577  
  9578  	// The ARN of the event bus.
  9579  	Arn *string `type:"string"`
  9580  
  9581  	// The name of the event bus.
  9582  	Name *string `type:"string"`
  9583  
  9584  	// The permissions policy of the event bus, describing which other Amazon Web
  9585  	// Services accounts can write events to this event bus.
  9586  	Policy *string `type:"string"`
  9587  }
  9588  
  9589  // String returns the string representation.
  9590  //
  9591  // API parameter values that are decorated as "sensitive" in the API will not
  9592  // be included in the string output. The member name will be present, but the
  9593  // value will be replaced with "sensitive".
  9594  func (s EventBus) String() string {
  9595  	return awsutil.Prettify(s)
  9596  }
  9597  
  9598  // GoString returns the string representation.
  9599  //
  9600  // API parameter values that are decorated as "sensitive" in the API will not
  9601  // be included in the string output. The member name will be present, but the
  9602  // value will be replaced with "sensitive".
  9603  func (s EventBus) GoString() string {
  9604  	return s.String()
  9605  }
  9606  
  9607  // SetArn sets the Arn field's value.
  9608  func (s *EventBus) SetArn(v string) *EventBus {
  9609  	s.Arn = &v
  9610  	return s
  9611  }
  9612  
  9613  // SetName sets the Name field's value.
  9614  func (s *EventBus) SetName(v string) *EventBus {
  9615  	s.Name = &v
  9616  	return s
  9617  }
  9618  
  9619  // SetPolicy sets the Policy field's value.
  9620  func (s *EventBus) SetPolicy(v string) *EventBus {
  9621  	s.Policy = &v
  9622  	return s
  9623  }
  9624  
  9625  // A partner event source is created by an SaaS partner. If a customer creates
  9626  // a partner event bus that matches this event source, that Amazon Web Services
  9627  // account can receive events from the partner's applications or services.
  9628  type EventSource struct {
  9629  	_ struct{} `type:"structure"`
  9630  
  9631  	// The ARN of the event source.
  9632  	Arn *string `type:"string"`
  9633  
  9634  	// The name of the partner that created the event source.
  9635  	CreatedBy *string `type:"string"`
  9636  
  9637  	// The date and time the event source was created.
  9638  	CreationTime *time.Time `type:"timestamp"`
  9639  
  9640  	// The date and time that the event source will expire, if the Amazon Web Services
  9641  	// account doesn't create a matching event bus for it.
  9642  	ExpirationTime *time.Time `type:"timestamp"`
  9643  
  9644  	// The name of the event source.
  9645  	Name *string `type:"string"`
  9646  
  9647  	// The state of the event source. If it is ACTIVE, you have already created
  9648  	// a matching event bus for this event source, and that event bus is active.
  9649  	// If it is PENDING, either you haven't yet created a matching event bus, or
  9650  	// that event bus is deactivated. If it is DELETED, you have created a matching
  9651  	// event bus, but the event source has since been deleted.
  9652  	State *string `type:"string" enum:"EventSourceState"`
  9653  }
  9654  
  9655  // String returns the string representation.
  9656  //
  9657  // API parameter values that are decorated as "sensitive" in the API will not
  9658  // be included in the string output. The member name will be present, but the
  9659  // value will be replaced with "sensitive".
  9660  func (s EventSource) String() string {
  9661  	return awsutil.Prettify(s)
  9662  }
  9663  
  9664  // GoString returns the string representation.
  9665  //
  9666  // API parameter values that are decorated as "sensitive" in the API will not
  9667  // be included in the string output. The member name will be present, but the
  9668  // value will be replaced with "sensitive".
  9669  func (s EventSource) GoString() string {
  9670  	return s.String()
  9671  }
  9672  
  9673  // SetArn sets the Arn field's value.
  9674  func (s *EventSource) SetArn(v string) *EventSource {
  9675  	s.Arn = &v
  9676  	return s
  9677  }
  9678  
  9679  // SetCreatedBy sets the CreatedBy field's value.
  9680  func (s *EventSource) SetCreatedBy(v string) *EventSource {
  9681  	s.CreatedBy = &v
  9682  	return s
  9683  }
  9684  
  9685  // SetCreationTime sets the CreationTime field's value.
  9686  func (s *EventSource) SetCreationTime(v time.Time) *EventSource {
  9687  	s.CreationTime = &v
  9688  	return s
  9689  }
  9690  
  9691  // SetExpirationTime sets the ExpirationTime field's value.
  9692  func (s *EventSource) SetExpirationTime(v time.Time) *EventSource {
  9693  	s.ExpirationTime = &v
  9694  	return s
  9695  }
  9696  
  9697  // SetName sets the Name field's value.
  9698  func (s *EventSource) SetName(v string) *EventSource {
  9699  	s.Name = &v
  9700  	return s
  9701  }
  9702  
  9703  // SetState sets the State field's value.
  9704  func (s *EventSource) SetState(v string) *EventSource {
  9705  	s.State = &v
  9706  	return s
  9707  }
  9708  
  9709  // These are custom parameter to be used when the target is an API Gateway REST
  9710  // APIs or EventBridge ApiDestinations. In the latter case, these are merged
  9711  // with any InvocationParameters specified on the Connection, with any values
  9712  // from the Connection taking precedence.
  9713  type HttpParameters struct {
  9714  	_ struct{} `type:"structure"`
  9715  
  9716  	// The headers that need to be sent as part of request invoking the API Gateway
  9717  	// REST API or EventBridge ApiDestination.
  9718  	HeaderParameters map[string]*string `type:"map"`
  9719  
  9720  	// The path parameter values to be used to populate API Gateway REST API or
  9721  	// EventBridge ApiDestination path wildcards ("*").
  9722  	PathParameterValues []*string `type:"list"`
  9723  
  9724  	// The query string keys/values that need to be sent as part of request invoking
  9725  	// the API Gateway REST API or EventBridge ApiDestination.
  9726  	QueryStringParameters map[string]*string `type:"map"`
  9727  }
  9728  
  9729  // String returns the string representation.
  9730  //
  9731  // API parameter values that are decorated as "sensitive" in the API will not
  9732  // be included in the string output. The member name will be present, but the
  9733  // value will be replaced with "sensitive".
  9734  func (s HttpParameters) String() string {
  9735  	return awsutil.Prettify(s)
  9736  }
  9737  
  9738  // GoString returns the string representation.
  9739  //
  9740  // API parameter values that are decorated as "sensitive" in the API will not
  9741  // be included in the string output. The member name will be present, but the
  9742  // value will be replaced with "sensitive".
  9743  func (s HttpParameters) GoString() string {
  9744  	return s.String()
  9745  }
  9746  
  9747  // SetHeaderParameters sets the HeaderParameters field's value.
  9748  func (s *HttpParameters) SetHeaderParameters(v map[string]*string) *HttpParameters {
  9749  	s.HeaderParameters = v
  9750  	return s
  9751  }
  9752  
  9753  // SetPathParameterValues sets the PathParameterValues field's value.
  9754  func (s *HttpParameters) SetPathParameterValues(v []*string) *HttpParameters {
  9755  	s.PathParameterValues = v
  9756  	return s
  9757  }
  9758  
  9759  // SetQueryStringParameters sets the QueryStringParameters field's value.
  9760  func (s *HttpParameters) SetQueryStringParameters(v map[string]*string) *HttpParameters {
  9761  	s.QueryStringParameters = v
  9762  	return s
  9763  }
  9764  
  9765  // An error occurred because a replay can be canceled only when the state is
  9766  // Running or Starting.
  9767  type IllegalStatusException struct {
  9768  	_            struct{}                  `type:"structure"`
  9769  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  9770  
  9771  	Message_ *string `locationName:"message" type:"string"`
  9772  }
  9773  
  9774  // String returns the string representation.
  9775  //
  9776  // API parameter values that are decorated as "sensitive" in the API will not
  9777  // be included in the string output. The member name will be present, but the
  9778  // value will be replaced with "sensitive".
  9779  func (s IllegalStatusException) String() string {
  9780  	return awsutil.Prettify(s)
  9781  }
  9782  
  9783  // GoString returns the string representation.
  9784  //
  9785  // API parameter values that are decorated as "sensitive" in the API will not
  9786  // be included in the string output. The member name will be present, but the
  9787  // value will be replaced with "sensitive".
  9788  func (s IllegalStatusException) GoString() string {
  9789  	return s.String()
  9790  }
  9791  
  9792  func newErrorIllegalStatusException(v protocol.ResponseMetadata) error {
  9793  	return &IllegalStatusException{
  9794  		RespMetadata: v,
  9795  	}
  9796  }
  9797  
  9798  // Code returns the exception type name.
  9799  func (s *IllegalStatusException) Code() string {
  9800  	return "IllegalStatusException"
  9801  }
  9802  
  9803  // Message returns the exception's message.
  9804  func (s *IllegalStatusException) Message() string {
  9805  	if s.Message_ != nil {
  9806  		return *s.Message_
  9807  	}
  9808  	return ""
  9809  }
  9810  
  9811  // OrigErr always returns nil, satisfies awserr.Error interface.
  9812  func (s *IllegalStatusException) OrigErr() error {
  9813  	return nil
  9814  }
  9815  
  9816  func (s *IllegalStatusException) Error() string {
  9817  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  9818  }
  9819  
  9820  // Status code returns the HTTP status code for the request's response error.
  9821  func (s *IllegalStatusException) StatusCode() int {
  9822  	return s.RespMetadata.StatusCode
  9823  }
  9824  
  9825  // RequestID returns the service's response RequestID for request.
  9826  func (s *IllegalStatusException) RequestID() string {
  9827  	return s.RespMetadata.RequestID
  9828  }
  9829  
  9830  // Contains the parameters needed for you to provide custom input to a target
  9831  // based on one or more pieces of data extracted from the event.
  9832  type InputTransformer struct {
  9833  	_ struct{} `type:"structure"`
  9834  
  9835  	// Map of JSON paths to be extracted from the event. You can then insert these
  9836  	// in the template in InputTemplate to produce the output you want to be sent
  9837  	// to the target.
  9838  	//
  9839  	// InputPathsMap is an array key-value pairs, where each value is a valid JSON
  9840  	// path. You can have as many as 100 key-value pairs. You must use JSON dot
  9841  	// notation, not bracket notation.
  9842  	//
  9843  	// The keys cannot start with "Amazon Web Services."
  9844  	InputPathsMap map[string]*string `type:"map"`
  9845  
  9846  	// Input template where you specify placeholders that will be filled with the
  9847  	// values of the keys from InputPathsMap to customize the data sent to the target.
  9848  	// Enclose each InputPathsMaps value in brackets: <value> The InputTemplate
  9849  	// must be valid JSON.
  9850  	//
  9851  	// If InputTemplate is a JSON object (surrounded by curly braces), the following
  9852  	// restrictions apply:
  9853  	//
  9854  	//    * The placeholder cannot be used as an object key.
  9855  	//
  9856  	// The following example shows the syntax for using InputPathsMap and InputTemplate.
  9857  	//
  9858  	// "InputTransformer":
  9859  	//
  9860  	// {
  9861  	//
  9862  	// "InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},
  9863  	//
  9864  	// "InputTemplate": "<instance> is in state <status>"
  9865  	//
  9866  	// }
  9867  	//
  9868  	// To have the InputTemplate include quote marks within a JSON string, escape
  9869  	// each quote marks with a slash, as in the following example:
  9870  	//
  9871  	// "InputTransformer":
  9872  	//
  9873  	// {
  9874  	//
  9875  	// "InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},
  9876  	//
  9877  	// "InputTemplate": "<instance> is in state \"<status>\""
  9878  	//
  9879  	// }
  9880  	//
  9881  	// The InputTemplate can also be valid JSON with varibles in quotes or out,
  9882  	// as in the following example:
  9883  	//
  9884  	// "InputTransformer":
  9885  	//
  9886  	// {
  9887  	//
  9888  	// "InputPathsMap": {"instance": "$.detail.instance","status": "$.detail.status"},
  9889  	//
  9890  	// "InputTemplate": '{"myInstance": <instance>,"myStatus": "<instance> is in
  9891  	// state \"<status>\""}'
  9892  	//
  9893  	// }
  9894  	//
  9895  	// InputTemplate is a required field
  9896  	InputTemplate *string `min:"1" type:"string" required:"true"`
  9897  }
  9898  
  9899  // String returns the string representation.
  9900  //
  9901  // API parameter values that are decorated as "sensitive" in the API will not
  9902  // be included in the string output. The member name will be present, but the
  9903  // value will be replaced with "sensitive".
  9904  func (s InputTransformer) String() string {
  9905  	return awsutil.Prettify(s)
  9906  }
  9907  
  9908  // GoString returns the string representation.
  9909  //
  9910  // API parameter values that are decorated as "sensitive" in the API will not
  9911  // be included in the string output. The member name will be present, but the
  9912  // value will be replaced with "sensitive".
  9913  func (s InputTransformer) GoString() string {
  9914  	return s.String()
  9915  }
  9916  
  9917  // Validate inspects the fields of the type to determine if they are valid.
  9918  func (s *InputTransformer) Validate() error {
  9919  	invalidParams := request.ErrInvalidParams{Context: "InputTransformer"}
  9920  	if s.InputTemplate == nil {
  9921  		invalidParams.Add(request.NewErrParamRequired("InputTemplate"))
  9922  	}
  9923  	if s.InputTemplate != nil && len(*s.InputTemplate) < 1 {
  9924  		invalidParams.Add(request.NewErrParamMinLen("InputTemplate", 1))
  9925  	}
  9926  
  9927  	if invalidParams.Len() > 0 {
  9928  		return invalidParams
  9929  	}
  9930  	return nil
  9931  }
  9932  
  9933  // SetInputPathsMap sets the InputPathsMap field's value.
  9934  func (s *InputTransformer) SetInputPathsMap(v map[string]*string) *InputTransformer {
  9935  	s.InputPathsMap = v
  9936  	return s
  9937  }
  9938  
  9939  // SetInputTemplate sets the InputTemplate field's value.
  9940  func (s *InputTransformer) SetInputTemplate(v string) *InputTransformer {
  9941  	s.InputTemplate = &v
  9942  	return s
  9943  }
  9944  
  9945  // This exception occurs due to unexpected causes.
  9946  type InternalException struct {
  9947  	_            struct{}                  `type:"structure"`
  9948  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  9949  
  9950  	Message_ *string `locationName:"message" type:"string"`
  9951  }
  9952  
  9953  // String returns the string representation.
  9954  //
  9955  // API parameter values that are decorated as "sensitive" in the API will not
  9956  // be included in the string output. The member name will be present, but the
  9957  // value will be replaced with "sensitive".
  9958  func (s InternalException) String() string {
  9959  	return awsutil.Prettify(s)
  9960  }
  9961  
  9962  // GoString returns the string representation.
  9963  //
  9964  // API parameter values that are decorated as "sensitive" in the API will not
  9965  // be included in the string output. The member name will be present, but the
  9966  // value will be replaced with "sensitive".
  9967  func (s InternalException) GoString() string {
  9968  	return s.String()
  9969  }
  9970  
  9971  func newErrorInternalException(v protocol.ResponseMetadata) error {
  9972  	return &InternalException{
  9973  		RespMetadata: v,
  9974  	}
  9975  }
  9976  
  9977  // Code returns the exception type name.
  9978  func (s *InternalException) Code() string {
  9979  	return "InternalException"
  9980  }
  9981  
  9982  // Message returns the exception's message.
  9983  func (s *InternalException) Message() string {
  9984  	if s.Message_ != nil {
  9985  		return *s.Message_
  9986  	}
  9987  	return ""
  9988  }
  9989  
  9990  // OrigErr always returns nil, satisfies awserr.Error interface.
  9991  func (s *InternalException) OrigErr() error {
  9992  	return nil
  9993  }
  9994  
  9995  func (s *InternalException) Error() string {
  9996  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  9997  }
  9998  
  9999  // Status code returns the HTTP status code for the request's response error.
 10000  func (s *InternalException) StatusCode() int {
 10001  	return s.RespMetadata.StatusCode
 10002  }
 10003  
 10004  // RequestID returns the service's response RequestID for request.
 10005  func (s *InternalException) RequestID() string {
 10006  	return s.RespMetadata.RequestID
 10007  }
 10008  
 10009  // The event pattern is not valid.
 10010  type InvalidEventPatternException struct {
 10011  	_            struct{}                  `type:"structure"`
 10012  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 10013  
 10014  	Message_ *string `locationName:"message" type:"string"`
 10015  }
 10016  
 10017  // String returns the string representation.
 10018  //
 10019  // API parameter values that are decorated as "sensitive" in the API will not
 10020  // be included in the string output. The member name will be present, but the
 10021  // value will be replaced with "sensitive".
 10022  func (s InvalidEventPatternException) String() string {
 10023  	return awsutil.Prettify(s)
 10024  }
 10025  
 10026  // GoString returns the string representation.
 10027  //
 10028  // API parameter values that are decorated as "sensitive" in the API will not
 10029  // be included in the string output. The member name will be present, but the
 10030  // value will be replaced with "sensitive".
 10031  func (s InvalidEventPatternException) GoString() string {
 10032  	return s.String()
 10033  }
 10034  
 10035  func newErrorInvalidEventPatternException(v protocol.ResponseMetadata) error {
 10036  	return &InvalidEventPatternException{
 10037  		RespMetadata: v,
 10038  	}
 10039  }
 10040  
 10041  // Code returns the exception type name.
 10042  func (s *InvalidEventPatternException) Code() string {
 10043  	return "InvalidEventPatternException"
 10044  }
 10045  
 10046  // Message returns the exception's message.
 10047  func (s *InvalidEventPatternException) Message() string {
 10048  	if s.Message_ != nil {
 10049  		return *s.Message_
 10050  	}
 10051  	return ""
 10052  }
 10053  
 10054  // OrigErr always returns nil, satisfies awserr.Error interface.
 10055  func (s *InvalidEventPatternException) OrigErr() error {
 10056  	return nil
 10057  }
 10058  
 10059  func (s *InvalidEventPatternException) Error() string {
 10060  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 10061  }
 10062  
 10063  // Status code returns the HTTP status code for the request's response error.
 10064  func (s *InvalidEventPatternException) StatusCode() int {
 10065  	return s.RespMetadata.StatusCode
 10066  }
 10067  
 10068  // RequestID returns the service's response RequestID for request.
 10069  func (s *InvalidEventPatternException) RequestID() string {
 10070  	return s.RespMetadata.RequestID
 10071  }
 10072  
 10073  // The specified state is not a valid state for an event source.
 10074  type InvalidStateException struct {
 10075  	_            struct{}                  `type:"structure"`
 10076  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 10077  
 10078  	Message_ *string `locationName:"message" type:"string"`
 10079  }
 10080  
 10081  // String returns the string representation.
 10082  //
 10083  // API parameter values that are decorated as "sensitive" in the API will not
 10084  // be included in the string output. The member name will be present, but the
 10085  // value will be replaced with "sensitive".
 10086  func (s InvalidStateException) String() string {
 10087  	return awsutil.Prettify(s)
 10088  }
 10089  
 10090  // GoString returns the string representation.
 10091  //
 10092  // API parameter values that are decorated as "sensitive" in the API will not
 10093  // be included in the string output. The member name will be present, but the
 10094  // value will be replaced with "sensitive".
 10095  func (s InvalidStateException) GoString() string {
 10096  	return s.String()
 10097  }
 10098  
 10099  func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
 10100  	return &InvalidStateException{
 10101  		RespMetadata: v,
 10102  	}
 10103  }
 10104  
 10105  // Code returns the exception type name.
 10106  func (s *InvalidStateException) Code() string {
 10107  	return "InvalidStateException"
 10108  }
 10109  
 10110  // Message returns the exception's message.
 10111  func (s *InvalidStateException) Message() string {
 10112  	if s.Message_ != nil {
 10113  		return *s.Message_
 10114  	}
 10115  	return ""
 10116  }
 10117  
 10118  // OrigErr always returns nil, satisfies awserr.Error interface.
 10119  func (s *InvalidStateException) OrigErr() error {
 10120  	return nil
 10121  }
 10122  
 10123  func (s *InvalidStateException) Error() string {
 10124  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 10125  }
 10126  
 10127  // Status code returns the HTTP status code for the request's response error.
 10128  func (s *InvalidStateException) StatusCode() int {
 10129  	return s.RespMetadata.StatusCode
 10130  }
 10131  
 10132  // RequestID returns the service's response RequestID for request.
 10133  func (s *InvalidStateException) RequestID() string {
 10134  	return s.RespMetadata.RequestID
 10135  }
 10136  
 10137  // This object enables you to specify a JSON path to extract from the event
 10138  // and use as the partition key for the Amazon Kinesis data stream, so that
 10139  // you can control the shard to which the event goes. If you do not include
 10140  // this parameter, the default is to use the eventId as the partition key.
 10141  type KinesisParameters struct {
 10142  	_ struct{} `type:"structure"`
 10143  
 10144  	// The JSON path to be extracted from the event and used as the partition key.
 10145  	// For more information, see Amazon Kinesis Streams Key Concepts (https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key)
 10146  	// in the Amazon Kinesis Streams Developer Guide.
 10147  	//
 10148  	// PartitionKeyPath is a required field
 10149  	PartitionKeyPath *string `type:"string" required:"true"`
 10150  }
 10151  
 10152  // String returns the string representation.
 10153  //
 10154  // API parameter values that are decorated as "sensitive" in the API will not
 10155  // be included in the string output. The member name will be present, but the
 10156  // value will be replaced with "sensitive".
 10157  func (s KinesisParameters) String() string {
 10158  	return awsutil.Prettify(s)
 10159  }
 10160  
 10161  // GoString returns the string representation.
 10162  //
 10163  // API parameter values that are decorated as "sensitive" in the API will not
 10164  // be included in the string output. The member name will be present, but the
 10165  // value will be replaced with "sensitive".
 10166  func (s KinesisParameters) GoString() string {
 10167  	return s.String()
 10168  }
 10169  
 10170  // Validate inspects the fields of the type to determine if they are valid.
 10171  func (s *KinesisParameters) Validate() error {
 10172  	invalidParams := request.ErrInvalidParams{Context: "KinesisParameters"}
 10173  	if s.PartitionKeyPath == nil {
 10174  		invalidParams.Add(request.NewErrParamRequired("PartitionKeyPath"))
 10175  	}
 10176  
 10177  	if invalidParams.Len() > 0 {
 10178  		return invalidParams
 10179  	}
 10180  	return nil
 10181  }
 10182  
 10183  // SetPartitionKeyPath sets the PartitionKeyPath field's value.
 10184  func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters {
 10185  	s.PartitionKeyPath = &v
 10186  	return s
 10187  }
 10188  
 10189  // The request failed because it attempted to create resource beyond the allowed
 10190  // service quota.
 10191  type LimitExceededException struct {
 10192  	_            struct{}                  `type:"structure"`
 10193  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 10194  
 10195  	Message_ *string `locationName:"message" type:"string"`
 10196  }
 10197  
 10198  // String returns the string representation.
 10199  //
 10200  // API parameter values that are decorated as "sensitive" in the API will not
 10201  // be included in the string output. The member name will be present, but the
 10202  // value will be replaced with "sensitive".
 10203  func (s LimitExceededException) String() string {
 10204  	return awsutil.Prettify(s)
 10205  }
 10206  
 10207  // GoString returns the string representation.
 10208  //
 10209  // API parameter values that are decorated as "sensitive" in the API will not
 10210  // be included in the string output. The member name will be present, but the
 10211  // value will be replaced with "sensitive".
 10212  func (s LimitExceededException) GoString() string {
 10213  	return s.String()
 10214  }
 10215  
 10216  func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
 10217  	return &LimitExceededException{
 10218  		RespMetadata: v,
 10219  	}
 10220  }
 10221  
 10222  // Code returns the exception type name.
 10223  func (s *LimitExceededException) Code() string {
 10224  	return "LimitExceededException"
 10225  }
 10226  
 10227  // Message returns the exception's message.
 10228  func (s *LimitExceededException) Message() string {
 10229  	if s.Message_ != nil {
 10230  		return *s.Message_
 10231  	}
 10232  	return ""
 10233  }
 10234  
 10235  // OrigErr always returns nil, satisfies awserr.Error interface.
 10236  func (s *LimitExceededException) OrigErr() error {
 10237  	return nil
 10238  }
 10239  
 10240  func (s *LimitExceededException) Error() string {
 10241  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 10242  }
 10243  
 10244  // Status code returns the HTTP status code for the request's response error.
 10245  func (s *LimitExceededException) StatusCode() int {
 10246  	return s.RespMetadata.StatusCode
 10247  }
 10248  
 10249  // RequestID returns the service's response RequestID for request.
 10250  func (s *LimitExceededException) RequestID() string {
 10251  	return s.RespMetadata.RequestID
 10252  }
 10253  
 10254  type ListApiDestinationsInput struct {
 10255  	_ struct{} `type:"structure"`
 10256  
 10257  	// The ARN of the connection specified for the API destination.
 10258  	ConnectionArn *string `min:"1" type:"string"`
 10259  
 10260  	// The maximum number of API destinations to include in the response.
 10261  	Limit *int64 `min:"1" type:"integer"`
 10262  
 10263  	// A name prefix to filter results returned. Only API destinations with a name
 10264  	// that starts with the prefix are returned.
 10265  	NamePrefix *string `min:"1" type:"string"`
 10266  
 10267  	// The token returned by a previous call to retrieve the next set of results.
 10268  	NextToken *string `min:"1" type:"string"`
 10269  }
 10270  
 10271  // String returns the string representation.
 10272  //
 10273  // API parameter values that are decorated as "sensitive" in the API will not
 10274  // be included in the string output. The member name will be present, but the
 10275  // value will be replaced with "sensitive".
 10276  func (s ListApiDestinationsInput) String() string {
 10277  	return awsutil.Prettify(s)
 10278  }
 10279  
 10280  // GoString returns the string representation.
 10281  //
 10282  // API parameter values that are decorated as "sensitive" in the API will not
 10283  // be included in the string output. The member name will be present, but the
 10284  // value will be replaced with "sensitive".
 10285  func (s ListApiDestinationsInput) GoString() string {
 10286  	return s.String()
 10287  }
 10288  
 10289  // Validate inspects the fields of the type to determine if they are valid.
 10290  func (s *ListApiDestinationsInput) Validate() error {
 10291  	invalidParams := request.ErrInvalidParams{Context: "ListApiDestinationsInput"}
 10292  	if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 {
 10293  		invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1))
 10294  	}
 10295  	if s.Limit != nil && *s.Limit < 1 {
 10296  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 10297  	}
 10298  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 10299  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 10300  	}
 10301  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 10302  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 10303  	}
 10304  
 10305  	if invalidParams.Len() > 0 {
 10306  		return invalidParams
 10307  	}
 10308  	return nil
 10309  }
 10310  
 10311  // SetConnectionArn sets the ConnectionArn field's value.
 10312  func (s *ListApiDestinationsInput) SetConnectionArn(v string) *ListApiDestinationsInput {
 10313  	s.ConnectionArn = &v
 10314  	return s
 10315  }
 10316  
 10317  // SetLimit sets the Limit field's value.
 10318  func (s *ListApiDestinationsInput) SetLimit(v int64) *ListApiDestinationsInput {
 10319  	s.Limit = &v
 10320  	return s
 10321  }
 10322  
 10323  // SetNamePrefix sets the NamePrefix field's value.
 10324  func (s *ListApiDestinationsInput) SetNamePrefix(v string) *ListApiDestinationsInput {
 10325  	s.NamePrefix = &v
 10326  	return s
 10327  }
 10328  
 10329  // SetNextToken sets the NextToken field's value.
 10330  func (s *ListApiDestinationsInput) SetNextToken(v string) *ListApiDestinationsInput {
 10331  	s.NextToken = &v
 10332  	return s
 10333  }
 10334  
 10335  type ListApiDestinationsOutput struct {
 10336  	_ struct{} `type:"structure"`
 10337  
 10338  	// An array of ApiDestination objects that include information about an API
 10339  	// destination.
 10340  	ApiDestinations []*ApiDestination `type:"list"`
 10341  
 10342  	// A token you can use in a subsequent request to retrieve the next set of results.
 10343  	NextToken *string `min:"1" type:"string"`
 10344  }
 10345  
 10346  // String returns the string representation.
 10347  //
 10348  // API parameter values that are decorated as "sensitive" in the API will not
 10349  // be included in the string output. The member name will be present, but the
 10350  // value will be replaced with "sensitive".
 10351  func (s ListApiDestinationsOutput) String() string {
 10352  	return awsutil.Prettify(s)
 10353  }
 10354  
 10355  // GoString returns the string representation.
 10356  //
 10357  // API parameter values that are decorated as "sensitive" in the API will not
 10358  // be included in the string output. The member name will be present, but the
 10359  // value will be replaced with "sensitive".
 10360  func (s ListApiDestinationsOutput) GoString() string {
 10361  	return s.String()
 10362  }
 10363  
 10364  // SetApiDestinations sets the ApiDestinations field's value.
 10365  func (s *ListApiDestinationsOutput) SetApiDestinations(v []*ApiDestination) *ListApiDestinationsOutput {
 10366  	s.ApiDestinations = v
 10367  	return s
 10368  }
 10369  
 10370  // SetNextToken sets the NextToken field's value.
 10371  func (s *ListApiDestinationsOutput) SetNextToken(v string) *ListApiDestinationsOutput {
 10372  	s.NextToken = &v
 10373  	return s
 10374  }
 10375  
 10376  type ListArchivesInput struct {
 10377  	_ struct{} `type:"structure"`
 10378  
 10379  	// The ARN of the event source associated with the archive.
 10380  	EventSourceArn *string `min:"1" type:"string"`
 10381  
 10382  	// The maximum number of results to return.
 10383  	Limit *int64 `min:"1" type:"integer"`
 10384  
 10385  	// A name prefix to filter the archives returned. Only archives with name that
 10386  	// match the prefix are returned.
 10387  	NamePrefix *string `min:"1" type:"string"`
 10388  
 10389  	// The token returned by a previous call to retrieve the next set of results.
 10390  	NextToken *string `min:"1" type:"string"`
 10391  
 10392  	// The state of the archive.
 10393  	State *string `type:"string" enum:"ArchiveState"`
 10394  }
 10395  
 10396  // String returns the string representation.
 10397  //
 10398  // API parameter values that are decorated as "sensitive" in the API will not
 10399  // be included in the string output. The member name will be present, but the
 10400  // value will be replaced with "sensitive".
 10401  func (s ListArchivesInput) String() string {
 10402  	return awsutil.Prettify(s)
 10403  }
 10404  
 10405  // GoString returns the string representation.
 10406  //
 10407  // API parameter values that are decorated as "sensitive" in the API will not
 10408  // be included in the string output. The member name will be present, but the
 10409  // value will be replaced with "sensitive".
 10410  func (s ListArchivesInput) GoString() string {
 10411  	return s.String()
 10412  }
 10413  
 10414  // Validate inspects the fields of the type to determine if they are valid.
 10415  func (s *ListArchivesInput) Validate() error {
 10416  	invalidParams := request.ErrInvalidParams{Context: "ListArchivesInput"}
 10417  	if s.EventSourceArn != nil && len(*s.EventSourceArn) < 1 {
 10418  		invalidParams.Add(request.NewErrParamMinLen("EventSourceArn", 1))
 10419  	}
 10420  	if s.Limit != nil && *s.Limit < 1 {
 10421  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 10422  	}
 10423  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 10424  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 10425  	}
 10426  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 10427  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 10428  	}
 10429  
 10430  	if invalidParams.Len() > 0 {
 10431  		return invalidParams
 10432  	}
 10433  	return nil
 10434  }
 10435  
 10436  // SetEventSourceArn sets the EventSourceArn field's value.
 10437  func (s *ListArchivesInput) SetEventSourceArn(v string) *ListArchivesInput {
 10438  	s.EventSourceArn = &v
 10439  	return s
 10440  }
 10441  
 10442  // SetLimit sets the Limit field's value.
 10443  func (s *ListArchivesInput) SetLimit(v int64) *ListArchivesInput {
 10444  	s.Limit = &v
 10445  	return s
 10446  }
 10447  
 10448  // SetNamePrefix sets the NamePrefix field's value.
 10449  func (s *ListArchivesInput) SetNamePrefix(v string) *ListArchivesInput {
 10450  	s.NamePrefix = &v
 10451  	return s
 10452  }
 10453  
 10454  // SetNextToken sets the NextToken field's value.
 10455  func (s *ListArchivesInput) SetNextToken(v string) *ListArchivesInput {
 10456  	s.NextToken = &v
 10457  	return s
 10458  }
 10459  
 10460  // SetState sets the State field's value.
 10461  func (s *ListArchivesInput) SetState(v string) *ListArchivesInput {
 10462  	s.State = &v
 10463  	return s
 10464  }
 10465  
 10466  type ListArchivesOutput struct {
 10467  	_ struct{} `type:"structure"`
 10468  
 10469  	// An array of Archive objects that include details about an archive.
 10470  	Archives []*Archive `type:"list"`
 10471  
 10472  	// The token returned by a previous call to retrieve the next set of results.
 10473  	NextToken *string `min:"1" type:"string"`
 10474  }
 10475  
 10476  // String returns the string representation.
 10477  //
 10478  // API parameter values that are decorated as "sensitive" in the API will not
 10479  // be included in the string output. The member name will be present, but the
 10480  // value will be replaced with "sensitive".
 10481  func (s ListArchivesOutput) String() string {
 10482  	return awsutil.Prettify(s)
 10483  }
 10484  
 10485  // GoString returns the string representation.
 10486  //
 10487  // API parameter values that are decorated as "sensitive" in the API will not
 10488  // be included in the string output. The member name will be present, but the
 10489  // value will be replaced with "sensitive".
 10490  func (s ListArchivesOutput) GoString() string {
 10491  	return s.String()
 10492  }
 10493  
 10494  // SetArchives sets the Archives field's value.
 10495  func (s *ListArchivesOutput) SetArchives(v []*Archive) *ListArchivesOutput {
 10496  	s.Archives = v
 10497  	return s
 10498  }
 10499  
 10500  // SetNextToken sets the NextToken field's value.
 10501  func (s *ListArchivesOutput) SetNextToken(v string) *ListArchivesOutput {
 10502  	s.NextToken = &v
 10503  	return s
 10504  }
 10505  
 10506  type ListConnectionsInput struct {
 10507  	_ struct{} `type:"structure"`
 10508  
 10509  	// The state of the connection.
 10510  	ConnectionState *string `type:"string" enum:"ConnectionState"`
 10511  
 10512  	// The maximum number of connections to return.
 10513  	Limit *int64 `min:"1" type:"integer"`
 10514  
 10515  	// A name prefix to filter results returned. Only connections with a name that
 10516  	// starts with the prefix are returned.
 10517  	NamePrefix *string `min:"1" type:"string"`
 10518  
 10519  	// The token returned by a previous call to retrieve the next set of results.
 10520  	NextToken *string `min:"1" type:"string"`
 10521  }
 10522  
 10523  // String returns the string representation.
 10524  //
 10525  // API parameter values that are decorated as "sensitive" in the API will not
 10526  // be included in the string output. The member name will be present, but the
 10527  // value will be replaced with "sensitive".
 10528  func (s ListConnectionsInput) String() string {
 10529  	return awsutil.Prettify(s)
 10530  }
 10531  
 10532  // GoString returns the string representation.
 10533  //
 10534  // API parameter values that are decorated as "sensitive" in the API will not
 10535  // be included in the string output. The member name will be present, but the
 10536  // value will be replaced with "sensitive".
 10537  func (s ListConnectionsInput) GoString() string {
 10538  	return s.String()
 10539  }
 10540  
 10541  // Validate inspects the fields of the type to determine if they are valid.
 10542  func (s *ListConnectionsInput) Validate() error {
 10543  	invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"}
 10544  	if s.Limit != nil && *s.Limit < 1 {
 10545  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 10546  	}
 10547  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 10548  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 10549  	}
 10550  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 10551  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 10552  	}
 10553  
 10554  	if invalidParams.Len() > 0 {
 10555  		return invalidParams
 10556  	}
 10557  	return nil
 10558  }
 10559  
 10560  // SetConnectionState sets the ConnectionState field's value.
 10561  func (s *ListConnectionsInput) SetConnectionState(v string) *ListConnectionsInput {
 10562  	s.ConnectionState = &v
 10563  	return s
 10564  }
 10565  
 10566  // SetLimit sets the Limit field's value.
 10567  func (s *ListConnectionsInput) SetLimit(v int64) *ListConnectionsInput {
 10568  	s.Limit = &v
 10569  	return s
 10570  }
 10571  
 10572  // SetNamePrefix sets the NamePrefix field's value.
 10573  func (s *ListConnectionsInput) SetNamePrefix(v string) *ListConnectionsInput {
 10574  	s.NamePrefix = &v
 10575  	return s
 10576  }
 10577  
 10578  // SetNextToken sets the NextToken field's value.
 10579  func (s *ListConnectionsInput) SetNextToken(v string) *ListConnectionsInput {
 10580  	s.NextToken = &v
 10581  	return s
 10582  }
 10583  
 10584  type ListConnectionsOutput struct {
 10585  	_ struct{} `type:"structure"`
 10586  
 10587  	// An array of connections objects that include details about the connections.
 10588  	Connections []*Connection `type:"list"`
 10589  
 10590  	// A token you can use in a subsequent request to retrieve the next set of results.
 10591  	NextToken *string `min:"1" type:"string"`
 10592  }
 10593  
 10594  // String returns the string representation.
 10595  //
 10596  // API parameter values that are decorated as "sensitive" in the API will not
 10597  // be included in the string output. The member name will be present, but the
 10598  // value will be replaced with "sensitive".
 10599  func (s ListConnectionsOutput) String() string {
 10600  	return awsutil.Prettify(s)
 10601  }
 10602  
 10603  // GoString returns the string representation.
 10604  //
 10605  // API parameter values that are decorated as "sensitive" in the API will not
 10606  // be included in the string output. The member name will be present, but the
 10607  // value will be replaced with "sensitive".
 10608  func (s ListConnectionsOutput) GoString() string {
 10609  	return s.String()
 10610  }
 10611  
 10612  // SetConnections sets the Connections field's value.
 10613  func (s *ListConnectionsOutput) SetConnections(v []*Connection) *ListConnectionsOutput {
 10614  	s.Connections = v
 10615  	return s
 10616  }
 10617  
 10618  // SetNextToken sets the NextToken field's value.
 10619  func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput {
 10620  	s.NextToken = &v
 10621  	return s
 10622  }
 10623  
 10624  type ListEventBusesInput struct {
 10625  	_ struct{} `type:"structure"`
 10626  
 10627  	// Specifying this limits the number of results returned by this operation.
 10628  	// The operation also returns a NextToken which you can use in a subsequent
 10629  	// operation to retrieve the next set of results.
 10630  	Limit *int64 `min:"1" type:"integer"`
 10631  
 10632  	// Specifying this limits the results to only those event buses with names that
 10633  	// start with the specified prefix.
 10634  	NamePrefix *string `min:"1" type:"string"`
 10635  
 10636  	// The token returned by a previous call to retrieve the next set of results.
 10637  	NextToken *string `min:"1" type:"string"`
 10638  }
 10639  
 10640  // String returns the string representation.
 10641  //
 10642  // API parameter values that are decorated as "sensitive" in the API will not
 10643  // be included in the string output. The member name will be present, but the
 10644  // value will be replaced with "sensitive".
 10645  func (s ListEventBusesInput) String() string {
 10646  	return awsutil.Prettify(s)
 10647  }
 10648  
 10649  // GoString returns the string representation.
 10650  //
 10651  // API parameter values that are decorated as "sensitive" in the API will not
 10652  // be included in the string output. The member name will be present, but the
 10653  // value will be replaced with "sensitive".
 10654  func (s ListEventBusesInput) GoString() string {
 10655  	return s.String()
 10656  }
 10657  
 10658  // Validate inspects the fields of the type to determine if they are valid.
 10659  func (s *ListEventBusesInput) Validate() error {
 10660  	invalidParams := request.ErrInvalidParams{Context: "ListEventBusesInput"}
 10661  	if s.Limit != nil && *s.Limit < 1 {
 10662  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 10663  	}
 10664  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 10665  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 10666  	}
 10667  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 10668  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 10669  	}
 10670  
 10671  	if invalidParams.Len() > 0 {
 10672  		return invalidParams
 10673  	}
 10674  	return nil
 10675  }
 10676  
 10677  // SetLimit sets the Limit field's value.
 10678  func (s *ListEventBusesInput) SetLimit(v int64) *ListEventBusesInput {
 10679  	s.Limit = &v
 10680  	return s
 10681  }
 10682  
 10683  // SetNamePrefix sets the NamePrefix field's value.
 10684  func (s *ListEventBusesInput) SetNamePrefix(v string) *ListEventBusesInput {
 10685  	s.NamePrefix = &v
 10686  	return s
 10687  }
 10688  
 10689  // SetNextToken sets the NextToken field's value.
 10690  func (s *ListEventBusesInput) SetNextToken(v string) *ListEventBusesInput {
 10691  	s.NextToken = &v
 10692  	return s
 10693  }
 10694  
 10695  type ListEventBusesOutput struct {
 10696  	_ struct{} `type:"structure"`
 10697  
 10698  	// This list of event buses.
 10699  	EventBuses []*EventBus `type:"list"`
 10700  
 10701  	// A token you can use in a subsequent operation to retrieve the next set of
 10702  	// results.
 10703  	NextToken *string `min:"1" type:"string"`
 10704  }
 10705  
 10706  // String returns the string representation.
 10707  //
 10708  // API parameter values that are decorated as "sensitive" in the API will not
 10709  // be included in the string output. The member name will be present, but the
 10710  // value will be replaced with "sensitive".
 10711  func (s ListEventBusesOutput) String() string {
 10712  	return awsutil.Prettify(s)
 10713  }
 10714  
 10715  // GoString returns the string representation.
 10716  //
 10717  // API parameter values that are decorated as "sensitive" in the API will not
 10718  // be included in the string output. The member name will be present, but the
 10719  // value will be replaced with "sensitive".
 10720  func (s ListEventBusesOutput) GoString() string {
 10721  	return s.String()
 10722  }
 10723  
 10724  // SetEventBuses sets the EventBuses field's value.
 10725  func (s *ListEventBusesOutput) SetEventBuses(v []*EventBus) *ListEventBusesOutput {
 10726  	s.EventBuses = v
 10727  	return s
 10728  }
 10729  
 10730  // SetNextToken sets the NextToken field's value.
 10731  func (s *ListEventBusesOutput) SetNextToken(v string) *ListEventBusesOutput {
 10732  	s.NextToken = &v
 10733  	return s
 10734  }
 10735  
 10736  type ListEventSourcesInput struct {
 10737  	_ struct{} `type:"structure"`
 10738  
 10739  	// Specifying this limits the number of results returned by this operation.
 10740  	// The operation also returns a NextToken which you can use in a subsequent
 10741  	// operation to retrieve the next set of results.
 10742  	Limit *int64 `min:"1" type:"integer"`
 10743  
 10744  	// Specifying this limits the results to only those partner event sources with
 10745  	// names that start with the specified prefix.
 10746  	NamePrefix *string `min:"1" type:"string"`
 10747  
 10748  	// The token returned by a previous call to retrieve the next set of results.
 10749  	NextToken *string `min:"1" type:"string"`
 10750  }
 10751  
 10752  // String returns the string representation.
 10753  //
 10754  // API parameter values that are decorated as "sensitive" in the API will not
 10755  // be included in the string output. The member name will be present, but the
 10756  // value will be replaced with "sensitive".
 10757  func (s ListEventSourcesInput) String() string {
 10758  	return awsutil.Prettify(s)
 10759  }
 10760  
 10761  // GoString returns the string representation.
 10762  //
 10763  // API parameter values that are decorated as "sensitive" in the API will not
 10764  // be included in the string output. The member name will be present, but the
 10765  // value will be replaced with "sensitive".
 10766  func (s ListEventSourcesInput) GoString() string {
 10767  	return s.String()
 10768  }
 10769  
 10770  // Validate inspects the fields of the type to determine if they are valid.
 10771  func (s *ListEventSourcesInput) Validate() error {
 10772  	invalidParams := request.ErrInvalidParams{Context: "ListEventSourcesInput"}
 10773  	if s.Limit != nil && *s.Limit < 1 {
 10774  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 10775  	}
 10776  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 10777  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 10778  	}
 10779  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 10780  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 10781  	}
 10782  
 10783  	if invalidParams.Len() > 0 {
 10784  		return invalidParams
 10785  	}
 10786  	return nil
 10787  }
 10788  
 10789  // SetLimit sets the Limit field's value.
 10790  func (s *ListEventSourcesInput) SetLimit(v int64) *ListEventSourcesInput {
 10791  	s.Limit = &v
 10792  	return s
 10793  }
 10794  
 10795  // SetNamePrefix sets the NamePrefix field's value.
 10796  func (s *ListEventSourcesInput) SetNamePrefix(v string) *ListEventSourcesInput {
 10797  	s.NamePrefix = &v
 10798  	return s
 10799  }
 10800  
 10801  // SetNextToken sets the NextToken field's value.
 10802  func (s *ListEventSourcesInput) SetNextToken(v string) *ListEventSourcesInput {
 10803  	s.NextToken = &v
 10804  	return s
 10805  }
 10806  
 10807  type ListEventSourcesOutput struct {
 10808  	_ struct{} `type:"structure"`
 10809  
 10810  	// The list of event sources.
 10811  	EventSources []*EventSource `type:"list"`
 10812  
 10813  	// A token you can use in a subsequent operation to retrieve the next set of
 10814  	// results.
 10815  	NextToken *string `min:"1" type:"string"`
 10816  }
 10817  
 10818  // String returns the string representation.
 10819  //
 10820  // API parameter values that are decorated as "sensitive" in the API will not
 10821  // be included in the string output. The member name will be present, but the
 10822  // value will be replaced with "sensitive".
 10823  func (s ListEventSourcesOutput) String() string {
 10824  	return awsutil.Prettify(s)
 10825  }
 10826  
 10827  // GoString returns the string representation.
 10828  //
 10829  // API parameter values that are decorated as "sensitive" in the API will not
 10830  // be included in the string output. The member name will be present, but the
 10831  // value will be replaced with "sensitive".
 10832  func (s ListEventSourcesOutput) GoString() string {
 10833  	return s.String()
 10834  }
 10835  
 10836  // SetEventSources sets the EventSources field's value.
 10837  func (s *ListEventSourcesOutput) SetEventSources(v []*EventSource) *ListEventSourcesOutput {
 10838  	s.EventSources = v
 10839  	return s
 10840  }
 10841  
 10842  // SetNextToken sets the NextToken field's value.
 10843  func (s *ListEventSourcesOutput) SetNextToken(v string) *ListEventSourcesOutput {
 10844  	s.NextToken = &v
 10845  	return s
 10846  }
 10847  
 10848  type ListPartnerEventSourceAccountsInput struct {
 10849  	_ struct{} `type:"structure"`
 10850  
 10851  	// The name of the partner event source to display account information about.
 10852  	//
 10853  	// EventSourceName is a required field
 10854  	EventSourceName *string `min:"1" type:"string" required:"true"`
 10855  
 10856  	// Specifying this limits the number of results returned by this operation.
 10857  	// The operation also returns a NextToken which you can use in a subsequent
 10858  	// operation to retrieve the next set of results.
 10859  	Limit *int64 `min:"1" type:"integer"`
 10860  
 10861  	// The token returned by a previous call to this operation. Specifying this
 10862  	// retrieves the next set of results.
 10863  	NextToken *string `min:"1" type:"string"`
 10864  }
 10865  
 10866  // String returns the string representation.
 10867  //
 10868  // API parameter values that are decorated as "sensitive" in the API will not
 10869  // be included in the string output. The member name will be present, but the
 10870  // value will be replaced with "sensitive".
 10871  func (s ListPartnerEventSourceAccountsInput) String() string {
 10872  	return awsutil.Prettify(s)
 10873  }
 10874  
 10875  // GoString returns the string representation.
 10876  //
 10877  // API parameter values that are decorated as "sensitive" in the API will not
 10878  // be included in the string output. The member name will be present, but the
 10879  // value will be replaced with "sensitive".
 10880  func (s ListPartnerEventSourceAccountsInput) GoString() string {
 10881  	return s.String()
 10882  }
 10883  
 10884  // Validate inspects the fields of the type to determine if they are valid.
 10885  func (s *ListPartnerEventSourceAccountsInput) Validate() error {
 10886  	invalidParams := request.ErrInvalidParams{Context: "ListPartnerEventSourceAccountsInput"}
 10887  	if s.EventSourceName == nil {
 10888  		invalidParams.Add(request.NewErrParamRequired("EventSourceName"))
 10889  	}
 10890  	if s.EventSourceName != nil && len(*s.EventSourceName) < 1 {
 10891  		invalidParams.Add(request.NewErrParamMinLen("EventSourceName", 1))
 10892  	}
 10893  	if s.Limit != nil && *s.Limit < 1 {
 10894  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 10895  	}
 10896  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 10897  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 10898  	}
 10899  
 10900  	if invalidParams.Len() > 0 {
 10901  		return invalidParams
 10902  	}
 10903  	return nil
 10904  }
 10905  
 10906  // SetEventSourceName sets the EventSourceName field's value.
 10907  func (s *ListPartnerEventSourceAccountsInput) SetEventSourceName(v string) *ListPartnerEventSourceAccountsInput {
 10908  	s.EventSourceName = &v
 10909  	return s
 10910  }
 10911  
 10912  // SetLimit sets the Limit field's value.
 10913  func (s *ListPartnerEventSourceAccountsInput) SetLimit(v int64) *ListPartnerEventSourceAccountsInput {
 10914  	s.Limit = &v
 10915  	return s
 10916  }
 10917  
 10918  // SetNextToken sets the NextToken field's value.
 10919  func (s *ListPartnerEventSourceAccountsInput) SetNextToken(v string) *ListPartnerEventSourceAccountsInput {
 10920  	s.NextToken = &v
 10921  	return s
 10922  }
 10923  
 10924  type ListPartnerEventSourceAccountsOutput struct {
 10925  	_ struct{} `type:"structure"`
 10926  
 10927  	// A token you can use in a subsequent operation to retrieve the next set of
 10928  	// results.
 10929  	NextToken *string `min:"1" type:"string"`
 10930  
 10931  	// The list of partner event sources returned by the operation.
 10932  	PartnerEventSourceAccounts []*PartnerEventSourceAccount `type:"list"`
 10933  }
 10934  
 10935  // String returns the string representation.
 10936  //
 10937  // API parameter values that are decorated as "sensitive" in the API will not
 10938  // be included in the string output. The member name will be present, but the
 10939  // value will be replaced with "sensitive".
 10940  func (s ListPartnerEventSourceAccountsOutput) String() string {
 10941  	return awsutil.Prettify(s)
 10942  }
 10943  
 10944  // GoString returns the string representation.
 10945  //
 10946  // API parameter values that are decorated as "sensitive" in the API will not
 10947  // be included in the string output. The member name will be present, but the
 10948  // value will be replaced with "sensitive".
 10949  func (s ListPartnerEventSourceAccountsOutput) GoString() string {
 10950  	return s.String()
 10951  }
 10952  
 10953  // SetNextToken sets the NextToken field's value.
 10954  func (s *ListPartnerEventSourceAccountsOutput) SetNextToken(v string) *ListPartnerEventSourceAccountsOutput {
 10955  	s.NextToken = &v
 10956  	return s
 10957  }
 10958  
 10959  // SetPartnerEventSourceAccounts sets the PartnerEventSourceAccounts field's value.
 10960  func (s *ListPartnerEventSourceAccountsOutput) SetPartnerEventSourceAccounts(v []*PartnerEventSourceAccount) *ListPartnerEventSourceAccountsOutput {
 10961  	s.PartnerEventSourceAccounts = v
 10962  	return s
 10963  }
 10964  
 10965  type ListPartnerEventSourcesInput struct {
 10966  	_ struct{} `type:"structure"`
 10967  
 10968  	// pecifying this limits the number of results returned by this operation. The
 10969  	// operation also returns a NextToken which you can use in a subsequent operation
 10970  	// to retrieve the next set of results.
 10971  	Limit *int64 `min:"1" type:"integer"`
 10972  
 10973  	// If you specify this, the results are limited to only those partner event
 10974  	// sources that start with the string you specify.
 10975  	//
 10976  	// NamePrefix is a required field
 10977  	NamePrefix *string `min:"1" type:"string" required:"true"`
 10978  
 10979  	// The token returned by a previous call to this operation. Specifying this
 10980  	// retrieves the next set of results.
 10981  	NextToken *string `min:"1" type:"string"`
 10982  }
 10983  
 10984  // String returns the string representation.
 10985  //
 10986  // API parameter values that are decorated as "sensitive" in the API will not
 10987  // be included in the string output. The member name will be present, but the
 10988  // value will be replaced with "sensitive".
 10989  func (s ListPartnerEventSourcesInput) String() string {
 10990  	return awsutil.Prettify(s)
 10991  }
 10992  
 10993  // GoString returns the string representation.
 10994  //
 10995  // API parameter values that are decorated as "sensitive" in the API will not
 10996  // be included in the string output. The member name will be present, but the
 10997  // value will be replaced with "sensitive".
 10998  func (s ListPartnerEventSourcesInput) GoString() string {
 10999  	return s.String()
 11000  }
 11001  
 11002  // Validate inspects the fields of the type to determine if they are valid.
 11003  func (s *ListPartnerEventSourcesInput) Validate() error {
 11004  	invalidParams := request.ErrInvalidParams{Context: "ListPartnerEventSourcesInput"}
 11005  	if s.Limit != nil && *s.Limit < 1 {
 11006  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 11007  	}
 11008  	if s.NamePrefix == nil {
 11009  		invalidParams.Add(request.NewErrParamRequired("NamePrefix"))
 11010  	}
 11011  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 11012  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 11013  	}
 11014  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 11015  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 11016  	}
 11017  
 11018  	if invalidParams.Len() > 0 {
 11019  		return invalidParams
 11020  	}
 11021  	return nil
 11022  }
 11023  
 11024  // SetLimit sets the Limit field's value.
 11025  func (s *ListPartnerEventSourcesInput) SetLimit(v int64) *ListPartnerEventSourcesInput {
 11026  	s.Limit = &v
 11027  	return s
 11028  }
 11029  
 11030  // SetNamePrefix sets the NamePrefix field's value.
 11031  func (s *ListPartnerEventSourcesInput) SetNamePrefix(v string) *ListPartnerEventSourcesInput {
 11032  	s.NamePrefix = &v
 11033  	return s
 11034  }
 11035  
 11036  // SetNextToken sets the NextToken field's value.
 11037  func (s *ListPartnerEventSourcesInput) SetNextToken(v string) *ListPartnerEventSourcesInput {
 11038  	s.NextToken = &v
 11039  	return s
 11040  }
 11041  
 11042  type ListPartnerEventSourcesOutput struct {
 11043  	_ struct{} `type:"structure"`
 11044  
 11045  	// A token you can use in a subsequent operation to retrieve the next set of
 11046  	// results.
 11047  	NextToken *string `min:"1" type:"string"`
 11048  
 11049  	// The list of partner event sources returned by the operation.
 11050  	PartnerEventSources []*PartnerEventSource `type:"list"`
 11051  }
 11052  
 11053  // String returns the string representation.
 11054  //
 11055  // API parameter values that are decorated as "sensitive" in the API will not
 11056  // be included in the string output. The member name will be present, but the
 11057  // value will be replaced with "sensitive".
 11058  func (s ListPartnerEventSourcesOutput) String() string {
 11059  	return awsutil.Prettify(s)
 11060  }
 11061  
 11062  // GoString returns the string representation.
 11063  //
 11064  // API parameter values that are decorated as "sensitive" in the API will not
 11065  // be included in the string output. The member name will be present, but the
 11066  // value will be replaced with "sensitive".
 11067  func (s ListPartnerEventSourcesOutput) GoString() string {
 11068  	return s.String()
 11069  }
 11070  
 11071  // SetNextToken sets the NextToken field's value.
 11072  func (s *ListPartnerEventSourcesOutput) SetNextToken(v string) *ListPartnerEventSourcesOutput {
 11073  	s.NextToken = &v
 11074  	return s
 11075  }
 11076  
 11077  // SetPartnerEventSources sets the PartnerEventSources field's value.
 11078  func (s *ListPartnerEventSourcesOutput) SetPartnerEventSources(v []*PartnerEventSource) *ListPartnerEventSourcesOutput {
 11079  	s.PartnerEventSources = v
 11080  	return s
 11081  }
 11082  
 11083  type ListReplaysInput struct {
 11084  	_ struct{} `type:"structure"`
 11085  
 11086  	// The ARN of the archive from which the events are replayed.
 11087  	EventSourceArn *string `min:"1" type:"string"`
 11088  
 11089  	// The maximum number of replays to retrieve.
 11090  	Limit *int64 `min:"1" type:"integer"`
 11091  
 11092  	// A name prefix to filter the replays returned. Only replays with name that
 11093  	// match the prefix are returned.
 11094  	NamePrefix *string `min:"1" type:"string"`
 11095  
 11096  	// The token returned by a previous call to retrieve the next set of results.
 11097  	NextToken *string `min:"1" type:"string"`
 11098  
 11099  	// The state of the replay.
 11100  	State *string `type:"string" enum:"ReplayState"`
 11101  }
 11102  
 11103  // String returns the string representation.
 11104  //
 11105  // API parameter values that are decorated as "sensitive" in the API will not
 11106  // be included in the string output. The member name will be present, but the
 11107  // value will be replaced with "sensitive".
 11108  func (s ListReplaysInput) String() string {
 11109  	return awsutil.Prettify(s)
 11110  }
 11111  
 11112  // GoString returns the string representation.
 11113  //
 11114  // API parameter values that are decorated as "sensitive" in the API will not
 11115  // be included in the string output. The member name will be present, but the
 11116  // value will be replaced with "sensitive".
 11117  func (s ListReplaysInput) GoString() string {
 11118  	return s.String()
 11119  }
 11120  
 11121  // Validate inspects the fields of the type to determine if they are valid.
 11122  func (s *ListReplaysInput) Validate() error {
 11123  	invalidParams := request.ErrInvalidParams{Context: "ListReplaysInput"}
 11124  	if s.EventSourceArn != nil && len(*s.EventSourceArn) < 1 {
 11125  		invalidParams.Add(request.NewErrParamMinLen("EventSourceArn", 1))
 11126  	}
 11127  	if s.Limit != nil && *s.Limit < 1 {
 11128  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 11129  	}
 11130  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 11131  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 11132  	}
 11133  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 11134  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 11135  	}
 11136  
 11137  	if invalidParams.Len() > 0 {
 11138  		return invalidParams
 11139  	}
 11140  	return nil
 11141  }
 11142  
 11143  // SetEventSourceArn sets the EventSourceArn field's value.
 11144  func (s *ListReplaysInput) SetEventSourceArn(v string) *ListReplaysInput {
 11145  	s.EventSourceArn = &v
 11146  	return s
 11147  }
 11148  
 11149  // SetLimit sets the Limit field's value.
 11150  func (s *ListReplaysInput) SetLimit(v int64) *ListReplaysInput {
 11151  	s.Limit = &v
 11152  	return s
 11153  }
 11154  
 11155  // SetNamePrefix sets the NamePrefix field's value.
 11156  func (s *ListReplaysInput) SetNamePrefix(v string) *ListReplaysInput {
 11157  	s.NamePrefix = &v
 11158  	return s
 11159  }
 11160  
 11161  // SetNextToken sets the NextToken field's value.
 11162  func (s *ListReplaysInput) SetNextToken(v string) *ListReplaysInput {
 11163  	s.NextToken = &v
 11164  	return s
 11165  }
 11166  
 11167  // SetState sets the State field's value.
 11168  func (s *ListReplaysInput) SetState(v string) *ListReplaysInput {
 11169  	s.State = &v
 11170  	return s
 11171  }
 11172  
 11173  type ListReplaysOutput struct {
 11174  	_ struct{} `type:"structure"`
 11175  
 11176  	// The token returned by a previous call to retrieve the next set of results.
 11177  	NextToken *string `min:"1" type:"string"`
 11178  
 11179  	// An array of Replay objects that contain information about the replay.
 11180  	Replays []*Replay `type:"list"`
 11181  }
 11182  
 11183  // String returns the string representation.
 11184  //
 11185  // API parameter values that are decorated as "sensitive" in the API will not
 11186  // be included in the string output. The member name will be present, but the
 11187  // value will be replaced with "sensitive".
 11188  func (s ListReplaysOutput) String() string {
 11189  	return awsutil.Prettify(s)
 11190  }
 11191  
 11192  // GoString returns the string representation.
 11193  //
 11194  // API parameter values that are decorated as "sensitive" in the API will not
 11195  // be included in the string output. The member name will be present, but the
 11196  // value will be replaced with "sensitive".
 11197  func (s ListReplaysOutput) GoString() string {
 11198  	return s.String()
 11199  }
 11200  
 11201  // SetNextToken sets the NextToken field's value.
 11202  func (s *ListReplaysOutput) SetNextToken(v string) *ListReplaysOutput {
 11203  	s.NextToken = &v
 11204  	return s
 11205  }
 11206  
 11207  // SetReplays sets the Replays field's value.
 11208  func (s *ListReplaysOutput) SetReplays(v []*Replay) *ListReplaysOutput {
 11209  	s.Replays = v
 11210  	return s
 11211  }
 11212  
 11213  type ListRuleNamesByTargetInput struct {
 11214  	_ struct{} `type:"structure"`
 11215  
 11216  	// The name or ARN of the event bus to list rules for. If you omit this, the
 11217  	// default event bus is used.
 11218  	EventBusName *string `min:"1" type:"string"`
 11219  
 11220  	// The maximum number of results to return.
 11221  	Limit *int64 `min:"1" type:"integer"`
 11222  
 11223  	// The token returned by a previous call to retrieve the next set of results.
 11224  	NextToken *string `min:"1" type:"string"`
 11225  
 11226  	// The Amazon Resource Name (ARN) of the target resource.
 11227  	//
 11228  	// TargetArn is a required field
 11229  	TargetArn *string `min:"1" type:"string" required:"true"`
 11230  }
 11231  
 11232  // String returns the string representation.
 11233  //
 11234  // API parameter values that are decorated as "sensitive" in the API will not
 11235  // be included in the string output. The member name will be present, but the
 11236  // value will be replaced with "sensitive".
 11237  func (s ListRuleNamesByTargetInput) String() string {
 11238  	return awsutil.Prettify(s)
 11239  }
 11240  
 11241  // GoString returns the string representation.
 11242  //
 11243  // API parameter values that are decorated as "sensitive" in the API will not
 11244  // be included in the string output. The member name will be present, but the
 11245  // value will be replaced with "sensitive".
 11246  func (s ListRuleNamesByTargetInput) GoString() string {
 11247  	return s.String()
 11248  }
 11249  
 11250  // Validate inspects the fields of the type to determine if they are valid.
 11251  func (s *ListRuleNamesByTargetInput) Validate() error {
 11252  	invalidParams := request.ErrInvalidParams{Context: "ListRuleNamesByTargetInput"}
 11253  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 11254  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 11255  	}
 11256  	if s.Limit != nil && *s.Limit < 1 {
 11257  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 11258  	}
 11259  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 11260  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 11261  	}
 11262  	if s.TargetArn == nil {
 11263  		invalidParams.Add(request.NewErrParamRequired("TargetArn"))
 11264  	}
 11265  	if s.TargetArn != nil && len(*s.TargetArn) < 1 {
 11266  		invalidParams.Add(request.NewErrParamMinLen("TargetArn", 1))
 11267  	}
 11268  
 11269  	if invalidParams.Len() > 0 {
 11270  		return invalidParams
 11271  	}
 11272  	return nil
 11273  }
 11274  
 11275  // SetEventBusName sets the EventBusName field's value.
 11276  func (s *ListRuleNamesByTargetInput) SetEventBusName(v string) *ListRuleNamesByTargetInput {
 11277  	s.EventBusName = &v
 11278  	return s
 11279  }
 11280  
 11281  // SetLimit sets the Limit field's value.
 11282  func (s *ListRuleNamesByTargetInput) SetLimit(v int64) *ListRuleNamesByTargetInput {
 11283  	s.Limit = &v
 11284  	return s
 11285  }
 11286  
 11287  // SetNextToken sets the NextToken field's value.
 11288  func (s *ListRuleNamesByTargetInput) SetNextToken(v string) *ListRuleNamesByTargetInput {
 11289  	s.NextToken = &v
 11290  	return s
 11291  }
 11292  
 11293  // SetTargetArn sets the TargetArn field's value.
 11294  func (s *ListRuleNamesByTargetInput) SetTargetArn(v string) *ListRuleNamesByTargetInput {
 11295  	s.TargetArn = &v
 11296  	return s
 11297  }
 11298  
 11299  type ListRuleNamesByTargetOutput struct {
 11300  	_ struct{} `type:"structure"`
 11301  
 11302  	// Indicates whether there are additional results to retrieve. If there are
 11303  	// no more results, the value is null.
 11304  	NextToken *string `min:"1" type:"string"`
 11305  
 11306  	// The names of the rules that can invoke the given target.
 11307  	RuleNames []*string `type:"list"`
 11308  }
 11309  
 11310  // String returns the string representation.
 11311  //
 11312  // API parameter values that are decorated as "sensitive" in the API will not
 11313  // be included in the string output. The member name will be present, but the
 11314  // value will be replaced with "sensitive".
 11315  func (s ListRuleNamesByTargetOutput) String() string {
 11316  	return awsutil.Prettify(s)
 11317  }
 11318  
 11319  // GoString returns the string representation.
 11320  //
 11321  // API parameter values that are decorated as "sensitive" in the API will not
 11322  // be included in the string output. The member name will be present, but the
 11323  // value will be replaced with "sensitive".
 11324  func (s ListRuleNamesByTargetOutput) GoString() string {
 11325  	return s.String()
 11326  }
 11327  
 11328  // SetNextToken sets the NextToken field's value.
 11329  func (s *ListRuleNamesByTargetOutput) SetNextToken(v string) *ListRuleNamesByTargetOutput {
 11330  	s.NextToken = &v
 11331  	return s
 11332  }
 11333  
 11334  // SetRuleNames sets the RuleNames field's value.
 11335  func (s *ListRuleNamesByTargetOutput) SetRuleNames(v []*string) *ListRuleNamesByTargetOutput {
 11336  	s.RuleNames = v
 11337  	return s
 11338  }
 11339  
 11340  type ListRulesInput struct {
 11341  	_ struct{} `type:"structure"`
 11342  
 11343  	// The name or ARN of the event bus to list the rules for. If you omit this,
 11344  	// the default event bus is used.
 11345  	EventBusName *string `min:"1" type:"string"`
 11346  
 11347  	// The maximum number of results to return.
 11348  	Limit *int64 `min:"1" type:"integer"`
 11349  
 11350  	// The prefix matching the rule name.
 11351  	NamePrefix *string `min:"1" type:"string"`
 11352  
 11353  	// The token returned by a previous call to retrieve the next set of results.
 11354  	NextToken *string `min:"1" type:"string"`
 11355  }
 11356  
 11357  // String returns the string representation.
 11358  //
 11359  // API parameter values that are decorated as "sensitive" in the API will not
 11360  // be included in the string output. The member name will be present, but the
 11361  // value will be replaced with "sensitive".
 11362  func (s ListRulesInput) String() string {
 11363  	return awsutil.Prettify(s)
 11364  }
 11365  
 11366  // GoString returns the string representation.
 11367  //
 11368  // API parameter values that are decorated as "sensitive" in the API will not
 11369  // be included in the string output. The member name will be present, but the
 11370  // value will be replaced with "sensitive".
 11371  func (s ListRulesInput) GoString() string {
 11372  	return s.String()
 11373  }
 11374  
 11375  // Validate inspects the fields of the type to determine if they are valid.
 11376  func (s *ListRulesInput) Validate() error {
 11377  	invalidParams := request.ErrInvalidParams{Context: "ListRulesInput"}
 11378  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 11379  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 11380  	}
 11381  	if s.Limit != nil && *s.Limit < 1 {
 11382  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 11383  	}
 11384  	if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
 11385  		invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
 11386  	}
 11387  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 11388  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 11389  	}
 11390  
 11391  	if invalidParams.Len() > 0 {
 11392  		return invalidParams
 11393  	}
 11394  	return nil
 11395  }
 11396  
 11397  // SetEventBusName sets the EventBusName field's value.
 11398  func (s *ListRulesInput) SetEventBusName(v string) *ListRulesInput {
 11399  	s.EventBusName = &v
 11400  	return s
 11401  }
 11402  
 11403  // SetLimit sets the Limit field's value.
 11404  func (s *ListRulesInput) SetLimit(v int64) *ListRulesInput {
 11405  	s.Limit = &v
 11406  	return s
 11407  }
 11408  
 11409  // SetNamePrefix sets the NamePrefix field's value.
 11410  func (s *ListRulesInput) SetNamePrefix(v string) *ListRulesInput {
 11411  	s.NamePrefix = &v
 11412  	return s
 11413  }
 11414  
 11415  // SetNextToken sets the NextToken field's value.
 11416  func (s *ListRulesInput) SetNextToken(v string) *ListRulesInput {
 11417  	s.NextToken = &v
 11418  	return s
 11419  }
 11420  
 11421  type ListRulesOutput struct {
 11422  	_ struct{} `type:"structure"`
 11423  
 11424  	// Indicates whether there are additional results to retrieve. If there are
 11425  	// no more results, the value is null.
 11426  	NextToken *string `min:"1" type:"string"`
 11427  
 11428  	// The rules that match the specified criteria.
 11429  	Rules []*Rule `type:"list"`
 11430  }
 11431  
 11432  // String returns the string representation.
 11433  //
 11434  // API parameter values that are decorated as "sensitive" in the API will not
 11435  // be included in the string output. The member name will be present, but the
 11436  // value will be replaced with "sensitive".
 11437  func (s ListRulesOutput) String() string {
 11438  	return awsutil.Prettify(s)
 11439  }
 11440  
 11441  // GoString returns the string representation.
 11442  //
 11443  // API parameter values that are decorated as "sensitive" in the API will not
 11444  // be included in the string output. The member name will be present, but the
 11445  // value will be replaced with "sensitive".
 11446  func (s ListRulesOutput) GoString() string {
 11447  	return s.String()
 11448  }
 11449  
 11450  // SetNextToken sets the NextToken field's value.
 11451  func (s *ListRulesOutput) SetNextToken(v string) *ListRulesOutput {
 11452  	s.NextToken = &v
 11453  	return s
 11454  }
 11455  
 11456  // SetRules sets the Rules field's value.
 11457  func (s *ListRulesOutput) SetRules(v []*Rule) *ListRulesOutput {
 11458  	s.Rules = v
 11459  	return s
 11460  }
 11461  
 11462  type ListTagsForResourceInput struct {
 11463  	_ struct{} `type:"structure"`
 11464  
 11465  	// The ARN of the EventBridge resource for which you want to view tags.
 11466  	//
 11467  	// ResourceARN is a required field
 11468  	ResourceARN *string `min:"1" type:"string" required:"true"`
 11469  }
 11470  
 11471  // String returns the string representation.
 11472  //
 11473  // API parameter values that are decorated as "sensitive" in the API will not
 11474  // be included in the string output. The member name will be present, but the
 11475  // value will be replaced with "sensitive".
 11476  func (s ListTagsForResourceInput) String() string {
 11477  	return awsutil.Prettify(s)
 11478  }
 11479  
 11480  // GoString returns the string representation.
 11481  //
 11482  // API parameter values that are decorated as "sensitive" in the API will not
 11483  // be included in the string output. The member name will be present, but the
 11484  // value will be replaced with "sensitive".
 11485  func (s ListTagsForResourceInput) GoString() string {
 11486  	return s.String()
 11487  }
 11488  
 11489  // Validate inspects the fields of the type to determine if they are valid.
 11490  func (s *ListTagsForResourceInput) Validate() error {
 11491  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
 11492  	if s.ResourceARN == nil {
 11493  		invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
 11494  	}
 11495  	if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
 11496  		invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
 11497  	}
 11498  
 11499  	if invalidParams.Len() > 0 {
 11500  		return invalidParams
 11501  	}
 11502  	return nil
 11503  }
 11504  
 11505  // SetResourceARN sets the ResourceARN field's value.
 11506  func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput {
 11507  	s.ResourceARN = &v
 11508  	return s
 11509  }
 11510  
 11511  type ListTagsForResourceOutput struct {
 11512  	_ struct{} `type:"structure"`
 11513  
 11514  	// The list of tag keys and values associated with the resource you specified
 11515  	Tags []*Tag `type:"list"`
 11516  }
 11517  
 11518  // String returns the string representation.
 11519  //
 11520  // API parameter values that are decorated as "sensitive" in the API will not
 11521  // be included in the string output. The member name will be present, but the
 11522  // value will be replaced with "sensitive".
 11523  func (s ListTagsForResourceOutput) String() string {
 11524  	return awsutil.Prettify(s)
 11525  }
 11526  
 11527  // GoString returns the string representation.
 11528  //
 11529  // API parameter values that are decorated as "sensitive" in the API will not
 11530  // be included in the string output. The member name will be present, but the
 11531  // value will be replaced with "sensitive".
 11532  func (s ListTagsForResourceOutput) GoString() string {
 11533  	return s.String()
 11534  }
 11535  
 11536  // SetTags sets the Tags field's value.
 11537  func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
 11538  	s.Tags = v
 11539  	return s
 11540  }
 11541  
 11542  type ListTargetsByRuleInput struct {
 11543  	_ struct{} `type:"structure"`
 11544  
 11545  	// The name or ARN of the event bus associated with the rule. If you omit this,
 11546  	// the default event bus is used.
 11547  	EventBusName *string `min:"1" type:"string"`
 11548  
 11549  	// The maximum number of results to return.
 11550  	Limit *int64 `min:"1" type:"integer"`
 11551  
 11552  	// The token returned by a previous call to retrieve the next set of results.
 11553  	NextToken *string `min:"1" type:"string"`
 11554  
 11555  	// The name of the rule.
 11556  	//
 11557  	// Rule is a required field
 11558  	Rule *string `min:"1" type:"string" required:"true"`
 11559  }
 11560  
 11561  // String returns the string representation.
 11562  //
 11563  // API parameter values that are decorated as "sensitive" in the API will not
 11564  // be included in the string output. The member name will be present, but the
 11565  // value will be replaced with "sensitive".
 11566  func (s ListTargetsByRuleInput) String() string {
 11567  	return awsutil.Prettify(s)
 11568  }
 11569  
 11570  // GoString returns the string representation.
 11571  //
 11572  // API parameter values that are decorated as "sensitive" in the API will not
 11573  // be included in the string output. The member name will be present, but the
 11574  // value will be replaced with "sensitive".
 11575  func (s ListTargetsByRuleInput) GoString() string {
 11576  	return s.String()
 11577  }
 11578  
 11579  // Validate inspects the fields of the type to determine if they are valid.
 11580  func (s *ListTargetsByRuleInput) Validate() error {
 11581  	invalidParams := request.ErrInvalidParams{Context: "ListTargetsByRuleInput"}
 11582  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 11583  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 11584  	}
 11585  	if s.Limit != nil && *s.Limit < 1 {
 11586  		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
 11587  	}
 11588  	if s.NextToken != nil && len(*s.NextToken) < 1 {
 11589  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
 11590  	}
 11591  	if s.Rule == nil {
 11592  		invalidParams.Add(request.NewErrParamRequired("Rule"))
 11593  	}
 11594  	if s.Rule != nil && len(*s.Rule) < 1 {
 11595  		invalidParams.Add(request.NewErrParamMinLen("Rule", 1))
 11596  	}
 11597  
 11598  	if invalidParams.Len() > 0 {
 11599  		return invalidParams
 11600  	}
 11601  	return nil
 11602  }
 11603  
 11604  // SetEventBusName sets the EventBusName field's value.
 11605  func (s *ListTargetsByRuleInput) SetEventBusName(v string) *ListTargetsByRuleInput {
 11606  	s.EventBusName = &v
 11607  	return s
 11608  }
 11609  
 11610  // SetLimit sets the Limit field's value.
 11611  func (s *ListTargetsByRuleInput) SetLimit(v int64) *ListTargetsByRuleInput {
 11612  	s.Limit = &v
 11613  	return s
 11614  }
 11615  
 11616  // SetNextToken sets the NextToken field's value.
 11617  func (s *ListTargetsByRuleInput) SetNextToken(v string) *ListTargetsByRuleInput {
 11618  	s.NextToken = &v
 11619  	return s
 11620  }
 11621  
 11622  // SetRule sets the Rule field's value.
 11623  func (s *ListTargetsByRuleInput) SetRule(v string) *ListTargetsByRuleInput {
 11624  	s.Rule = &v
 11625  	return s
 11626  }
 11627  
 11628  type ListTargetsByRuleOutput struct {
 11629  	_ struct{} `type:"structure"`
 11630  
 11631  	// Indicates whether there are additional results to retrieve. If there are
 11632  	// no more results, the value is null.
 11633  	NextToken *string `min:"1" type:"string"`
 11634  
 11635  	// The targets assigned to the rule.
 11636  	Targets []*Target `min:"1" type:"list"`
 11637  }
 11638  
 11639  // String returns the string representation.
 11640  //
 11641  // API parameter values that are decorated as "sensitive" in the API will not
 11642  // be included in the string output. The member name will be present, but the
 11643  // value will be replaced with "sensitive".
 11644  func (s ListTargetsByRuleOutput) String() string {
 11645  	return awsutil.Prettify(s)
 11646  }
 11647  
 11648  // GoString returns the string representation.
 11649  //
 11650  // API parameter values that are decorated as "sensitive" in the API will not
 11651  // be included in the string output. The member name will be present, but the
 11652  // value will be replaced with "sensitive".
 11653  func (s ListTargetsByRuleOutput) GoString() string {
 11654  	return s.String()
 11655  }
 11656  
 11657  // SetNextToken sets the NextToken field's value.
 11658  func (s *ListTargetsByRuleOutput) SetNextToken(v string) *ListTargetsByRuleOutput {
 11659  	s.NextToken = &v
 11660  	return s
 11661  }
 11662  
 11663  // SetTargets sets the Targets field's value.
 11664  func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutput {
 11665  	s.Targets = v
 11666  	return s
 11667  }
 11668  
 11669  // This rule was created by an Amazon Web Services service on behalf of your
 11670  // account. It is managed by that service. If you see this error in response
 11671  // to DeleteRule or RemoveTargets, you can use the Force parameter in those
 11672  // calls to delete the rule or remove targets from the rule. You cannot modify
 11673  // these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
 11674  // TagResource, or UntagResource.
 11675  type ManagedRuleException struct {
 11676  	_            struct{}                  `type:"structure"`
 11677  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11678  
 11679  	Message_ *string `locationName:"message" type:"string"`
 11680  }
 11681  
 11682  // String returns the string representation.
 11683  //
 11684  // API parameter values that are decorated as "sensitive" in the API will not
 11685  // be included in the string output. The member name will be present, but the
 11686  // value will be replaced with "sensitive".
 11687  func (s ManagedRuleException) String() string {
 11688  	return awsutil.Prettify(s)
 11689  }
 11690  
 11691  // GoString returns the string representation.
 11692  //
 11693  // API parameter values that are decorated as "sensitive" in the API will not
 11694  // be included in the string output. The member name will be present, but the
 11695  // value will be replaced with "sensitive".
 11696  func (s ManagedRuleException) GoString() string {
 11697  	return s.String()
 11698  }
 11699  
 11700  func newErrorManagedRuleException(v protocol.ResponseMetadata) error {
 11701  	return &ManagedRuleException{
 11702  		RespMetadata: v,
 11703  	}
 11704  }
 11705  
 11706  // Code returns the exception type name.
 11707  func (s *ManagedRuleException) Code() string {
 11708  	return "ManagedRuleException"
 11709  }
 11710  
 11711  // Message returns the exception's message.
 11712  func (s *ManagedRuleException) Message() string {
 11713  	if s.Message_ != nil {
 11714  		return *s.Message_
 11715  	}
 11716  	return ""
 11717  }
 11718  
 11719  // OrigErr always returns nil, satisfies awserr.Error interface.
 11720  func (s *ManagedRuleException) OrigErr() error {
 11721  	return nil
 11722  }
 11723  
 11724  func (s *ManagedRuleException) Error() string {
 11725  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11726  }
 11727  
 11728  // Status code returns the HTTP status code for the request's response error.
 11729  func (s *ManagedRuleException) StatusCode() int {
 11730  	return s.RespMetadata.StatusCode
 11731  }
 11732  
 11733  // RequestID returns the service's response RequestID for request.
 11734  func (s *ManagedRuleException) RequestID() string {
 11735  	return s.RespMetadata.RequestID
 11736  }
 11737  
 11738  // This structure specifies the network configuration for an ECS task.
 11739  type NetworkConfiguration struct {
 11740  	_ struct{} `type:"structure"`
 11741  
 11742  	// Use this structure to specify the VPC subnets and security groups for the
 11743  	// task, and whether a public IP address is to be used. This structure is relevant
 11744  	// only for ECS tasks that use the awsvpc network mode.
 11745  	AwsvpcConfiguration *AwsVpcConfiguration `locationName:"awsvpcConfiguration" type:"structure"`
 11746  }
 11747  
 11748  // String returns the string representation.
 11749  //
 11750  // API parameter values that are decorated as "sensitive" in the API will not
 11751  // be included in the string output. The member name will be present, but the
 11752  // value will be replaced with "sensitive".
 11753  func (s NetworkConfiguration) String() string {
 11754  	return awsutil.Prettify(s)
 11755  }
 11756  
 11757  // GoString returns the string representation.
 11758  //
 11759  // API parameter values that are decorated as "sensitive" in the API will not
 11760  // be included in the string output. The member name will be present, but the
 11761  // value will be replaced with "sensitive".
 11762  func (s NetworkConfiguration) GoString() string {
 11763  	return s.String()
 11764  }
 11765  
 11766  // Validate inspects the fields of the type to determine if they are valid.
 11767  func (s *NetworkConfiguration) Validate() error {
 11768  	invalidParams := request.ErrInvalidParams{Context: "NetworkConfiguration"}
 11769  	if s.AwsvpcConfiguration != nil {
 11770  		if err := s.AwsvpcConfiguration.Validate(); err != nil {
 11771  			invalidParams.AddNested("AwsvpcConfiguration", err.(request.ErrInvalidParams))
 11772  		}
 11773  	}
 11774  
 11775  	if invalidParams.Len() > 0 {
 11776  		return invalidParams
 11777  	}
 11778  	return nil
 11779  }
 11780  
 11781  // SetAwsvpcConfiguration sets the AwsvpcConfiguration field's value.
 11782  func (s *NetworkConfiguration) SetAwsvpcConfiguration(v *AwsVpcConfiguration) *NetworkConfiguration {
 11783  	s.AwsvpcConfiguration = v
 11784  	return s
 11785  }
 11786  
 11787  // The operation you are attempting is not available in this region.
 11788  type OperationDisabledException struct {
 11789  	_            struct{}                  `type:"structure"`
 11790  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 11791  
 11792  	Message_ *string `locationName:"message" type:"string"`
 11793  }
 11794  
 11795  // String returns the string representation.
 11796  //
 11797  // API parameter values that are decorated as "sensitive" in the API will not
 11798  // be included in the string output. The member name will be present, but the
 11799  // value will be replaced with "sensitive".
 11800  func (s OperationDisabledException) String() string {
 11801  	return awsutil.Prettify(s)
 11802  }
 11803  
 11804  // GoString returns the string representation.
 11805  //
 11806  // API parameter values that are decorated as "sensitive" in the API will not
 11807  // be included in the string output. The member name will be present, but the
 11808  // value will be replaced with "sensitive".
 11809  func (s OperationDisabledException) GoString() string {
 11810  	return s.String()
 11811  }
 11812  
 11813  func newErrorOperationDisabledException(v protocol.ResponseMetadata) error {
 11814  	return &OperationDisabledException{
 11815  		RespMetadata: v,
 11816  	}
 11817  }
 11818  
 11819  // Code returns the exception type name.
 11820  func (s *OperationDisabledException) Code() string {
 11821  	return "OperationDisabledException"
 11822  }
 11823  
 11824  // Message returns the exception's message.
 11825  func (s *OperationDisabledException) Message() string {
 11826  	if s.Message_ != nil {
 11827  		return *s.Message_
 11828  	}
 11829  	return ""
 11830  }
 11831  
 11832  // OrigErr always returns nil, satisfies awserr.Error interface.
 11833  func (s *OperationDisabledException) OrigErr() error {
 11834  	return nil
 11835  }
 11836  
 11837  func (s *OperationDisabledException) Error() string {
 11838  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 11839  }
 11840  
 11841  // Status code returns the HTTP status code for the request's response error.
 11842  func (s *OperationDisabledException) StatusCode() int {
 11843  	return s.RespMetadata.StatusCode
 11844  }
 11845  
 11846  // RequestID returns the service's response RequestID for request.
 11847  func (s *OperationDisabledException) RequestID() string {
 11848  	return s.RespMetadata.RequestID
 11849  }
 11850  
 11851  // A partner event source is created by an SaaS partner. If a customer creates
 11852  // a partner event bus that matches this event source, that Amazon Web Services
 11853  // account can receive events from the partner's applications or services.
 11854  type PartnerEventSource struct {
 11855  	_ struct{} `type:"structure"`
 11856  
 11857  	// The ARN of the partner event source.
 11858  	Arn *string `type:"string"`
 11859  
 11860  	// The name of the partner event source.
 11861  	Name *string `type:"string"`
 11862  }
 11863  
 11864  // String returns the string representation.
 11865  //
 11866  // API parameter values that are decorated as "sensitive" in the API will not
 11867  // be included in the string output. The member name will be present, but the
 11868  // value will be replaced with "sensitive".
 11869  func (s PartnerEventSource) String() string {
 11870  	return awsutil.Prettify(s)
 11871  }
 11872  
 11873  // GoString returns the string representation.
 11874  //
 11875  // API parameter values that are decorated as "sensitive" in the API will not
 11876  // be included in the string output. The member name will be present, but the
 11877  // value will be replaced with "sensitive".
 11878  func (s PartnerEventSource) GoString() string {
 11879  	return s.String()
 11880  }
 11881  
 11882  // SetArn sets the Arn field's value.
 11883  func (s *PartnerEventSource) SetArn(v string) *PartnerEventSource {
 11884  	s.Arn = &v
 11885  	return s
 11886  }
 11887  
 11888  // SetName sets the Name field's value.
 11889  func (s *PartnerEventSource) SetName(v string) *PartnerEventSource {
 11890  	s.Name = &v
 11891  	return s
 11892  }
 11893  
 11894  // The Amazon Web Services account that a partner event source has been offered
 11895  // to.
 11896  type PartnerEventSourceAccount struct {
 11897  	_ struct{} `type:"structure"`
 11898  
 11899  	// The Amazon Web Services account ID that the partner event source was offered
 11900  	// to.
 11901  	Account *string `min:"12" type:"string"`
 11902  
 11903  	// The date and time the event source was created.
 11904  	CreationTime *time.Time `type:"timestamp"`
 11905  
 11906  	// The date and time that the event source will expire, if the Amazon Web Services
 11907  	// account doesn't create a matching event bus for it.
 11908  	ExpirationTime *time.Time `type:"timestamp"`
 11909  
 11910  	// The state of the event source. If it is ACTIVE, you have already created
 11911  	// a matching event bus for this event source, and that event bus is active.
 11912  	// If it is PENDING, either you haven't yet created a matching event bus, or
 11913  	// that event bus is deactivated. If it is DELETED, you have created a matching
 11914  	// event bus, but the event source has since been deleted.
 11915  	State *string `type:"string" enum:"EventSourceState"`
 11916  }
 11917  
 11918  // String returns the string representation.
 11919  //
 11920  // API parameter values that are decorated as "sensitive" in the API will not
 11921  // be included in the string output. The member name will be present, but the
 11922  // value will be replaced with "sensitive".
 11923  func (s PartnerEventSourceAccount) String() string {
 11924  	return awsutil.Prettify(s)
 11925  }
 11926  
 11927  // GoString returns the string representation.
 11928  //
 11929  // API parameter values that are decorated as "sensitive" in the API will not
 11930  // be included in the string output. The member name will be present, but the
 11931  // value will be replaced with "sensitive".
 11932  func (s PartnerEventSourceAccount) GoString() string {
 11933  	return s.String()
 11934  }
 11935  
 11936  // SetAccount sets the Account field's value.
 11937  func (s *PartnerEventSourceAccount) SetAccount(v string) *PartnerEventSourceAccount {
 11938  	s.Account = &v
 11939  	return s
 11940  }
 11941  
 11942  // SetCreationTime sets the CreationTime field's value.
 11943  func (s *PartnerEventSourceAccount) SetCreationTime(v time.Time) *PartnerEventSourceAccount {
 11944  	s.CreationTime = &v
 11945  	return s
 11946  }
 11947  
 11948  // SetExpirationTime sets the ExpirationTime field's value.
 11949  func (s *PartnerEventSourceAccount) SetExpirationTime(v time.Time) *PartnerEventSourceAccount {
 11950  	s.ExpirationTime = &v
 11951  	return s
 11952  }
 11953  
 11954  // SetState sets the State field's value.
 11955  func (s *PartnerEventSourceAccount) SetState(v string) *PartnerEventSourceAccount {
 11956  	s.State = &v
 11957  	return s
 11958  }
 11959  
 11960  // An object representing a constraint on task placement. To learn more, see
 11961  // Task Placement Constraints (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html)
 11962  // in the Amazon Elastic Container Service Developer Guide.
 11963  type PlacementConstraint struct {
 11964  	_ struct{} `type:"structure"`
 11965  
 11966  	// A cluster query language expression to apply to the constraint. You cannot
 11967  	// specify an expression if the constraint type is distinctInstance. To learn
 11968  	// more, see Cluster Query Language (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html)
 11969  	// in the Amazon Elastic Container Service Developer Guide.
 11970  	Expression *string `locationName:"expression" type:"string"`
 11971  
 11972  	// The type of constraint. Use distinctInstance to ensure that each task in
 11973  	// a particular group is running on a different container instance. Use memberOf
 11974  	// to restrict the selection to a group of valid candidates.
 11975  	Type *string `locationName:"type" type:"string" enum:"PlacementConstraintType"`
 11976  }
 11977  
 11978  // String returns the string representation.
 11979  //
 11980  // API parameter values that are decorated as "sensitive" in the API will not
 11981  // be included in the string output. The member name will be present, but the
 11982  // value will be replaced with "sensitive".
 11983  func (s PlacementConstraint) String() string {
 11984  	return awsutil.Prettify(s)
 11985  }
 11986  
 11987  // GoString returns the string representation.
 11988  //
 11989  // API parameter values that are decorated as "sensitive" in the API will not
 11990  // be included in the string output. The member name will be present, but the
 11991  // value will be replaced with "sensitive".
 11992  func (s PlacementConstraint) GoString() string {
 11993  	return s.String()
 11994  }
 11995  
 11996  // SetExpression sets the Expression field's value.
 11997  func (s *PlacementConstraint) SetExpression(v string) *PlacementConstraint {
 11998  	s.Expression = &v
 11999  	return s
 12000  }
 12001  
 12002  // SetType sets the Type field's value.
 12003  func (s *PlacementConstraint) SetType(v string) *PlacementConstraint {
 12004  	s.Type = &v
 12005  	return s
 12006  }
 12007  
 12008  // The task placement strategy for a task or service. To learn more, see Task
 12009  // Placement Strategies (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html)
 12010  // in the Amazon Elastic Container Service Service Developer Guide.
 12011  type PlacementStrategy struct {
 12012  	_ struct{} `type:"structure"`
 12013  
 12014  	// The field to apply the placement strategy against. For the spread placement
 12015  	// strategy, valid values are instanceId (or host, which has the same effect),
 12016  	// or any platform or custom attribute that is applied to a container instance,
 12017  	// such as attribute:ecs.availability-zone. For the binpack placement strategy,
 12018  	// valid values are cpu and memory. For the random placement strategy, this
 12019  	// field is not used.
 12020  	Field *string `locationName:"field" type:"string"`
 12021  
 12022  	// The type of placement strategy. The random placement strategy randomly places
 12023  	// tasks on available candidates. The spread placement strategy spreads placement
 12024  	// across available candidates evenly based on the field parameter. The binpack
 12025  	// strategy places tasks on available candidates that have the least available
 12026  	// amount of the resource that is specified with the field parameter. For example,
 12027  	// if you binpack on memory, a task is placed on the instance with the least
 12028  	// amount of remaining memory (but still enough to run the task).
 12029  	Type *string `locationName:"type" type:"string" enum:"PlacementStrategyType"`
 12030  }
 12031  
 12032  // String returns the string representation.
 12033  //
 12034  // API parameter values that are decorated as "sensitive" in the API will not
 12035  // be included in the string output. The member name will be present, but the
 12036  // value will be replaced with "sensitive".
 12037  func (s PlacementStrategy) String() string {
 12038  	return awsutil.Prettify(s)
 12039  }
 12040  
 12041  // GoString returns the string representation.
 12042  //
 12043  // API parameter values that are decorated as "sensitive" in the API will not
 12044  // be included in the string output. The member name will be present, but the
 12045  // value will be replaced with "sensitive".
 12046  func (s PlacementStrategy) GoString() string {
 12047  	return s.String()
 12048  }
 12049  
 12050  // SetField sets the Field field's value.
 12051  func (s *PlacementStrategy) SetField(v string) *PlacementStrategy {
 12052  	s.Field = &v
 12053  	return s
 12054  }
 12055  
 12056  // SetType sets the Type field's value.
 12057  func (s *PlacementStrategy) SetType(v string) *PlacementStrategy {
 12058  	s.Type = &v
 12059  	return s
 12060  }
 12061  
 12062  // The event bus policy is too long. For more information, see the limits.
 12063  type PolicyLengthExceededException struct {
 12064  	_            struct{}                  `type:"structure"`
 12065  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 12066  
 12067  	Message_ *string `locationName:"message" type:"string"`
 12068  }
 12069  
 12070  // String returns the string representation.
 12071  //
 12072  // API parameter values that are decorated as "sensitive" in the API will not
 12073  // be included in the string output. The member name will be present, but the
 12074  // value will be replaced with "sensitive".
 12075  func (s PolicyLengthExceededException) String() string {
 12076  	return awsutil.Prettify(s)
 12077  }
 12078  
 12079  // GoString returns the string representation.
 12080  //
 12081  // API parameter values that are decorated as "sensitive" in the API will not
 12082  // be included in the string output. The member name will be present, but the
 12083  // value will be replaced with "sensitive".
 12084  func (s PolicyLengthExceededException) GoString() string {
 12085  	return s.String()
 12086  }
 12087  
 12088  func newErrorPolicyLengthExceededException(v protocol.ResponseMetadata) error {
 12089  	return &PolicyLengthExceededException{
 12090  		RespMetadata: v,
 12091  	}
 12092  }
 12093  
 12094  // Code returns the exception type name.
 12095  func (s *PolicyLengthExceededException) Code() string {
 12096  	return "PolicyLengthExceededException"
 12097  }
 12098  
 12099  // Message returns the exception's message.
 12100  func (s *PolicyLengthExceededException) Message() string {
 12101  	if s.Message_ != nil {
 12102  		return *s.Message_
 12103  	}
 12104  	return ""
 12105  }
 12106  
 12107  // OrigErr always returns nil, satisfies awserr.Error interface.
 12108  func (s *PolicyLengthExceededException) OrigErr() error {
 12109  	return nil
 12110  }
 12111  
 12112  func (s *PolicyLengthExceededException) Error() string {
 12113  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 12114  }
 12115  
 12116  // Status code returns the HTTP status code for the request's response error.
 12117  func (s *PolicyLengthExceededException) StatusCode() int {
 12118  	return s.RespMetadata.StatusCode
 12119  }
 12120  
 12121  // RequestID returns the service's response RequestID for request.
 12122  func (s *PolicyLengthExceededException) RequestID() string {
 12123  	return s.RespMetadata.RequestID
 12124  }
 12125  
 12126  type PutEventsInput struct {
 12127  	_ struct{} `type:"structure"`
 12128  
 12129  	// The entry that defines an event in your system. You can specify several parameters
 12130  	// for the entry such as the source and type of the event, resources associated
 12131  	// with the event, and so on.
 12132  	//
 12133  	// Entries is a required field
 12134  	Entries []*PutEventsRequestEntry `min:"1" type:"list" required:"true"`
 12135  }
 12136  
 12137  // String returns the string representation.
 12138  //
 12139  // API parameter values that are decorated as "sensitive" in the API will not
 12140  // be included in the string output. The member name will be present, but the
 12141  // value will be replaced with "sensitive".
 12142  func (s PutEventsInput) String() string {
 12143  	return awsutil.Prettify(s)
 12144  }
 12145  
 12146  // GoString returns the string representation.
 12147  //
 12148  // API parameter values that are decorated as "sensitive" in the API will not
 12149  // be included in the string output. The member name will be present, but the
 12150  // value will be replaced with "sensitive".
 12151  func (s PutEventsInput) GoString() string {
 12152  	return s.String()
 12153  }
 12154  
 12155  // Validate inspects the fields of the type to determine if they are valid.
 12156  func (s *PutEventsInput) Validate() error {
 12157  	invalidParams := request.ErrInvalidParams{Context: "PutEventsInput"}
 12158  	if s.Entries == nil {
 12159  		invalidParams.Add(request.NewErrParamRequired("Entries"))
 12160  	}
 12161  	if s.Entries != nil && len(s.Entries) < 1 {
 12162  		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
 12163  	}
 12164  	if s.Entries != nil {
 12165  		for i, v := range s.Entries {
 12166  			if v == nil {
 12167  				continue
 12168  			}
 12169  			if err := v.Validate(); err != nil {
 12170  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
 12171  			}
 12172  		}
 12173  	}
 12174  
 12175  	if invalidParams.Len() > 0 {
 12176  		return invalidParams
 12177  	}
 12178  	return nil
 12179  }
 12180  
 12181  // SetEntries sets the Entries field's value.
 12182  func (s *PutEventsInput) SetEntries(v []*PutEventsRequestEntry) *PutEventsInput {
 12183  	s.Entries = v
 12184  	return s
 12185  }
 12186  
 12187  type PutEventsOutput struct {
 12188  	_ struct{} `type:"structure"`
 12189  
 12190  	// The successfully and unsuccessfully ingested events results. If the ingestion
 12191  	// was successful, the entry has the event ID in it. Otherwise, you can use
 12192  	// the error code and error message to identify the problem with the entry.
 12193  	Entries []*PutEventsResultEntry `type:"list"`
 12194  
 12195  	// The number of failed entries.
 12196  	FailedEntryCount *int64 `type:"integer"`
 12197  }
 12198  
 12199  // String returns the string representation.
 12200  //
 12201  // API parameter values that are decorated as "sensitive" in the API will not
 12202  // be included in the string output. The member name will be present, but the
 12203  // value will be replaced with "sensitive".
 12204  func (s PutEventsOutput) String() string {
 12205  	return awsutil.Prettify(s)
 12206  }
 12207  
 12208  // GoString returns the string representation.
 12209  //
 12210  // API parameter values that are decorated as "sensitive" in the API will not
 12211  // be included in the string output. The member name will be present, but the
 12212  // value will be replaced with "sensitive".
 12213  func (s PutEventsOutput) GoString() string {
 12214  	return s.String()
 12215  }
 12216  
 12217  // SetEntries sets the Entries field's value.
 12218  func (s *PutEventsOutput) SetEntries(v []*PutEventsResultEntry) *PutEventsOutput {
 12219  	s.Entries = v
 12220  	return s
 12221  }
 12222  
 12223  // SetFailedEntryCount sets the FailedEntryCount field's value.
 12224  func (s *PutEventsOutput) SetFailedEntryCount(v int64) *PutEventsOutput {
 12225  	s.FailedEntryCount = &v
 12226  	return s
 12227  }
 12228  
 12229  // Represents an event to be submitted.
 12230  type PutEventsRequestEntry struct {
 12231  	_ struct{} `type:"structure"`
 12232  
 12233  	// A valid JSON string. There is no other schema imposed. The JSON string may
 12234  	// contain fields and nested subobjects.
 12235  	Detail *string `type:"string"`
 12236  
 12237  	// Free-form string used to decide what fields to expect in the event detail.
 12238  	DetailType *string `type:"string"`
 12239  
 12240  	// The name or ARN of the event bus to receive the event. Only the rules that
 12241  	// are associated with this event bus are used to match the event. If you omit
 12242  	// this, the default event bus is used.
 12243  	EventBusName *string `min:"1" type:"string"`
 12244  
 12245  	// Amazon Web Services resources, identified by Amazon Resource Name (ARN),
 12246  	// which the event primarily concerns. Any number, including zero, may be present.
 12247  	Resources []*string `type:"list"`
 12248  
 12249  	// The source of the event.
 12250  	Source *string `type:"string"`
 12251  
 12252  	// The time stamp of the event, per RFC3339 (https://www.rfc-editor.org/rfc/rfc3339.txt).
 12253  	// If no time stamp is provided, the time stamp of the PutEvents (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html)
 12254  	// call is used.
 12255  	Time *time.Time `type:"timestamp"`
 12256  
 12257  	// An X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains
 12258  	// the trace-id associated with the event.
 12259  	//
 12260  	// To learn more about X-Ray trace headers, see Tracing header (https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader)
 12261  	// in the X-Ray Developer Guide.
 12262  	TraceHeader *string `min:"1" type:"string"`
 12263  }
 12264  
 12265  // String returns the string representation.
 12266  //
 12267  // API parameter values that are decorated as "sensitive" in the API will not
 12268  // be included in the string output. The member name will be present, but the
 12269  // value will be replaced with "sensitive".
 12270  func (s PutEventsRequestEntry) String() string {
 12271  	return awsutil.Prettify(s)
 12272  }
 12273  
 12274  // GoString returns the string representation.
 12275  //
 12276  // API parameter values that are decorated as "sensitive" in the API will not
 12277  // be included in the string output. The member name will be present, but the
 12278  // value will be replaced with "sensitive".
 12279  func (s PutEventsRequestEntry) GoString() string {
 12280  	return s.String()
 12281  }
 12282  
 12283  // Validate inspects the fields of the type to determine if they are valid.
 12284  func (s *PutEventsRequestEntry) Validate() error {
 12285  	invalidParams := request.ErrInvalidParams{Context: "PutEventsRequestEntry"}
 12286  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 12287  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 12288  	}
 12289  	if s.TraceHeader != nil && len(*s.TraceHeader) < 1 {
 12290  		invalidParams.Add(request.NewErrParamMinLen("TraceHeader", 1))
 12291  	}
 12292  
 12293  	if invalidParams.Len() > 0 {
 12294  		return invalidParams
 12295  	}
 12296  	return nil
 12297  }
 12298  
 12299  // SetDetail sets the Detail field's value.
 12300  func (s *PutEventsRequestEntry) SetDetail(v string) *PutEventsRequestEntry {
 12301  	s.Detail = &v
 12302  	return s
 12303  }
 12304  
 12305  // SetDetailType sets the DetailType field's value.
 12306  func (s *PutEventsRequestEntry) SetDetailType(v string) *PutEventsRequestEntry {
 12307  	s.DetailType = &v
 12308  	return s
 12309  }
 12310  
 12311  // SetEventBusName sets the EventBusName field's value.
 12312  func (s *PutEventsRequestEntry) SetEventBusName(v string) *PutEventsRequestEntry {
 12313  	s.EventBusName = &v
 12314  	return s
 12315  }
 12316  
 12317  // SetResources sets the Resources field's value.
 12318  func (s *PutEventsRequestEntry) SetResources(v []*string) *PutEventsRequestEntry {
 12319  	s.Resources = v
 12320  	return s
 12321  }
 12322  
 12323  // SetSource sets the Source field's value.
 12324  func (s *PutEventsRequestEntry) SetSource(v string) *PutEventsRequestEntry {
 12325  	s.Source = &v
 12326  	return s
 12327  }
 12328  
 12329  // SetTime sets the Time field's value.
 12330  func (s *PutEventsRequestEntry) SetTime(v time.Time) *PutEventsRequestEntry {
 12331  	s.Time = &v
 12332  	return s
 12333  }
 12334  
 12335  // SetTraceHeader sets the TraceHeader field's value.
 12336  func (s *PutEventsRequestEntry) SetTraceHeader(v string) *PutEventsRequestEntry {
 12337  	s.TraceHeader = &v
 12338  	return s
 12339  }
 12340  
 12341  // Represents an event that failed to be submitted.
 12342  type PutEventsResultEntry struct {
 12343  	_ struct{} `type:"structure"`
 12344  
 12345  	// The error code that indicates why the event submission failed.
 12346  	ErrorCode *string `type:"string"`
 12347  
 12348  	// The error message that explains why the event submission failed.
 12349  	ErrorMessage *string `type:"string"`
 12350  
 12351  	// The ID of the event.
 12352  	EventId *string `type:"string"`
 12353  }
 12354  
 12355  // String returns the string representation.
 12356  //
 12357  // API parameter values that are decorated as "sensitive" in the API will not
 12358  // be included in the string output. The member name will be present, but the
 12359  // value will be replaced with "sensitive".
 12360  func (s PutEventsResultEntry) String() string {
 12361  	return awsutil.Prettify(s)
 12362  }
 12363  
 12364  // GoString returns the string representation.
 12365  //
 12366  // API parameter values that are decorated as "sensitive" in the API will not
 12367  // be included in the string output. The member name will be present, but the
 12368  // value will be replaced with "sensitive".
 12369  func (s PutEventsResultEntry) GoString() string {
 12370  	return s.String()
 12371  }
 12372  
 12373  // SetErrorCode sets the ErrorCode field's value.
 12374  func (s *PutEventsResultEntry) SetErrorCode(v string) *PutEventsResultEntry {
 12375  	s.ErrorCode = &v
 12376  	return s
 12377  }
 12378  
 12379  // SetErrorMessage sets the ErrorMessage field's value.
 12380  func (s *PutEventsResultEntry) SetErrorMessage(v string) *PutEventsResultEntry {
 12381  	s.ErrorMessage = &v
 12382  	return s
 12383  }
 12384  
 12385  // SetEventId sets the EventId field's value.
 12386  func (s *PutEventsResultEntry) SetEventId(v string) *PutEventsResultEntry {
 12387  	s.EventId = &v
 12388  	return s
 12389  }
 12390  
 12391  type PutPartnerEventsInput struct {
 12392  	_ struct{} `type:"structure"`
 12393  
 12394  	// The list of events to write to the event bus.
 12395  	//
 12396  	// Entries is a required field
 12397  	Entries []*PutPartnerEventsRequestEntry `min:"1" type:"list" required:"true"`
 12398  }
 12399  
 12400  // String returns the string representation.
 12401  //
 12402  // API parameter values that are decorated as "sensitive" in the API will not
 12403  // be included in the string output. The member name will be present, but the
 12404  // value will be replaced with "sensitive".
 12405  func (s PutPartnerEventsInput) String() string {
 12406  	return awsutil.Prettify(s)
 12407  }
 12408  
 12409  // GoString returns the string representation.
 12410  //
 12411  // API parameter values that are decorated as "sensitive" in the API will not
 12412  // be included in the string output. The member name will be present, but the
 12413  // value will be replaced with "sensitive".
 12414  func (s PutPartnerEventsInput) GoString() string {
 12415  	return s.String()
 12416  }
 12417  
 12418  // Validate inspects the fields of the type to determine if they are valid.
 12419  func (s *PutPartnerEventsInput) Validate() error {
 12420  	invalidParams := request.ErrInvalidParams{Context: "PutPartnerEventsInput"}
 12421  	if s.Entries == nil {
 12422  		invalidParams.Add(request.NewErrParamRequired("Entries"))
 12423  	}
 12424  	if s.Entries != nil && len(s.Entries) < 1 {
 12425  		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
 12426  	}
 12427  	if s.Entries != nil {
 12428  		for i, v := range s.Entries {
 12429  			if v == nil {
 12430  				continue
 12431  			}
 12432  			if err := v.Validate(); err != nil {
 12433  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
 12434  			}
 12435  		}
 12436  	}
 12437  
 12438  	if invalidParams.Len() > 0 {
 12439  		return invalidParams
 12440  	}
 12441  	return nil
 12442  }
 12443  
 12444  // SetEntries sets the Entries field's value.
 12445  func (s *PutPartnerEventsInput) SetEntries(v []*PutPartnerEventsRequestEntry) *PutPartnerEventsInput {
 12446  	s.Entries = v
 12447  	return s
 12448  }
 12449  
 12450  type PutPartnerEventsOutput struct {
 12451  	_ struct{} `type:"structure"`
 12452  
 12453  	// The list of events from this operation that were successfully written to
 12454  	// the partner event bus.
 12455  	Entries []*PutPartnerEventsResultEntry `type:"list"`
 12456  
 12457  	// The number of events from this operation that could not be written to the
 12458  	// partner event bus.
 12459  	FailedEntryCount *int64 `type:"integer"`
 12460  }
 12461  
 12462  // String returns the string representation.
 12463  //
 12464  // API parameter values that are decorated as "sensitive" in the API will not
 12465  // be included in the string output. The member name will be present, but the
 12466  // value will be replaced with "sensitive".
 12467  func (s PutPartnerEventsOutput) String() string {
 12468  	return awsutil.Prettify(s)
 12469  }
 12470  
 12471  // GoString returns the string representation.
 12472  //
 12473  // API parameter values that are decorated as "sensitive" in the API will not
 12474  // be included in the string output. The member name will be present, but the
 12475  // value will be replaced with "sensitive".
 12476  func (s PutPartnerEventsOutput) GoString() string {
 12477  	return s.String()
 12478  }
 12479  
 12480  // SetEntries sets the Entries field's value.
 12481  func (s *PutPartnerEventsOutput) SetEntries(v []*PutPartnerEventsResultEntry) *PutPartnerEventsOutput {
 12482  	s.Entries = v
 12483  	return s
 12484  }
 12485  
 12486  // SetFailedEntryCount sets the FailedEntryCount field's value.
 12487  func (s *PutPartnerEventsOutput) SetFailedEntryCount(v int64) *PutPartnerEventsOutput {
 12488  	s.FailedEntryCount = &v
 12489  	return s
 12490  }
 12491  
 12492  // The details about an event generated by an SaaS partner.
 12493  type PutPartnerEventsRequestEntry struct {
 12494  	_ struct{} `type:"structure"`
 12495  
 12496  	// A valid JSON string. There is no other schema imposed. The JSON string may
 12497  	// contain fields and nested subobjects.
 12498  	Detail *string `type:"string"`
 12499  
 12500  	// A free-form string used to decide what fields to expect in the event detail.
 12501  	DetailType *string `type:"string"`
 12502  
 12503  	// Amazon Web Services resources, identified by Amazon Resource Name (ARN),
 12504  	// which the event primarily concerns. Any number, including zero, may be present.
 12505  	Resources []*string `type:"list"`
 12506  
 12507  	// The event source that is generating the entry.
 12508  	Source *string `min:"1" type:"string"`
 12509  
 12510  	// The date and time of the event.
 12511  	Time *time.Time `type:"timestamp"`
 12512  }
 12513  
 12514  // String returns the string representation.
 12515  //
 12516  // API parameter values that are decorated as "sensitive" in the API will not
 12517  // be included in the string output. The member name will be present, but the
 12518  // value will be replaced with "sensitive".
 12519  func (s PutPartnerEventsRequestEntry) String() string {
 12520  	return awsutil.Prettify(s)
 12521  }
 12522  
 12523  // GoString returns the string representation.
 12524  //
 12525  // API parameter values that are decorated as "sensitive" in the API will not
 12526  // be included in the string output. The member name will be present, but the
 12527  // value will be replaced with "sensitive".
 12528  func (s PutPartnerEventsRequestEntry) GoString() string {
 12529  	return s.String()
 12530  }
 12531  
 12532  // Validate inspects the fields of the type to determine if they are valid.
 12533  func (s *PutPartnerEventsRequestEntry) Validate() error {
 12534  	invalidParams := request.ErrInvalidParams{Context: "PutPartnerEventsRequestEntry"}
 12535  	if s.Source != nil && len(*s.Source) < 1 {
 12536  		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
 12537  	}
 12538  
 12539  	if invalidParams.Len() > 0 {
 12540  		return invalidParams
 12541  	}
 12542  	return nil
 12543  }
 12544  
 12545  // SetDetail sets the Detail field's value.
 12546  func (s *PutPartnerEventsRequestEntry) SetDetail(v string) *PutPartnerEventsRequestEntry {
 12547  	s.Detail = &v
 12548  	return s
 12549  }
 12550  
 12551  // SetDetailType sets the DetailType field's value.
 12552  func (s *PutPartnerEventsRequestEntry) SetDetailType(v string) *PutPartnerEventsRequestEntry {
 12553  	s.DetailType = &v
 12554  	return s
 12555  }
 12556  
 12557  // SetResources sets the Resources field's value.
 12558  func (s *PutPartnerEventsRequestEntry) SetResources(v []*string) *PutPartnerEventsRequestEntry {
 12559  	s.Resources = v
 12560  	return s
 12561  }
 12562  
 12563  // SetSource sets the Source field's value.
 12564  func (s *PutPartnerEventsRequestEntry) SetSource(v string) *PutPartnerEventsRequestEntry {
 12565  	s.Source = &v
 12566  	return s
 12567  }
 12568  
 12569  // SetTime sets the Time field's value.
 12570  func (s *PutPartnerEventsRequestEntry) SetTime(v time.Time) *PutPartnerEventsRequestEntry {
 12571  	s.Time = &v
 12572  	return s
 12573  }
 12574  
 12575  // Represents an event that a partner tried to generate, but failed.
 12576  type PutPartnerEventsResultEntry struct {
 12577  	_ struct{} `type:"structure"`
 12578  
 12579  	// The error code that indicates why the event submission failed.
 12580  	ErrorCode *string `type:"string"`
 12581  
 12582  	// The error message that explains why the event submission failed.
 12583  	ErrorMessage *string `type:"string"`
 12584  
 12585  	// The ID of the event.
 12586  	EventId *string `type:"string"`
 12587  }
 12588  
 12589  // String returns the string representation.
 12590  //
 12591  // API parameter values that are decorated as "sensitive" in the API will not
 12592  // be included in the string output. The member name will be present, but the
 12593  // value will be replaced with "sensitive".
 12594  func (s PutPartnerEventsResultEntry) String() string {
 12595  	return awsutil.Prettify(s)
 12596  }
 12597  
 12598  // GoString returns the string representation.
 12599  //
 12600  // API parameter values that are decorated as "sensitive" in the API will not
 12601  // be included in the string output. The member name will be present, but the
 12602  // value will be replaced with "sensitive".
 12603  func (s PutPartnerEventsResultEntry) GoString() string {
 12604  	return s.String()
 12605  }
 12606  
 12607  // SetErrorCode sets the ErrorCode field's value.
 12608  func (s *PutPartnerEventsResultEntry) SetErrorCode(v string) *PutPartnerEventsResultEntry {
 12609  	s.ErrorCode = &v
 12610  	return s
 12611  }
 12612  
 12613  // SetErrorMessage sets the ErrorMessage field's value.
 12614  func (s *PutPartnerEventsResultEntry) SetErrorMessage(v string) *PutPartnerEventsResultEntry {
 12615  	s.ErrorMessage = &v
 12616  	return s
 12617  }
 12618  
 12619  // SetEventId sets the EventId field's value.
 12620  func (s *PutPartnerEventsResultEntry) SetEventId(v string) *PutPartnerEventsResultEntry {
 12621  	s.EventId = &v
 12622  	return s
 12623  }
 12624  
 12625  type PutPermissionInput struct {
 12626  	_ struct{} `type:"structure"`
 12627  
 12628  	// The action that you are enabling the other account to perform.
 12629  	Action *string `min:"1" type:"string"`
 12630  
 12631  	// This parameter enables you to limit the permission to accounts that fulfill
 12632  	// a certain condition, such as being a member of a certain Amazon Web Services
 12633  	// organization. For more information about Amazon Web Services Organizations,
 12634  	// see What Is Amazon Web Services Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html)
 12635  	// in the Amazon Web Services Organizations User Guide.
 12636  	//
 12637  	// If you specify Condition with an Amazon Web Services organization ID, and
 12638  	// specify "*" as the value for Principal, you grant permission to all the accounts
 12639  	// in the named organization.
 12640  	//
 12641  	// The Condition is a JSON string which must contain Type, Key, and Value fields.
 12642  	Condition *Condition `type:"structure"`
 12643  
 12644  	// The name of the event bus associated with the rule. If you omit this, the
 12645  	// default event bus is used.
 12646  	EventBusName *string `min:"1" type:"string"`
 12647  
 12648  	// A JSON string that describes the permission policy statement. You can include
 12649  	// a Policy parameter in the request instead of using the StatementId, Action,
 12650  	// Principal, or Condition parameters.
 12651  	Policy *string `type:"string"`
 12652  
 12653  	// The 12-digit Amazon Web Services account ID that you are permitting to put
 12654  	// events to your default event bus. Specify "*" to permit any account to put
 12655  	// events to your default event bus.
 12656  	//
 12657  	// If you specify "*" without specifying Condition, avoid creating rules that
 12658  	// may match undesirable events. To create more secure rules, make sure that
 12659  	// the event pattern for each rule contains an account field with a specific
 12660  	// account ID from which to receive events. Rules with an account field do not
 12661  	// match any events sent from other accounts.
 12662  	Principal *string `min:"1" type:"string"`
 12663  
 12664  	// An identifier string for the external account that you are granting permissions
 12665  	// to. If you later want to revoke the permission for this external account,
 12666  	// specify this StatementId when you run RemovePermission (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemovePermission.html).
 12667  	StatementId *string `min:"1" type:"string"`
 12668  }
 12669  
 12670  // String returns the string representation.
 12671  //
 12672  // API parameter values that are decorated as "sensitive" in the API will not
 12673  // be included in the string output. The member name will be present, but the
 12674  // value will be replaced with "sensitive".
 12675  func (s PutPermissionInput) String() string {
 12676  	return awsutil.Prettify(s)
 12677  }
 12678  
 12679  // GoString returns the string representation.
 12680  //
 12681  // API parameter values that are decorated as "sensitive" in the API will not
 12682  // be included in the string output. The member name will be present, but the
 12683  // value will be replaced with "sensitive".
 12684  func (s PutPermissionInput) GoString() string {
 12685  	return s.String()
 12686  }
 12687  
 12688  // Validate inspects the fields of the type to determine if they are valid.
 12689  func (s *PutPermissionInput) Validate() error {
 12690  	invalidParams := request.ErrInvalidParams{Context: "PutPermissionInput"}
 12691  	if s.Action != nil && len(*s.Action) < 1 {
 12692  		invalidParams.Add(request.NewErrParamMinLen("Action", 1))
 12693  	}
 12694  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 12695  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 12696  	}
 12697  	if s.Principal != nil && len(*s.Principal) < 1 {
 12698  		invalidParams.Add(request.NewErrParamMinLen("Principal", 1))
 12699  	}
 12700  	if s.StatementId != nil && len(*s.StatementId) < 1 {
 12701  		invalidParams.Add(request.NewErrParamMinLen("StatementId", 1))
 12702  	}
 12703  	if s.Condition != nil {
 12704  		if err := s.Condition.Validate(); err != nil {
 12705  			invalidParams.AddNested("Condition", err.(request.ErrInvalidParams))
 12706  		}
 12707  	}
 12708  
 12709  	if invalidParams.Len() > 0 {
 12710  		return invalidParams
 12711  	}
 12712  	return nil
 12713  }
 12714  
 12715  // SetAction sets the Action field's value.
 12716  func (s *PutPermissionInput) SetAction(v string) *PutPermissionInput {
 12717  	s.Action = &v
 12718  	return s
 12719  }
 12720  
 12721  // SetCondition sets the Condition field's value.
 12722  func (s *PutPermissionInput) SetCondition(v *Condition) *PutPermissionInput {
 12723  	s.Condition = v
 12724  	return s
 12725  }
 12726  
 12727  // SetEventBusName sets the EventBusName field's value.
 12728  func (s *PutPermissionInput) SetEventBusName(v string) *PutPermissionInput {
 12729  	s.EventBusName = &v
 12730  	return s
 12731  }
 12732  
 12733  // SetPolicy sets the Policy field's value.
 12734  func (s *PutPermissionInput) SetPolicy(v string) *PutPermissionInput {
 12735  	s.Policy = &v
 12736  	return s
 12737  }
 12738  
 12739  // SetPrincipal sets the Principal field's value.
 12740  func (s *PutPermissionInput) SetPrincipal(v string) *PutPermissionInput {
 12741  	s.Principal = &v
 12742  	return s
 12743  }
 12744  
 12745  // SetStatementId sets the StatementId field's value.
 12746  func (s *PutPermissionInput) SetStatementId(v string) *PutPermissionInput {
 12747  	s.StatementId = &v
 12748  	return s
 12749  }
 12750  
 12751  type PutPermissionOutput struct {
 12752  	_ struct{} `type:"structure"`
 12753  }
 12754  
 12755  // String returns the string representation.
 12756  //
 12757  // API parameter values that are decorated as "sensitive" in the API will not
 12758  // be included in the string output. The member name will be present, but the
 12759  // value will be replaced with "sensitive".
 12760  func (s PutPermissionOutput) String() string {
 12761  	return awsutil.Prettify(s)
 12762  }
 12763  
 12764  // GoString returns the string representation.
 12765  //
 12766  // API parameter values that are decorated as "sensitive" in the API will not
 12767  // be included in the string output. The member name will be present, but the
 12768  // value will be replaced with "sensitive".
 12769  func (s PutPermissionOutput) GoString() string {
 12770  	return s.String()
 12771  }
 12772  
 12773  type PutRuleInput struct {
 12774  	_ struct{} `type:"structure"`
 12775  
 12776  	// A description of the rule.
 12777  	Description *string `type:"string"`
 12778  
 12779  	// The name or ARN of the event bus to associate with this rule. If you omit
 12780  	// this, the default event bus is used.
 12781  	EventBusName *string `min:"1" type:"string"`
 12782  
 12783  	// The event pattern. For more information, see Events and Event Patterns (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html)
 12784  	// in the Amazon EventBridge User Guide.
 12785  	EventPattern *string `type:"string"`
 12786  
 12787  	// The name of the rule that you are creating or updating.
 12788  	//
 12789  	// Name is a required field
 12790  	Name *string `min:"1" type:"string" required:"true"`
 12791  
 12792  	// The Amazon Resource Name (ARN) of the IAM role associated with the rule.
 12793  	//
 12794  	// If you're setting an event bus in another account as the target and that
 12795  	// account granted permission to your account through an organization instead
 12796  	// of directly by the account ID, you must specify a RoleArn with proper permissions
 12797  	// in the Target structure, instead of here in this parameter.
 12798  	RoleArn *string `min:"1" type:"string"`
 12799  
 12800  	// The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
 12801  	ScheduleExpression *string `type:"string"`
 12802  
 12803  	// Indicates whether the rule is enabled or disabled.
 12804  	State *string `type:"string" enum:"RuleState"`
 12805  
 12806  	// The list of key-value pairs to associate with the rule.
 12807  	Tags []*Tag `type:"list"`
 12808  }
 12809  
 12810  // String returns the string representation.
 12811  //
 12812  // API parameter values that are decorated as "sensitive" in the API will not
 12813  // be included in the string output. The member name will be present, but the
 12814  // value will be replaced with "sensitive".
 12815  func (s PutRuleInput) String() string {
 12816  	return awsutil.Prettify(s)
 12817  }
 12818  
 12819  // GoString returns the string representation.
 12820  //
 12821  // API parameter values that are decorated as "sensitive" in the API will not
 12822  // be included in the string output. The member name will be present, but the
 12823  // value will be replaced with "sensitive".
 12824  func (s PutRuleInput) GoString() string {
 12825  	return s.String()
 12826  }
 12827  
 12828  // Validate inspects the fields of the type to determine if they are valid.
 12829  func (s *PutRuleInput) Validate() error {
 12830  	invalidParams := request.ErrInvalidParams{Context: "PutRuleInput"}
 12831  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 12832  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 12833  	}
 12834  	if s.Name == nil {
 12835  		invalidParams.Add(request.NewErrParamRequired("Name"))
 12836  	}
 12837  	if s.Name != nil && len(*s.Name) < 1 {
 12838  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
 12839  	}
 12840  	if s.RoleArn != nil && len(*s.RoleArn) < 1 {
 12841  		invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
 12842  	}
 12843  	if s.Tags != nil {
 12844  		for i, v := range s.Tags {
 12845  			if v == nil {
 12846  				continue
 12847  			}
 12848  			if err := v.Validate(); err != nil {
 12849  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
 12850  			}
 12851  		}
 12852  	}
 12853  
 12854  	if invalidParams.Len() > 0 {
 12855  		return invalidParams
 12856  	}
 12857  	return nil
 12858  }
 12859  
 12860  // SetDescription sets the Description field's value.
 12861  func (s *PutRuleInput) SetDescription(v string) *PutRuleInput {
 12862  	s.Description = &v
 12863  	return s
 12864  }
 12865  
 12866  // SetEventBusName sets the EventBusName field's value.
 12867  func (s *PutRuleInput) SetEventBusName(v string) *PutRuleInput {
 12868  	s.EventBusName = &v
 12869  	return s
 12870  }
 12871  
 12872  // SetEventPattern sets the EventPattern field's value.
 12873  func (s *PutRuleInput) SetEventPattern(v string) *PutRuleInput {
 12874  	s.EventPattern = &v
 12875  	return s
 12876  }
 12877  
 12878  // SetName sets the Name field's value.
 12879  func (s *PutRuleInput) SetName(v string) *PutRuleInput {
 12880  	s.Name = &v
 12881  	return s
 12882  }
 12883  
 12884  // SetRoleArn sets the RoleArn field's value.
 12885  func (s *PutRuleInput) SetRoleArn(v string) *PutRuleInput {
 12886  	s.RoleArn = &v
 12887  	return s
 12888  }
 12889  
 12890  // SetScheduleExpression sets the ScheduleExpression field's value.
 12891  func (s *PutRuleInput) SetScheduleExpression(v string) *PutRuleInput {
 12892  	s.ScheduleExpression = &v
 12893  	return s
 12894  }
 12895  
 12896  // SetState sets the State field's value.
 12897  func (s *PutRuleInput) SetState(v string) *PutRuleInput {
 12898  	s.State = &v
 12899  	return s
 12900  }
 12901  
 12902  // SetTags sets the Tags field's value.
 12903  func (s *PutRuleInput) SetTags(v []*Tag) *PutRuleInput {
 12904  	s.Tags = v
 12905  	return s
 12906  }
 12907  
 12908  type PutRuleOutput struct {
 12909  	_ struct{} `type:"structure"`
 12910  
 12911  	// The Amazon Resource Name (ARN) of the rule.
 12912  	RuleArn *string `min:"1" type:"string"`
 12913  }
 12914  
 12915  // String returns the string representation.
 12916  //
 12917  // API parameter values that are decorated as "sensitive" in the API will not
 12918  // be included in the string output. The member name will be present, but the
 12919  // value will be replaced with "sensitive".
 12920  func (s PutRuleOutput) String() string {
 12921  	return awsutil.Prettify(s)
 12922  }
 12923  
 12924  // GoString returns the string representation.
 12925  //
 12926  // API parameter values that are decorated as "sensitive" in the API will not
 12927  // be included in the string output. The member name will be present, but the
 12928  // value will be replaced with "sensitive".
 12929  func (s PutRuleOutput) GoString() string {
 12930  	return s.String()
 12931  }
 12932  
 12933  // SetRuleArn sets the RuleArn field's value.
 12934  func (s *PutRuleOutput) SetRuleArn(v string) *PutRuleOutput {
 12935  	s.RuleArn = &v
 12936  	return s
 12937  }
 12938  
 12939  type PutTargetsInput struct {
 12940  	_ struct{} `type:"structure"`
 12941  
 12942  	// The name or ARN of the event bus associated with the rule. If you omit this,
 12943  	// the default event bus is used.
 12944  	EventBusName *string `min:"1" type:"string"`
 12945  
 12946  	// The name of the rule.
 12947  	//
 12948  	// Rule is a required field
 12949  	Rule *string `min:"1" type:"string" required:"true"`
 12950  
 12951  	// The targets to update or add to the rule.
 12952  	//
 12953  	// Targets is a required field
 12954  	Targets []*Target `min:"1" type:"list" required:"true"`
 12955  }
 12956  
 12957  // String returns the string representation.
 12958  //
 12959  // API parameter values that are decorated as "sensitive" in the API will not
 12960  // be included in the string output. The member name will be present, but the
 12961  // value will be replaced with "sensitive".
 12962  func (s PutTargetsInput) String() string {
 12963  	return awsutil.Prettify(s)
 12964  }
 12965  
 12966  // GoString returns the string representation.
 12967  //
 12968  // API parameter values that are decorated as "sensitive" in the API will not
 12969  // be included in the string output. The member name will be present, but the
 12970  // value will be replaced with "sensitive".
 12971  func (s PutTargetsInput) GoString() string {
 12972  	return s.String()
 12973  }
 12974  
 12975  // Validate inspects the fields of the type to determine if they are valid.
 12976  func (s *PutTargetsInput) Validate() error {
 12977  	invalidParams := request.ErrInvalidParams{Context: "PutTargetsInput"}
 12978  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 12979  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 12980  	}
 12981  	if s.Rule == nil {
 12982  		invalidParams.Add(request.NewErrParamRequired("Rule"))
 12983  	}
 12984  	if s.Rule != nil && len(*s.Rule) < 1 {
 12985  		invalidParams.Add(request.NewErrParamMinLen("Rule", 1))
 12986  	}
 12987  	if s.Targets == nil {
 12988  		invalidParams.Add(request.NewErrParamRequired("Targets"))
 12989  	}
 12990  	if s.Targets != nil && len(s.Targets) < 1 {
 12991  		invalidParams.Add(request.NewErrParamMinLen("Targets", 1))
 12992  	}
 12993  	if s.Targets != nil {
 12994  		for i, v := range s.Targets {
 12995  			if v == nil {
 12996  				continue
 12997  			}
 12998  			if err := v.Validate(); err != nil {
 12999  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
 13000  			}
 13001  		}
 13002  	}
 13003  
 13004  	if invalidParams.Len() > 0 {
 13005  		return invalidParams
 13006  	}
 13007  	return nil
 13008  }
 13009  
 13010  // SetEventBusName sets the EventBusName field's value.
 13011  func (s *PutTargetsInput) SetEventBusName(v string) *PutTargetsInput {
 13012  	s.EventBusName = &v
 13013  	return s
 13014  }
 13015  
 13016  // SetRule sets the Rule field's value.
 13017  func (s *PutTargetsInput) SetRule(v string) *PutTargetsInput {
 13018  	s.Rule = &v
 13019  	return s
 13020  }
 13021  
 13022  // SetTargets sets the Targets field's value.
 13023  func (s *PutTargetsInput) SetTargets(v []*Target) *PutTargetsInput {
 13024  	s.Targets = v
 13025  	return s
 13026  }
 13027  
 13028  type PutTargetsOutput struct {
 13029  	_ struct{} `type:"structure"`
 13030  
 13031  	// The failed target entries.
 13032  	FailedEntries []*PutTargetsResultEntry `type:"list"`
 13033  
 13034  	// The number of failed entries.
 13035  	FailedEntryCount *int64 `type:"integer"`
 13036  }
 13037  
 13038  // String returns the string representation.
 13039  //
 13040  // API parameter values that are decorated as "sensitive" in the API will not
 13041  // be included in the string output. The member name will be present, but the
 13042  // value will be replaced with "sensitive".
 13043  func (s PutTargetsOutput) String() string {
 13044  	return awsutil.Prettify(s)
 13045  }
 13046  
 13047  // GoString returns the string representation.
 13048  //
 13049  // API parameter values that are decorated as "sensitive" in the API will not
 13050  // be included in the string output. The member name will be present, but the
 13051  // value will be replaced with "sensitive".
 13052  func (s PutTargetsOutput) GoString() string {
 13053  	return s.String()
 13054  }
 13055  
 13056  // SetFailedEntries sets the FailedEntries field's value.
 13057  func (s *PutTargetsOutput) SetFailedEntries(v []*PutTargetsResultEntry) *PutTargetsOutput {
 13058  	s.FailedEntries = v
 13059  	return s
 13060  }
 13061  
 13062  // SetFailedEntryCount sets the FailedEntryCount field's value.
 13063  func (s *PutTargetsOutput) SetFailedEntryCount(v int64) *PutTargetsOutput {
 13064  	s.FailedEntryCount = &v
 13065  	return s
 13066  }
 13067  
 13068  // Represents a target that failed to be added to a rule.
 13069  type PutTargetsResultEntry struct {
 13070  	_ struct{} `type:"structure"`
 13071  
 13072  	// The error code that indicates why the target addition failed. If the value
 13073  	// is ConcurrentModificationException, too many requests were made at the same
 13074  	// time.
 13075  	ErrorCode *string `type:"string"`
 13076  
 13077  	// The error message that explains why the target addition failed.
 13078  	ErrorMessage *string `type:"string"`
 13079  
 13080  	// The ID of the target.
 13081  	TargetId *string `min:"1" type:"string"`
 13082  }
 13083  
 13084  // String returns the string representation.
 13085  //
 13086  // API parameter values that are decorated as "sensitive" in the API will not
 13087  // be included in the string output. The member name will be present, but the
 13088  // value will be replaced with "sensitive".
 13089  func (s PutTargetsResultEntry) String() string {
 13090  	return awsutil.Prettify(s)
 13091  }
 13092  
 13093  // GoString returns the string representation.
 13094  //
 13095  // API parameter values that are decorated as "sensitive" in the API will not
 13096  // be included in the string output. The member name will be present, but the
 13097  // value will be replaced with "sensitive".
 13098  func (s PutTargetsResultEntry) GoString() string {
 13099  	return s.String()
 13100  }
 13101  
 13102  // SetErrorCode sets the ErrorCode field's value.
 13103  func (s *PutTargetsResultEntry) SetErrorCode(v string) *PutTargetsResultEntry {
 13104  	s.ErrorCode = &v
 13105  	return s
 13106  }
 13107  
 13108  // SetErrorMessage sets the ErrorMessage field's value.
 13109  func (s *PutTargetsResultEntry) SetErrorMessage(v string) *PutTargetsResultEntry {
 13110  	s.ErrorMessage = &v
 13111  	return s
 13112  }
 13113  
 13114  // SetTargetId sets the TargetId field's value.
 13115  func (s *PutTargetsResultEntry) SetTargetId(v string) *PutTargetsResultEntry {
 13116  	s.TargetId = &v
 13117  	return s
 13118  }
 13119  
 13120  // These are custom parameters to be used when the target is a Amazon Redshift
 13121  // cluster to invoke the Amazon Redshift Data API ExecuteStatement based on
 13122  // EventBridge events.
 13123  type RedshiftDataParameters struct {
 13124  	_ struct{} `type:"structure"`
 13125  
 13126  	// The name of the database. Required when authenticating using temporary credentials.
 13127  	//
 13128  	// Database is a required field
 13129  	Database *string `min:"1" type:"string" required:"true"`
 13130  
 13131  	// The database user name. Required when authenticating using temporary credentials.
 13132  	DbUser *string `min:"1" type:"string"`
 13133  
 13134  	// The name or ARN of the secret that enables access to the database. Required
 13135  	// when authenticating using Amazon Web Services Secrets Manager.
 13136  	SecretManagerArn *string `min:"1" type:"string"`
 13137  
 13138  	// The SQL statement text to run.
 13139  	//
 13140  	// Sql is a required field
 13141  	Sql *string `min:"1" type:"string" required:"true"`
 13142  
 13143  	// The name of the SQL statement. You can name the SQL statement when you create
 13144  	// it to identify the query.
 13145  	StatementName *string `min:"1" type:"string"`
 13146  
 13147  	// Indicates whether to send an event back to EventBridge after the SQL statement
 13148  	// runs.
 13149  	WithEvent *bool `type:"boolean"`
 13150  }
 13151  
 13152  // String returns the string representation.
 13153  //
 13154  // API parameter values that are decorated as "sensitive" in the API will not
 13155  // be included in the string output. The member name will be present, but the
 13156  // value will be replaced with "sensitive".
 13157  func (s RedshiftDataParameters) String() string {
 13158  	return awsutil.Prettify(s)
 13159  }
 13160  
 13161  // GoString returns the string representation.
 13162  //
 13163  // API parameter values that are decorated as "sensitive" in the API will not
 13164  // be included in the string output. The member name will be present, but the
 13165  // value will be replaced with "sensitive".
 13166  func (s RedshiftDataParameters) GoString() string {
 13167  	return s.String()
 13168  }
 13169  
 13170  // Validate inspects the fields of the type to determine if they are valid.
 13171  func (s *RedshiftDataParameters) Validate() error {
 13172  	invalidParams := request.ErrInvalidParams{Context: "RedshiftDataParameters"}
 13173  	if s.Database == nil {
 13174  		invalidParams.Add(request.NewErrParamRequired("Database"))
 13175  	}
 13176  	if s.Database != nil && len(*s.Database) < 1 {
 13177  		invalidParams.Add(request.NewErrParamMinLen("Database", 1))
 13178  	}
 13179  	if s.DbUser != nil && len(*s.DbUser) < 1 {
 13180  		invalidParams.Add(request.NewErrParamMinLen("DbUser", 1))
 13181  	}
 13182  	if s.SecretManagerArn != nil && len(*s.SecretManagerArn) < 1 {
 13183  		invalidParams.Add(request.NewErrParamMinLen("SecretManagerArn", 1))
 13184  	}
 13185  	if s.Sql == nil {
 13186  		invalidParams.Add(request.NewErrParamRequired("Sql"))
 13187  	}
 13188  	if s.Sql != nil && len(*s.Sql) < 1 {
 13189  		invalidParams.Add(request.NewErrParamMinLen("Sql", 1))
 13190  	}
 13191  	if s.StatementName != nil && len(*s.StatementName) < 1 {
 13192  		invalidParams.Add(request.NewErrParamMinLen("StatementName", 1))
 13193  	}
 13194  
 13195  	if invalidParams.Len() > 0 {
 13196  		return invalidParams
 13197  	}
 13198  	return nil
 13199  }
 13200  
 13201  // SetDatabase sets the Database field's value.
 13202  func (s *RedshiftDataParameters) SetDatabase(v string) *RedshiftDataParameters {
 13203  	s.Database = &v
 13204  	return s
 13205  }
 13206  
 13207  // SetDbUser sets the DbUser field's value.
 13208  func (s *RedshiftDataParameters) SetDbUser(v string) *RedshiftDataParameters {
 13209  	s.DbUser = &v
 13210  	return s
 13211  }
 13212  
 13213  // SetSecretManagerArn sets the SecretManagerArn field's value.
 13214  func (s *RedshiftDataParameters) SetSecretManagerArn(v string) *RedshiftDataParameters {
 13215  	s.SecretManagerArn = &v
 13216  	return s
 13217  }
 13218  
 13219  // SetSql sets the Sql field's value.
 13220  func (s *RedshiftDataParameters) SetSql(v string) *RedshiftDataParameters {
 13221  	s.Sql = &v
 13222  	return s
 13223  }
 13224  
 13225  // SetStatementName sets the StatementName field's value.
 13226  func (s *RedshiftDataParameters) SetStatementName(v string) *RedshiftDataParameters {
 13227  	s.StatementName = &v
 13228  	return s
 13229  }
 13230  
 13231  // SetWithEvent sets the WithEvent field's value.
 13232  func (s *RedshiftDataParameters) SetWithEvent(v bool) *RedshiftDataParameters {
 13233  	s.WithEvent = &v
 13234  	return s
 13235  }
 13236  
 13237  type RemovePermissionInput struct {
 13238  	_ struct{} `type:"structure"`
 13239  
 13240  	// The name of the event bus to revoke permissions for. If you omit this, the
 13241  	// default event bus is used.
 13242  	EventBusName *string `min:"1" type:"string"`
 13243  
 13244  	// Specifies whether to remove all permissions.
 13245  	RemoveAllPermissions *bool `type:"boolean"`
 13246  
 13247  	// The statement ID corresponding to the account that is no longer allowed to
 13248  	// put events to the default event bus.
 13249  	StatementId *string `min:"1" type:"string"`
 13250  }
 13251  
 13252  // String returns the string representation.
 13253  //
 13254  // API parameter values that are decorated as "sensitive" in the API will not
 13255  // be included in the string output. The member name will be present, but the
 13256  // value will be replaced with "sensitive".
 13257  func (s RemovePermissionInput) String() string {
 13258  	return awsutil.Prettify(s)
 13259  }
 13260  
 13261  // GoString returns the string representation.
 13262  //
 13263  // API parameter values that are decorated as "sensitive" in the API will not
 13264  // be included in the string output. The member name will be present, but the
 13265  // value will be replaced with "sensitive".
 13266  func (s RemovePermissionInput) GoString() string {
 13267  	return s.String()
 13268  }
 13269  
 13270  // Validate inspects the fields of the type to determine if they are valid.
 13271  func (s *RemovePermissionInput) Validate() error {
 13272  	invalidParams := request.ErrInvalidParams{Context: "RemovePermissionInput"}
 13273  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 13274  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 13275  	}
 13276  	if s.StatementId != nil && len(*s.StatementId) < 1 {
 13277  		invalidParams.Add(request.NewErrParamMinLen("StatementId", 1))
 13278  	}
 13279  
 13280  	if invalidParams.Len() > 0 {
 13281  		return invalidParams
 13282  	}
 13283  	return nil
 13284  }
 13285  
 13286  // SetEventBusName sets the EventBusName field's value.
 13287  func (s *RemovePermissionInput) SetEventBusName(v string) *RemovePermissionInput {
 13288  	s.EventBusName = &v
 13289  	return s
 13290  }
 13291  
 13292  // SetRemoveAllPermissions sets the RemoveAllPermissions field's value.
 13293  func (s *RemovePermissionInput) SetRemoveAllPermissions(v bool) *RemovePermissionInput {
 13294  	s.RemoveAllPermissions = &v
 13295  	return s
 13296  }
 13297  
 13298  // SetStatementId sets the StatementId field's value.
 13299  func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput {
 13300  	s.StatementId = &v
 13301  	return s
 13302  }
 13303  
 13304  type RemovePermissionOutput struct {
 13305  	_ struct{} `type:"structure"`
 13306  }
 13307  
 13308  // String returns the string representation.
 13309  //
 13310  // API parameter values that are decorated as "sensitive" in the API will not
 13311  // be included in the string output. The member name will be present, but the
 13312  // value will be replaced with "sensitive".
 13313  func (s RemovePermissionOutput) String() string {
 13314  	return awsutil.Prettify(s)
 13315  }
 13316  
 13317  // GoString returns the string representation.
 13318  //
 13319  // API parameter values that are decorated as "sensitive" in the API will not
 13320  // be included in the string output. The member name will be present, but the
 13321  // value will be replaced with "sensitive".
 13322  func (s RemovePermissionOutput) GoString() string {
 13323  	return s.String()
 13324  }
 13325  
 13326  type RemoveTargetsInput struct {
 13327  	_ struct{} `type:"structure"`
 13328  
 13329  	// The name or ARN of the event bus associated with the rule. If you omit this,
 13330  	// the default event bus is used.
 13331  	EventBusName *string `min:"1" type:"string"`
 13332  
 13333  	// If this is a managed rule, created by an Amazon Web Services service on your
 13334  	// behalf, you must specify Force as True to remove targets. This parameter
 13335  	// is ignored for rules that are not managed rules. You can check whether a
 13336  	// rule is a managed rule by using DescribeRule or ListRules and checking the
 13337  	// ManagedBy field of the response.
 13338  	Force *bool `type:"boolean"`
 13339  
 13340  	// The IDs of the targets to remove from the rule.
 13341  	//
 13342  	// Ids is a required field
 13343  	Ids []*string `min:"1" type:"list" required:"true"`
 13344  
 13345  	// The name of the rule.
 13346  	//
 13347  	// Rule is a required field
 13348  	Rule *string `min:"1" type:"string" required:"true"`
 13349  }
 13350  
 13351  // String returns the string representation.
 13352  //
 13353  // API parameter values that are decorated as "sensitive" in the API will not
 13354  // be included in the string output. The member name will be present, but the
 13355  // value will be replaced with "sensitive".
 13356  func (s RemoveTargetsInput) String() string {
 13357  	return awsutil.Prettify(s)
 13358  }
 13359  
 13360  // GoString returns the string representation.
 13361  //
 13362  // API parameter values that are decorated as "sensitive" in the API will not
 13363  // be included in the string output. The member name will be present, but the
 13364  // value will be replaced with "sensitive".
 13365  func (s RemoveTargetsInput) GoString() string {
 13366  	return s.String()
 13367  }
 13368  
 13369  // Validate inspects the fields of the type to determine if they are valid.
 13370  func (s *RemoveTargetsInput) Validate() error {
 13371  	invalidParams := request.ErrInvalidParams{Context: "RemoveTargetsInput"}
 13372  	if s.EventBusName != nil && len(*s.EventBusName) < 1 {
 13373  		invalidParams.Add(request.NewErrParamMinLen("EventBusName", 1))
 13374  	}
 13375  	if s.Ids == nil {
 13376  		invalidParams.Add(request.NewErrParamRequired("Ids"))
 13377  	}
 13378  	if s.Ids != nil && len(s.Ids) < 1 {
 13379  		invalidParams.Add(request.NewErrParamMinLen("Ids", 1))
 13380  	}
 13381  	if s.Rule == nil {
 13382  		invalidParams.Add(request.NewErrParamRequired("Rule"))
 13383  	}
 13384  	if s.Rule != nil && len(*s.Rule) < 1 {
 13385  		invalidParams.Add(request.NewErrParamMinLen("Rule", 1))
 13386  	}
 13387  
 13388  	if invalidParams.Len() > 0 {
 13389  		return invalidParams
 13390  	}
 13391  	return nil
 13392  }
 13393  
 13394  // SetEventBusName sets the EventBusName field's value.
 13395  func (s *RemoveTargetsInput) SetEventBusName(v string) *RemoveTargetsInput {
 13396  	s.EventBusName = &v
 13397  	return s
 13398  }
 13399  
 13400  // SetForce sets the Force field's value.
 13401  func (s *RemoveTargetsInput) SetForce(v bool) *RemoveTargetsInput {
 13402  	s.Force = &v
 13403  	return s
 13404  }
 13405  
 13406  // SetIds sets the Ids field's value.
 13407  func (s *RemoveTargetsInput) SetIds(v []*string) *RemoveTargetsInput {
 13408  	s.Ids = v
 13409  	return s
 13410  }
 13411  
 13412  // SetRule sets the Rule field's value.
 13413  func (s *RemoveTargetsInput) SetRule(v string) *RemoveTargetsInput {
 13414  	s.Rule = &v
 13415  	return s
 13416  }
 13417  
 13418  type RemoveTargetsOutput struct {
 13419  	_ struct{} `type:"structure"`
 13420  
 13421  	// The failed target entries.
 13422  	FailedEntries []*RemoveTargetsResultEntry `type:"list"`
 13423  
 13424  	// The number of failed entries.
 13425  	FailedEntryCount *int64 `type:"integer"`
 13426  }
 13427  
 13428  // String returns the string representation.
 13429  //
 13430  // API parameter values that are decorated as "sensitive" in the API will not
 13431  // be included in the string output. The member name will be present, but the
 13432  // value will be replaced with "sensitive".
 13433  func (s RemoveTargetsOutput) String() string {
 13434  	return awsutil.Prettify(s)
 13435  }
 13436  
 13437  // GoString returns the string representation.
 13438  //
 13439  // API parameter values that are decorated as "sensitive" in the API will not
 13440  // be included in the string output. The member name will be present, but the
 13441  // value will be replaced with "sensitive".
 13442  func (s RemoveTargetsOutput) GoString() string {
 13443  	return s.String()
 13444  }
 13445  
 13446  // SetFailedEntries sets the FailedEntries field's value.
 13447  func (s *RemoveTargetsOutput) SetFailedEntries(v []*RemoveTargetsResultEntry) *RemoveTargetsOutput {
 13448  	s.FailedEntries = v
 13449  	return s
 13450  }
 13451  
 13452  // SetFailedEntryCount sets the FailedEntryCount field's value.
 13453  func (s *RemoveTargetsOutput) SetFailedEntryCount(v int64) *RemoveTargetsOutput {
 13454  	s.FailedEntryCount = &v
 13455  	return s
 13456  }
 13457  
 13458  // Represents a target that failed to be removed from a rule.
 13459  type RemoveTargetsResultEntry struct {
 13460  	_ struct{} `type:"structure"`
 13461  
 13462  	// The error code that indicates why the target removal failed. If the value
 13463  	// is ConcurrentModificationException, too many requests were made at the same
 13464  	// time.
 13465  	ErrorCode *string `type:"string"`
 13466  
 13467  	// The error message that explains why the target removal failed.
 13468  	ErrorMessage *string `type:"string"`
 13469  
 13470  	// The ID of the target.
 13471  	TargetId *string `min:"1" type:"string"`
 13472  }
 13473  
 13474  // String returns the string representation.
 13475  //
 13476  // API parameter values that are decorated as "sensitive" in the API will not
 13477  // be included in the string output. The member name will be present, but the
 13478  // value will be replaced with "sensitive".
 13479  func (s RemoveTargetsResultEntry) String() string {
 13480  	return awsutil.Prettify(s)
 13481  }
 13482  
 13483  // GoString returns the string representation.
 13484  //
 13485  // API parameter values that are decorated as "sensitive" in the API will not
 13486  // be included in the string output. The member name will be present, but the
 13487  // value will be replaced with "sensitive".
 13488  func (s RemoveTargetsResultEntry) GoString() string {
 13489  	return s.String()
 13490  }
 13491  
 13492  // SetErrorCode sets the ErrorCode field's value.
 13493  func (s *RemoveTargetsResultEntry) SetErrorCode(v string) *RemoveTargetsResultEntry {
 13494  	s.ErrorCode = &v
 13495  	return s
 13496  }
 13497  
 13498  // SetErrorMessage sets the ErrorMessage field's value.
 13499  func (s *RemoveTargetsResultEntry) SetErrorMessage(v string) *RemoveTargetsResultEntry {
 13500  	s.ErrorMessage = &v
 13501  	return s
 13502  }
 13503  
 13504  // SetTargetId sets the TargetId field's value.
 13505  func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEntry {
 13506  	s.TargetId = &v
 13507  	return s
 13508  }
 13509  
 13510  // A Replay object that contains details about a replay.
 13511  type Replay struct {
 13512  	_ struct{} `type:"structure"`
 13513  
 13514  	// A time stamp for the time to start replaying events. Any event with a creation
 13515  	// time prior to the EventEndTime specified is replayed.
 13516  	EventEndTime *time.Time `type:"timestamp"`
 13517  
 13518  	// A time stamp for the time that the last event was replayed.
 13519  	EventLastReplayedTime *time.Time `type:"timestamp"`
 13520  
 13521  	// The ARN of the archive to replay event from.
 13522  	EventSourceArn *string `min:"1" type:"string"`
 13523  
 13524  	// A time stamp for the time to start replaying events. This is determined by
 13525  	// the time in the event as described in Time (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html#eventbridge-Type-PutEventsRequestEntry-Time).
 13526  	EventStartTime *time.Time `type:"timestamp"`
 13527  
 13528  	// A time stamp for the time that the replay completed.
 13529  	ReplayEndTime *time.Time `type:"timestamp"`
 13530  
 13531  	// The name of the replay.
 13532  	ReplayName *string `min:"1" type:"string"`
 13533  
 13534  	// A time stamp for the time that the replay started.
 13535  	ReplayStartTime *time.Time `type:"timestamp"`
 13536  
 13537  	// The current state of the replay.
 13538  	State *string `type:"string" enum:"ReplayState"`
 13539  
 13540  	// A description of why the replay is in the current state.
 13541  	StateReason *string `type:"string"`
 13542  }
 13543  
 13544  // String returns the string representation.
 13545  //
 13546  // API parameter values that are decorated as "sensitive" in the API will not
 13547  // be included in the string output. The member name will be present, but the
 13548  // value will be replaced with "sensitive".
 13549  func (s Replay) String() string {
 13550  	return awsutil.Prettify(s)
 13551  }
 13552  
 13553  // GoString returns the string representation.
 13554  //
 13555  // API parameter values that are decorated as "sensitive" in the API will not
 13556  // be included in the string output. The member name will be present, but the
 13557  // value will be replaced with "sensitive".
 13558  func (s Replay) GoString() string {
 13559  	return s.String()
 13560  }
 13561  
 13562  // SetEventEndTime sets the EventEndTime field's value.
 13563  func (s *Replay) SetEventEndTime(v time.Time) *Replay {
 13564  	s.EventEndTime = &v
 13565  	return s
 13566  }
 13567  
 13568  // SetEventLastReplayedTime sets the EventLastReplayedTime field's value.
 13569  func (s *Replay) SetEventLastReplayedTime(v time.Time) *Replay {
 13570  	s.EventLastReplayedTime = &v
 13571  	return s
 13572  }
 13573  
 13574  // SetEventSourceArn sets the EventSourceArn field's value.
 13575  func (s *Replay) SetEventSourceArn(v string) *Replay {
 13576  	s.EventSourceArn = &v
 13577  	return s
 13578  }
 13579  
 13580  // SetEventStartTime sets the EventStartTime field's value.
 13581  func (s *Replay) SetEventStartTime(v time.Time) *Replay {
 13582  	s.EventStartTime = &v
 13583  	return s
 13584  }
 13585  
 13586  // SetReplayEndTime sets the ReplayEndTime field's value.
 13587  func (s *Replay) SetReplayEndTime(v time.Time) *Replay {
 13588  	s.ReplayEndTime = &v
 13589  	return s
 13590  }
 13591  
 13592  // SetReplayName sets the ReplayName field's value.
 13593  func (s *Replay) SetReplayName(v string) *Replay {
 13594  	s.ReplayName = &v
 13595  	return s
 13596  }
 13597  
 13598  // SetReplayStartTime sets the ReplayStartTime field's value.
 13599  func (s *Replay) SetReplayStartTime(v time.Time) *Replay {
 13600  	s.ReplayStartTime = &v
 13601  	return s
 13602  }
 13603  
 13604  // SetState sets the State field's value.
 13605  func (s *Replay) SetState(v string) *Replay {
 13606  	s.State = &v
 13607  	return s
 13608  }
 13609  
 13610  // SetStateReason sets the StateReason field's value.
 13611  func (s *Replay) SetStateReason(v string) *Replay {
 13612  	s.StateReason = &v
 13613  	return s
 13614  }
 13615  
 13616  // A ReplayDestination object that contains details about a replay.
 13617  type ReplayDestination struct {
 13618  	_ struct{} `type:"structure"`
 13619  
 13620  	// The ARN of the event bus to replay event to. You can replay events only to
 13621  	// the event bus specified to create the archive.
 13622  	//
 13623  	// Arn is a required field
 13624  	Arn *string `min:"1" type:"string" required:"true"`
 13625  
 13626  	// A list of ARNs for rules to replay events to.
 13627  	FilterArns []*string `type:"list"`
 13628  }
 13629  
 13630  // String returns the string representation.
 13631  //
 13632  // API parameter values that are decorated as "sensitive" in the API will not
 13633  // be included in the string output. The member name will be present, but the
 13634  // value will be replaced with "sensitive".
 13635  func (s ReplayDestination) String() string {
 13636  	return awsutil.Prettify(s)
 13637  }
 13638  
 13639  // GoString returns the string representation.
 13640  //
 13641  // API parameter values that are decorated as "sensitive" in the API will not
 13642  // be included in the string output. The member name will be present, but the
 13643  // value will be replaced with "sensitive".
 13644  func (s ReplayDestination) GoString() string {
 13645  	return s.String()
 13646  }
 13647  
 13648  // Validate inspects the fields of the type to determine if they are valid.
 13649  func (s *ReplayDestination) Validate() error {
 13650  	invalidParams := request.ErrInvalidParams{Context: "ReplayDestination"}
 13651  	if s.Arn == nil {
 13652  		invalidParams.Add(request.NewErrParamRequired("Arn"))
 13653  	}
 13654  	if s.Arn != nil && len(*s.Arn) < 1 {
 13655  		invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
 13656  	}
 13657  
 13658  	if invalidParams.Len() > 0 {
 13659  		return invalidParams
 13660  	}
 13661  	return nil
 13662  }
 13663  
 13664  // SetArn sets the Arn field's value.
 13665  func (s *ReplayDestination) SetArn(v string) *ReplayDestination {
 13666  	s.Arn = &v
 13667  	return s
 13668  }
 13669  
 13670  // SetFilterArns sets the FilterArns field's value.
 13671  func (s *ReplayDestination) SetFilterArns(v []*string) *ReplayDestination {
 13672  	s.FilterArns = v
 13673  	return s
 13674  }
 13675  
 13676  // The resource you are trying to create already exists.
 13677  type ResourceAlreadyExistsException struct {
 13678  	_            struct{}                  `type:"structure"`
 13679  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13680  
 13681  	Message_ *string `locationName:"message" type:"string"`
 13682  }
 13683  
 13684  // String returns the string representation.
 13685  //
 13686  // API parameter values that are decorated as "sensitive" in the API will not
 13687  // be included in the string output. The member name will be present, but the
 13688  // value will be replaced with "sensitive".
 13689  func (s ResourceAlreadyExistsException) String() string {
 13690  	return awsutil.Prettify(s)
 13691  }
 13692  
 13693  // GoString returns the string representation.
 13694  //
 13695  // API parameter values that are decorated as "sensitive" in the API will not
 13696  // be included in the string output. The member name will be present, but the
 13697  // value will be replaced with "sensitive".
 13698  func (s ResourceAlreadyExistsException) GoString() string {
 13699  	return s.String()
 13700  }
 13701  
 13702  func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
 13703  	return &ResourceAlreadyExistsException{
 13704  		RespMetadata: v,
 13705  	}
 13706  }
 13707  
 13708  // Code returns the exception type name.
 13709  func (s *ResourceAlreadyExistsException) Code() string {
 13710  	return "ResourceAlreadyExistsException"
 13711  }
 13712  
 13713  // Message returns the exception's message.
 13714  func (s *ResourceAlreadyExistsException) Message() string {
 13715  	if s.Message_ != nil {
 13716  		return *s.Message_
 13717  	}
 13718  	return ""
 13719  }
 13720  
 13721  // OrigErr always returns nil, satisfies awserr.Error interface.
 13722  func (s *ResourceAlreadyExistsException) OrigErr() error {
 13723  	return nil
 13724  }
 13725  
 13726  func (s *ResourceAlreadyExistsException) Error() string {
 13727  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13728  }
 13729  
 13730  // Status code returns the HTTP status code for the request's response error.
 13731  func (s *ResourceAlreadyExistsException) StatusCode() int {
 13732  	return s.RespMetadata.StatusCode
 13733  }
 13734  
 13735  // RequestID returns the service's response RequestID for request.
 13736  func (s *ResourceAlreadyExistsException) RequestID() string {
 13737  	return s.RespMetadata.RequestID
 13738  }
 13739  
 13740  // An entity that you specified does not exist.
 13741  type ResourceNotFoundException struct {
 13742  	_            struct{}                  `type:"structure"`
 13743  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
 13744  
 13745  	Message_ *string `locationName:"message" type:"string"`
 13746  }
 13747  
 13748  // String returns the string representation.
 13749  //
 13750  // API parameter values that are decorated as "sensitive" in the API will not
 13751  // be included in the string output. The member name will be present, but the
 13752  // value will be replaced with "sensitive".
 13753  func (s ResourceNotFoundException) String() string {
 13754  	return awsutil.Prettify(s)
 13755  }
 13756  
 13757  // GoString returns the string representation.
 13758  //
 13759  // API parameter values that are decorated as "sensitive" in the API will not
 13760  // be included in the string output. The member name will be present, but the
 13761  // value will be replaced with "sensitive".
 13762  func (s ResourceNotFoundException) GoString() string {
 13763  	return s.String()
 13764  }
 13765  
 13766  func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
 13767  	return &ResourceNotFoundException{
 13768  		RespMetadata: v,
 13769  	}
 13770  }
 13771  
 13772  // Code returns the exception type name.
 13773  func (s *ResourceNotFoundException) Code() string {
 13774  	return "ResourceNotFoundException"
 13775  }
 13776  
 13777  // Message returns the exception's message.
 13778  func (s *ResourceNotFoundException) Message() string {
 13779  	if s.Message_ != nil {
 13780  		return *s.Message_
 13781  	}
 13782  	return ""
 13783  }
 13784  
 13785  // OrigErr always returns nil, satisfies awserr.Error interface.
 13786  func (s *ResourceNotFoundException) OrigErr() error {
 13787  	return nil
 13788  }
 13789  
 13790  func (s *ResourceNotFoundException) Error() string {
 13791  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
 13792  }
 13793  
 13794  // Status code returns the HTTP status code for the request's response error.
 13795  func (s *ResourceNotFoundException) StatusCode() int {
 13796  	return s.RespMetadata.StatusCode
 13797  }
 13798  
 13799  // RequestID returns the service's response RequestID for request.
 13800  func (s *ResourceNotFoundException) RequestID() string {
 13801  	return s.RespMetadata.RequestID
 13802  }
 13803  
 13804  // A RetryPolicy object that includes information about the retry policy settings.
 13805  type RetryPolicy struct {
 13806  	_ struct{} `type:"structure"`
 13807  
 13808  	// The maximum amount of time, in seconds, to continue to make retry attempts.
 13809  	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`
 13810  
 13811  	// The maximum number of retry attempts to make before the request fails. Retry
 13812  	// attempts continue until either the maximum number of attempts is made or
 13813  	// until the duration of the MaximumEventAgeInSeconds is met.
 13814  	MaximumRetryAttempts *int64 `type:"integer"`
 13815  }
 13816  
 13817  // String returns the string representation.
 13818  //
 13819  // API parameter values that are decorated as "sensitive" in the API will not
 13820  // be included in the string output. The member name will be present, but the
 13821  // value will be replaced with "sensitive".
 13822  func (s RetryPolicy) String() string {
 13823  	return awsutil.Prettify(s)
 13824  }
 13825  
 13826  // GoString returns the string representation.
 13827  //
 13828  // API parameter values that are decorated as "sensitive" in the API will not
 13829  // be included in the string output. The member name will be present, but the
 13830  // value will be replaced with "sensitive".
 13831  func (s RetryPolicy) GoString() string {
 13832  	return s.String()
 13833  }
 13834  
 13835  // Validate inspects the fields of the type to determine if they are valid.
 13836  func (s *RetryPolicy) Validate() error {
 13837  	invalidParams := request.ErrInvalidParams{Context: "RetryPolicy"}
 13838  	if s.MaximumEventAgeInSeconds != nil && *s.MaximumEventAgeInSeconds < 60 {
 13839  		invalidParams.Add(request.NewErrParamMinValue("MaximumEventAgeInSeconds", 60))
 13840  	}
 13841  
 13842  	if invalidParams.Len() > 0 {
 13843  		return invalidParams
 13844  	}
 13845  	return nil
 13846  }
 13847  
 13848  // SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.
 13849  func (s *RetryPolicy) SetMaximumEventAgeInSeconds(v int64) *RetryPolicy {
 13850  	s.MaximumEventAgeInSeconds = &v
 13851  	return s
 13852  }
 13853  
 13854  // SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.
 13855  func (s *RetryPolicy) SetMaximumRetryAttempts(v int64) *RetryPolicy {
 13856  	s.MaximumRetryAttempts = &v
 13857  	return s
 13858  }
 13859  
 13860  // Contains information about a rule in Amazon EventBridge.
 13861  type Rule struct {
 13862  	_ struct{} `type:"structure"`
 13863  
 13864  	// The Amazon Resource Name (ARN) of the rule.
 13865  	Arn *string `min:"1" type:"string"`
 13866  
 13867  	// The description of the rule.
 13868  	Description *string `type:"string"`
 13869  
 13870  	// The name or ARN of the event bus associated with the rule. If you omit this,
 13871  	// the default event bus is used.
 13872  	EventBusName *string `min:"1" type:"string"`
 13873  
 13874  	// The event pattern of the rule. For more information, see Events and Event
 13875  	// Patterns (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html)
 13876  	// in the Amazon EventBridge User Guide.
 13877  	EventPattern *string `type:"string"`
 13878  
 13879  	// If the rule was created on behalf of your account by an Amazon Web Services
 13880  	// service, this field displays the principal name of the service that created
 13881  	// the rule.
 13882  	ManagedBy *string `min:"1" type:"string"`
 13883  
 13884  	// The name of the rule.
 13885  	Name *string `min:"1" type:"string"`
 13886  
 13887  	// The Amazon Resource Name (ARN) of the role that is used for target invocation.
 13888  	//
 13889  	// If you're setting an event bus in another account as the target and that
 13890  	// account granted permission to your account through an organization instead
 13891  	// of directly by the account ID, you must specify a RoleArn with proper permissions
 13892  	// in the Target structure, instead of here in this parameter.
 13893  	RoleArn *string `min:"1" type:"string"`
 13894  
 13895  	// The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
 13896  	// For more information, see Creating an Amazon EventBridge rule that runs on
 13897  	// a schedule (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html).
 13898  	ScheduleExpression *string `type:"string"`
 13899  
 13900  	// The state of the rule.
 13901  	State *string `type:"string" enum:"RuleState"`
 13902  }
 13903  
 13904  // String returns the string representation.
 13905  //
 13906  // API parameter values that are decorated as "sensitive" in the API will not
 13907  // be included in the string output. The member name will be present, but the
 13908  // value will be replaced with "sensitive".
 13909  func (s Rule) String() string {
 13910  	return awsutil.Prettify(s)
 13911  }
 13912  
 13913  // GoString returns the string representation.
 13914  //
 13915  // API parameter values that are decorated as "sensitive" in the API will not
 13916  // be included in the string output. The member name will be present, but the
 13917  // value will be replaced with "sensitive".
 13918  func (s Rule) GoString() string {
 13919  	return s.String()
 13920  }
 13921  
 13922  // SetArn sets the Arn field's value.
 13923  func (s *Rule) SetArn(v string) *Rule {
 13924  	s.Arn = &v
 13925  	return s
 13926  }
 13927  
 13928  // SetDescription sets the Description field's value.
 13929  func (s *Rule) SetDescription(v string) *Rule {
 13930  	s.Description = &v
 13931  	return s
 13932  }
 13933  
 13934  // SetEventBusName sets the EventBusName field's value.
 13935  func (s *Rule) SetEventBusName(v string) *Rule {
 13936  	s.EventBusName = &v
 13937  	return s
 13938  }
 13939  
 13940  // SetEventPattern sets the EventPattern field's value.
 13941  func (s *Rule) SetEventPattern(v string) *Rule {
 13942  	s.EventPattern = &v
 13943  	return s
 13944  }
 13945  
 13946  // SetManagedBy sets the ManagedBy field's value.
 13947  func (s *Rule) SetManagedBy(v string) *Rule {
 13948  	s.ManagedBy = &v
 13949  	return s
 13950  }
 13951  
 13952  // SetName sets the Name field's value.
 13953  func (s *Rule) SetName(v string) *Rule {
 13954  	s.Name = &v
 13955  	return s
 13956  }
 13957  
 13958  // SetRoleArn sets the RoleArn field's value.
 13959  func (s *Rule) SetRoleArn(v string) *Rule {
 13960  	s.RoleArn = &v
 13961  	return s
 13962  }
 13963  
 13964  // SetScheduleExpression sets the ScheduleExpression field's value.
 13965  func (s *Rule) SetScheduleExpression(v string) *Rule {
 13966  	s.ScheduleExpression = &v
 13967  	return s
 13968  }
 13969  
 13970  // SetState sets the State field's value.
 13971  func (s *Rule) SetState(v string) *Rule {
 13972  	s.State = &v
 13973  	return s
 13974  }
 13975  
 13976  // This parameter contains the criteria (either InstanceIds or a tag) used to
 13977  // specify which EC2 instances are to be sent the command.
 13978  type RunCommandParameters struct {
 13979  	_ struct{} `type:"structure"`
 13980  
 13981  	// Currently, we support including only one RunCommandTarget block, which specifies
 13982  	// either an array of InstanceIds or a tag.
 13983  	//
 13984  	// RunCommandTargets is a required field
 13985  	RunCommandTargets []*RunCommandTarget `min:"1" type:"list" required:"true"`
 13986  }
 13987  
 13988  // String returns the string representation.
 13989  //
 13990  // API parameter values that are decorated as "sensitive" in the API will not
 13991  // be included in the string output. The member name will be present, but the
 13992  // value will be replaced with "sensitive".
 13993  func (s RunCommandParameters) String() string {
 13994  	return awsutil.Prettify(s)
 13995  }
 13996  
 13997  // GoString returns the string representation.
 13998  //
 13999  // API parameter values that are decorated as "sensitive" in the API will not
 14000  // be included in the string output. The member name will be present, but the
 14001  // value will be replaced with "sensitive".
 14002  func (s RunCommandParameters) GoString() string {
 14003  	return s.String()
 14004  }
 14005  
 14006  // Validate inspects the fields of the type to determine if they are valid.
 14007  func (s *RunCommandParameters) Validate() error {
 14008  	invalidParams := request.ErrInvalidParams{Context: "RunCommandParameters"}
 14009  	if s.RunCommandTargets == nil {
 14010  		invalidParams.Add(request.NewErrParamRequired("RunCommandTargets"))
 14011  	}
 14012  	if s.RunCommandTargets != nil && len(s.RunCommandTargets) < 1 {
 14013  		invalidParams.Add(request.NewErrParamMinLen("RunCommandTargets", 1))
 14014  	}
 14015  	if s.RunCommandTargets != nil {
 14016  		for i, v := range s.RunCommandTargets {
 14017  			if v == nil {
 14018  				continue
 14019  			}
 14020  			if err := v.Validate(); err != nil {
 14021  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RunCommandTargets", i), err.(request.ErrInvalidParams))
 14022  			}
 14023  		}
 14024  	}
 14025  
 14026  	if invalidParams.Len() > 0 {
 14027  		return invalidParams
 14028  	}
 14029  	return nil
 14030  }
 14031  
 14032  // SetRunCommandTargets sets the RunCommandTargets field's value.
 14033  func (s *RunCommandParameters) SetRunCommandTargets(v []*RunCommandTarget) *RunCommandParameters {
 14034  	s.RunCommandTargets = v
 14035  	return s
 14036  }
 14037  
 14038  // Information about the EC2 instances that are to be sent the command, specified
 14039  // as key-value pairs. Each RunCommandTarget block can include only one key,
 14040  // but this key may specify multiple values.
 14041  type RunCommandTarget struct {
 14042  	_ struct{} `type:"structure"`
 14043  
 14044  	// Can be either tag: tag-key or InstanceIds.
 14045  	//
 14046  	// Key is a required field
 14047  	Key *string `min:"1" type:"string" required:"true"`
 14048  
 14049  	// If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds,
 14050  	// Values is a list of Amazon EC2 instance IDs.
 14051  	//
 14052  	// Values is a required field
 14053  	Values []*string `min:"1" type:"list" required:"true"`
 14054  }
 14055  
 14056  // String returns the string representation.
 14057  //
 14058  // API parameter values that are decorated as "sensitive" in the API will not
 14059  // be included in the string output. The member name will be present, but the
 14060  // value will be replaced with "sensitive".
 14061  func (s RunCommandTarget) String() string {
 14062  	return awsutil.Prettify(s)
 14063  }
 14064  
 14065  // GoString returns the string representation.
 14066  //
 14067  // API parameter values that are decorated as "sensitive" in the API will not
 14068  // be included in the string output. The member name will be present, but the
 14069  // value will be replaced with "sensitive".
 14070  func (s RunCommandTarget) GoString() string {
 14071  	return s.String()
 14072  }
 14073  
 14074  // Validate inspects the fields of the type to determine if they are valid.
 14075  func (s *RunCommandTarget) Validate() error {
 14076  	invalidParams := request.ErrInvalidParams{Context: "RunCommandTarget"}
 14077  	if s.Key == nil {
 14078  		invalidParams.Add(request.NewErrParamRequired("Key"))
 14079  	}
 14080  	if s.Key != nil && len(*s.Key) < 1 {
 14081  		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
 14082  	}
 14083  	if s.Values == nil {
 14084  		invalidParams.Add(request.NewErrParamRequired("Values"))
 14085  	}
 14086  	if s.Values != nil && len(s.Values) < 1 {
 14087  		invalidParams.Add(request.NewErrParamMinLen("Values", 1))
 14088  	}
 14089  
 14090  	if invalidParams.Len() > 0 {
 14091  		return invalidParams
 14092  	}
 14093  	return nil
 14094  }
 14095  
 14096  // SetKey sets the Key field's value.
 14097  func (s *RunCommandTarget) SetKey(v string) *RunCommandTarget {
 14098  	s.Key = &v
 14099  	return s
 14100  }
 14101  
 14102  // SetValues sets the Values field's value.
 14103  func (s *RunCommandTarget) SetValues(v []*string) *RunCommandTarget {
 14104  	s.Values = v
 14105  	return s
 14106  }
 14107  
 14108  // Name/Value pair of a parameter to start execution of a SageMaker Model Building
 14109  // Pipeline.
 14110  type SageMakerPipelineParameter struct {
 14111  	_ struct{} `type:"structure"`
 14112  
 14113  	// Name of parameter to start execution of a SageMaker Model Building Pipeline.
 14114  	//
 14115  	// Name is a required field
 14116  	Name *string `min:"1" type:"string" required:"true"`
 14117  
 14118  	// Value of parameter to start execution of a SageMaker Model Building Pipeline.
 14119  	//
 14120  	// Value is a required field
 14121  	Value *string `type:"string" required:"true"`
 14122  }
 14123  
 14124  // String returns the string representation.
 14125  //
 14126  // API parameter values that are decorated as "sensitive" in the API will not
 14127  // be included in the string output. The member name will be present, but the
 14128  // value will be replaced with "sensitive".
 14129  func (s SageMakerPipelineParameter) String() string {
 14130  	return awsutil.Prettify(s)
 14131  }
 14132  
 14133  // GoString returns the string representation.
 14134  //
 14135  // API parameter values that are decorated as "sensitive" in the API will not
 14136  // be included in the string output. The member name will be present, but the
 14137  // value will be replaced with "sensitive".
 14138  func (s SageMakerPipelineParameter) GoString() string {
 14139  	return s.String()
 14140  }
 14141  
 14142  // Validate inspects the fields of the type to determine if they are valid.
 14143  func (s *SageMakerPipelineParameter) Validate() error {
 14144  	invalidParams := request.ErrInvalidParams{Context: "SageMakerPipelineParameter"}
 14145  	if s.Name == nil {
 14146  		invalidParams.Add(request.NewErrParamRequired("Name"))
 14147  	}
 14148  	if s.Name != nil && len(*s.Name) < 1 {
 14149  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
 14150  	}
 14151  	if s.Value == nil {
 14152  		invalidParams.Add(request.NewErrParamRequired("Value"))
 14153  	}
 14154  
 14155  	if invalidParams.Len() > 0 {
 14156  		return invalidParams
 14157  	}
 14158  	return nil
 14159  }
 14160  
 14161  // SetName sets the Name field's value.
 14162  func (s *SageMakerPipelineParameter) SetName(v string) *SageMakerPipelineParameter {
 14163  	s.Name = &v
 14164  	return s
 14165  }
 14166  
 14167  // SetValue sets the Value field's value.
 14168  func (s *SageMakerPipelineParameter) SetValue(v string) *SageMakerPipelineParameter {
 14169  	s.Value = &v
 14170  	return s
 14171  }
 14172  
 14173  // These are custom parameters to use when the target is a SageMaker Model Building
 14174  // Pipeline that starts based on EventBridge events.
 14175  type SageMakerPipelineParameters struct {
 14176  	_ struct{} `type:"structure"`
 14177  
 14178  	// List of Parameter names and values for SageMaker Model Building Pipeline
 14179  	// execution.
 14180  	PipelineParameterList []*SageMakerPipelineParameter `type:"list"`
 14181  }
 14182  
 14183  // String returns the string representation.
 14184  //
 14185  // API parameter values that are decorated as "sensitive" in the API will not
 14186  // be included in the string output. The member name will be present, but the
 14187  // value will be replaced with "sensitive".
 14188  func (s SageMakerPipelineParameters) String() string {
 14189  	return awsutil.Prettify(s)
 14190  }
 14191  
 14192  // GoString returns the string representation.
 14193  //
 14194  // API parameter values that are decorated as "sensitive" in the API will not
 14195  // be included in the string output. The member name will be present, but the
 14196  // value will be replaced with "sensitive".
 14197  func (s SageMakerPipelineParameters) GoString() string {
 14198  	return s.String()
 14199  }
 14200  
 14201  // Validate inspects the fields of the type to determine if they are valid.
 14202  func (s *SageMakerPipelineParameters) Validate() error {
 14203  	invalidParams := request.ErrInvalidParams{Context: "SageMakerPipelineParameters"}
 14204  	if s.PipelineParameterList != nil {
 14205  		for i, v := range s.PipelineParameterList {
 14206  			if v == nil {
 14207  				continue
 14208  			}
 14209  			if err := v.Validate(); err != nil {
 14210  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineParameterList", i), err.(request.ErrInvalidParams))
 14211  			}
 14212  		}
 14213  	}
 14214  
 14215  	if invalidParams.Len() > 0 {
 14216  		return invalidParams
 14217  	}
 14218  	return nil
 14219  }
 14220  
 14221  // SetPipelineParameterList sets the PipelineParameterList field's value.
 14222  func (s *SageMakerPipelineParameters) SetPipelineParameterList(v []*SageMakerPipelineParameter) *SageMakerPipelineParameters {
 14223  	s.PipelineParameterList = v
 14224  	return s
 14225  }
 14226  
 14227  // This structure includes the custom parameter to be used when the target is
 14228  // an SQS FIFO queue.
 14229  type SqsParameters struct {
 14230  	_ struct{} `type:"structure"`
 14231  
 14232  	// The FIFO message group ID to use as the target.
 14233  	MessageGroupId *string `type:"string"`
 14234  }
 14235  
 14236  // String returns the string representation.
 14237  //
 14238  // API parameter values that are decorated as "sensitive" in the API will not
 14239  // be included in the string output. The member name will be present, but the
 14240  // value will be replaced with "sensitive".
 14241  func (s SqsParameters) String() string {
 14242  	return awsutil.Prettify(s)
 14243  }
 14244  
 14245  // GoString returns the string representation.
 14246  //
 14247  // API parameter values that are decorated as "sensitive" in the API will not
 14248  // be included in the string output. The member name will be present, but the
 14249  // value will be replaced with "sensitive".
 14250  func (s SqsParameters) GoString() string {
 14251  	return s.String()
 14252  }
 14253  
 14254  // SetMessageGroupId sets the MessageGroupId field's value.
 14255  func (s *SqsParameters) SetMessageGroupId(v string) *SqsParameters {
 14256  	s.MessageGroupId = &v
 14257  	return s
 14258  }
 14259  
 14260  type StartReplayInput struct {
 14261  	_ struct{} `type:"structure"`
 14262  
 14263  	// A description for the replay to start.
 14264  	Description *string `type:"string"`
 14265  
 14266  	// A ReplayDestination object that includes details about the destination for
 14267  	// the replay.
 14268  	//
 14269  	// Destination is a required field
 14270  	Destination *ReplayDestination `type:"structure" required:"true"`
 14271  
 14272  	// A time stamp for the time to stop replaying events. Only events that occurred
 14273  	// between the EventStartTime and EventEndTime are replayed.
 14274  	//
 14275  	// EventEndTime is a required field
 14276  	EventEndTime *time.Time `type:"timestamp" required:"true"`
 14277  
 14278  	// The ARN of the archive to replay events from.
 14279  	//
 14280  	// EventSourceArn is a required field
 14281  	EventSourceArn *string `min:"1" type:"string" required:"true"`
 14282  
 14283  	// A time stamp for the time to start replaying events. Only events that occurred
 14284  	// between the EventStartTime and EventEndTime are replayed.
 14285  	//
 14286  	// EventStartTime is a required field
 14287  	EventStartTime *time.Time `type:"timestamp" required:"true"`
 14288  
 14289  	// The name of the replay to start.
 14290  	//
 14291  	// ReplayName is a required field
 14292  	ReplayName *string `min:"1" type:"string" required:"true"`
 14293  }
 14294  
 14295  // String returns the string representation.
 14296  //
 14297  // API parameter values that are decorated as "sensitive" in the API will not
 14298  // be included in the string output. The member name will be present, but the
 14299  // value will be replaced with "sensitive".
 14300  func (s StartReplayInput) String() string {
 14301  	return awsutil.Prettify(s)
 14302  }
 14303  
 14304  // GoString returns the string representation.
 14305  //
 14306  // API parameter values that are decorated as "sensitive" in the API will not
 14307  // be included in the string output. The member name will be present, but the
 14308  // value will be replaced with "sensitive".
 14309  func (s StartReplayInput) GoString() string {
 14310  	return s.String()
 14311  }
 14312  
 14313  // Validate inspects the fields of the type to determine if they are valid.
 14314  func (s *StartReplayInput) Validate() error {
 14315  	invalidParams := request.ErrInvalidParams{Context: "StartReplayInput"}
 14316  	if s.Destination == nil {
 14317  		invalidParams.Add(request.NewErrParamRequired("Destination"))
 14318  	}
 14319  	if s.EventEndTime == nil {
 14320  		invalidParams.Add(request.NewErrParamRequired("EventEndTime"))
 14321  	}
 14322  	if s.EventSourceArn == nil {
 14323  		invalidParams.Add(request.NewErrParamRequired("EventSourceArn"))
 14324  	}
 14325  	if s.EventSourceArn != nil && len(*s.EventSourceArn) < 1 {
 14326  		invalidParams.Add(request.NewErrParamMinLen("EventSourceArn", 1))
 14327  	}
 14328  	if s.EventStartTime == nil {
 14329  		invalidParams.Add(request.NewErrParamRequired("EventStartTime"))
 14330  	}
 14331  	if s.ReplayName == nil {
 14332  		invalidParams.Add(request.NewErrParamRequired("ReplayName"))
 14333  	}
 14334  	if s.ReplayName != nil && len(*s.ReplayName) < 1 {
 14335  		invalidParams.Add(request.NewErrParamMinLen("ReplayName", 1))
 14336  	}
 14337  	if s.Destination != nil {
 14338  		if err := s.Destination.Validate(); err != nil {
 14339  			invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
 14340  		}
 14341  	}
 14342  
 14343  	if invalidParams.Len() > 0 {
 14344  		return invalidParams
 14345  	}
 14346  	return nil
 14347  }
 14348  
 14349  // SetDescription sets the Description field's value.
 14350  func (s *StartReplayInput) SetDescription(v string) *StartReplayInput {
 14351  	s.Description = &v
 14352  	return s
 14353  }
 14354  
 14355  // SetDestination sets the Destination field's value.
 14356  func (s *StartReplayInput) SetDestination(v *ReplayDestination) *StartReplayInput {
 14357  	s.Destination = v
 14358  	return s
 14359  }
 14360  
 14361  // SetEventEndTime sets the EventEndTime field's value.
 14362  func (s *StartReplayInput) SetEventEndTime(v time.Time) *StartReplayInput {
 14363  	s.EventEndTime = &v
 14364  	return s
 14365  }
 14366  
 14367  // SetEventSourceArn sets the EventSourceArn field's value.
 14368  func (s *StartReplayInput) SetEventSourceArn(v string) *StartReplayInput {
 14369  	s.EventSourceArn = &v
 14370  	return s
 14371  }
 14372  
 14373  // SetEventStartTime sets the EventStartTime field's value.
 14374  func (s *StartReplayInput) SetEventStartTime(v time.Time) *StartReplayInput {
 14375  	s.EventStartTime = &v
 14376  	return s
 14377  }
 14378  
 14379  // SetReplayName sets the ReplayName field's value.
 14380  func (s *StartReplayInput) SetReplayName(v string) *StartReplayInput {
 14381  	s.ReplayName = &v
 14382  	return s
 14383  }
 14384  
 14385  type StartReplayOutput struct {
 14386  	_ struct{} `type:"structure"`
 14387  
 14388  	// The ARN of the replay.
 14389  	ReplayArn *string `min:"1" type:"string"`
 14390  
 14391  	// The time at which the replay started.
 14392  	ReplayStartTime *time.Time `type:"timestamp"`
 14393  
 14394  	// The state of the replay.
 14395  	State *string `type:"string" enum:"ReplayState"`
 14396  
 14397  	// The reason that the replay is in the state.
 14398  	StateReason *string `type:"string"`
 14399  }
 14400  
 14401  // String returns the string representation.
 14402  //
 14403  // API parameter values that are decorated as "sensitive" in the API will not
 14404  // be included in the string output. The member name will be present, but the
 14405  // value will be replaced with "sensitive".
 14406  func (s StartReplayOutput) String() string {
 14407  	return awsutil.Prettify(s)
 14408  }
 14409  
 14410  // GoString returns the string representation.
 14411  //
 14412  // API parameter values that are decorated as "sensitive" in the API will not
 14413  // be included in the string output. The member name will be present, but the
 14414  // value will be replaced with "sensitive".
 14415  func (s StartReplayOutput) GoString() string {
 14416  	return s.String()
 14417  }
 14418  
 14419  // SetReplayArn sets the ReplayArn field's value.
 14420  func (s *StartReplayOutput) SetReplayArn(v string) *StartReplayOutput {
 14421  	s.ReplayArn = &v
 14422  	return s
 14423  }
 14424  
 14425  // SetReplayStartTime sets the ReplayStartTime field's value.
 14426  func (s *StartReplayOutput) SetReplayStartTime(v time.Time) *StartReplayOutput {
 14427  	s.ReplayStartTime = &v
 14428  	return s
 14429  }
 14430  
 14431  // SetState sets the State field's value.
 14432  func (s *StartReplayOutput) SetState(v string) *StartReplayOutput {
 14433  	s.State = &v
 14434  	return s
 14435  }
 14436  
 14437  // SetStateReason sets the StateReason field's value.
 14438  func (s *StartReplayOutput) SetStateReason(v string) *StartReplayOutput {
 14439  	s.StateReason = &v
 14440  	return s
 14441  }
 14442  
 14443  // A key-value pair associated with an Amazon Web Services resource. In EventBridge,
 14444  // rules and event buses support tagging.
 14445  type Tag struct {
 14446  	_ struct{} `type:"structure"`
 14447  
 14448  	// A string you can use to assign a value. The combination of tag keys and values
 14449  	// can help you organize and categorize your resources.
 14450  	//
 14451  	// Key is a required field
 14452  	Key *string `min:"1" type:"string" required:"true"`
 14453  
 14454  	// The value for the specified tag key.
 14455  	//
 14456  	// Value is a required field
 14457  	Value *string `type:"string" required:"true"`
 14458  }
 14459  
 14460  // String returns the string representation.
 14461  //
 14462  // API parameter values that are decorated as "sensitive" in the API will not
 14463  // be included in the string output. The member name will be present, but the
 14464  // value will be replaced with "sensitive".
 14465  func (s Tag) String() string {
 14466  	return awsutil.Prettify(s)
 14467  }
 14468  
 14469  // GoString returns the string representation.
 14470  //
 14471  // API parameter values that are decorated as "sensitive" in the API will not
 14472  // be included in the string output. The member name will be present, but the
 14473  // value will be replaced with "sensitive".
 14474  func (s Tag) GoString() string {
 14475  	return s.String()
 14476  }
 14477  
 14478  // Validate inspects the fields of the type to determine if they are valid.
 14479  func (s *Tag) Validate() error {
 14480  	invalidParams := request.ErrInvalidParams{Context: "Tag"}
 14481  	if s.Key == nil {
 14482  		invalidParams.Add(request.NewErrParamRequired("Key"))
 14483  	}
 14484  	if s.Key != nil && len(*s.Key) < 1 {
 14485  		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
 14486  	}
 14487  	if s.Value == nil {
 14488  		invalidParams.Add(request.NewErrParamRequired("Value"))
 14489  	}
 14490  
 14491  	if invalidParams.Len() > 0 {
 14492  		return invalidParams
 14493  	}
 14494  	return nil
 14495  }
 14496  
 14497  // SetKey sets the Key field's value.
 14498  func (s *Tag) SetKey(v string) *Tag {
 14499  	s.Key = &v
 14500  	return s
 14501  }
 14502  
 14503  // SetValue sets the Value field's value.
 14504  func (s *Tag) SetValue(v string) *Tag {
 14505  	s.Value = &v
 14506  	return s
 14507  }
 14508  
 14509  type TagResourceInput struct {
 14510  	_ struct{} `type:"structure"`
 14511  
 14512  	// The ARN of the EventBridge resource that you're adding tags to.
 14513  	//
 14514  	// ResourceARN is a required field
 14515  	ResourceARN *string `min:"1" type:"string" required:"true"`
 14516  
 14517  	// The list of key-value pairs to associate with the resource.
 14518  	//
 14519  	// Tags is a required field
 14520  	Tags []*Tag `type:"list" required:"true"`
 14521  }
 14522  
 14523  // String returns the string representation.
 14524  //
 14525  // API parameter values that are decorated as "sensitive" in the API will not
 14526  // be included in the string output. The member name will be present, but the
 14527  // value will be replaced with "sensitive".
 14528  func (s TagResourceInput) String() string {
 14529  	return awsutil.Prettify(s)
 14530  }
 14531  
 14532  // GoString returns the string representation.
 14533  //
 14534  // API parameter values that are decorated as "sensitive" in the API will not
 14535  // be included in the string output. The member name will be present, but the
 14536  // value will be replaced with "sensitive".
 14537  func (s TagResourceInput) GoString() string {
 14538  	return s.String()
 14539  }
 14540  
 14541  // Validate inspects the fields of the type to determine if they are valid.
 14542  func (s *TagResourceInput) Validate() error {
 14543  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
 14544  	if s.ResourceARN == nil {
 14545  		invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
 14546  	}
 14547  	if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
 14548  		invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
 14549  	}
 14550  	if s.Tags == nil {
 14551  		invalidParams.Add(request.NewErrParamRequired("Tags"))
 14552  	}
 14553  	if s.Tags != nil {
 14554  		for i, v := range s.Tags {
 14555  			if v == nil {
 14556  				continue
 14557  			}
 14558  			if err := v.Validate(); err != nil {
 14559  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
 14560  			}
 14561  		}
 14562  	}
 14563  
 14564  	if invalidParams.Len() > 0 {
 14565  		return invalidParams
 14566  	}
 14567  	return nil
 14568  }
 14569  
 14570  // SetResourceARN sets the ResourceARN field's value.
 14571  func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput {
 14572  	s.ResourceARN = &v
 14573  	return s
 14574  }
 14575  
 14576  // SetTags sets the Tags field's value.
 14577  func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
 14578  	s.Tags = v
 14579  	return s
 14580  }
 14581  
 14582  type TagResourceOutput struct {
 14583  	_ struct{} `type:"structure"`
 14584  }
 14585  
 14586  // String returns the string representation.
 14587  //
 14588  // API parameter values that are decorated as "sensitive" in the API will not
 14589  // be included in the string output. The member name will be present, but the
 14590  // value will be replaced with "sensitive".
 14591  func (s TagResourceOutput) String() string {
 14592  	return awsutil.Prettify(s)
 14593  }
 14594  
 14595  // GoString returns the string representation.
 14596  //
 14597  // API parameter values that are decorated as "sensitive" in the API will not
 14598  // be included in the string output. The member name will be present, but the
 14599  // value will be replaced with "sensitive".
 14600  func (s TagResourceOutput) GoString() string {
 14601  	return s.String()
 14602  }
 14603  
 14604  // Targets are the resources to be invoked when a rule is triggered. For a complete
 14605  // list of services and resources that can be set as a target, see PutTargets
 14606  // (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutTargets.html).
 14607  //
 14608  // If you are setting the event bus of another account as the target, and that
 14609  // account granted permission to your account through an organization instead
 14610  // of directly by the account ID, then you must specify a RoleArn with proper
 14611  // permissions in the Target structure. For more information, see Sending and
 14612  // Receiving Events Between Amazon Web Services Accounts (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html)
 14613  // in the Amazon EventBridge User Guide.
 14614  type Target struct {
 14615  	_ struct{} `type:"structure"`
 14616  
 14617  	// The Amazon Resource Name (ARN) of the target.
 14618  	//
 14619  	// Arn is a required field
 14620  	Arn *string `min:"1" type:"string" required:"true"`
 14621  
 14622  	// If the event target is an Batch job, this contains the job definition, job
 14623  	// name, and other parameters. For more information, see Jobs (https://docs.aws.amazon.com/batch/latest/userguide/jobs.html)
 14624  	// in the Batch User Guide.
 14625  	BatchParameters *BatchParameters `type:"structure"`
 14626  
 14627  	// The DeadLetterConfig that defines the target queue to send dead-letter queue
 14628  	// events to.
 14629  	DeadLetterConfig *DeadLetterConfig `type:"structure"`
 14630  
 14631  	// Contains the Amazon ECS task definition and task count to be used, if the
 14632  	// event target is an Amazon ECS task. For more information about Amazon ECS
 14633  	// tasks, see Task Definitions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html)
 14634  	// in the Amazon EC2 Container Service Developer Guide.
 14635  	EcsParameters *EcsParameters `type:"structure"`
 14636  
 14637  	// Contains the HTTP parameters to use when the target is a API Gateway REST
 14638  	// endpoint or EventBridge ApiDestination.
 14639  	//
 14640  	// If you specify an API Gateway REST API or EventBridge ApiDestination as a
 14641  	// target, you can use this parameter to specify headers, path parameters, and
 14642  	// query string keys/values as part of your target invoking request. If you're
 14643  	// using ApiDestinations, the corresponding Connection can also have these values
 14644  	// configured. In case of any conflicting keys, values from the Connection take
 14645  	// precedence.
 14646  	HttpParameters *HttpParameters `type:"structure"`
 14647  
 14648  	// The ID of the target. We recommend using a memorable and unique string.
 14649  	//
 14650  	// Id is a required field
 14651  	Id *string `min:"1" type:"string" required:"true"`
 14652  
 14653  	// Valid JSON text passed to the target. In this case, nothing from the event
 14654  	// itself is passed to the target. For more information, see The JavaScript
 14655  	// Object Notation (JSON) Data Interchange Format (http://www.rfc-editor.org/rfc/rfc7159.txt).
 14656  	Input *string `type:"string"`
 14657  
 14658  	// The value of the JSONPath that is used for extracting part of the matched
 14659  	// event when passing it to the target. You must use JSON dot notation, not
 14660  	// bracket notation. For more information about JSON paths, see JSONPath (http://goessner.net/articles/JsonPath/).
 14661  	InputPath *string `type:"string"`
 14662  
 14663  	// Settings to enable you to provide custom input to a target based on certain
 14664  	// event data. You can extract one or more key-value pairs from the event and
 14665  	// then use that data to send customized input to the target.
 14666  	InputTransformer *InputTransformer `type:"structure"`
 14667  
 14668  	// The custom parameter you can use to control the shard assignment, when the
 14669  	// target is a Kinesis data stream. If you do not include this parameter, the
 14670  	// default is to use the eventId as the partition key.
 14671  	KinesisParameters *KinesisParameters `type:"structure"`
 14672  
 14673  	// Contains the Amazon Redshift Data API parameters to use when the target is
 14674  	// a Amazon Redshift cluster.
 14675  	//
 14676  	// If you specify a Amazon Redshift Cluster as a Target, you can use this to
 14677  	// specify parameters to invoke the Amazon Redshift Data API ExecuteStatement
 14678  	// based on EventBridge events.
 14679  	RedshiftDataParameters *RedshiftDataParameters `type:"structure"`
 14680  
 14681  	// The RetryPolicy object that contains the retry policy configuration to use
 14682  	// for the dead-letter queue.
 14683  	RetryPolicy *RetryPolicy `type:"structure"`
 14684  
 14685  	// The Amazon Resource Name (ARN) of the IAM role to be used for this target
 14686  	// when the rule is triggered. If one rule triggers multiple targets, you can
 14687  	// use a different IAM role for each target.
 14688  	RoleArn *string `min:"1" type:"string"`
 14689  
 14690  	// Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
 14691  	RunCommandParameters *RunCommandParameters `type:"structure"`
 14692  
 14693  	// Contains the SageMaker Model Building Pipeline parameters to start execution
 14694  	// of a SageMaker Model Building Pipeline.
 14695  	//
 14696  	// If you specify a SageMaker Model Building Pipeline as a target, you can use
 14697  	// this to specify parameters to start a pipeline execution based on EventBridge
 14698  	// events.
 14699  	SageMakerPipelineParameters *SageMakerPipelineParameters `type:"structure"`
 14700  
 14701  	// Contains the message group ID to use when the target is a FIFO queue.
 14702  	//
 14703  	// If you specify an SQS FIFO queue as a target, the queue must have content-based
 14704  	// deduplication enabled.
 14705  	SqsParameters *SqsParameters `type:"structure"`
 14706  }
 14707  
 14708  // String returns the string representation.
 14709  //
 14710  // API parameter values that are decorated as "sensitive" in the API will not
 14711  // be included in the string output. The member name will be present, but the
 14712  // value will be replaced with "sensitive".
 14713  func (s Target) String() string {
 14714  	return awsutil.Prettify(s)
 14715  }
 14716  
 14717  // GoString returns the string representation.
 14718  //
 14719  // API parameter values that are decorated as "sensitive" in the API will not
 14720  // be included in the string output. The member name will be present, but the
 14721  // value will be replaced with "sensitive".
 14722  func (s Target) GoString() string {
 14723  	return s.String()
 14724  }
 14725  
 14726  // Validate inspects the fields of the type to determine if they are valid.
 14727  func (s *Target) Validate() error {
 14728  	invalidParams := request.ErrInvalidParams{Context: "Target"}
 14729  	if s.Arn == nil {
 14730  		invalidParams.Add(request.NewErrParamRequired("Arn"))
 14731  	}
 14732  	if s.Arn != nil && len(*s.Arn) < 1 {
 14733  		invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
 14734  	}
 14735  	if s.Id == nil {
 14736  		invalidParams.Add(request.NewErrParamRequired("Id"))
 14737  	}
 14738  	if s.Id != nil && len(*s.Id) < 1 {
 14739  		invalidParams.Add(request.NewErrParamMinLen("Id", 1))
 14740  	}
 14741  	if s.RoleArn != nil && len(*s.RoleArn) < 1 {
 14742  		invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
 14743  	}
 14744  	if s.BatchParameters != nil {
 14745  		if err := s.BatchParameters.Validate(); err != nil {
 14746  			invalidParams.AddNested("BatchParameters", err.(request.ErrInvalidParams))
 14747  		}
 14748  	}
 14749  	if s.DeadLetterConfig != nil {
 14750  		if err := s.DeadLetterConfig.Validate(); err != nil {
 14751  			invalidParams.AddNested("DeadLetterConfig", err.(request.ErrInvalidParams))
 14752  		}
 14753  	}
 14754  	if s.EcsParameters != nil {
 14755  		if err := s.EcsParameters.Validate(); err != nil {
 14756  			invalidParams.AddNested("EcsParameters", err.(request.ErrInvalidParams))
 14757  		}
 14758  	}
 14759  	if s.InputTransformer != nil {
 14760  		if err := s.InputTransformer.Validate(); err != nil {
 14761  			invalidParams.AddNested("InputTransformer", err.(request.ErrInvalidParams))
 14762  		}
 14763  	}
 14764  	if s.KinesisParameters != nil {
 14765  		if err := s.KinesisParameters.Validate(); err != nil {
 14766  			invalidParams.AddNested("KinesisParameters", err.(request.ErrInvalidParams))
 14767  		}
 14768  	}
 14769  	if s.RedshiftDataParameters != nil {
 14770  		if err := s.RedshiftDataParameters.Validate(); err != nil {
 14771  			invalidParams.AddNested("RedshiftDataParameters", err.(request.ErrInvalidParams))
 14772  		}
 14773  	}
 14774  	if s.RetryPolicy != nil {
 14775  		if err := s.RetryPolicy.Validate(); err != nil {
 14776  			invalidParams.AddNested("RetryPolicy", err.(request.ErrInvalidParams))
 14777  		}
 14778  	}
 14779  	if s.RunCommandParameters != nil {
 14780  		if err := s.RunCommandParameters.Validate(); err != nil {
 14781  			invalidParams.AddNested("RunCommandParameters", err.(request.ErrInvalidParams))
 14782  		}
 14783  	}
 14784  	if s.SageMakerPipelineParameters != nil {
 14785  		if err := s.SageMakerPipelineParameters.Validate(); err != nil {
 14786  			invalidParams.AddNested("SageMakerPipelineParameters", err.(request.ErrInvalidParams))
 14787  		}
 14788  	}
 14789  
 14790  	if invalidParams.Len() > 0 {
 14791  		return invalidParams
 14792  	}
 14793  	return nil
 14794  }
 14795  
 14796  // SetArn sets the Arn field's value.
 14797  func (s *Target) SetArn(v string) *Target {
 14798  	s.Arn = &v
 14799  	return s
 14800  }
 14801  
 14802  // SetBatchParameters sets the BatchParameters field's value.
 14803  func (s *Target) SetBatchParameters(v *BatchParameters) *Target {
 14804  	s.BatchParameters = v
 14805  	return s
 14806  }
 14807  
 14808  // SetDeadLetterConfig sets the DeadLetterConfig field's value.
 14809  func (s *Target) SetDeadLetterConfig(v *DeadLetterConfig) *Target {
 14810  	s.DeadLetterConfig = v
 14811  	return s
 14812  }
 14813  
 14814  // SetEcsParameters sets the EcsParameters field's value.
 14815  func (s *Target) SetEcsParameters(v *EcsParameters) *Target {
 14816  	s.EcsParameters = v
 14817  	return s
 14818  }
 14819  
 14820  // SetHttpParameters sets the HttpParameters field's value.
 14821  func (s *Target) SetHttpParameters(v *HttpParameters) *Target {
 14822  	s.HttpParameters = v
 14823  	return s
 14824  }
 14825  
 14826  // SetId sets the Id field's value.
 14827  func (s *Target) SetId(v string) *Target {
 14828  	s.Id = &v
 14829  	return s
 14830  }
 14831  
 14832  // SetInput sets the Input field's value.
 14833  func (s *Target) SetInput(v string) *Target {
 14834  	s.Input = &v
 14835  	return s
 14836  }
 14837  
 14838  // SetInputPath sets the InputPath field's value.
 14839  func (s *Target) SetInputPath(v string) *Target {
 14840  	s.InputPath = &v
 14841  	return s
 14842  }
 14843  
 14844  // SetInputTransformer sets the InputTransformer field's value.
 14845  func (s *Target) SetInputTransformer(v *InputTransformer) *Target {
 14846  	s.InputTransformer = v
 14847  	return s
 14848  }
 14849  
 14850  // SetKinesisParameters sets the KinesisParameters field's value.
 14851  func (s *Target) SetKinesisParameters(v *KinesisParameters) *Target {
 14852  	s.KinesisParameters = v
 14853  	return s
 14854  }
 14855  
 14856  // SetRedshiftDataParameters sets the RedshiftDataParameters field's value.
 14857  func (s *Target) SetRedshiftDataParameters(v *RedshiftDataParameters) *Target {
 14858  	s.RedshiftDataParameters = v
 14859  	return s
 14860  }
 14861  
 14862  // SetRetryPolicy sets the RetryPolicy field's value.
 14863  func (s *Target) SetRetryPolicy(v *RetryPolicy) *Target {
 14864  	s.RetryPolicy = v
 14865  	return s
 14866  }
 14867  
 14868  // SetRoleArn sets the RoleArn field's value.
 14869  func (s *Target) SetRoleArn(v string) *Target {
 14870  	s.RoleArn = &v
 14871  	return s
 14872  }
 14873  
 14874  // SetRunCommandParameters sets the RunCommandParameters field's value.
 14875  func (s *Target) SetRunCommandParameters(v *RunCommandParameters) *Target {
 14876  	s.RunCommandParameters = v
 14877  	return s
 14878  }
 14879  
 14880  // SetSageMakerPipelineParameters sets the SageMakerPipelineParameters field's value.
 14881  func (s *Target) SetSageMakerPipelineParameters(v *SageMakerPipelineParameters) *Target {
 14882  	s.SageMakerPipelineParameters = v
 14883  	return s
 14884  }
 14885  
 14886  // SetSqsParameters sets the SqsParameters field's value.
 14887  func (s *Target) SetSqsParameters(v *SqsParameters) *Target {
 14888  	s.SqsParameters = v
 14889  	return s
 14890  }
 14891  
 14892  type TestEventPatternInput struct {
 14893  	_ struct{} `type:"structure"`
 14894  
 14895  	// The event, in JSON format, to test against the event pattern. The JSON must
 14896  	// follow the format specified in Amazon Web Services Events (https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html),
 14897  	// and the following fields are mandatory:
 14898  	//
 14899  	//    * id
 14900  	//
 14901  	//    * account
 14902  	//
 14903  	//    * source
 14904  	//
 14905  	//    * time
 14906  	//
 14907  	//    * region
 14908  	//
 14909  	//    * resources
 14910  	//
 14911  	//    * detail-type
 14912  	//
 14913  	// Event is a required field
 14914  	Event *string `type:"string" required:"true"`
 14915  
 14916  	// The event pattern. For more information, see Events and Event Patterns (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html)
 14917  	// in the Amazon EventBridge User Guide.
 14918  	//
 14919  	// EventPattern is a required field
 14920  	EventPattern *string `type:"string" required:"true"`
 14921  }
 14922  
 14923  // String returns the string representation.
 14924  //
 14925  // API parameter values that are decorated as "sensitive" in the API will not
 14926  // be included in the string output. The member name will be present, but the
 14927  // value will be replaced with "sensitive".
 14928  func (s TestEventPatternInput) String() string {
 14929  	return awsutil.Prettify(s)
 14930  }
 14931  
 14932  // GoString returns the string representation.
 14933  //
 14934  // API parameter values that are decorated as "sensitive" in the API will not
 14935  // be included in the string output. The member name will be present, but the
 14936  // value will be replaced with "sensitive".
 14937  func (s TestEventPatternInput) GoString() string {
 14938  	return s.String()
 14939  }
 14940  
 14941  // Validate inspects the fields of the type to determine if they are valid.
 14942  func (s *TestEventPatternInput) Validate() error {
 14943  	invalidParams := request.ErrInvalidParams{Context: "TestEventPatternInput"}
 14944  	if s.Event == nil {
 14945  		invalidParams.Add(request.NewErrParamRequired("Event"))
 14946  	}
 14947  	if s.EventPattern == nil {
 14948  		invalidParams.Add(request.NewErrParamRequired("EventPattern"))
 14949  	}
 14950  
 14951  	if invalidParams.Len() > 0 {
 14952  		return invalidParams
 14953  	}
 14954  	return nil
 14955  }
 14956  
 14957  // SetEvent sets the Event field's value.
 14958  func (s *TestEventPatternInput) SetEvent(v string) *TestEventPatternInput {
 14959  	s.Event = &v
 14960  	return s
 14961  }
 14962  
 14963  // SetEventPattern sets the EventPattern field's value.
 14964  func (s *TestEventPatternInput) SetEventPattern(v string) *TestEventPatternInput {
 14965  	s.EventPattern = &v
 14966  	return s
 14967  }
 14968  
 14969  type TestEventPatternOutput struct {
 14970  	_ struct{} `type:"structure"`
 14971  
 14972  	// Indicates whether the event matches the event pattern.
 14973  	Result *bool `type:"boolean"`
 14974  }
 14975  
 14976  // String returns the string representation.
 14977  //
 14978  // API parameter values that are decorated as "sensitive" in the API will not
 14979  // be included in the string output. The member name will be present, but the
 14980  // value will be replaced with "sensitive".
 14981  func (s TestEventPatternOutput) String() string {
 14982  	return awsutil.Prettify(s)
 14983  }
 14984  
 14985  // GoString returns the string representation.
 14986  //
 14987  // API parameter values that are decorated as "sensitive" in the API will not
 14988  // be included in the string output. The member name will be present, but the
 14989  // value will be replaced with "sensitive".
 14990  func (s TestEventPatternOutput) GoString() string {
 14991  	return s.String()
 14992  }
 14993  
 14994  // SetResult sets the Result field's value.
 14995  func (s *TestEventPatternOutput) SetResult(v bool) *TestEventPatternOutput {
 14996  	s.Result = &v
 14997  	return s
 14998  }
 14999  
 15000  type UntagResourceInput struct {
 15001  	_ struct{} `type:"structure"`
 15002  
 15003  	// The ARN of the EventBridge resource from which you are removing tags.
 15004  	//
 15005  	// ResourceARN is a required field
 15006  	ResourceARN *string `min:"1" type:"string" required:"true"`
 15007  
 15008  	// The list of tag keys to remove from the resource.
 15009  	//
 15010  	// TagKeys is a required field
 15011  	TagKeys []*string `type:"list" required:"true"`
 15012  }
 15013  
 15014  // String returns the string representation.
 15015  //
 15016  // API parameter values that are decorated as "sensitive" in the API will not
 15017  // be included in the string output. The member name will be present, but the
 15018  // value will be replaced with "sensitive".
 15019  func (s UntagResourceInput) String() string {
 15020  	return awsutil.Prettify(s)
 15021  }
 15022  
 15023  // GoString returns the string representation.
 15024  //
 15025  // API parameter values that are decorated as "sensitive" in the API will not
 15026  // be included in the string output. The member name will be present, but the
 15027  // value will be replaced with "sensitive".
 15028  func (s UntagResourceInput) GoString() string {
 15029  	return s.String()
 15030  }
 15031  
 15032  // Validate inspects the fields of the type to determine if they are valid.
 15033  func (s *UntagResourceInput) Validate() error {
 15034  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
 15035  	if s.ResourceARN == nil {
 15036  		invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
 15037  	}
 15038  	if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
 15039  		invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
 15040  	}
 15041  	if s.TagKeys == nil {
 15042  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
 15043  	}
 15044  
 15045  	if invalidParams.Len() > 0 {
 15046  		return invalidParams
 15047  	}
 15048  	return nil
 15049  }
 15050  
 15051  // SetResourceARN sets the ResourceARN field's value.
 15052  func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput {
 15053  	s.ResourceARN = &v
 15054  	return s
 15055  }
 15056  
 15057  // SetTagKeys sets the TagKeys field's value.
 15058  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
 15059  	s.TagKeys = v
 15060  	return s
 15061  }
 15062  
 15063  type UntagResourceOutput struct {
 15064  	_ struct{} `type:"structure"`
 15065  }
 15066  
 15067  // String returns the string representation.
 15068  //
 15069  // API parameter values that are decorated as "sensitive" in the API will not
 15070  // be included in the string output. The member name will be present, but the
 15071  // value will be replaced with "sensitive".
 15072  func (s UntagResourceOutput) String() string {
 15073  	return awsutil.Prettify(s)
 15074  }
 15075  
 15076  // GoString returns the string representation.
 15077  //
 15078  // API parameter values that are decorated as "sensitive" in the API will not
 15079  // be included in the string output. The member name will be present, but the
 15080  // value will be replaced with "sensitive".
 15081  func (s UntagResourceOutput) GoString() string {
 15082  	return s.String()
 15083  }
 15084  
 15085  type UpdateApiDestinationInput struct {
 15086  	_ struct{} `type:"structure"`
 15087  
 15088  	// The ARN of the connection to use for the API destination.
 15089  	ConnectionArn *string `min:"1" type:"string"`
 15090  
 15091  	// The name of the API destination to update.
 15092  	Description *string `type:"string"`
 15093  
 15094  	// The method to use for the API destination.
 15095  	HttpMethod *string `type:"string" enum:"ApiDestinationHttpMethod"`
 15096  
 15097  	// The URL to the endpoint to use for the API destination.
 15098  	InvocationEndpoint *string `min:"1" type:"string"`
 15099  
 15100  	// The maximum number of invocations per second to send to the API destination.
 15101  	InvocationRateLimitPerSecond *int64 `min:"1" type:"integer"`
 15102  
 15103  	// The name of the API destination to update.
 15104  	//
 15105  	// Name is a required field
 15106  	Name *string `min:"1" type:"string" required:"true"`
 15107  }
 15108  
 15109  // String returns the string representation.
 15110  //
 15111  // API parameter values that are decorated as "sensitive" in the API will not
 15112  // be included in the string output. The member name will be present, but the
 15113  // value will be replaced with "sensitive".
 15114  func (s UpdateApiDestinationInput) String() string {
 15115  	return awsutil.Prettify(s)
 15116  }
 15117  
 15118  // GoString returns the string representation.
 15119  //
 15120  // API parameter values that are decorated as "sensitive" in the API will not
 15121  // be included in the string output. The member name will be present, but the
 15122  // value will be replaced with "sensitive".
 15123  func (s UpdateApiDestinationInput) GoString() string {
 15124  	return s.String()
 15125  }
 15126  
 15127  // Validate inspects the fields of the type to determine if they are valid.
 15128  func (s *UpdateApiDestinationInput) Validate() error {
 15129  	invalidParams := request.ErrInvalidParams{Context: "UpdateApiDestinationInput"}
 15130  	if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 {
 15131  		invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1))
 15132  	}
 15133  	if s.InvocationEndpoint != nil && len(*s.InvocationEndpoint) < 1 {
 15134  		invalidParams.Add(request.NewErrParamMinLen("InvocationEndpoint", 1))
 15135  	}
 15136  	if s.InvocationRateLimitPerSecond != nil && *s.InvocationRateLimitPerSecond < 1 {
 15137  		invalidParams.Add(request.NewErrParamMinValue("InvocationRateLimitPerSecond", 1))
 15138  	}
 15139  	if s.Name == nil {
 15140  		invalidParams.Add(request.NewErrParamRequired("Name"))
 15141  	}
 15142  	if s.Name != nil && len(*s.Name) < 1 {
 15143  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
 15144  	}
 15145  
 15146  	if invalidParams.Len() > 0 {
 15147  		return invalidParams
 15148  	}
 15149  	return nil
 15150  }
 15151  
 15152  // SetConnectionArn sets the ConnectionArn field's value.
 15153  func (s *UpdateApiDestinationInput) SetConnectionArn(v string) *UpdateApiDestinationInput {
 15154  	s.ConnectionArn = &v
 15155  	return s
 15156  }
 15157  
 15158  // SetDescription sets the Description field's value.
 15159  func (s *UpdateApiDestinationInput) SetDescription(v string) *UpdateApiDestinationInput {
 15160  	s.Description = &v
 15161  	return s
 15162  }
 15163  
 15164  // SetHttpMethod sets the HttpMethod field's value.
 15165  func (s *UpdateApiDestinationInput) SetHttpMethod(v string) *UpdateApiDestinationInput {
 15166  	s.HttpMethod = &v
 15167  	return s
 15168  }
 15169  
 15170  // SetInvocationEndpoint sets the InvocationEndpoint field's value.
 15171  func (s *UpdateApiDestinationInput) SetInvocationEndpoint(v string) *UpdateApiDestinationInput {
 15172  	s.InvocationEndpoint = &v
 15173  	return s
 15174  }
 15175  
 15176  // SetInvocationRateLimitPerSecond sets the InvocationRateLimitPerSecond field's value.
 15177  func (s *UpdateApiDestinationInput) SetInvocationRateLimitPerSecond(v int64) *UpdateApiDestinationInput {
 15178  	s.InvocationRateLimitPerSecond = &v
 15179  	return s
 15180  }
 15181  
 15182  // SetName sets the Name field's value.
 15183  func (s *UpdateApiDestinationInput) SetName(v string) *UpdateApiDestinationInput {
 15184  	s.Name = &v
 15185  	return s
 15186  }
 15187  
 15188  type UpdateApiDestinationOutput struct {
 15189  	_ struct{} `type:"structure"`
 15190  
 15191  	// The ARN of the API destination that was updated.
 15192  	ApiDestinationArn *string `min:"1" type:"string"`
 15193  
 15194  	// The state of the API destination that was updated.
 15195  	ApiDestinationState *string `type:"string" enum:"ApiDestinationState"`
 15196  
 15197  	// A time stamp for the time that the API destination was created.
 15198  	CreationTime *time.Time `type:"timestamp"`
 15199  
 15200  	// A time stamp for the time that the API destination was last modified.
 15201  	LastModifiedTime *time.Time `type:"timestamp"`
 15202  }
 15203  
 15204  // String returns the string representation.
 15205  //
 15206  // API parameter values that are decorated as "sensitive" in the API will not
 15207  // be included in the string output. The member name will be present, but the
 15208  // value will be replaced with "sensitive".
 15209  func (s UpdateApiDestinationOutput) String() string {
 15210  	return awsutil.Prettify(s)
 15211  }
 15212  
 15213  // GoString returns the string representation.
 15214  //
 15215  // API parameter values that are decorated as "sensitive" in the API will not
 15216  // be included in the string output. The member name will be present, but the
 15217  // value will be replaced with "sensitive".
 15218  func (s UpdateApiDestinationOutput) GoString() string {
 15219  	return s.String()
 15220  }
 15221  
 15222  // SetApiDestinationArn sets the ApiDestinationArn field's value.
 15223  func (s *UpdateApiDestinationOutput) SetApiDestinationArn(v string) *UpdateApiDestinationOutput {
 15224  	s.ApiDestinationArn = &v
 15225  	return s
 15226  }
 15227  
 15228  // SetApiDestinationState sets the ApiDestinationState field's value.
 15229  func (s *UpdateApiDestinationOutput) SetApiDestinationState(v string) *UpdateApiDestinationOutput {
 15230  	s.ApiDestinationState = &v
 15231  	return s
 15232  }
 15233  
 15234  // SetCreationTime sets the CreationTime field's value.
 15235  func (s *UpdateApiDestinationOutput) SetCreationTime(v time.Time) *UpdateApiDestinationOutput {
 15236  	s.CreationTime = &v
 15237  	return s
 15238  }
 15239  
 15240  // SetLastModifiedTime sets the LastModifiedTime field's value.
 15241  func (s *UpdateApiDestinationOutput) SetLastModifiedTime(v time.Time) *UpdateApiDestinationOutput {
 15242  	s.LastModifiedTime = &v
 15243  	return s
 15244  }
 15245  
 15246  type UpdateArchiveInput struct {
 15247  	_ struct{} `type:"structure"`
 15248  
 15249  	// The name of the archive to update.
 15250  	//
 15251  	// ArchiveName is a required field
 15252  	ArchiveName *string `min:"1" type:"string" required:"true"`
 15253  
 15254  	// The description for the archive.
 15255  	Description *string `type:"string"`
 15256  
 15257  	// The event pattern to use to filter events sent to the archive.
 15258  	EventPattern *string `type:"string"`
 15259  
 15260  	// The number of days to retain events in the archive.
 15261  	RetentionDays *int64 `type:"integer"`
 15262  }
 15263  
 15264  // String returns the string representation.
 15265  //
 15266  // API parameter values that are decorated as "sensitive" in the API will not
 15267  // be included in the string output. The member name will be present, but the
 15268  // value will be replaced with "sensitive".
 15269  func (s UpdateArchiveInput) String() string {
 15270  	return awsutil.Prettify(s)
 15271  }
 15272  
 15273  // GoString returns the string representation.
 15274  //
 15275  // API parameter values that are decorated as "sensitive" in the API will not
 15276  // be included in the string output. The member name will be present, but the
 15277  // value will be replaced with "sensitive".
 15278  func (s UpdateArchiveInput) GoString() string {
 15279  	return s.String()
 15280  }
 15281  
 15282  // Validate inspects the fields of the type to determine if they are valid.
 15283  func (s *UpdateArchiveInput) Validate() error {
 15284  	invalidParams := request.ErrInvalidParams{Context: "UpdateArchiveInput"}
 15285  	if s.ArchiveName == nil {
 15286  		invalidParams.Add(request.NewErrParamRequired("ArchiveName"))
 15287  	}
 15288  	if s.ArchiveName != nil && len(*s.ArchiveName) < 1 {
 15289  		invalidParams.Add(request.NewErrParamMinLen("ArchiveName", 1))
 15290  	}
 15291  
 15292  	if invalidParams.Len() > 0 {
 15293  		return invalidParams
 15294  	}
 15295  	return nil
 15296  }
 15297  
 15298  // SetArchiveName sets the ArchiveName field's value.
 15299  func (s *UpdateArchiveInput) SetArchiveName(v string) *UpdateArchiveInput {
 15300  	s.ArchiveName = &v
 15301  	return s
 15302  }
 15303  
 15304  // SetDescription sets the Description field's value.
 15305  func (s *UpdateArchiveInput) SetDescription(v string) *UpdateArchiveInput {
 15306  	s.Description = &v
 15307  	return s
 15308  }
 15309  
 15310  // SetEventPattern sets the EventPattern field's value.
 15311  func (s *UpdateArchiveInput) SetEventPattern(v string) *UpdateArchiveInput {
 15312  	s.EventPattern = &v
 15313  	return s
 15314  }
 15315  
 15316  // SetRetentionDays sets the RetentionDays field's value.
 15317  func (s *UpdateArchiveInput) SetRetentionDays(v int64) *UpdateArchiveInput {
 15318  	s.RetentionDays = &v
 15319  	return s
 15320  }
 15321  
 15322  type UpdateArchiveOutput struct {
 15323  	_ struct{} `type:"structure"`
 15324  
 15325  	// The ARN of the archive.
 15326  	ArchiveArn *string `min:"1" type:"string"`
 15327  
 15328  	// The time at which the archive was updated.
 15329  	CreationTime *time.Time `type:"timestamp"`
 15330  
 15331  	// The state of the archive.
 15332  	State *string `type:"string" enum:"ArchiveState"`
 15333  
 15334  	// The reason that the archive is in the current state.
 15335  	StateReason *string `type:"string"`
 15336  }
 15337  
 15338  // String returns the string representation.
 15339  //
 15340  // API parameter values that are decorated as "sensitive" in the API will not
 15341  // be included in the string output. The member name will be present, but the
 15342  // value will be replaced with "sensitive".
 15343  func (s UpdateArchiveOutput) String() string {
 15344  	return awsutil.Prettify(s)
 15345  }
 15346  
 15347  // GoString returns the string representation.
 15348  //
 15349  // API parameter values that are decorated as "sensitive" in the API will not
 15350  // be included in the string output. The member name will be present, but the
 15351  // value will be replaced with "sensitive".
 15352  func (s UpdateArchiveOutput) GoString() string {
 15353  	return s.String()
 15354  }
 15355  
 15356  // SetArchiveArn sets the ArchiveArn field's value.
 15357  func (s *UpdateArchiveOutput) SetArchiveArn(v string) *UpdateArchiveOutput {
 15358  	s.ArchiveArn = &v
 15359  	return s
 15360  }
 15361  
 15362  // SetCreationTime sets the CreationTime field's value.
 15363  func (s *UpdateArchiveOutput) SetCreationTime(v time.Time) *UpdateArchiveOutput {
 15364  	s.CreationTime = &v
 15365  	return s
 15366  }
 15367  
 15368  // SetState sets the State field's value.
 15369  func (s *UpdateArchiveOutput) SetState(v string) *UpdateArchiveOutput {
 15370  	s.State = &v
 15371  	return s
 15372  }
 15373  
 15374  // SetStateReason sets the StateReason field's value.
 15375  func (s *UpdateArchiveOutput) SetStateReason(v string) *UpdateArchiveOutput {
 15376  	s.StateReason = &v
 15377  	return s
 15378  }
 15379  
 15380  // Contains the API key authorization parameters to use to update the connection.
 15381  type UpdateConnectionApiKeyAuthRequestParameters struct {
 15382  	_ struct{} `type:"structure"`
 15383  
 15384  	// The name of the API key to use for authorization.
 15385  	ApiKeyName *string `min:"1" type:"string"`
 15386  
 15387  	// The value associated with teh API key to use for authorization.
 15388  	ApiKeyValue *string `min:"1" type:"string"`
 15389  }
 15390  
 15391  // String returns the string representation.
 15392  //
 15393  // API parameter values that are decorated as "sensitive" in the API will not
 15394  // be included in the string output. The member name will be present, but the
 15395  // value will be replaced with "sensitive".
 15396  func (s UpdateConnectionApiKeyAuthRequestParameters) String() string {
 15397  	return awsutil.Prettify(s)
 15398  }
 15399  
 15400  // GoString returns the string representation.
 15401  //
 15402  // API parameter values that are decorated as "sensitive" in the API will not
 15403  // be included in the string output. The member name will be present, but the
 15404  // value will be replaced with "sensitive".
 15405  func (s UpdateConnectionApiKeyAuthRequestParameters) GoString() string {
 15406  	return s.String()
 15407  }
 15408  
 15409  // Validate inspects the fields of the type to determine if they are valid.
 15410  func (s *UpdateConnectionApiKeyAuthRequestParameters) Validate() error {
 15411  	invalidParams := request.ErrInvalidParams{Context: "UpdateConnectionApiKeyAuthRequestParameters"}
 15412  	if s.ApiKeyName != nil && len(*s.ApiKeyName) < 1 {
 15413  		invalidParams.Add(request.NewErrParamMinLen("ApiKeyName", 1))
 15414  	}
 15415  	if s.ApiKeyValue != nil && len(*s.ApiKeyValue) < 1 {
 15416  		invalidParams.Add(request.NewErrParamMinLen("ApiKeyValue", 1))
 15417  	}
 15418  
 15419  	if invalidParams.Len() > 0 {
 15420  		return invalidParams
 15421  	}
 15422  	return nil
 15423  }
 15424  
 15425  // SetApiKeyName sets the ApiKeyName field's value.
 15426  func (s *UpdateConnectionApiKeyAuthRequestParameters) SetApiKeyName(v string) *UpdateConnectionApiKeyAuthRequestParameters {
 15427  	s.ApiKeyName = &v
 15428  	return s
 15429  }
 15430  
 15431  // SetApiKeyValue sets the ApiKeyValue field's value.
 15432  func (s *UpdateConnectionApiKeyAuthRequestParameters) SetApiKeyValue(v string) *UpdateConnectionApiKeyAuthRequestParameters {
 15433  	s.ApiKeyValue = &v
 15434  	return s
 15435  }
 15436  
 15437  // Contains the additional parameters to use for the connection.
 15438  type UpdateConnectionAuthRequestParameters struct {
 15439  	_ struct{} `type:"structure"`
 15440  
 15441  	// A UpdateConnectionApiKeyAuthRequestParameters object that contains the authorization
 15442  	// parameters for API key authorization.
 15443  	ApiKeyAuthParameters *UpdateConnectionApiKeyAuthRequestParameters `type:"structure"`
 15444  
 15445  	// A UpdateConnectionBasicAuthRequestParameters object that contains the authorization
 15446  	// parameters for Basic authorization.
 15447  	BasicAuthParameters *UpdateConnectionBasicAuthRequestParameters `type:"structure"`
 15448  
 15449  	// A ConnectionHttpParameters object that contains the additional parameters
 15450  	// to use for the connection.
 15451  	InvocationHttpParameters *ConnectionHttpParameters `type:"structure"`
 15452  
 15453  	// A UpdateConnectionOAuthRequestParameters object that contains the authorization
 15454  	// parameters for OAuth authorization.
 15455  	OAuthParameters *UpdateConnectionOAuthRequestParameters `type:"structure"`
 15456  }
 15457  
 15458  // String returns the string representation.
 15459  //
 15460  // API parameter values that are decorated as "sensitive" in the API will not
 15461  // be included in the string output. The member name will be present, but the
 15462  // value will be replaced with "sensitive".
 15463  func (s UpdateConnectionAuthRequestParameters) String() string {
 15464  	return awsutil.Prettify(s)
 15465  }
 15466  
 15467  // GoString returns the string representation.
 15468  //
 15469  // API parameter values that are decorated as "sensitive" in the API will not
 15470  // be included in the string output. The member name will be present, but the
 15471  // value will be replaced with "sensitive".
 15472  func (s UpdateConnectionAuthRequestParameters) GoString() string {
 15473  	return s.String()
 15474  }
 15475  
 15476  // Validate inspects the fields of the type to determine if they are valid.
 15477  func (s *UpdateConnectionAuthRequestParameters) Validate() error {
 15478  	invalidParams := request.ErrInvalidParams{Context: "UpdateConnectionAuthRequestParameters"}
 15479  	if s.ApiKeyAuthParameters != nil {
 15480  		if err := s.ApiKeyAuthParameters.Validate(); err != nil {
 15481  			invalidParams.AddNested("ApiKeyAuthParameters", err.(request.ErrInvalidParams))
 15482  		}
 15483  	}
 15484  	if s.BasicAuthParameters != nil {
 15485  		if err := s.BasicAuthParameters.Validate(); err != nil {
 15486  			invalidParams.AddNested("BasicAuthParameters", err.(request.ErrInvalidParams))
 15487  		}
 15488  	}
 15489  	if s.OAuthParameters != nil {
 15490  		if err := s.OAuthParameters.Validate(); err != nil {
 15491  			invalidParams.AddNested("OAuthParameters", err.(request.ErrInvalidParams))
 15492  		}
 15493  	}
 15494  
 15495  	if invalidParams.Len() > 0 {
 15496  		return invalidParams
 15497  	}
 15498  	return nil
 15499  }
 15500  
 15501  // SetApiKeyAuthParameters sets the ApiKeyAuthParameters field's value.
 15502  func (s *UpdateConnectionAuthRequestParameters) SetApiKeyAuthParameters(v *UpdateConnectionApiKeyAuthRequestParameters) *UpdateConnectionAuthRequestParameters {
 15503  	s.ApiKeyAuthParameters = v
 15504  	return s
 15505  }
 15506  
 15507  // SetBasicAuthParameters sets the BasicAuthParameters field's value.
 15508  func (s *UpdateConnectionAuthRequestParameters) SetBasicAuthParameters(v *UpdateConnectionBasicAuthRequestParameters) *UpdateConnectionAuthRequestParameters {
 15509  	s.BasicAuthParameters = v
 15510  	return s
 15511  }
 15512  
 15513  // SetInvocationHttpParameters sets the InvocationHttpParameters field's value.
 15514  func (s *UpdateConnectionAuthRequestParameters) SetInvocationHttpParameters(v *ConnectionHttpParameters) *UpdateConnectionAuthRequestParameters {
 15515  	s.InvocationHttpParameters = v
 15516  	return s
 15517  }
 15518  
 15519  // SetOAuthParameters sets the OAuthParameters field's value.
 15520  func (s *UpdateConnectionAuthRequestParameters) SetOAuthParameters(v *UpdateConnectionOAuthRequestParameters) *UpdateConnectionAuthRequestParameters {
 15521  	s.OAuthParameters = v
 15522  	return s
 15523  }
 15524  
 15525  // Contains the Basic authorization parameters for the connection.
 15526  type UpdateConnectionBasicAuthRequestParameters struct {
 15527  	_ struct{} `type:"structure"`
 15528  
 15529  	// The password associated with the user name to use for Basic authorization.
 15530  	Password *string `min:"1" type:"string"`
 15531  
 15532  	// The user name to use for Basic authorization.
 15533  	Username *string `min:"1" type:"string"`
 15534  }
 15535  
 15536  // String returns the string representation.
 15537  //
 15538  // API parameter values that are decorated as "sensitive" in the API will not
 15539  // be included in the string output. The member name will be present, but the
 15540  // value will be replaced with "sensitive".
 15541  func (s UpdateConnectionBasicAuthRequestParameters) String() string {
 15542  	return awsutil.Prettify(s)
 15543  }
 15544  
 15545  // GoString returns the string representation.
 15546  //
 15547  // API parameter values that are decorated as "sensitive" in the API will not
 15548  // be included in the string output. The member name will be present, but the
 15549  // value will be replaced with "sensitive".
 15550  func (s UpdateConnectionBasicAuthRequestParameters) GoString() string {
 15551  	return s.String()
 15552  }
 15553  
 15554  // Validate inspects the fields of the type to determine if they are valid.
 15555  func (s *UpdateConnectionBasicAuthRequestParameters) Validate() error {
 15556  	invalidParams := request.ErrInvalidParams{Context: "UpdateConnectionBasicAuthRequestParameters"}
 15557  	if s.Password != nil && len(*s.Password) < 1 {
 15558  		invalidParams.Add(request.NewErrParamMinLen("Password", 1))
 15559  	}
 15560  	if s.Username != nil && len(*s.Username) < 1 {
 15561  		invalidParams.Add(request.NewErrParamMinLen("Username", 1))
 15562  	}
 15563  
 15564  	if invalidParams.Len() > 0 {
 15565  		return invalidParams
 15566  	}
 15567  	return nil
 15568  }
 15569  
 15570  // SetPassword sets the Password field's value.
 15571  func (s *UpdateConnectionBasicAuthRequestParameters) SetPassword(v string) *UpdateConnectionBasicAuthRequestParameters {
 15572  	s.Password = &v
 15573  	return s
 15574  }
 15575  
 15576  // SetUsername sets the Username field's value.
 15577  func (s *UpdateConnectionBasicAuthRequestParameters) SetUsername(v string) *UpdateConnectionBasicAuthRequestParameters {
 15578  	s.Username = &v
 15579  	return s
 15580  }
 15581  
 15582  type UpdateConnectionInput struct {
 15583  	_ struct{} `type:"structure"`
 15584  
 15585  	// The authorization parameters to use for the connection.
 15586  	AuthParameters *UpdateConnectionAuthRequestParameters `type:"structure"`
 15587  
 15588  	// The type of authorization to use for the connection.
 15589  	AuthorizationType *string `type:"string" enum:"ConnectionAuthorizationType"`
 15590  
 15591  	// A description for the connection.
 15592  	Description *string `type:"string"`
 15593  
 15594  	// The name of the connection to update.
 15595  	//
 15596  	// Name is a required field
 15597  	Name *string `min:"1" type:"string" required:"true"`
 15598  }
 15599  
 15600  // String returns the string representation.
 15601  //
 15602  // API parameter values that are decorated as "sensitive" in the API will not
 15603  // be included in the string output. The member name will be present, but the
 15604  // value will be replaced with "sensitive".
 15605  func (s UpdateConnectionInput) String() string {
 15606  	return awsutil.Prettify(s)
 15607  }
 15608  
 15609  // GoString returns the string representation.
 15610  //
 15611  // API parameter values that are decorated as "sensitive" in the API will not
 15612  // be included in the string output. The member name will be present, but the
 15613  // value will be replaced with "sensitive".
 15614  func (s UpdateConnectionInput) GoString() string {
 15615  	return s.String()
 15616  }
 15617  
 15618  // Validate inspects the fields of the type to determine if they are valid.
 15619  func (s *UpdateConnectionInput) Validate() error {
 15620  	invalidParams := request.ErrInvalidParams{Context: "UpdateConnectionInput"}
 15621  	if s.Name == nil {
 15622  		invalidParams.Add(request.NewErrParamRequired("Name"))
 15623  	}
 15624  	if s.Name != nil && len(*s.Name) < 1 {
 15625  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
 15626  	}
 15627  	if s.AuthParameters != nil {
 15628  		if err := s.AuthParameters.Validate(); err != nil {
 15629  			invalidParams.AddNested("AuthParameters", err.(request.ErrInvalidParams))
 15630  		}
 15631  	}
 15632  
 15633  	if invalidParams.Len() > 0 {
 15634  		return invalidParams
 15635  	}
 15636  	return nil
 15637  }
 15638  
 15639  // SetAuthParameters sets the AuthParameters field's value.
 15640  func (s *UpdateConnectionInput) SetAuthParameters(v *UpdateConnectionAuthRequestParameters) *UpdateConnectionInput {
 15641  	s.AuthParameters = v
 15642  	return s
 15643  }
 15644  
 15645  // SetAuthorizationType sets the AuthorizationType field's value.
 15646  func (s *UpdateConnectionInput) SetAuthorizationType(v string) *UpdateConnectionInput {
 15647  	s.AuthorizationType = &v
 15648  	return s
 15649  }
 15650  
 15651  // SetDescription sets the Description field's value.
 15652  func (s *UpdateConnectionInput) SetDescription(v string) *UpdateConnectionInput {
 15653  	s.Description = &v
 15654  	return s
 15655  }
 15656  
 15657  // SetName sets the Name field's value.
 15658  func (s *UpdateConnectionInput) SetName(v string) *UpdateConnectionInput {
 15659  	s.Name = &v
 15660  	return s
 15661  }
 15662  
 15663  // Contains the OAuth authorization parameters to use for the connection.
 15664  type UpdateConnectionOAuthClientRequestParameters struct {
 15665  	_ struct{} `type:"structure"`
 15666  
 15667  	// The client ID to use for OAuth authorization.
 15668  	ClientID *string `min:"1" type:"string"`
 15669  
 15670  	// The client secret assciated with the client ID to use for OAuth authorization.
 15671  	ClientSecret *string `min:"1" type:"string"`
 15672  }
 15673  
 15674  // String returns the string representation.
 15675  //
 15676  // API parameter values that are decorated as "sensitive" in the API will not
 15677  // be included in the string output. The member name will be present, but the
 15678  // value will be replaced with "sensitive".
 15679  func (s UpdateConnectionOAuthClientRequestParameters) String() string {
 15680  	return awsutil.Prettify(s)
 15681  }
 15682  
 15683  // GoString returns the string representation.
 15684  //
 15685  // API parameter values that are decorated as "sensitive" in the API will not
 15686  // be included in the string output. The member name will be present, but the
 15687  // value will be replaced with "sensitive".
 15688  func (s UpdateConnectionOAuthClientRequestParameters) GoString() string {
 15689  	return s.String()
 15690  }
 15691  
 15692  // Validate inspects the fields of the type to determine if they are valid.
 15693  func (s *UpdateConnectionOAuthClientRequestParameters) Validate() error {
 15694  	invalidParams := request.ErrInvalidParams{Context: "UpdateConnectionOAuthClientRequestParameters"}
 15695  	if s.ClientID != nil && len(*s.ClientID) < 1 {
 15696  		invalidParams.Add(request.NewErrParamMinLen("ClientID", 1))
 15697  	}
 15698  	if s.ClientSecret != nil && len(*s.ClientSecret) < 1 {
 15699  		invalidParams.Add(request.NewErrParamMinLen("ClientSecret", 1))
 15700  	}
 15701  
 15702  	if invalidParams.Len() > 0 {
 15703  		return invalidParams
 15704  	}
 15705  	return nil
 15706  }
 15707  
 15708  // SetClientID sets the ClientID field's value.
 15709  func (s *UpdateConnectionOAuthClientRequestParameters) SetClientID(v string) *UpdateConnectionOAuthClientRequestParameters {
 15710  	s.ClientID = &v
 15711  	return s
 15712  }
 15713  
 15714  // SetClientSecret sets the ClientSecret field's value.
 15715  func (s *UpdateConnectionOAuthClientRequestParameters) SetClientSecret(v string) *UpdateConnectionOAuthClientRequestParameters {
 15716  	s.ClientSecret = &v
 15717  	return s
 15718  }
 15719  
 15720  // Contains the OAuth request parameters to use for the connection.
 15721  type UpdateConnectionOAuthRequestParameters struct {
 15722  	_ struct{} `type:"structure"`
 15723  
 15724  	// The URL to the authorization endpoint when OAuth is specified as the authorization
 15725  	// type.
 15726  	AuthorizationEndpoint *string `min:"1" type:"string"`
 15727  
 15728  	// A UpdateConnectionOAuthClientRequestParameters object that contains the client
 15729  	// parameters to use for the connection when OAuth is specified as the authorization
 15730  	// type.
 15731  	ClientParameters *UpdateConnectionOAuthClientRequestParameters `type:"structure"`
 15732  
 15733  	// The method used to connect to the HTTP endpoint.
 15734  	HttpMethod *string `type:"string" enum:"ConnectionOAuthHttpMethod"`
 15735  
 15736  	// The additional HTTP parameters used for the OAuth authorization request.
 15737  	OAuthHttpParameters *ConnectionHttpParameters `type:"structure"`
 15738  }
 15739  
 15740  // String returns the string representation.
 15741  //
 15742  // API parameter values that are decorated as "sensitive" in the API will not
 15743  // be included in the string output. The member name will be present, but the
 15744  // value will be replaced with "sensitive".
 15745  func (s UpdateConnectionOAuthRequestParameters) String() string {
 15746  	return awsutil.Prettify(s)
 15747  }
 15748  
 15749  // GoString returns the string representation.
 15750  //
 15751  // API parameter values that are decorated as "sensitive" in the API will not
 15752  // be included in the string output. The member name will be present, but the
 15753  // value will be replaced with "sensitive".
 15754  func (s UpdateConnectionOAuthRequestParameters) GoString() string {
 15755  	return s.String()
 15756  }
 15757  
 15758  // Validate inspects the fields of the type to determine if they are valid.
 15759  func (s *UpdateConnectionOAuthRequestParameters) Validate() error {
 15760  	invalidParams := request.ErrInvalidParams{Context: "UpdateConnectionOAuthRequestParameters"}
 15761  	if s.AuthorizationEndpoint != nil && len(*s.AuthorizationEndpoint) < 1 {
 15762  		invalidParams.Add(request.NewErrParamMinLen("AuthorizationEndpoint", 1))
 15763  	}
 15764  	if s.ClientParameters != nil {
 15765  		if err := s.ClientParameters.Validate(); err != nil {
 15766  			invalidParams.AddNested("ClientParameters", err.(request.ErrInvalidParams))
 15767  		}
 15768  	}
 15769  
 15770  	if invalidParams.Len() > 0 {
 15771  		return invalidParams
 15772  	}
 15773  	return nil
 15774  }
 15775  
 15776  // SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value.
 15777  func (s *UpdateConnectionOAuthRequestParameters) SetAuthorizationEndpoint(v string) *UpdateConnectionOAuthRequestParameters {
 15778  	s.AuthorizationEndpoint = &v
 15779  	return s
 15780  }
 15781  
 15782  // SetClientParameters sets the ClientParameters field's value.
 15783  func (s *UpdateConnectionOAuthRequestParameters) SetClientParameters(v *UpdateConnectionOAuthClientRequestParameters) *UpdateConnectionOAuthRequestParameters {
 15784  	s.ClientParameters = v
 15785  	return s
 15786  }
 15787  
 15788  // SetHttpMethod sets the HttpMethod field's value.
 15789  func (s *UpdateConnectionOAuthRequestParameters) SetHttpMethod(v string) *UpdateConnectionOAuthRequestParameters {
 15790  	s.HttpMethod = &v
 15791  	return s
 15792  }
 15793  
 15794  // SetOAuthHttpParameters sets the OAuthHttpParameters field's value.
 15795  func (s *UpdateConnectionOAuthRequestParameters) SetOAuthHttpParameters(v *ConnectionHttpParameters) *UpdateConnectionOAuthRequestParameters {
 15796  	s.OAuthHttpParameters = v
 15797  	return s
 15798  }
 15799  
 15800  type UpdateConnectionOutput struct {
 15801  	_ struct{} `type:"structure"`
 15802  
 15803  	// The ARN of the connection that was updated.
 15804  	ConnectionArn *string `min:"1" type:"string"`
 15805  
 15806  	// The state of the connection that was updated.
 15807  	ConnectionState *string `type:"string" enum:"ConnectionState"`
 15808  
 15809  	// A time stamp for the time that the connection was created.
 15810  	CreationTime *time.Time `type:"timestamp"`
 15811  
 15812  	// A time stamp for the time that the connection was last authorized.
 15813  	LastAuthorizedTime *time.Time `type:"timestamp"`
 15814  
 15815  	// A time stamp for the time that the connection was last modified.
 15816  	LastModifiedTime *time.Time `type:"timestamp"`
 15817  }
 15818  
 15819  // String returns the string representation.
 15820  //
 15821  // API parameter values that are decorated as "sensitive" in the API will not
 15822  // be included in the string output. The member name will be present, but the
 15823  // value will be replaced with "sensitive".
 15824  func (s UpdateConnectionOutput) String() string {
 15825  	return awsutil.Prettify(s)
 15826  }
 15827  
 15828  // GoString returns the string representation.
 15829  //
 15830  // API parameter values that are decorated as "sensitive" in the API will not
 15831  // be included in the string output. The member name will be present, but the
 15832  // value will be replaced with "sensitive".
 15833  func (s UpdateConnectionOutput) GoString() string {
 15834  	return s.String()
 15835  }
 15836  
 15837  // SetConnectionArn sets the ConnectionArn field's value.
 15838  func (s *UpdateConnectionOutput) SetConnectionArn(v string) *UpdateConnectionOutput {
 15839  	s.ConnectionArn = &v
 15840  	return s
 15841  }
 15842  
 15843  // SetConnectionState sets the ConnectionState field's value.
 15844  func (s *UpdateConnectionOutput) SetConnectionState(v string) *UpdateConnectionOutput {
 15845  	s.ConnectionState = &v
 15846  	return s
 15847  }
 15848  
 15849  // SetCreationTime sets the CreationTime field's value.
 15850  func (s *UpdateConnectionOutput) SetCreationTime(v time.Time) *UpdateConnectionOutput {
 15851  	s.CreationTime = &v
 15852  	return s
 15853  }
 15854  
 15855  // SetLastAuthorizedTime sets the LastAuthorizedTime field's value.
 15856  func (s *UpdateConnectionOutput) SetLastAuthorizedTime(v time.Time) *UpdateConnectionOutput {
 15857  	s.LastAuthorizedTime = &v
 15858  	return s
 15859  }
 15860  
 15861  // SetLastModifiedTime sets the LastModifiedTime field's value.
 15862  func (s *UpdateConnectionOutput) SetLastModifiedTime(v time.Time) *UpdateConnectionOutput {
 15863  	s.LastModifiedTime = &v
 15864  	return s
 15865  }
 15866  
 15867  const (
 15868  	// ApiDestinationHttpMethodPost is a ApiDestinationHttpMethod enum value
 15869  	ApiDestinationHttpMethodPost = "POST"
 15870  
 15871  	// ApiDestinationHttpMethodGet is a ApiDestinationHttpMethod enum value
 15872  	ApiDestinationHttpMethodGet = "GET"
 15873  
 15874  	// ApiDestinationHttpMethodHead is a ApiDestinationHttpMethod enum value
 15875  	ApiDestinationHttpMethodHead = "HEAD"
 15876  
 15877  	// ApiDestinationHttpMethodOptions is a ApiDestinationHttpMethod enum value
 15878  	ApiDestinationHttpMethodOptions = "OPTIONS"
 15879  
 15880  	// ApiDestinationHttpMethodPut is a ApiDestinationHttpMethod enum value
 15881  	ApiDestinationHttpMethodPut = "PUT"
 15882  
 15883  	// ApiDestinationHttpMethodPatch is a ApiDestinationHttpMethod enum value
 15884  	ApiDestinationHttpMethodPatch = "PATCH"
 15885  
 15886  	// ApiDestinationHttpMethodDelete is a ApiDestinationHttpMethod enum value
 15887  	ApiDestinationHttpMethodDelete = "DELETE"
 15888  )
 15889  
 15890  // ApiDestinationHttpMethod_Values returns all elements of the ApiDestinationHttpMethod enum
 15891  func ApiDestinationHttpMethod_Values() []string {
 15892  	return []string{
 15893  		ApiDestinationHttpMethodPost,
 15894  		ApiDestinationHttpMethodGet,
 15895  		ApiDestinationHttpMethodHead,
 15896  		ApiDestinationHttpMethodOptions,
 15897  		ApiDestinationHttpMethodPut,
 15898  		ApiDestinationHttpMethodPatch,
 15899  		ApiDestinationHttpMethodDelete,
 15900  	}
 15901  }
 15902  
 15903  const (
 15904  	// ApiDestinationStateActive is a ApiDestinationState enum value
 15905  	ApiDestinationStateActive = "ACTIVE"
 15906  
 15907  	// ApiDestinationStateInactive is a ApiDestinationState enum value
 15908  	ApiDestinationStateInactive = "INACTIVE"
 15909  )
 15910  
 15911  // ApiDestinationState_Values returns all elements of the ApiDestinationState enum
 15912  func ApiDestinationState_Values() []string {
 15913  	return []string{
 15914  		ApiDestinationStateActive,
 15915  		ApiDestinationStateInactive,
 15916  	}
 15917  }
 15918  
 15919  const (
 15920  	// ArchiveStateEnabled is a ArchiveState enum value
 15921  	ArchiveStateEnabled = "ENABLED"
 15922  
 15923  	// ArchiveStateDisabled is a ArchiveState enum value
 15924  	ArchiveStateDisabled = "DISABLED"
 15925  
 15926  	// ArchiveStateCreating is a ArchiveState enum value
 15927  	ArchiveStateCreating = "CREATING"
 15928  
 15929  	// ArchiveStateUpdating is a ArchiveState enum value
 15930  	ArchiveStateUpdating = "UPDATING"
 15931  
 15932  	// ArchiveStateCreateFailed is a ArchiveState enum value
 15933  	ArchiveStateCreateFailed = "CREATE_FAILED"
 15934  
 15935  	// ArchiveStateUpdateFailed is a ArchiveState enum value
 15936  	ArchiveStateUpdateFailed = "UPDATE_FAILED"
 15937  )
 15938  
 15939  // ArchiveState_Values returns all elements of the ArchiveState enum
 15940  func ArchiveState_Values() []string {
 15941  	return []string{
 15942  		ArchiveStateEnabled,
 15943  		ArchiveStateDisabled,
 15944  		ArchiveStateCreating,
 15945  		ArchiveStateUpdating,
 15946  		ArchiveStateCreateFailed,
 15947  		ArchiveStateUpdateFailed,
 15948  	}
 15949  }
 15950  
 15951  const (
 15952  	// AssignPublicIpEnabled is a AssignPublicIp enum value
 15953  	AssignPublicIpEnabled = "ENABLED"
 15954  
 15955  	// AssignPublicIpDisabled is a AssignPublicIp enum value
 15956  	AssignPublicIpDisabled = "DISABLED"
 15957  )
 15958  
 15959  // AssignPublicIp_Values returns all elements of the AssignPublicIp enum
 15960  func AssignPublicIp_Values() []string {
 15961  	return []string{
 15962  		AssignPublicIpEnabled,
 15963  		AssignPublicIpDisabled,
 15964  	}
 15965  }
 15966  
 15967  const (
 15968  	// ConnectionAuthorizationTypeBasic is a ConnectionAuthorizationType enum value
 15969  	ConnectionAuthorizationTypeBasic = "BASIC"
 15970  
 15971  	// ConnectionAuthorizationTypeOauthClientCredentials is a ConnectionAuthorizationType enum value
 15972  	ConnectionAuthorizationTypeOauthClientCredentials = "OAUTH_CLIENT_CREDENTIALS"
 15973  
 15974  	// ConnectionAuthorizationTypeApiKey is a ConnectionAuthorizationType enum value
 15975  	ConnectionAuthorizationTypeApiKey = "API_KEY"
 15976  )
 15977  
 15978  // ConnectionAuthorizationType_Values returns all elements of the ConnectionAuthorizationType enum
 15979  func ConnectionAuthorizationType_Values() []string {
 15980  	return []string{
 15981  		ConnectionAuthorizationTypeBasic,
 15982  		ConnectionAuthorizationTypeOauthClientCredentials,
 15983  		ConnectionAuthorizationTypeApiKey,
 15984  	}
 15985  }
 15986  
 15987  const (
 15988  	// ConnectionOAuthHttpMethodGet is a ConnectionOAuthHttpMethod enum value
 15989  	ConnectionOAuthHttpMethodGet = "GET"
 15990  
 15991  	// ConnectionOAuthHttpMethodPost is a ConnectionOAuthHttpMethod enum value
 15992  	ConnectionOAuthHttpMethodPost = "POST"
 15993  
 15994  	// ConnectionOAuthHttpMethodPut is a ConnectionOAuthHttpMethod enum value
 15995  	ConnectionOAuthHttpMethodPut = "PUT"
 15996  )
 15997  
 15998  // ConnectionOAuthHttpMethod_Values returns all elements of the ConnectionOAuthHttpMethod enum
 15999  func ConnectionOAuthHttpMethod_Values() []string {
 16000  	return []string{
 16001  		ConnectionOAuthHttpMethodGet,
 16002  		ConnectionOAuthHttpMethodPost,
 16003  		ConnectionOAuthHttpMethodPut,
 16004  	}
 16005  }
 16006  
 16007  const (
 16008  	// ConnectionStateCreating is a ConnectionState enum value
 16009  	ConnectionStateCreating = "CREATING"
 16010  
 16011  	// ConnectionStateUpdating is a ConnectionState enum value
 16012  	ConnectionStateUpdating = "UPDATING"
 16013  
 16014  	// ConnectionStateDeleting is a ConnectionState enum value
 16015  	ConnectionStateDeleting = "DELETING"
 16016  
 16017  	// ConnectionStateAuthorized is a ConnectionState enum value
 16018  	ConnectionStateAuthorized = "AUTHORIZED"
 16019  
 16020  	// ConnectionStateDeauthorized is a ConnectionState enum value
 16021  	ConnectionStateDeauthorized = "DEAUTHORIZED"
 16022  
 16023  	// ConnectionStateAuthorizing is a ConnectionState enum value
 16024  	ConnectionStateAuthorizing = "AUTHORIZING"
 16025  
 16026  	// ConnectionStateDeauthorizing is a ConnectionState enum value
 16027  	ConnectionStateDeauthorizing = "DEAUTHORIZING"
 16028  )
 16029  
 16030  // ConnectionState_Values returns all elements of the ConnectionState enum
 16031  func ConnectionState_Values() []string {
 16032  	return []string{
 16033  		ConnectionStateCreating,
 16034  		ConnectionStateUpdating,
 16035  		ConnectionStateDeleting,
 16036  		ConnectionStateAuthorized,
 16037  		ConnectionStateDeauthorized,
 16038  		ConnectionStateAuthorizing,
 16039  		ConnectionStateDeauthorizing,
 16040  	}
 16041  }
 16042  
 16043  const (
 16044  	// EventSourceStatePending is a EventSourceState enum value
 16045  	EventSourceStatePending = "PENDING"
 16046  
 16047  	// EventSourceStateActive is a EventSourceState enum value
 16048  	EventSourceStateActive = "ACTIVE"
 16049  
 16050  	// EventSourceStateDeleted is a EventSourceState enum value
 16051  	EventSourceStateDeleted = "DELETED"
 16052  )
 16053  
 16054  // EventSourceState_Values returns all elements of the EventSourceState enum
 16055  func EventSourceState_Values() []string {
 16056  	return []string{
 16057  		EventSourceStatePending,
 16058  		EventSourceStateActive,
 16059  		EventSourceStateDeleted,
 16060  	}
 16061  }
 16062  
 16063  const (
 16064  	// LaunchTypeEc2 is a LaunchType enum value
 16065  	LaunchTypeEc2 = "EC2"
 16066  
 16067  	// LaunchTypeFargate is a LaunchType enum value
 16068  	LaunchTypeFargate = "FARGATE"
 16069  
 16070  	// LaunchTypeExternal is a LaunchType enum value
 16071  	LaunchTypeExternal = "EXTERNAL"
 16072  )
 16073  
 16074  // LaunchType_Values returns all elements of the LaunchType enum
 16075  func LaunchType_Values() []string {
 16076  	return []string{
 16077  		LaunchTypeEc2,
 16078  		LaunchTypeFargate,
 16079  		LaunchTypeExternal,
 16080  	}
 16081  }
 16082  
 16083  const (
 16084  	// PlacementConstraintTypeDistinctInstance is a PlacementConstraintType enum value
 16085  	PlacementConstraintTypeDistinctInstance = "distinctInstance"
 16086  
 16087  	// PlacementConstraintTypeMemberOf is a PlacementConstraintType enum value
 16088  	PlacementConstraintTypeMemberOf = "memberOf"
 16089  )
 16090  
 16091  // PlacementConstraintType_Values returns all elements of the PlacementConstraintType enum
 16092  func PlacementConstraintType_Values() []string {
 16093  	return []string{
 16094  		PlacementConstraintTypeDistinctInstance,
 16095  		PlacementConstraintTypeMemberOf,
 16096  	}
 16097  }
 16098  
 16099  const (
 16100  	// PlacementStrategyTypeRandom is a PlacementStrategyType enum value
 16101  	PlacementStrategyTypeRandom = "random"
 16102  
 16103  	// PlacementStrategyTypeSpread is a PlacementStrategyType enum value
 16104  	PlacementStrategyTypeSpread = "spread"
 16105  
 16106  	// PlacementStrategyTypeBinpack is a PlacementStrategyType enum value
 16107  	PlacementStrategyTypeBinpack = "binpack"
 16108  )
 16109  
 16110  // PlacementStrategyType_Values returns all elements of the PlacementStrategyType enum
 16111  func PlacementStrategyType_Values() []string {
 16112  	return []string{
 16113  		PlacementStrategyTypeRandom,
 16114  		PlacementStrategyTypeSpread,
 16115  		PlacementStrategyTypeBinpack,
 16116  	}
 16117  }
 16118  
 16119  const (
 16120  	// PropagateTagsTaskDefinition is a PropagateTags enum value
 16121  	PropagateTagsTaskDefinition = "TASK_DEFINITION"
 16122  )
 16123  
 16124  // PropagateTags_Values returns all elements of the PropagateTags enum
 16125  func PropagateTags_Values() []string {
 16126  	return []string{
 16127  		PropagateTagsTaskDefinition,
 16128  	}
 16129  }
 16130  
 16131  const (
 16132  	// ReplayStateStarting is a ReplayState enum value
 16133  	ReplayStateStarting = "STARTING"
 16134  
 16135  	// ReplayStateRunning is a ReplayState enum value
 16136  	ReplayStateRunning = "RUNNING"
 16137  
 16138  	// ReplayStateCancelling is a ReplayState enum value
 16139  	ReplayStateCancelling = "CANCELLING"
 16140  
 16141  	// ReplayStateCompleted is a ReplayState enum value
 16142  	ReplayStateCompleted = "COMPLETED"
 16143  
 16144  	// ReplayStateCancelled is a ReplayState enum value
 16145  	ReplayStateCancelled = "CANCELLED"
 16146  
 16147  	// ReplayStateFailed is a ReplayState enum value
 16148  	ReplayStateFailed = "FAILED"
 16149  )
 16150  
 16151  // ReplayState_Values returns all elements of the ReplayState enum
 16152  func ReplayState_Values() []string {
 16153  	return []string{
 16154  		ReplayStateStarting,
 16155  		ReplayStateRunning,
 16156  		ReplayStateCancelling,
 16157  		ReplayStateCompleted,
 16158  		ReplayStateCancelled,
 16159  		ReplayStateFailed,
 16160  	}
 16161  }
 16162  
 16163  const (
 16164  	// RuleStateEnabled is a RuleState enum value
 16165  	RuleStateEnabled = "ENABLED"
 16166  
 16167  	// RuleStateDisabled is a RuleState enum value
 16168  	RuleStateDisabled = "DISABLED"
 16169  )
 16170  
 16171  // RuleState_Values returns all elements of the RuleState enum
 16172  func RuleState_Values() []string {
 16173  	return []string{
 16174  		RuleStateEnabled,
 16175  		RuleStateDisabled,
 16176  	}
 16177  }