Documentation

Overview

Package cloudwatchevents provides the client and types for making API requests to Amazon CloudWatch Events.

Amazon EventBridge helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:

* Automatically invoke an AWS Lambda function to update DNS entries when
an event notifies you that Amazon EC2 instance enters the running state.

* Direct specific API records from AWS CloudTrail to an Amazon Kinesis
data stream for detailed analysis of potential security or availability
risks.

* Periodically invoke a built-in target to create a snapshot of an Amazon
EBS volume.

For more information about the features of Amazon EventBridge, see the Amazon EventBridge User Guide (https://docs.aws.amazon.com/eventbridge/latest/userguide).

See https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07 for more information on this service.

See cloudwatchevents package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchevents/

Using the Client

To contact Amazon CloudWatch Events with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon CloudWatch Events client CloudWatchEvents for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchevents/#New

Index

Constants

View Source
const (
	// ApiDestinationHttpMethodPost is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodPost = "POST"

	// ApiDestinationHttpMethodGet is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodGet = "GET"

	// ApiDestinationHttpMethodHead is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodHead = "HEAD"

	// ApiDestinationHttpMethodOptions is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodOptions = "OPTIONS"

	// ApiDestinationHttpMethodPut is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodPut = "PUT"

	// ApiDestinationHttpMethodPatch is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodPatch = "PATCH"

	// ApiDestinationHttpMethodDelete is a ApiDestinationHttpMethod enum value
	ApiDestinationHttpMethodDelete = "DELETE"
)
View Source
const (
	// ApiDestinationStateActive is a ApiDestinationState enum value
	ApiDestinationStateActive = "ACTIVE"

	// ApiDestinationStateInactive is a ApiDestinationState enum value
	ApiDestinationStateInactive = "INACTIVE"
)
View Source
const (
	// ArchiveStateEnabled is a ArchiveState enum value
	ArchiveStateEnabled = "ENABLED"

	// ArchiveStateDisabled is a ArchiveState enum value
	ArchiveStateDisabled = "DISABLED"

	// ArchiveStateCreating is a ArchiveState enum value
	ArchiveStateCreating = "CREATING"

	// ArchiveStateUpdating is a ArchiveState enum value
	ArchiveStateUpdating = "UPDATING"

	// ArchiveStateCreateFailed is a ArchiveState enum value
	ArchiveStateCreateFailed = "CREATE_FAILED"

	// ArchiveStateUpdateFailed is a ArchiveState enum value
	ArchiveStateUpdateFailed = "UPDATE_FAILED"
)
View Source
const (
	// AssignPublicIpEnabled is a AssignPublicIp enum value
	AssignPublicIpEnabled = "ENABLED"

	// AssignPublicIpDisabled is a AssignPublicIp enum value
	AssignPublicIpDisabled = "DISABLED"
)
View Source
const (
	// ConnectionAuthorizationTypeBasic is a ConnectionAuthorizationType enum value
	ConnectionAuthorizationTypeBasic = "BASIC"

	// ConnectionAuthorizationTypeOauthClientCredentials is a ConnectionAuthorizationType enum value
	ConnectionAuthorizationTypeOauthClientCredentials = "OAUTH_CLIENT_CREDENTIALS"

	// ConnectionAuthorizationTypeApiKey is a ConnectionAuthorizationType enum value
	ConnectionAuthorizationTypeApiKey = "API_KEY"
)
View Source
const (
	// ConnectionOAuthHttpMethodGet is a ConnectionOAuthHttpMethod enum value
	ConnectionOAuthHttpMethodGet = "GET"

	// ConnectionOAuthHttpMethodPost is a ConnectionOAuthHttpMethod enum value
	ConnectionOAuthHttpMethodPost = "POST"

	// ConnectionOAuthHttpMethodPut is a ConnectionOAuthHttpMethod enum value
	ConnectionOAuthHttpMethodPut = "PUT"
)
View Source
const (
	// ConnectionStateCreating is a ConnectionState enum value
	ConnectionStateCreating = "CREATING"

	// ConnectionStateUpdating is a ConnectionState enum value
	ConnectionStateUpdating = "UPDATING"

	// ConnectionStateDeleting is a ConnectionState enum value
	ConnectionStateDeleting = "DELETING"

	// ConnectionStateAuthorized is a ConnectionState enum value
	ConnectionStateAuthorized = "AUTHORIZED"

	// ConnectionStateDeauthorized is a ConnectionState enum value
	ConnectionStateDeauthorized = "DEAUTHORIZED"

	// ConnectionStateAuthorizing is a ConnectionState enum value
	ConnectionStateAuthorizing = "AUTHORIZING"

	// ConnectionStateDeauthorizing is a ConnectionState enum value
	ConnectionStateDeauthorizing = "DEAUTHORIZING"
)
View Source
const (
	// EventSourceStatePending is a EventSourceState enum value
	EventSourceStatePending = "PENDING"

	// EventSourceStateActive is a EventSourceState enum value
	EventSourceStateActive = "ACTIVE"

	// EventSourceStateDeleted is a EventSourceState enum value
	EventSourceStateDeleted = "DELETED"
)
View Source
const (
	// LaunchTypeEc2 is a LaunchType enum value
	LaunchTypeEc2 = "EC2"

	// LaunchTypeFargate is a LaunchType enum value
	LaunchTypeFargate = "FARGATE"
)
View Source
const (
	// ReplayStateStarting is a ReplayState enum value
	ReplayStateStarting = "STARTING"

	// ReplayStateRunning is a ReplayState enum value
	ReplayStateRunning = "RUNNING"

	// ReplayStateCancelling is a ReplayState enum value
	ReplayStateCancelling = "CANCELLING"

	// ReplayStateCompleted is a ReplayState enum value
	ReplayStateCompleted = "COMPLETED"

	// ReplayStateCancelled is a ReplayState enum value
	ReplayStateCancelled = "CANCELLED"

	// ReplayStateFailed is a ReplayState enum value
	ReplayStateFailed = "FAILED"
)
View Source
const (
	// RuleStateEnabled is a RuleState enum value
	RuleStateEnabled = "ENABLED"

	// RuleStateDisabled is a RuleState enum value
	RuleStateDisabled = "DISABLED"
)
View Source
const (

	// ErrCodeConcurrentModificationException for service response error code
	// "ConcurrentModificationException".
	//
	// There is concurrent modification on a rule, target, archive, or replay.
	ErrCodeConcurrentModificationException = "ConcurrentModificationException"

	// ErrCodeIllegalStatusException for service response error code
	// "IllegalStatusException".
	//
	// An error occurred because a replay can be canceled only when the state is
	// Running or Starting.
	ErrCodeIllegalStatusException = "IllegalStatusException"

	// ErrCodeInternalException for service response error code
	// "InternalException".
	//
	// This exception occurs due to unexpected causes.
	ErrCodeInternalException = "InternalException"

	// ErrCodeInvalidEventPatternException for service response error code
	// "InvalidEventPatternException".
	//
	// The event pattern is not valid.
	ErrCodeInvalidEventPatternException = "InvalidEventPatternException"

	// ErrCodeInvalidStateException for service response error code
	// "InvalidStateException".
	//
	// The specified state is not a valid state for an event source.
	ErrCodeInvalidStateException = "InvalidStateException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// The request failed because it attempted to create resource beyond the allowed
	// service quota.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeManagedRuleException for service response error code
	// "ManagedRuleException".
	//
	// This rule was created by an AWS service on behalf of your account. It is
	// managed by that service. If you see this error in response to DeleteRule
	// or RemoveTargets, you can use the Force parameter in those calls to delete
	// the rule or remove targets from the rule. You cannot modify these managed
	// rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource,
	// or UntagResource.
	ErrCodeManagedRuleException = "ManagedRuleException"

	// ErrCodeOperationDisabledException for service response error code
	// "OperationDisabledException".
	//
	// The operation you are attempting is not available in this region.
	ErrCodeOperationDisabledException = "OperationDisabledException"

	// ErrCodePolicyLengthExceededException for service response error code
	// "PolicyLengthExceededException".
	//
	// The event bus policy is too long. For more information, see the limits.
	ErrCodePolicyLengthExceededException = "PolicyLengthExceededException"

	// ErrCodeResourceAlreadyExistsException for service response error code
	// "ResourceAlreadyExistsException".
	//
	// The resource you are trying to create already exists.
	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// An entity that you specified does not exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)
View Source
const (
	ServiceName = "events"            // Name of service.
	EndpointsID = ServiceName         // ID to lookup a service endpoint with.
	ServiceID   = "CloudWatch Events" // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

func ApiDestinationHttpMethod_Values

func ApiDestinationHttpMethod_Values() []string

ApiDestinationHttpMethod_Values returns all elements of the ApiDestinationHttpMethod enum

func ApiDestinationState_Values

func ApiDestinationState_Values() []string

ApiDestinationState_Values returns all elements of the ApiDestinationState enum

func ArchiveState_Values

func ArchiveState_Values() []string

ArchiveState_Values returns all elements of the ArchiveState enum

func AssignPublicIp_Values

func AssignPublicIp_Values() []string

AssignPublicIp_Values returns all elements of the AssignPublicIp enum

func ConnectionAuthorizationType_Values

func ConnectionAuthorizationType_Values() []string

ConnectionAuthorizationType_Values returns all elements of the ConnectionAuthorizationType enum

func ConnectionOAuthHttpMethod_Values

func ConnectionOAuthHttpMethod_Values() []string

ConnectionOAuthHttpMethod_Values returns all elements of the ConnectionOAuthHttpMethod enum

func ConnectionState_Values

func ConnectionState_Values() []string

ConnectionState_Values returns all elements of the ConnectionState enum

func EventSourceState_Values

func EventSourceState_Values() []string

EventSourceState_Values returns all elements of the EventSourceState enum

func LaunchType_Values

func LaunchType_Values() []string

LaunchType_Values returns all elements of the LaunchType enum

func ReplayState_Values

func ReplayState_Values() []string

ReplayState_Values returns all elements of the ReplayState enum

func RuleState_Values

func RuleState_Values() []string

RuleState_Values returns all elements of the RuleState enum

Types

type ActivateEventSourceInput

type ActivateEventSourceInput struct {

	// The name of the partner event source to activate.
	//
	// Name is a required field
	Name *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ActivateEventSourceInput) GoString

func (s ActivateEventSourceInput) GoString() string

GoString returns the string representation

func (*ActivateEventSourceInput) SetName

SetName sets the Name field's value.

func (ActivateEventSourceInput) String

func (s ActivateEventSourceInput) String() string

String returns the string representation

func (*ActivateEventSourceInput) Validate

func (s *ActivateEventSourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ActivateEventSourceOutput

type ActivateEventSourceOutput struct {
	// contains filtered or unexported fields
}

func (ActivateEventSourceOutput) GoString

func (s ActivateEventSourceOutput) GoString() string

GoString returns the string representation

func (ActivateEventSourceOutput) String

func (s ActivateEventSourceOutput) String() string

String returns the string representation

type ApiDestination

type ApiDestination struct {

	// The ARN of the API destination.
	ApiDestinationArn *string `min:"1" type:"string"`

	// The state of the API destination.
	ApiDestinationState *string `type:"string" enum:"ApiDestinationState"`

	// The ARN of the connection specified for the API destination.
	ConnectionArn *string `min:"1" type:"string"`

	// A time stamp for the time that the API destination was created.
	CreationTime *time.Time `type:"timestamp"`

	// The method to use to connect to the HTTP endpoint.
	HttpMethod *string `type:"string" enum:"ApiDestinationHttpMethod"`

	// The URL to the endpoint for the API destination.
	InvocationEndpoint *string `min:"1" type:"string"`

	// The maximum number of invocations per second to send to the HTTP endpoint.
	InvocationRateLimitPerSecond *int64 `min:"1" type:"integer"`

	// A time stamp for the time that the API destination was last modified.
	LastModifiedTime *time.Time `type:"timestamp"`

	// The name of the API destination.
	Name *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Contains details about an API destination.

func (ApiDestination) GoString

func (s ApiDestination) GoString() string

GoString returns the string representation

func (*ApiDestination) SetApiDestinationArn

func (s *ApiDestination) SetApiDestinationArn(v string) *ApiDestination

SetApiDestinationArn sets the ApiDestinationArn field's value.

func (*ApiDestination) SetApiDestinationState

func (s *ApiDestination) SetApiDestinationState(v string) *ApiDestination

SetApiDestinationState sets the ApiDestinationState field's value.

func (*ApiDestination) SetConnectionArn

func (s *ApiDestination) SetConnectionArn(v string) *ApiDestination

SetConnectionArn sets the ConnectionArn field's value.

func (*ApiDestination) SetCreationTime

func (s *ApiDestination) SetCreationTime(v time.Time) *ApiDestination

SetCreationTime sets the CreationTime field's value.

func (*ApiDestination) SetHttpMethod

func (s *ApiDestination) SetHttpMethod(v string) *ApiDestination

SetHttpMethod sets the HttpMethod field's value.

func (*ApiDestination) SetInvocationEndpoint

func (s *ApiDestination) SetInvocationEndpoint(v string) *ApiDestination

SetInvocationEndpoint sets the InvocationEndpoint field's value.

func (*ApiDestination) SetInvocationRateLimitPerSecond

func (s *ApiDestination) SetInvocationRateLimitPerSecond(v int64) *ApiDestination

SetInvocationRateLimitPerSecond sets the InvocationRateLimitPerSecond field's value.

func (*ApiDestination) SetLastModifiedTime

func (s *ApiDestination) SetLastModifiedTime(v time.Time) *ApiDestination

SetLastModifiedTime sets the LastModifiedTime field's value.

func (*ApiDestination) SetName

func (s *ApiDestination) SetName(v string) *ApiDestination

SetName sets the Name field's value.

func (ApiDestination) String

func (s ApiDestination) String() string

String returns the string representation

type Archive

type Archive struct {

	// The name of the archive.
	ArchiveName *string `min:"1" type:"string"`

	// The time stamp for the time that the archive was created.
	CreationTime *time.Time `type:"timestamp"`

	// The number of events in the archive.
	EventCount *int64 `type:"long"`

	// The ARN of the event bus associated with the archive. Only events from this
	// event bus are sent to the archive.
	EventSourceArn *string `min:"1" type:"string"`

	// The number of days to retain events in the archive before they are deleted.
	RetentionDays *int64 `type:"integer"`

	// The size of the archive, in bytes.
	SizeBytes *int64 `type:"long"`

	// The current state of the archive.
	State *string `type:"string" enum:"ArchiveState"`

	// A description for the reason that the archive is in the current state.
	StateReason *string `type:"string"`
	// contains filtered or unexported fields
}

An Archive object that contains details about an archive.

func (Archive) GoString

func (s Archive) GoString() string

GoString returns the string representation

func (*Archive) SetArchiveName

func (s *Archive) SetArchiveName(v string) *Archive

SetArchiveName sets the ArchiveName field's value.

func (*Archive) SetCreationTime

func (s *Archive) SetCreationTime(v time.Time) *Archive

SetCreationTime sets the CreationTime field's value.

func (*Archive) SetEventCount

func (s *Archive) SetEventCount(v int64) *Archive

SetEventCount sets the EventCount field's value.

func (*Archive) SetEventSourceArn

func (s *Archive) SetEventSourceArn(v string) *Archive

SetEventSourceArn sets the EventSourceArn field's value.

func (*Archive) SetRetentionDays

func (s *Archive) SetRetentionDays(v int64) *Archive

SetRetentionDays sets the RetentionDays field's value.

func (*Archive) SetSizeBytes

func (s *Archive) SetSizeBytes(v int64) *Archive

SetSizeBytes sets the SizeBytes field's value.

func (*Archive) SetState

func (s *Archive) SetState(v string) *Archive

SetState sets the State field's value.

func (*Archive) SetStateReason

func (s *Archive) SetStateReason(v string) *Archive

SetStateReason sets the StateReason field's value.

func (Archive) String

func (s Archive) String() string

String returns the string representation

type AwsVpcConfiguration

type AwsVpcConfiguration struct {

	// Specifies whether the task's elastic network interface receives a public
	// IP address. You can specify ENABLED only when LaunchType in EcsParameters
	// is set to FARGATE.
	AssignPublicIp *string `type:"string" enum:"AssignPublicIp"`

	// Specifies the security groups associated with the task. These security groups
	// must all be in the same VPC. You can specify as many as five security groups.
	// If you do not specify a security group, the default security group for the
	// VPC is used.
	SecurityGroups []*string `type:"list"`

	// Specifies the subnets associated with the task. These subnets must all be
	// in the same VPC. You can specify as many as 16 subnets.
	//
	// Subnets is a required field
	Subnets []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the awsvpc network mode.

func (AwsVpcConfiguration) GoString

func (s AwsVpcConfiguration) GoString() string

GoString returns the string representation

func (*AwsVpcConfiguration) SetAssignPublicIp

func (s *AwsVpcConfiguration) SetAssignPublicIp(v string) *AwsVpcConfiguration

SetAssignPublicIp sets the AssignPublicIp field's value.

func (*AwsVpcConfiguration) SetSecurityGroups

func (s *AwsVpcConfiguration) SetSecurityGroups(v []*string) *AwsVpcConfiguration

SetSecurityGroups sets the SecurityGroups field's value.

func (*AwsVpcConfiguration) SetSubnets

func (s *AwsVpcConfiguration) SetSubnets(v []*string) *AwsVpcConfiguration

SetSubnets sets the Subnets field's value.

func (AwsVpcConfiguration) String

func (s AwsVpcConfiguration) String() string

String returns the string representation

func (*AwsVpcConfiguration) Validate

func (s *AwsVpcConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchArrayProperties

type BatchArrayProperties struct {

	// The size of the array, if this is an array batch job. Valid values are integers
	// between 2 and 10,000.
	Size *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job.

func (BatchArrayProperties) GoString

func (s BatchArrayProperties) GoString() string

GoString returns the string representation

func (*BatchArrayProperties) SetSize

SetSize sets the Size field's value.

func (BatchArrayProperties) String

func (s BatchArrayProperties) String() string

String returns the string representation

type BatchParameters

type BatchParameters struct {

	// The array properties for the submitted job, such as the size of the array.
	// The array size can be between 2 and 10,000. If you specify array properties
	// for a job, it becomes an array job. This parameter is used only if the target
	// is an AWS Batch job.
	ArrayProperties *BatchArrayProperties `type:"structure"`

	// The ARN or name of the job definition to use if the event target is an AWS
	// Batch job. This job definition must already exist.
	//
	// JobDefinition is a required field
	JobDefinition *string `type:"string" required:"true"`

	// The name to use for this execution of the job, if the target is an AWS Batch
	// job.
	//
	// JobName is a required field
	JobName *string `type:"string" required:"true"`

	// The retry strategy to use for failed jobs, if the target is an AWS Batch
	// job. The retry strategy is the number of times to retry the failed job execution.
	// Valid values are 1–10. When you specify a retry strategy here, it overrides
	// the retry strategy defined in the job definition.
	RetryStrategy *BatchRetryStrategy `type:"structure"`
	// contains filtered or unexported fields
}

The custom parameters to be used when the target is an AWS Batch job.

func (BatchParameters) GoString

func (s BatchParameters) GoString() string

GoString returns the string representation

func (*BatchParameters) SetArrayProperties

func (s *BatchParameters) SetArrayProperties(v *BatchArrayProperties) *BatchParameters

SetArrayProperties sets the ArrayProperties field's value.

func (*BatchParameters) SetJobDefinition

func (s *BatchParameters) SetJobDefinition(v string) *BatchParameters

SetJobDefinition sets the JobDefinition field's value.

func (*BatchParameters) SetJobName

func (s *BatchParameters) SetJobName(v string) *BatchParameters

SetJobName sets the JobName field's value.

func (*BatchParameters) SetRetryStrategy

func (s *BatchParameters) SetRetryStrategy(v *BatchRetryStrategy) *BatchParameters

SetRetryStrategy sets the RetryStrategy field's value.

func (BatchParameters) String

func (s BatchParameters) String() string

String returns the string representation

func (*BatchParameters) Validate

func (s *BatchParameters) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchRetryStrategy

type BatchRetryStrategy struct {

	// The number of times to attempt to retry, if the job fails. Valid values are
	// 1–10.
	Attempts *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The retry strategy to use for failed jobs, if the target is an AWS Batch job. If you specify a retry strategy here, it overrides the retry strategy defined in the job definition.

func (BatchRetryStrategy) GoString

func (s BatchRetryStrategy) GoString() string

GoString returns the string representation

func (*BatchRetryStrategy) SetAttempts

func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy

SetAttempts sets the Attempts field's value.

func (BatchRetryStrategy) String

func (s BatchRetryStrategy) String() string

String returns the string representation

type CancelReplayInput

type CancelReplayInput struct {

	// The name of the replay to cancel.
	//
	// ReplayName is a required field
	ReplayName *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CancelReplayInput) GoString

func (s CancelReplayInput) GoString() string

GoString returns the string representation

func (*CancelReplayInput) SetReplayName

func (s *CancelReplayInput) SetReplayName(v string) *CancelReplayInput

SetReplayName sets the ReplayName field's value.

func (CancelReplayInput) String

func (s CancelReplayInput) String() string

String returns the string representation

func (*CancelReplayInput) Validate

func (s *CancelReplayInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CancelReplayOutput

type CancelReplayOutput struct {

	// The ARN of the replay to cancel.
	ReplayArn *string `min:"1" type:"string"`

	// The current state of the replay.
	State *string `type:"string" enum:"ReplayState"`

	// The reason that the replay is in the current state.
	StateReason *string `type:"string"`
	// contains filtered or unexported fields
}

func (CancelReplayOutput) GoString

func (s CancelReplayOutput) GoString() string

GoString returns the string representation

func (*CancelReplayOutput) SetReplayArn

func (s *CancelReplayOutput) SetReplayArn(v string) *CancelReplayOutput

SetReplayArn sets the ReplayArn field's value.

func (*CancelReplayOutput) SetState

SetState sets the State field's value.

func (*CancelReplayOutput) SetStateReason

func (s *CancelReplayOutput) SetStateReason(v string) *CancelReplayOutput

SetStateReason sets the StateReason field's value.

func (CancelReplayOutput) String

func (s CancelReplayOutput) String() string

String returns the string representation

type CloudWatchEvents

type CloudWatchEvents struct {
	*client.Client
}

CloudWatchEvents provides the API operation methods for making requests to Amazon CloudWatch Events. See this package's package overview docs for details on the service.

CloudWatchEvents methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New creates a new instance of the CloudWatchEvents client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a CloudWatchEvents client from just a session.
svc := cloudwatchevents.New(mySession)

// Create a CloudWatchEvents client with additional configuration
svc := cloudwatchevents.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CloudWatchEvents) ActivateEventSource

func (c *CloudWatchEvents) ActivateEventSource(input *ActivateEventSourceInput) (*ActivateEventSourceOutput, error)

ActivateEventSource API operation for Amazon CloudWatch Events.

Activates a partner event source that has been deactivated. Once activated, your matching event bus will start receiving events from the event source.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation ActivateEventSource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* InvalidStateException
The specified state is not a valid state for an event source.

* InternalException
This exception occurs due to unexpected causes.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource

func (*CloudWatchEvents) ActivateEventSourceRequest

func (c *CloudWatchEvents) ActivateEventSourceRequest(input *ActivateEventSourceInput) (req *request.Request, output *ActivateEventSourceOutput)

ActivateEventSourceRequest generates a "aws/request.Request" representing the client's request for the ActivateEventSource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ActivateEventSource for more information on using the ActivateEventSource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ActivateEventSourceRequest method.
req, resp := client.ActivateEventSourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource

func (*CloudWatchEvents) ActivateEventSourceWithContext

func (c *CloudWatchEvents) ActivateEventSourceWithContext(ctx aws.Context, input *ActivateEventSourceInput, opts ...request.Option) (*ActivateEventSourceOutput, error)

ActivateEventSourceWithContext is the same as ActivateEventSource with the addition of the ability to pass a context and additional request options.

See ActivateEventSource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) CancelReplay

func (c *CloudWatchEvents) CancelReplay(input *CancelReplayInput) (*CancelReplayOutput, error)

CancelReplay API operation for Amazon CloudWatch Events.

Cancels the specified replay.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation CancelReplay for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* IllegalStatusException
An error occurred because a replay can be canceled only when the state is
Running or Starting.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay

func (*CloudWatchEvents) CancelReplayRequest

func (c *CloudWatchEvents) CancelReplayRequest(input *CancelReplayInput) (req *request.Request, output *CancelReplayOutput)

CancelReplayRequest generates a "aws/request.Request" representing the client's request for the CancelReplay operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CancelReplay for more information on using the CancelReplay API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CancelReplayRequest method.
req, resp := client.CancelReplayRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay

func (*CloudWatchEvents) CancelReplayWithContext

func (c *CloudWatchEvents) CancelReplayWithContext(ctx aws.Context, input *CancelReplayInput, opts ...request.Option) (*CancelReplayOutput, error)

CancelReplayWithContext is the same as CancelReplay with the addition of the ability to pass a context and additional request options.

See CancelReplay for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) CreateApiDestination

func (c *CloudWatchEvents) CreateApiDestination(input *CreateApiDestinationInput) (*CreateApiDestinationOutput, error)

CreateApiDestination API operation for Amazon CloudWatch Events.

Creates an API destination, which is an HTTP invocation endpoint configured as a target for events.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation CreateApiDestination for usage and error information.

Returned Error Types:

* ResourceAlreadyExistsException
The resource you are trying to create already exists.

* ResourceNotFoundException
An entity that you specified does not exist.

* LimitExceededException
The request failed because it attempted to create resource beyond the allowed
service quota.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination

func (*CloudWatchEvents) CreateApiDestinationRequest

func (c *CloudWatchEvents) CreateApiDestinationRequest(input *CreateApiDestinationInput) (req *request.Request, output *CreateApiDestinationOutput)

CreateApiDestinationRequest generates a "aws/request.Request" representing the client's request for the CreateApiDestination operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateApiDestination for more information on using the CreateApiDestination API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateApiDestinationRequest method.
req, resp := client.CreateApiDestinationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination

func (*CloudWatchEvents) CreateApiDestinationWithContext

func (c *CloudWatchEvents) CreateApiDestinationWithContext(ctx aws.Context, input *CreateApiDestinationInput, opts ...request.Option) (*CreateApiDestinationOutput, error)

CreateApiDestinationWithContext is the same as CreateApiDestination with the addition of the ability to pass a context and additional request options.

See CreateApiDestination for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) CreateArchive

func (c *CloudWatchEvents) CreateArchive(input *CreateArchiveInput) (*CreateArchiveOutput, error)

CreateArchive API operation for Amazon CloudWatch Events.

Creates an archive of events with the specified settings. When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an archive.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation CreateArchive for usage and error information.

Returned Error Types:

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ResourceAlreadyExistsException
The resource you are trying to create already exists.

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

* LimitExceededException
The request failed because it attempted to create resource beyond the allowed
service quota.

* InvalidEventPatternException
The event pattern is not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive

func (*CloudWatchEvents) CreateArchiveRequest

func (c *CloudWatchEvents) CreateArchiveRequest(input *CreateArchiveInput) (req *request.Request, output *CreateArchiveOutput)

CreateArchiveRequest generates a "aws/request.Request" representing the client's request for the CreateArchive operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateArchive for more information on using the CreateArchive API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateArchiveRequest method.
req, resp := client.CreateArchiveRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive

func (*CloudWatchEvents) CreateArchiveWithContext

func (c *CloudWatchEvents) CreateArchiveWithContext(ctx aws.Context, input *CreateArchiveInput, opts ...request.Option) (*CreateArchiveOutput, error)

CreateArchiveWithContext is the same as CreateArchive with the addition of the ability to pass a context and additional request options.

See CreateArchive for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) CreateConnection

func (c *CloudWatchEvents) CreateConnection(input *CreateConnectionInput) (*CreateConnectionOutput, error)

CreateConnection API operation for Amazon CloudWatch Events.

Creates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation CreateConnection for usage and error information.

Returned Error Types:

* ResourceAlreadyExistsException
The resource you are trying to create already exists.

* LimitExceededException
The request failed because it attempted to create resource beyond the allowed
service quota.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection

func (*CloudWatchEvents) CreateConnectionRequest

func (c *CloudWatchEvents) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *CreateConnectionOutput)

CreateConnectionRequest generates a "aws/request.Request" representing the client's request for the CreateConnection operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateConnection for more information on using the CreateConnection API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateConnectionRequest method.
req, resp := client.CreateConnectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection

func (*CloudWatchEvents) CreateConnectionWithContext

func (c *CloudWatchEvents) CreateConnectionWithContext(ctx aws.Context, input *CreateConnectionInput, opts ...request.Option) (*CreateConnectionOutput, error)

CreateConnectionWithContext is the same as CreateConnection with the addition of the ability to pass a context and additional request options.

See CreateConnection for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) CreateEventBus

func (c *CloudWatchEvents) CreateEventBus(input *CreateEventBusInput) (*CreateEventBusOutput, error)

CreateEventBus API operation for Amazon CloudWatch Events.

Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation CreateEventBus for usage and error information.

Returned Error Types:

* ResourceAlreadyExistsException
The resource you are trying to create already exists.

* ResourceNotFoundException
An entity that you specified does not exist.

* InvalidStateException
The specified state is not a valid state for an event source.

* InternalException
This exception occurs due to unexpected causes.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* LimitExceededException
The request failed because it attempted to create resource beyond the allowed
service quota.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus

func (*CloudWatchEvents) CreateEventBusRequest

func (c *CloudWatchEvents) CreateEventBusRequest(input *CreateEventBusInput) (req *request.Request, output *CreateEventBusOutput)

CreateEventBusRequest generates a "aws/request.Request" representing the client's request for the CreateEventBus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEventBus for more information on using the CreateEventBus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEventBusRequest method.
req, resp := client.CreateEventBusRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus

func (*CloudWatchEvents) CreateEventBusWithContext

func (c *CloudWatchEvents) CreateEventBusWithContext(ctx aws.Context, input *CreateEventBusInput, opts ...request.Option) (*CreateEventBusOutput, error)

CreateEventBusWithContext is the same as CreateEventBus with the addition of the ability to pass a context and additional request options.

See CreateEventBus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) CreatePartnerEventSource

CreatePartnerEventSource API operation for Amazon CloudWatch Events.

Called by an SaaS partner to create a partner event source. This operation is not used by AWS customers.

Each partner event source can be used by one AWS account to create a matching partner event bus in that AWS account. A SaaS partner must create one partner event source for each AWS account that wants to receive those event types.

A partner event source creates events based on resources within the SaaS partner's service or application.

An AWS account that creates a partner event bus that matches the partner event source can use that event bus to receive events from the partner, and then process them using AWS Events rules and targets.

Partner event source names follow this format:

partner_name/event_namespace/event_name

partner_name is determined during partner registration and identifies the partner to AWS customers. event_namespace is determined by the partner and is a way for the partner to categorize their events. event_name is determined by the partner, and should uniquely identify an event-generating resource within the partner system. The combination of event_namespace and event_name should help AWS customers decide whether to create an event bus to receive these events.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation CreatePartnerEventSource for usage and error information.

Returned Error Types:

* ResourceAlreadyExistsException
The resource you are trying to create already exists.

* InternalException
This exception occurs due to unexpected causes.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* LimitExceededException
The request failed because it attempted to create resource beyond the allowed
service quota.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource

func (*CloudWatchEvents) CreatePartnerEventSourceRequest

func (c *CloudWatchEvents) CreatePartnerEventSourceRequest(input *CreatePartnerEventSourceInput) (req *request.Request, output *CreatePartnerEventSourceOutput)

CreatePartnerEventSourceRequest generates a "aws/request.Request" representing the client's request for the CreatePartnerEventSource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreatePartnerEventSource for more information on using the CreatePartnerEventSource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreatePartnerEventSourceRequest method.
req, resp := client.CreatePartnerEventSourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource

func (*CloudWatchEvents) CreatePartnerEventSourceWithContext

func (c *CloudWatchEvents) CreatePartnerEventSourceWithContext(ctx aws.Context, input *CreatePartnerEventSourceInput, opts ...request.Option) (*CreatePartnerEventSourceOutput, error)

CreatePartnerEventSourceWithContext is the same as CreatePartnerEventSource with the addition of the ability to pass a context and additional request options.

See CreatePartnerEventSource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeactivateEventSource

DeactivateEventSource API operation for Amazon CloudWatch Events.

You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not deleted.

When you deactivate a partner event source, the source goes into PENDING state. If it remains in PENDING state for more than two weeks, it is deleted.

To activate a deactivated partner event source, use ActivateEventSource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeactivateEventSource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* InvalidStateException
The specified state is not a valid state for an event source.

* InternalException
This exception occurs due to unexpected causes.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource

func (*CloudWatchEvents) DeactivateEventSourceRequest

func (c *CloudWatchEvents) DeactivateEventSourceRequest(input *DeactivateEventSourceInput) (req *request.Request, output *DeactivateEventSourceOutput)

DeactivateEventSourceRequest generates a "aws/request.Request" representing the client's request for the DeactivateEventSource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeactivateEventSource for more information on using the DeactivateEventSource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeactivateEventSourceRequest method.
req, resp := client.DeactivateEventSourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource

func (*CloudWatchEvents) DeactivateEventSourceWithContext

func (c *CloudWatchEvents) DeactivateEventSourceWithContext(ctx aws.Context, input *DeactivateEventSourceInput, opts ...request.Option) (*DeactivateEventSourceOutput, error)

DeactivateEventSourceWithContext is the same as DeactivateEventSource with the addition of the ability to pass a context and additional request options.

See DeactivateEventSource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeauthorizeConnection

DeauthorizeConnection API operation for Amazon CloudWatch Events.

Removes all authorization parameters from the connection. This lets you remove the secret from the connection so you can reuse it without having to create a new connection.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeauthorizeConnection for usage and error information.

Returned Error Types:

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection

func (*CloudWatchEvents) DeauthorizeConnectionRequest

func (c *CloudWatchEvents) DeauthorizeConnectionRequest(input *DeauthorizeConnectionInput) (req *request.Request, output *DeauthorizeConnectionOutput)

DeauthorizeConnectionRequest generates a "aws/request.Request" representing the client's request for the DeauthorizeConnection operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeauthorizeConnection for more information on using the DeauthorizeConnection API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeauthorizeConnectionRequest method.
req, resp := client.DeauthorizeConnectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection

func (*CloudWatchEvents) DeauthorizeConnectionWithContext

func (c *CloudWatchEvents) DeauthorizeConnectionWithContext(ctx aws.Context, input *DeauthorizeConnectionInput, opts ...request.Option) (*DeauthorizeConnectionOutput, error)

DeauthorizeConnectionWithContext is the same as DeauthorizeConnection with the addition of the ability to pass a context and additional request options.

See DeauthorizeConnection for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeleteApiDestination

func (c *CloudWatchEvents) DeleteApiDestination(input *DeleteApiDestinationInput) (*DeleteApiDestinationOutput, error)

DeleteApiDestination API operation for Amazon CloudWatch Events.

Deletes the specified API destination.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeleteApiDestination for usage and error information.

Returned Error Types:

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination

func (*CloudWatchEvents) DeleteApiDestinationRequest

func (c *CloudWatchEvents) DeleteApiDestinationRequest(input *DeleteApiDestinationInput) (req *request.Request, output *DeleteApiDestinationOutput)

DeleteApiDestinationRequest generates a "aws/request.Request" representing the client's request for the DeleteApiDestination operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteApiDestination for more information on using the DeleteApiDestination API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteApiDestinationRequest method.
req, resp := client.DeleteApiDestinationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination

func (*CloudWatchEvents) DeleteApiDestinationWithContext

func (c *CloudWatchEvents) DeleteApiDestinationWithContext(ctx aws.Context, input *DeleteApiDestinationInput, opts ...request.Option) (*DeleteApiDestinationOutput, error)

DeleteApiDestinationWithContext is the same as DeleteApiDestination with the addition of the ability to pass a context and additional request options.

See DeleteApiDestination for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeleteArchive

func (c *CloudWatchEvents) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput, error)

DeleteArchive API operation for Amazon CloudWatch Events.

Deletes the specified archive.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeleteArchive for usage and error information.

Returned Error Types:

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive

func (*CloudWatchEvents) DeleteArchiveRequest

func (c *CloudWatchEvents) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request.Request, output *DeleteArchiveOutput)

DeleteArchiveRequest generates a "aws/request.Request" representing the client's request for the DeleteArchive operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteArchive for more information on using the DeleteArchive API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteArchiveRequest method.
req, resp := client.DeleteArchiveRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive

func (*CloudWatchEvents) DeleteArchiveWithContext

func (c *CloudWatchEvents) DeleteArchiveWithContext(ctx aws.Context, input *DeleteArchiveInput, opts ...request.Option) (*DeleteArchiveOutput, error)

DeleteArchiveWithContext is the same as DeleteArchive with the addition of the ability to pass a context and additional request options.

See DeleteArchive for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeleteConnection

func (c *CloudWatchEvents) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error)

DeleteConnection API operation for Amazon CloudWatch Events.

Deletes a connection.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeleteConnection for usage and error information.

Returned Error Types:

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection

func (*CloudWatchEvents) DeleteConnectionRequest

func (c *CloudWatchEvents) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput)

DeleteConnectionRequest generates a "aws/request.Request" representing the client's request for the DeleteConnection operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteConnection for more information on using the DeleteConnection API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteConnectionRequest method.
req, resp := client.DeleteConnectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection

func (*CloudWatchEvents) DeleteConnectionWithContext

func (c *CloudWatchEvents) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error)

DeleteConnectionWithContext is the same as DeleteConnection with the addition of the ability to pass a context and additional request options.

See DeleteConnection for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeleteEventBus

func (c *CloudWatchEvents) DeleteEventBus(input *DeleteEventBusInput) (*DeleteEventBusOutput, error)

DeleteEventBus API operation for Amazon CloudWatch Events.

Deletes the specified custom event bus or partner event bus. All rules associated with this event bus need to be deleted. You can't delete your account's default event bus.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeleteEventBus for usage and error information.

Returned Error Types:

* InternalException
This exception occurs due to unexpected causes.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus

func (*CloudWatchEvents) DeleteEventBusRequest

func (c *CloudWatchEvents) DeleteEventBusRequest(input *DeleteEventBusInput) (req *request.Request, output *DeleteEventBusOutput)

DeleteEventBusRequest generates a "aws/request.Request" representing the client's request for the DeleteEventBus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteEventBus for more information on using the DeleteEventBus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteEventBusRequest method.
req, resp := client.DeleteEventBusRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus

func (*CloudWatchEvents) DeleteEventBusWithContext

func (c *CloudWatchEvents) DeleteEventBusWithContext(ctx aws.Context, input *DeleteEventBusInput, opts ...request.Option) (*DeleteEventBusOutput, error)

DeleteEventBusWithContext is the same as DeleteEventBus with the addition of the ability to pass a context and additional request options.

See DeleteEventBus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeletePartnerEventSource

DeletePartnerEventSource API operation for Amazon CloudWatch Events.

This operation is used by SaaS partners to delete a partner event source. This operation is not used by AWS customers.

When you delete an event source, the status of the corresponding partner event bus in the AWS customer account becomes DELETED.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeletePartnerEventSource for usage and error information.

Returned Error Types:

* InternalException
This exception occurs due to unexpected causes.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource

func (*CloudWatchEvents) DeletePartnerEventSourceRequest

func (c *CloudWatchEvents) DeletePartnerEventSourceRequest(input *DeletePartnerEventSourceInput) (req *request.Request, output *DeletePartnerEventSourceOutput)

DeletePartnerEventSourceRequest generates a "aws/request.Request" representing the client's request for the DeletePartnerEventSource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeletePartnerEventSource for more information on using the DeletePartnerEventSource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeletePartnerEventSourceRequest method.
req, resp := client.DeletePartnerEventSourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource

func (*CloudWatchEvents) DeletePartnerEventSourceWithContext

func (c *CloudWatchEvents) DeletePartnerEventSourceWithContext(ctx aws.Context, input *DeletePartnerEventSourceInput, opts ...request.Option) (*DeletePartnerEventSourceOutput, error)

DeletePartnerEventSourceWithContext is the same as DeletePartnerEventSource with the addition of the ability to pass a context and additional request options.

See DeletePartnerEventSource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DeleteRule

func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error)

DeleteRule API operation for Amazon CloudWatch Events.

Deletes the specified rule.

Before you can delete the rule, you must remove all targets, using RemoveTargets.

When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.

Managed rules are rules created and managed by another AWS service on your behalf. These rules are created by those other AWS services to support functionality in those services. You can delete these rules using the Force option, but you should do so only if you are sure the other service is not still using that rule.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DeleteRule for usage and error information.

Returned Error Types:

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ManagedRuleException
This rule was created by an AWS service on behalf of your account. It is
managed by that service. If you see this error in response to DeleteRule
or RemoveTargets, you can use the Force parameter in those calls to delete
the rule or remove targets from the rule. You cannot modify these managed
rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource,
or UntagResource.

* InternalException
This exception occurs due to unexpected causes.

* ResourceNotFoundException
An entity that you specified does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule

func (*CloudWatchEvents) DeleteRuleRequest

func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput)

DeleteRuleRequest generates a "aws/request.Request" representing the client's request for the DeleteRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRule for more information on using the DeleteRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteRuleRequest method.
req, resp := client.DeleteRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule

func (*CloudWatchEvents) DeleteRuleWithContext

func (c *CloudWatchEvents) DeleteRuleWithContext(ctx aws.Context, input *DeleteRuleInput, opts ...request.Option) (*DeleteRuleOutput, error)

DeleteRuleWithContext is the same as DeleteRule with the addition of the ability to pass a context and additional request options.

See DeleteRule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeApiDestination

DescribeApiDestination API operation for Amazon CloudWatch Events.

Retrieves details about an API destination.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeApiDestination for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination

func (*CloudWatchEvents) DescribeApiDestinationRequest

func (c *CloudWatchEvents) DescribeApiDestinationRequest(input *DescribeApiDestinationInput) (req *request.Request, output *DescribeApiDestinationOutput)

DescribeApiDestinationRequest generates a "aws/request.Request" representing the client's request for the DescribeApiDestination operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeApiDestination for more information on using the DescribeApiDestination API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeApiDestinationRequest method.
req, resp := client.DescribeApiDestinationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination

func (*CloudWatchEvents) DescribeApiDestinationWithContext

func (c *CloudWatchEvents) DescribeApiDestinationWithContext(ctx aws.Context, input *DescribeApiDestinationInput, opts ...request.Option) (*DescribeApiDestinationOutput, error)

DescribeApiDestinationWithContext is the same as DescribeApiDestination with the addition of the ability to pass a context and additional request options.

See DescribeApiDestination for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeArchive

func (c *CloudWatchEvents) DescribeArchive(input *DescribeArchiveInput) (*DescribeArchiveOutput, error)

DescribeArchive API operation for Amazon CloudWatch Events.

Retrieves details about an archive.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeArchive for usage and error information.

Returned Error Types:

* ResourceAlreadyExistsException
The resource you are trying to create already exists.

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive

func (*CloudWatchEvents) DescribeArchiveRequest

func (c *CloudWatchEvents) DescribeArchiveRequest(input *DescribeArchiveInput) (req *request.Request, output *DescribeArchiveOutput)

DescribeArchiveRequest generates a "aws/request.Request" representing the client's request for the DescribeArchive operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeArchive for more information on using the DescribeArchive API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeArchiveRequest method.
req, resp := client.DescribeArchiveRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive

func (*CloudWatchEvents) DescribeArchiveWithContext

func (c *CloudWatchEvents) DescribeArchiveWithContext(ctx aws.Context, input *DescribeArchiveInput, opts ...request.Option) (*DescribeArchiveOutput, error)

DescribeArchiveWithContext is the same as DescribeArchive with the addition of the ability to pass a context and additional request options.

See DescribeArchive for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeConnection

func (c *CloudWatchEvents) DescribeConnection(input *DescribeConnectionInput) (*DescribeConnectionOutput, error)

DescribeConnection API operation for Amazon CloudWatch Events.

Retrieves details about a connection.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeConnection for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection

func (*CloudWatchEvents) DescribeConnectionRequest

func (c *CloudWatchEvents) DescribeConnectionRequest(input *DescribeConnectionInput) (req *request.Request, output *DescribeConnectionOutput)

DescribeConnectionRequest generates a "aws/request.Request" representing the client's request for the DescribeConnection operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeConnection for more information on using the DescribeConnection API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeConnectionRequest method.
req, resp := client.DescribeConnectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection

func (*CloudWatchEvents) DescribeConnectionWithContext

func (c *CloudWatchEvents) DescribeConnectionWithContext(ctx aws.Context, input *DescribeConnectionInput, opts ...request.Option) (*DescribeConnectionOutput, error)

DescribeConnectionWithContext is the same as DescribeConnection with the addition of the ability to pass a context and additional request options.

See DescribeConnection for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeEventBus

func (c *CloudWatchEvents) DescribeEventBus(input *DescribeEventBusInput) (*DescribeEventBusOutput, error)

DescribeEventBus API operation for Amazon CloudWatch Events.

Displays details about an event bus in your account. This can include the external AWS accounts that are permitted to write events to your default event bus, and the associated policy. For custom event buses and partner event buses, it displays the name, ARN, policy, state, and creation time.

To enable your account to receive events from other accounts on its default event bus, use PutPermission.

For more information about partner event buses, see CreateEventBus.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeEventBus for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus

func (*CloudWatchEvents) DescribeEventBusRequest

func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput) (req *request.Request, output *DescribeEventBusOutput)

DescribeEventBusRequest generates a "aws/request.Request" representing the client's request for the DescribeEventBus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventBus for more information on using the DescribeEventBus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventBusRequest method.
req, resp := client.DescribeEventBusRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus

func (*CloudWatchEvents) DescribeEventBusWithContext

func (c *CloudWatchEvents) DescribeEventBusWithContext(ctx aws.Context, input *DescribeEventBusInput, opts ...request.Option) (*DescribeEventBusOutput, error)

DescribeEventBusWithContext is the same as DescribeEventBus with the addition of the ability to pass a context and additional request options.

See DescribeEventBus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeEventSource

func (c *CloudWatchEvents) DescribeEventSource(input *DescribeEventSourceInput) (*DescribeEventSourceOutput, error)

DescribeEventSource API operation for Amazon CloudWatch Events.

This operation lists details about a partner event source that is shared with your account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeEventSource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource

func (*CloudWatchEvents) DescribeEventSourceRequest

func (c *CloudWatchEvents) DescribeEventSourceRequest(input *DescribeEventSourceInput) (req *request.Request, output *DescribeEventSourceOutput)

DescribeEventSourceRequest generates a "aws/request.Request" representing the client's request for the DescribeEventSource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventSource for more information on using the DescribeEventSource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventSourceRequest method.
req, resp := client.DescribeEventSourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource

func (*CloudWatchEvents) DescribeEventSourceWithContext

func (c *CloudWatchEvents) DescribeEventSourceWithContext(ctx aws.Context, input *DescribeEventSourceInput, opts ...request.Option) (*DescribeEventSourceOutput, error)

DescribeEventSourceWithContext is the same as DescribeEventSource with the addition of the ability to pass a context and additional request options.

See DescribeEventSource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribePartnerEventSource

DescribePartnerEventSource API operation for Amazon CloudWatch Events.

An SaaS partner can use this operation to list details about a partner event source that they have created. AWS customers do not use this operation. Instead, AWS customers can use DescribeEventSource to see details about a partner event source that is shared with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribePartnerEventSource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

* OperationDisabledException
The operation you are attempting is not available in this region.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource

func (*CloudWatchEvents) DescribePartnerEventSourceRequest

func (c *CloudWatchEvents) DescribePartnerEventSourceRequest(input *DescribePartnerEventSourceInput) (req *request.Request, output *DescribePartnerEventSourceOutput)

DescribePartnerEventSourceRequest generates a "aws/request.Request" representing the client's request for the DescribePartnerEventSource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribePartnerEventSource for more information on using the DescribePartnerEventSource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribePartnerEventSourceRequest method.
req, resp := client.DescribePartnerEventSourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource

func (*CloudWatchEvents) DescribePartnerEventSourceWithContext

func (c *CloudWatchEvents) DescribePartnerEventSourceWithContext(ctx aws.Context, input *DescribePartnerEventSourceInput, opts ...request.Option) (*DescribePartnerEventSourceOutput, error)

DescribePartnerEventSourceWithContext is the same as DescribePartnerEventSource with the addition of the ability to pass a context and additional request options.

See DescribePartnerEventSource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeReplay

func (c *CloudWatchEvents) DescribeReplay(input *DescribeReplayInput) (*DescribeReplayOutput, error)

DescribeReplay API operation for Amazon CloudWatch Events.

Retrieves details about a replay. Use DescribeReplay to determine the progress of a running replay. A replay processes events to replay based on the time in the event, and replays them using 1 minute intervals. If you use StartReplay and specify an EventStartTime and an EventEndTime that covers a 20 minute time range, the events are replayed from the first minute of that 20 minute range first. Then the events from the second minute are replayed. You can use DescribeReplay to determine the progress of a replay. The value returned for EventLastReplayedTime indicates the time within the specified time range associated with the last event replayed.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeReplay for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay

func (*CloudWatchEvents) DescribeReplayRequest

func (c *CloudWatchEvents) DescribeReplayRequest(input *DescribeReplayInput) (req *request.Request, output *DescribeReplayOutput)

DescribeReplayRequest generates a "aws/request.Request" representing the client's request for the DescribeReplay operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReplay for more information on using the DescribeReplay API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReplayRequest method.
req, resp := client.DescribeReplayRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay

func (*CloudWatchEvents) DescribeReplayWithContext

func (c *CloudWatchEvents) DescribeReplayWithContext(ctx aws.Context, input *DescribeReplayInput, opts ...request.Option) (*DescribeReplayOutput, error)

DescribeReplayWithContext is the same as DescribeReplay with the addition of the ability to pass a context and additional request options.

See DescribeReplay for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DescribeRule

func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error)

DescribeRule API operation for Amazon CloudWatch Events.

Describes the specified rule.

DescribeRule does not list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DescribeRule for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule

func (*CloudWatchEvents) DescribeRuleRequest

func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput)

DescribeRuleRequest generates a "aws/request.Request" representing the client's request for the DescribeRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeRule for more information on using the DescribeRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeRuleRequest method.
req, resp := client.DescribeRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule

func (*CloudWatchEvents) DescribeRuleWithContext

func (c *CloudWatchEvents) DescribeRuleWithContext(ctx aws.Context, input *DescribeRuleInput, opts ...request.Option) (*DescribeRuleOutput, error)

DescribeRuleWithContext is the same as DescribeRule with the addition of the ability to pass a context and additional request options.

See DescribeRule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) DisableRule

func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error)

DisableRule API operation for Amazon CloudWatch Events.

Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation DisableRule for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ManagedRuleException
This rule was created by an AWS service on behalf of your account. It is
managed by that service. If you see this error in response to DeleteRule
or RemoveTargets, you can use the Force parameter in those calls to delete
the rule or remove targets from the rule. You cannot modify these managed
rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource,
or UntagResource.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule

func (*CloudWatchEvents) DisableRuleRequest

func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput)

DisableRuleRequest generates a "aws/request.Request" representing the client's request for the DisableRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisableRule for more information on using the DisableRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisableRuleRequest method.
req, resp := client.DisableRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule

func (*CloudWatchEvents) DisableRuleWithContext

func (c *CloudWatchEvents) DisableRuleWithContext(ctx aws.Context, input *DisableRuleInput, opts ...request.Option) (*DisableRuleOutput, error)

DisableRuleWithContext is the same as DisableRule with the addition of the ability to pass a context and additional request options.

See DisableRule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CloudWatchEvents) EnableRule

func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error)

EnableRule API operation for Amazon CloudWatch Events.

Enables the specified rule. If the rule does not exist, the operation fails.

When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take effect.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CloudWatch Events's API operation EnableRule for usage and error information.

Returned Error Types:

* ResourceNotFoundException
An entity that you specified does not exist.

* ConcurrentModificationException
There is concurrent modification on a rule, target, archive, or replay.

* ManagedRuleException
This rule was created by an AWS service on behalf of your account. It is
managed by that service. If you see this error in response to DeleteRule
or RemoveTargets, you can use the Force parameter in those calls to delete
the rule or remove targets from the rule. You cannot modify these managed
rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource,
or UntagResource.

* InternalException
This exception occurs due to unexpected causes.

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule

func (*CloudWatchEvents) EnableRuleRequest

func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput)

EnableRuleRequest generates a "aws/request.Request" representing the client's request for the EnableRule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableRule for more information on using the EnableRule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableRuleRequest method.
req, resp := client.EnableRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule

func (*CloudWatchEvents) EnableRuleWithContext

func (c *CloudWatchEvents) EnableRuleWithContext(ctx aws.Context, input *EnableRuleInput, opts ...request.Option) (*EnableRuleOutput, error)

EnableRuleWithContext is the same as EnableRule with the addition of the ability to pass a context and additional request options.

See EnableRule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

fun