Documentation ¶
Overview ¶
Package cloudwatchevents provides the client and types for making API requests to Amazon CloudWatch Events.
Amazon CloudWatch Events 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 pre-determined 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 CloudTrail to an Amazon Kinesis 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 CloudWatch Events, see the Amazon CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events).
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 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
- type BatchArrayProperties
- type BatchParameters
- type BatchRetryStrategy
- type CloudWatchEvents
- func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) DeleteRuleRequest
- func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput) DescribeEventBusRequest
- func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) DescribeRuleRequest
- func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) DisableRuleRequest
- func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) EnableRuleRequest
- func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) ListRuleNamesByTargetRequest
- func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) ListRulesRequest
- func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) ListTargetsByRuleRequest
- func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) PutEventsRequest
- func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) PutPermissionRequest
- func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) PutRuleRequest
- func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) PutTargetsRequest
- func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput) RemovePermissionRequest
- func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) RemoveTargetsRequest
- func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) TestEventPatternRequest
- type DeleteRuleInput
- type DeleteRuleOutput
- type DeleteRuleRequest
- type DescribeEventBusInput
- type DescribeEventBusOutput
- type DescribeEventBusRequest
- type DescribeRuleInput
- type DescribeRuleOutput
- type DescribeRuleRequest
- type DisableRuleInput
- type DisableRuleOutput
- type DisableRuleRequest
- type EcsParameters
- type EnableRuleInput
- type EnableRuleOutput
- type EnableRuleRequest
- type InputTransformer
- type KinesisParameters
- type ListRuleNamesByTargetInput
- type ListRuleNamesByTargetOutput
- type ListRuleNamesByTargetRequest
- type ListRulesInput
- type ListRulesOutput
- type ListRulesRequest
- type ListTargetsByRuleInput
- type ListTargetsByRuleOutput
- type ListTargetsByRuleRequest
- type PutEventsInput
- type PutEventsOutput
- type PutEventsRequest
- type PutEventsRequestEntry
- type PutEventsResultEntry
- type PutPermissionInput
- type PutPermissionOutput
- type PutPermissionRequest
- type PutRuleInput
- type PutRuleOutput
- type PutRuleRequest
- type PutTargetsInput
- type PutTargetsOutput
- type PutTargetsRequest
- type PutTargetsResultEntry
- type RemovePermissionInput
- type RemovePermissionOutput
- type RemovePermissionRequest
- type RemoveTargetsInput
- type RemoveTargetsOutput
- type RemoveTargetsRequest
- type RemoveTargetsResultEntry
- type Rule
- type RuleState
- type RunCommandParameters
- type RunCommandTarget
- type SqsParameters
- type Target
- type TestEventPatternInput
- type TestEventPatternOutput
- type TestEventPatternRequest
Constants ¶
const ( // ErrCodeConcurrentModificationException for service response error code // "ConcurrentModificationException". // // There is concurrent modification on a rule or target. ErrCodeConcurrentModificationException = "ConcurrentModificationException" // 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" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // You tried to create more rules or add more targets to a rule than is allowed. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodePolicyLengthExceededException for service response error code // "PolicyLengthExceededException". // // The event bus policy is too long. For more information, see the limits. ErrCodePolicyLengthExceededException = "PolicyLengthExceededException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // An entity that you specified does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" )
const ( ServiceName = "events" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchArrayProperties
func (BatchArrayProperties) GoString ¶
func (s BatchArrayProperties) GoString() string
GoString returns the string representation
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 to 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. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchParameters
func (BatchParameters) GoString ¶
func (s BatchParameters) GoString() string
GoString returns the string representation
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 to 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. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchRetryStrategy
func (BatchRetryStrategy) GoString ¶
func (s BatchRetryStrategy) GoString() string
GoString returns the string representation
func (BatchRetryStrategy) String ¶
func (s BatchRetryStrategy) String() string
String returns the string representation
type CloudWatchEvents ¶
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 ¶
func New(config aws.Config) *CloudWatchEvents
New creates a new instance of the CloudWatchEvents client with a config.
Example:
// Create a CloudWatchEvents client from just a config. svc := cloudwatchevents.New(myConfig)
func (*CloudWatchEvents) DeleteRuleRequest ¶
func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) DeleteRuleRequest
DeleteRuleRequest returns a request value for making API operation for Amazon CloudWatch Events.
Deletes the specified rule.
You must remove all targets from a rule using RemoveTargets before you can delete the rule.
When you delete a rule, incoming events might continue to match to the deleted rule. Please allow a short period of time for changes to take effect.
// Example sending a request using the DeleteRuleRequest method. req := client.DeleteRuleRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
func (*CloudWatchEvents) DescribeEventBusRequest ¶
func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput) DescribeEventBusRequest
DescribeEventBusRequest returns a request value for making API operation for Amazon CloudWatch Events.
Displays the external AWS accounts that are permitted to write events to your account using your account's event bus, and the associated policy. To enable your account to receive events from other accounts, use PutPermission.
// Example sending a request using the DescribeEventBusRequest method. req := client.DescribeEventBusRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
func (*CloudWatchEvents) DescribeRuleRequest ¶
func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) DescribeRuleRequest
DescribeRuleRequest returns a request value for making API operation for Amazon CloudWatch Events.
Describes the specified rule.
// Example sending a request using the DescribeRuleRequest method. req := client.DescribeRuleRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
func (*CloudWatchEvents) DisableRuleRequest ¶
func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) DisableRuleRequest
DisableRuleRequest returns a request value for making 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. Please allow a short period of time for changes to take effect.
// Example sending a request using the DisableRuleRequest method. req := client.DisableRuleRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
func (*CloudWatchEvents) EnableRuleRequest ¶
func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) EnableRuleRequest
EnableRuleRequest returns a request value for making 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. Please allow a short period of time for changes to take effect.
// Example sending a request using the EnableRuleRequest method. req := client.EnableRuleRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
func (*CloudWatchEvents) ListRuleNamesByTargetRequest ¶
func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) ListRuleNamesByTargetRequest
ListRuleNamesByTargetRequest returns a request value for making API operation for Amazon CloudWatch Events.
Lists the rules for the specified target. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account.
// Example sending a request using the ListRuleNamesByTargetRequest method. req := client.ListRuleNamesByTargetRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
func (*CloudWatchEvents) ListRulesRequest ¶
func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) ListRulesRequest
ListRulesRequest returns a request value for making API operation for Amazon CloudWatch Events.
Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match to the rule names.
// Example sending a request using the ListRulesRequest method. req := client.ListRulesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
func (*CloudWatchEvents) ListTargetsByRuleRequest ¶
func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) ListTargetsByRuleRequest
ListTargetsByRuleRequest returns a request value for making API operation for Amazon CloudWatch Events.
Lists the targets assigned to the specified rule.
// Example sending a request using the ListTargetsByRuleRequest method. req := client.ListTargetsByRuleRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
func (*CloudWatchEvents) PutEventsRequest ¶
func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) PutEventsRequest
PutEventsRequest returns a request value for making API operation for Amazon CloudWatch Events.
Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.
// Example sending a request using the PutEventsRequest method. req := client.PutEventsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
func (*CloudWatchEvents) PutPermissionRequest ¶
func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) PutPermissionRequest
PutPermissionRequest returns a request value for making API operation for Amazon CloudWatch Events.
Running PutPermission permits the specified AWS account to put events to your account's default event bus. CloudWatch Events rules in your account are triggered by these events arriving to your default event bus.
For another account to send events to your account, that external account must have a CloudWatch Events rule with your account's default event bus as a target.
To enable multiple AWS accounts to put events to your default event bus, run PutPermission once for each of these accounts.
The permission policy on the default event bus cannot exceed 10KB in size.
// Example sending a request using the PutPermissionRequest method. req := client.PutPermissionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
func (*CloudWatchEvents) PutRuleRequest ¶
func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) PutRuleRequest
PutRuleRequest returns a request value for making API operation for Amazon CloudWatch Events.
Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You can disable a rule using DisableRule.
If you are updating an existing rule, the rule is completely replaced with what you specify in this PutRule command. If you omit arguments in PutRule, the old values for those arguments are not kept. Instead, they are replaced with null values.
When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Please allow a short period of time for changes to take effect.
A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule triggers on matching events as well as on a schedule.
Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.
// Example sending a request using the PutRuleRequest method. req := client.PutRuleRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
func (*CloudWatchEvents) PutTargetsRequest ¶
func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) PutTargetsRequest
PutTargetsRequest returns a request value for making API operation for Amazon CloudWatch Events.
Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.
Targets are the resources that are invoked when a rule is triggered.
You can configure the following as targets for CloudWatch Events:
EC2 instances
AWS Lambda functions
Streams in Amazon Kinesis Streams
Delivery streams in Amazon Kinesis Firehose
Amazon ECS tasks
AWS Step Functions state machines
AWS Batch jobs
Pipelines in Amazon Code Pipeline
Amazon Inspector assessment templates
Amazon SNS topics
Amazon SQS queues, including FIFO queues
The default event bus of another AWS account
Note that creating rules with built-in targets is supported only in the AWS Management Console.
For some target types, PutTargets provides target-specific parameters. If the target is an Amazon Kinesis stream, you can optionally specify which shard the event goes to by using the KinesisParameters argument. To invoke a command on multiple EC2 instances with one rule, you can use the RunCommandParameters field.
To be able to make API calls against the resources that you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For EC2 instances, Amazon Kinesis streams, and AWS Step Functions state machines, CloudWatch Events relies on IAM roles that you specify in the RoleARN argument in PutTargets. For more information, see Authentication and Access Control (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/auth-and-access-control-cwe.html) in the Amazon CloudWatch Events User Guide.
If another AWS account is in the same region and has granted you permission (using PutPermission), you can send events to that account by setting that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the Arn when you run PutTargets. If your account sends events to another account, your account is charged for each sent event. Each event sent to antoher account is charged as a custom event. The account receiving the event is not charged. For more information on pricing, see Amazon CloudWatch Pricing (https://aws.amazon.com/cloudwatch/pricing/).
For more information about enabling cross-account events, see PutPermission.
Input, InputPath and InputTransformer are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event:
If none of the following arguments are specified for a target, then the entire event is passed to the target in JSON form (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target).
If Input is specified in the form of valid JSON, then the matched event is overridden with this constant.
If InputPath is specified in the form of JSONPath (for example, $.detail), then only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed).
If InputTransformer is specified, then one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target.
When you specify InputPath or InputTransformer, you must use JSON dot notation, not bracket notation.
When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Please allow a short period of time for changes to take effect.
This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.
// Example sending a request using the PutTargetsRequest method. req := client.PutTargetsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
func (*CloudWatchEvents) RemovePermissionRequest ¶
func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput) RemovePermissionRequest
RemovePermissionRequest returns a request value for making API operation for Amazon CloudWatch Events.
Revokes the permission of another AWS account to be able to put events to your default event bus. Specify the account to revoke by the StatementId value that you associated with the account when you granted it permission with PutPermission. You can find the StatementId by using DescribeEventBus.
// Example sending a request using the RemovePermissionRequest method. req := client.RemovePermissionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
func (*CloudWatchEvents) RemoveTargetsRequest ¶
func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) RemoveTargetsRequest
RemoveTargetsRequest returns a request value for making API operation for Amazon CloudWatch Events.
Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked.
When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Please allow a short period of time for changes to take effect.
This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.
// Example sending a request using the RemoveTargetsRequest method. req := client.RemoveTargetsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
func (*CloudWatchEvents) TestEventPatternRequest ¶
func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) TestEventPatternRequest
TestEventPatternRequest returns a request value for making API operation for Amazon CloudWatch Events.
Tests whether the specified event pattern matches the provided event.
Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.
// Example sending a request using the TestEventPatternRequest method. req := client.TestEventPatternRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
type DeleteRuleInput ¶
type DeleteRuleInput struct { // The name of the rule. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleRequest
func (DeleteRuleInput) GoString ¶
func (s DeleteRuleInput) GoString() string
GoString returns the string representation
func (DeleteRuleInput) String ¶
func (s DeleteRuleInput) String() string
String returns the string representation
func (*DeleteRuleInput) Validate ¶
func (s *DeleteRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteRuleOutput ¶
type DeleteRuleOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleOutput
func (DeleteRuleOutput) GoString ¶
func (s DeleteRuleOutput) GoString() string
GoString returns the string representation
func (DeleteRuleOutput) SDKResponseMetadata ¶
func (s DeleteRuleOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteRuleOutput) String ¶
func (s DeleteRuleOutput) String() string
String returns the string representation
type DeleteRuleRequest ¶
type DeleteRuleRequest struct { *aws.Request Input *DeleteRuleInput Copy func(*DeleteRuleInput) DeleteRuleRequest }
DeleteRuleRequest is a API request type for the DeleteRule API operation.
func (DeleteRuleRequest) Send ¶
func (r DeleteRuleRequest) Send() (*DeleteRuleOutput, error)
Send marshals and sends the DeleteRule API request.
type DescribeEventBusInput ¶
type DescribeEventBusInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusRequest
func (DescribeEventBusInput) GoString ¶
func (s DescribeEventBusInput) GoString() string
GoString returns the string representation
func (DescribeEventBusInput) String ¶
func (s DescribeEventBusInput) String() string
String returns the string representation
type DescribeEventBusOutput ¶
type DescribeEventBusOutput struct { // The Amazon Resource Name (ARN) of the account permitted to write events to // the current account. Arn *string `type:"string"` // The name of the event bus. Currently, this is always default. Name *string `type:"string"` // The policy that enables the external account to send events to your account. Policy *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusResponse
func (DescribeEventBusOutput) GoString ¶
func (s DescribeEventBusOutput) GoString() string
GoString returns the string representation
func (DescribeEventBusOutput) SDKResponseMetadata ¶
func (s DescribeEventBusOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DescribeEventBusOutput) String ¶
func (s DescribeEventBusOutput) String() string
String returns the string representation
type DescribeEventBusRequest ¶
type DescribeEventBusRequest struct { *aws.Request Input *DescribeEventBusInput Copy func(*DescribeEventBusInput) DescribeEventBusRequest }
DescribeEventBusRequest is a API request type for the DescribeEventBus API operation.
func (DescribeEventBusRequest) Send ¶
func (r DescribeEventBusRequest) Send() (*DescribeEventBusOutput, error)
Send marshals and sends the DescribeEventBus API request.
type DescribeRuleInput ¶
type DescribeRuleInput struct { // The name of the rule. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleRequest
func (DescribeRuleInput) GoString ¶
func (s DescribeRuleInput) GoString() string
GoString returns the string representation
func (DescribeRuleInput) String ¶
func (s DescribeRuleInput) String() string
String returns the string representation
func (*DescribeRuleInput) Validate ¶
func (s *DescribeRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeRuleOutput ¶
type DescribeRuleOutput struct { // The Amazon Resource Name (ARN) of the rule. Arn *string `min:"1" type:"string"` // The description of the rule. Description *string `type:"string"` // The event pattern. For more information, see Events and Event Patterns (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html) // in the Amazon CloudWatch Events User Guide. EventPattern *string `type:"string"` // The name of the rule. Name *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the IAM role associated with the rule. RoleArn *string `min:"1" type:"string"` // The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". ScheduleExpression *string `type:"string"` // Specifies whether the rule is enabled or disabled. State RuleState `type:"string" enum:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse
func (DescribeRuleOutput) GoString ¶
func (s DescribeRuleOutput) GoString() string
GoString returns the string representation
func (DescribeRuleOutput) SDKResponseMetadata ¶
func (s DescribeRuleOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DescribeRuleOutput) String ¶
func (s DescribeRuleOutput) String() string
String returns the string representation
type DescribeRuleRequest ¶
type DescribeRuleRequest struct { *aws.Request Input *DescribeRuleInput Copy func(*DescribeRuleInput) DescribeRuleRequest }
DescribeRuleRequest is a API request type for the DescribeRule API operation.
func (DescribeRuleRequest) Send ¶
func (r DescribeRuleRequest) Send() (*DescribeRuleOutput, error)
Send marshals and sends the DescribeRule API request.
type DisableRuleInput ¶
type DisableRuleInput struct { // The name of the rule. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleRequest
func (DisableRuleInput) GoString ¶
func (s DisableRuleInput) GoString() string
GoString returns the string representation
func (DisableRuleInput) String ¶
func (s DisableRuleInput) String() string
String returns the string representation
func (*DisableRuleInput) Validate ¶
func (s *DisableRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisableRuleOutput ¶
type DisableRuleOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleOutput
func (DisableRuleOutput) GoString ¶
func (s DisableRuleOutput) GoString() string
GoString returns the string representation
func (DisableRuleOutput) SDKResponseMetadata ¶
func (s DisableRuleOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DisableRuleOutput) String ¶
func (s DisableRuleOutput) String() string
String returns the string representation
type DisableRuleRequest ¶
type DisableRuleRequest struct { *aws.Request Input *DisableRuleInput Copy func(*DisableRuleInput) DisableRuleRequest }
DisableRuleRequest is a API request type for the DisableRule API operation.
func (DisableRuleRequest) Send ¶
func (r DisableRuleRequest) Send() (*DisableRuleOutput, error)
Send marshals and sends the DisableRule API request.
type EcsParameters ¶
type EcsParameters struct { // The number of tasks to create based on the TaskDefinition. The default is // one. TaskCount *int64 `min:"1" type:"integer"` // The ARN of the task definition to use if the event target is an Amazon ECS // cluster. // // TaskDefinitionArn is a required field TaskDefinitionArn *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
The custom parameters to be used when the target is an Amazon ECS cluster. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EcsParameters
func (EcsParameters) GoString ¶
func (s EcsParameters) GoString() string
GoString returns the string representation
func (EcsParameters) String ¶
func (s EcsParameters) String() string
String returns the string representation
func (*EcsParameters) Validate ¶
func (s *EcsParameters) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EnableRuleInput ¶
type EnableRuleInput struct { // The name of the rule. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleRequest
func (EnableRuleInput) GoString ¶
func (s EnableRuleInput) GoString() string
GoString returns the string representation
func (EnableRuleInput) String ¶
func (s EnableRuleInput) String() string
String returns the string representation
func (*EnableRuleInput) Validate ¶
func (s *EnableRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EnableRuleOutput ¶
type EnableRuleOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleOutput
func (EnableRuleOutput) GoString ¶
func (s EnableRuleOutput) GoString() string
GoString returns the string representation
func (EnableRuleOutput) SDKResponseMetadata ¶
func (s EnableRuleOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (EnableRuleOutput) String ¶
func (s EnableRuleOutput) String() string
String returns the string representation
type EnableRuleRequest ¶
type EnableRuleRequest struct { *aws.Request Input *EnableRuleInput Copy func(*EnableRuleInput) EnableRuleRequest }
EnableRuleRequest is a API request type for the EnableRule API operation.
func (EnableRuleRequest) Send ¶
func (r EnableRuleRequest) Send() (*EnableRuleOutput, error)
Send marshals and sends the EnableRule API request.
type InputTransformer ¶
type InputTransformer struct { // Map of JSON paths to be extracted from the event. These are key-value pairs, // where each value is a JSON path. You must use JSON dot notation, not bracket // notation. InputPathsMap map[string]string `type:"map"` // Input template where you can use the values of the keys from InputPathsMap // to customize the data sent to the target. // // InputTemplate is a required field InputTemplate *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Contains the parameters needed for you to provide custom input to a target based on one or more pieces of data extracted from the event. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/InputTransformer
func (InputTransformer) GoString ¶
func (s InputTransformer) GoString() string
GoString returns the string representation
func (InputTransformer) String ¶
func (s InputTransformer) String() string
String returns the string representation
func (*InputTransformer) Validate ¶
func (s *InputTransformer) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KinesisParameters ¶
type KinesisParameters struct { // The JSON path to be extracted from the event and used as the partition key. // For more information, see Amazon Kinesis Streams Key Concepts (http://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key) // in the Amazon Kinesis Streams Developer Guide. // // PartitionKeyPath is a required field PartitionKeyPath *string `type:"string" required:"true"` // contains filtered or unexported fields }
This object enables you to specify a JSON path to extract from the event and use as the partition key for the Amazon Kinesis stream, so that you can control the shard to which the event goes. If you do not include this parameter, the default is to use the eventId as the partition key. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/KinesisParameters
func (KinesisParameters) GoString ¶
func (s KinesisParameters) GoString() string
GoString returns the string representation
func (KinesisParameters) String ¶
func (s KinesisParameters) String() string
String returns the string representation
func (*KinesisParameters) Validate ¶
func (s *KinesisParameters) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRuleNamesByTargetInput ¶
type ListRuleNamesByTargetInput struct { // The maximum number of results to return. Limit *int64 `min:"1" type:"integer"` // The token returned by a previous call to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the target resource. // // TargetArn is a required field TargetArn *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetRequest
func (ListRuleNamesByTargetInput) GoString ¶
func (s ListRuleNamesByTargetInput) GoString() string
GoString returns the string representation
func (ListRuleNamesByTargetInput) String ¶
func (s ListRuleNamesByTargetInput) String() string
String returns the string representation
func (*ListRuleNamesByTargetInput) Validate ¶
func (s *ListRuleNamesByTargetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRuleNamesByTargetOutput ¶
type ListRuleNamesByTargetOutput struct { // Indicates whether there are additional results to retrieve. If there are // no more results, the value is null. NextToken *string `min:"1" type:"string"` // The names of the rules that can invoke the given target. RuleNames []string `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetResponse
func (ListRuleNamesByTargetOutput) GoString ¶
func (s ListRuleNamesByTargetOutput) GoString() string
GoString returns the string representation
func (ListRuleNamesByTargetOutput) SDKResponseMetadata ¶
func (s ListRuleNamesByTargetOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListRuleNamesByTargetOutput) String ¶
func (s ListRuleNamesByTargetOutput) String() string
String returns the string representation
type ListRuleNamesByTargetRequest ¶
type ListRuleNamesByTargetRequest struct { *aws.Request Input *ListRuleNamesByTargetInput Copy func(*ListRuleNamesByTargetInput) ListRuleNamesByTargetRequest }
ListRuleNamesByTargetRequest is a API request type for the ListRuleNamesByTarget API operation.
func (ListRuleNamesByTargetRequest) Send ¶
func (r ListRuleNamesByTargetRequest) Send() (*ListRuleNamesByTargetOutput, error)
Send marshals and sends the ListRuleNamesByTarget API request.
type ListRulesInput ¶
type ListRulesInput struct { // The maximum number of results to return. Limit *int64 `min:"1" type:"integer"` // The prefix matching the rule name. NamePrefix *string `min:"1" type:"string"` // The token returned by a previous call to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesRequest
func (ListRulesInput) GoString ¶
func (s ListRulesInput) GoString() string
GoString returns the string representation
func (ListRulesInput) String ¶
func (s ListRulesInput) String() string
String returns the string representation
func (*ListRulesInput) Validate ¶
func (s *ListRulesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRulesOutput ¶
type ListRulesOutput struct { // Indicates whether there are additional results to retrieve. If there are // no more results, the value is null. NextToken *string `min:"1" type:"string"` // The rules that match the specified criteria. Rules []Rule `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesResponse
func (ListRulesOutput) GoString ¶
func (s ListRulesOutput) GoString() string
GoString returns the string representation
func (ListRulesOutput) SDKResponseMetadata ¶
func (s ListRulesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListRulesOutput) String ¶
func (s ListRulesOutput) String() string
String returns the string representation
type ListRulesRequest ¶
type ListRulesRequest struct { *aws.Request Input *ListRulesInput Copy func(*ListRulesInput) ListRulesRequest }
ListRulesRequest is a API request type for the ListRules API operation.
func (ListRulesRequest) Send ¶
func (r ListRulesRequest) Send() (*ListRulesOutput, error)
Send marshals and sends the ListRules API request.
type ListTargetsByRuleInput ¶
type ListTargetsByRuleInput struct { // The maximum number of results to return. Limit *int64 `min:"1" type:"integer"` // The token returned by a previous call to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The name of the rule. // // Rule is a required field Rule *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleRequest
func (ListTargetsByRuleInput) GoString ¶
func (s ListTargetsByRuleInput) GoString() string
GoString returns the string representation
func (ListTargetsByRuleInput) String ¶
func (s ListTargetsByRuleInput) String() string
String returns the string representation
func (*ListTargetsByRuleInput) Validate ¶
func (s *ListTargetsByRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTargetsByRuleOutput ¶
type ListTargetsByRuleOutput struct { // Indicates whether there are additional results to retrieve. If there are // no more results, the value is null. NextToken *string `min:"1" type:"string"` // The targets assigned to the rule. Targets []Target `min:"1" type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleResponse
func (ListTargetsByRuleOutput) GoString ¶
func (s ListTargetsByRuleOutput) GoString() string
GoString returns the string representation
func (ListTargetsByRuleOutput) SDKResponseMetadata ¶
func (s ListTargetsByRuleOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListTargetsByRuleOutput) String ¶
func (s ListTargetsByRuleOutput) String() string
String returns the string representation
type ListTargetsByRuleRequest ¶
type ListTargetsByRuleRequest struct { *aws.Request Input *ListTargetsByRuleInput Copy func(*ListTargetsByRuleInput) ListTargetsByRuleRequest }
ListTargetsByRuleRequest is a API request type for the ListTargetsByRule API operation.
func (ListTargetsByRuleRequest) Send ¶
func (r ListTargetsByRuleRequest) Send() (*ListTargetsByRuleOutput, error)
Send marshals and sends the ListTargetsByRule API request.
type PutEventsInput ¶
type PutEventsInput struct { // The entry that defines an event in your system. You can specify several parameters // for the entry such as the source and type of the event, resources associated // with the event, and so on. // // Entries is a required field Entries []PutEventsRequestEntry `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequest
func (PutEventsInput) GoString ¶
func (s PutEventsInput) GoString() string
GoString returns the string representation
func (PutEventsInput) String ¶
func (s PutEventsInput) String() string
String returns the string representation
func (*PutEventsInput) Validate ¶
func (s *PutEventsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutEventsOutput ¶
type PutEventsOutput struct { // The successfully and unsuccessfully ingested events results. If the ingestion // was successful, the entry has the event ID in it. Otherwise, you can use // the error code and error message to identify the problem with the entry. Entries []PutEventsResultEntry `type:"list"` // The number of failed entries. FailedEntryCount *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResponse
func (PutEventsOutput) GoString ¶
func (s PutEventsOutput) GoString() string
GoString returns the string representation
func (PutEventsOutput) SDKResponseMetadata ¶
func (s PutEventsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (PutEventsOutput) String ¶
func (s PutEventsOutput) String() string
String returns the string representation
type PutEventsRequest ¶
type PutEventsRequest struct { *aws.Request Input *PutEventsInput Copy func(*PutEventsInput) PutEventsRequest }
PutEventsRequest is a API request type for the PutEvents API operation.
func (PutEventsRequest) Send ¶
func (r PutEventsRequest) Send() (*PutEventsOutput, error)
Send marshals and sends the PutEvents API request.
type PutEventsRequestEntry ¶
type PutEventsRequestEntry struct { // A valid JSON string. There is no other schema imposed. The JSON string may // contain fields and nested subobjects. Detail *string `type:"string"` // Free-form string used to decide what fields to expect in the event detail. DetailType *string `type:"string"` // AWS resources, identified by Amazon Resource Name (ARN), which the event // primarily concerns. Any number, including zero, may be present. Resources []string `type:"list"` // The source of the event. Source *string `type:"string"` // The timestamp of the event, per RFC3339 (https://www.rfc-editor.org/rfc/rfc3339.txt). // If no timestamp is provided, the timestamp of the PutEvents call is used. Time *time.Time `type:"timestamp" timestampFormat:"unix"` // contains filtered or unexported fields }
Represents an event to be submitted. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry
func (PutEventsRequestEntry) GoString ¶
func (s PutEventsRequestEntry) GoString() string
GoString returns the string representation
func (PutEventsRequestEntry) String ¶
func (s PutEventsRequestEntry) String() string
String returns the string representation
type PutEventsResultEntry ¶
type PutEventsResultEntry struct { // The error code that indicates why the event submission failed. ErrorCode *string `type:"string"` // The error message that explains why the event submission failed. ErrorMessage *string `type:"string"` // The ID of the event. EventId *string `type:"string"` // contains filtered or unexported fields }
Represents an event that failed to be submitted. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResultEntry
func (PutEventsResultEntry) GoString ¶
func (s PutEventsResultEntry) GoString() string
GoString returns the string representation
func (PutEventsResultEntry) String ¶
func (s PutEventsResultEntry) String() string
String returns the string representation
type PutPermissionInput ¶
type PutPermissionInput struct { // The action that you are enabling the other account to perform. Currently, // this must be events:PutEvents. // // Action is a required field Action *string `min:"1" type:"string" required:"true"` // The 12-digit AWS account ID that you are permitting to put events to your // default event bus. Specify "*" to permit any account to put events to your // default event bus. // // If you specify "*", avoid creating rules that may match undesirable events. // To create more secure rules, make sure that the event pattern for each rule // contains an account field with a specific account ID from which to receive // events. Rules with an account field do not match any events sent from other // accounts. // // Principal is a required field Principal *string `min:"1" type:"string" required:"true"` // An identifier string for the external account that you are granting permissions // to. If you later want to revoke the permission for this external account, // specify this StatementId when you run RemovePermission. // // StatementId is a required field StatementId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest
func (PutPermissionInput) GoString ¶
func (s PutPermissionInput) GoString() string
GoString returns the string representation
func (PutPermissionInput) String ¶
func (s PutPermissionInput) String() string
String returns the string representation
func (*PutPermissionInput) Validate ¶
func (s *PutPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutPermissionOutput ¶
type PutPermissionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionOutput
func (PutPermissionOutput) GoString ¶
func (s PutPermissionOutput) GoString() string
GoString returns the string representation
func (PutPermissionOutput) SDKResponseMetadata ¶
func (s PutPermissionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (PutPermissionOutput) String ¶
func (s PutPermissionOutput) String() string
String returns the string representation
type PutPermissionRequest ¶
type PutPermissionRequest struct { *aws.Request Input *PutPermissionInput Copy func(*PutPermissionInput) PutPermissionRequest }
PutPermissionRequest is a API request type for the PutPermission API operation.
func (PutPermissionRequest) Send ¶
func (r PutPermissionRequest) Send() (*PutPermissionOutput, error)
Send marshals and sends the PutPermission API request.
type PutRuleInput ¶
type PutRuleInput struct { // A description of the rule. Description *string `type:"string"` // The event pattern. For more information, see Events and Event Patterns (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html) // in the Amazon CloudWatch Events User Guide. EventPattern *string `type:"string"` // The name of the rule that you are creating or updating. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the IAM role associated with the rule. RoleArn *string `min:"1" type:"string"` // The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)". ScheduleExpression *string `type:"string"` // Indicates whether the rule is enabled or disabled. State RuleState `type:"string" enum:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest
func (PutRuleInput) GoString ¶
func (s PutRuleInput) GoString() string
GoString returns the string representation
func (PutRuleInput) String ¶
func (s PutRuleInput) String() string
String returns the string representation
func (*PutRuleInput) Validate ¶
func (s *PutRuleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutRuleOutput ¶
type PutRuleOutput struct { // The Amazon Resource Name (ARN) of the rule. RuleArn *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleResponse
func (PutRuleOutput) GoString ¶
func (s PutRuleOutput) GoString() string
GoString returns the string representation
func (PutRuleOutput) SDKResponseMetadata ¶
func (s PutRuleOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (PutRuleOutput) String ¶
func (s PutRuleOutput) String() string
String returns the string representation
type PutRuleRequest ¶
type PutRuleRequest struct { *aws.Request Input *PutRuleInput Copy func(*PutRuleInput) PutRuleRequest }
PutRuleRequest is a API request type for the PutRule API operation.
func (PutRuleRequest) Send ¶
func (r PutRuleRequest) Send() (*PutRuleOutput, error)
Send marshals and sends the PutRule API request.
type PutTargetsInput ¶
type PutTargetsInput struct { // The name of the rule. // // Rule is a required field Rule *string `min:"1" type:"string" required:"true"` // The targets to update or add to the rule. // // Targets is a required field Targets []Target `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsRequest
func (PutTargetsInput) GoString ¶
func (s PutTargetsInput) GoString() string
GoString returns the string representation
func (PutTargetsInput) String ¶
func (s PutTargetsInput) String() string
String returns the string representation
func (*PutTargetsInput) Validate ¶
func (s *PutTargetsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutTargetsOutput ¶
type PutTargetsOutput struct { // The failed target entries. FailedEntries []PutTargetsResultEntry `type:"list"` // The number of failed entries. FailedEntryCount *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResponse
func (PutTargetsOutput) GoString ¶
func (s PutTargetsOutput) GoString() string
GoString returns the string representation
func (PutTargetsOutput) SDKResponseMetadata ¶
func (s PutTargetsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (PutTargetsOutput) String ¶
func (s PutTargetsOutput) String() string
String returns the string representation
type PutTargetsRequest ¶
type PutTargetsRequest struct { *aws.Request Input *PutTargetsInput Copy func(*PutTargetsInput) PutTargetsRequest }
PutTargetsRequest is a API request type for the PutTargets API operation.
func (PutTargetsRequest) Send ¶
func (r PutTargetsRequest) Send() (*PutTargetsOutput, error)
Send marshals and sends the PutTargets API request.
type PutTargetsResultEntry ¶
type PutTargetsResultEntry struct { // The error code that indicates why the target addition failed. If the value // is ConcurrentModificationException, too many requests were made at the same // time. ErrorCode *string `type:"string"` // The error message that explains why the target addition failed. ErrorMessage *string `type:"string"` // The ID of the target. TargetId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Represents a target that failed to be added to a rule. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResultEntry
func (PutTargetsResultEntry) GoString ¶
func (s PutTargetsResultEntry) GoString() string
GoString returns the string representation
func (PutTargetsResultEntry) String ¶
func (s PutTargetsResultEntry) String() string
String returns the string representation
type RemovePermissionInput ¶
type RemovePermissionInput struct { // The statement ID corresponding to the account that is no longer allowed to // put events to the default event bus. // // StatementId is a required field StatementId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermissionRequest
func (RemovePermissionInput) GoString ¶
func (s RemovePermissionInput) GoString() string
GoString returns the string representation
func (RemovePermissionInput) String ¶
func (s RemovePermissionInput) String() string
String returns the string representation
func (*RemovePermissionInput) Validate ¶
func (s *RemovePermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemovePermissionOutput ¶
type RemovePermissionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermissionOutput
func (RemovePermissionOutput) GoString ¶
func (s RemovePermissionOutput) GoString() string
GoString returns the string representation
func (RemovePermissionOutput) SDKResponseMetadata ¶
func (s RemovePermissionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RemovePermissionOutput) String ¶
func (s RemovePermissionOutput) String() string
String returns the string representation
type RemovePermissionRequest ¶
type RemovePermissionRequest struct { *aws.Request Input *RemovePermissionInput Copy func(*RemovePermissionInput) RemovePermissionRequest }
RemovePermissionRequest is a API request type for the RemovePermission API operation.
func (RemovePermissionRequest) Send ¶
func (r RemovePermissionRequest) Send() (*RemovePermissionOutput, error)
Send marshals and sends the RemovePermission API request.
type RemoveTargetsInput ¶
type RemoveTargetsInput struct { // The IDs of the targets to remove from the rule. // // Ids is a required field Ids []string `min:"1" type:"list" required:"true"` // The name of the rule. // // Rule is a required field Rule *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsRequest
func (RemoveTargetsInput) GoString ¶
func (s RemoveTargetsInput) GoString() string
GoString returns the string representation
func (RemoveTargetsInput) String ¶
func (s RemoveTargetsInput) String() string
String returns the string representation
func (*RemoveTargetsInput) Validate ¶
func (s *RemoveTargetsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemoveTargetsOutput ¶
type RemoveTargetsOutput struct { // The failed target entries. FailedEntries []RemoveTargetsResultEntry `type:"list"` // The number of failed entries. FailedEntryCount *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResponse
func (RemoveTargetsOutput) GoString ¶
func (s RemoveTargetsOutput) GoString() string
GoString returns the string representation
func (RemoveTargetsOutput) SDKResponseMetadata ¶
func (s RemoveTargetsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RemoveTargetsOutput) String ¶
func (s RemoveTargetsOutput) String() string
String returns the string representation
type RemoveTargetsRequest ¶
type RemoveTargetsRequest struct { *aws.Request Input *RemoveTargetsInput Copy func(*RemoveTargetsInput) RemoveTargetsRequest }
RemoveTargetsRequest is a API request type for the RemoveTargets API operation.
func (RemoveTargetsRequest) Send ¶
func (r RemoveTargetsRequest) Send() (*RemoveTargetsOutput, error)
Send marshals and sends the RemoveTargets API request.
type RemoveTargetsResultEntry ¶
type RemoveTargetsResultEntry struct { // The error code that indicates why the target removal failed. If the value // is ConcurrentModificationException, too many requests were made at the same // time. ErrorCode *string `type:"string"` // The error message that explains why the target removal failed. ErrorMessage *string `type:"string"` // The ID of the target. TargetId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Represents a target that failed to be removed from a rule. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResultEntry
func (RemoveTargetsResultEntry) GoString ¶
func (s RemoveTargetsResultEntry) GoString() string
GoString returns the string representation
func (RemoveTargetsResultEntry) String ¶
func (s RemoveTargetsResultEntry) String() string
String returns the string representation
type Rule ¶
type Rule struct { // The Amazon Resource Name (ARN) of the rule. Arn *string `min:"1" type:"string"` // The description of the rule. Description *string `type:"string"` // The event pattern of the rule. For more information, see Events and Event // Patterns (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html) // in the Amazon CloudWatch Events User Guide. EventPattern *string `type:"string"` // The name of the rule. Name *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the role that is used for target invocation. RoleArn *string `min:"1" type:"string"` // The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". ScheduleExpression *string `type:"string"` // The state of the rule. State RuleState `type:"string" enum:"true"` // contains filtered or unexported fields }
Contains information about a rule in Amazon CloudWatch Events. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule
type RunCommandParameters ¶
type RunCommandParameters struct { // Currently, we support including only one RunCommandTarget block, which specifies // either an array of InstanceIds or a tag. // // RunCommandTargets is a required field RunCommandTargets []RunCommandTarget `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandParameters
func (RunCommandParameters) GoString ¶
func (s RunCommandParameters) GoString() string
GoString returns the string representation
func (RunCommandParameters) String ¶
func (s RunCommandParameters) String() string
String returns the string representation
func (*RunCommandParameters) Validate ¶
func (s *RunCommandParameters) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RunCommandTarget ¶
type RunCommandTarget struct { // Can be either tag:tag-key or InstanceIds. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // If Key is tag:tag-key, Values is a list of tag values. If Key is InstanceIds, // Values is a list of Amazon EC2 instance IDs. // // Values is a required field Values []string `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each RunCommandTarget block can include only one key, but this key may specify multiple values. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandTarget
func (RunCommandTarget) GoString ¶
func (s RunCommandTarget) GoString() string
GoString returns the string representation
func (RunCommandTarget) String ¶
func (s RunCommandTarget) String() string
String returns the string representation
func (*RunCommandTarget) Validate ¶
func (s *RunCommandTarget) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SqsParameters ¶
type SqsParameters struct { // The FIFO message group ID to use as the target. MessageGroupId *string `type:"string"` // contains filtered or unexported fields }
This structure includes the custom parameter to be used when the target is an SQS FIFO queue. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/SqsParameters
func (SqsParameters) GoString ¶
func (s SqsParameters) GoString() string
GoString returns the string representation
func (SqsParameters) String ¶
func (s SqsParameters) String() string
String returns the string representation
type Target ¶
type Target struct { // The Amazon Resource Name (ARN) of the target. // // Arn is a required field Arn *string `min:"1" type:"string" required:"true"` // Contains the job definition, job name, and other parameters if the event // target is an AWS Batch job. For more information about AWS Batch, see Jobs // (http://docs.aws.amazon.com/batch/latest/userguide/jobs.html) in the AWS // Batch User Guide. BatchParameters *BatchParameters `type:"structure"` // Contains the Amazon ECS task definition and task count to be used, if the // event target is an Amazon ECS task. For more information about Amazon ECS // tasks, see Task Definitions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) // in the Amazon EC2 Container Service Developer Guide. EcsParameters *EcsParameters `type:"structure"` // The ID of the target. // // Id is a required field Id *string `min:"1" type:"string" required:"true"` // Valid JSON text passed to the target. In this case, nothing from the event // itself is passed to the target. For more information, see The JavaScript // Object Notation (JSON) Data Interchange Format (http://www.rfc-editor.org/rfc/rfc7159.txt). Input *string `type:"string"` // The value of the JSONPath that is used for extracting part of the matched // event when passing it to the target. You must use JSON dot notation, not // bracket notation. For more information about JSON paths, see JSONPath (http://goessner.net/articles/JsonPath/). InputPath *string `type:"string"` // Settings to enable you to provide custom input to a target based on certain // event data. You can extract one or more key-value pairs from the event and // then use that data to send customized input to the target. InputTransformer *InputTransformer `type:"structure"` // The custom parameter you can use to control shard assignment, when the target // is an Amazon Kinesis stream. If you do not include this parameter, the default // is to use the eventId as the partition key. KinesisParameters *KinesisParameters `type:"structure"` // The Amazon Resource Name (ARN) of the IAM role to be used for this target // when the rule is triggered. If one rule triggers multiple targets, you can // use a different IAM role for each target. RoleArn *string `min:"1" type:"string"` // Parameters used when you are using the rule to invoke Amazon EC2 Run Command. RunCommandParameters *RunCommandParameters `type:"structure"` // Contains the message group ID to use when the target is a FIFO queue. SqsParameters *SqsParameters `type:"structure"` // contains filtered or unexported fields }
Targets are the resources to be invoked when a rule is triggered. Target types include EC2 instances, AWS Lambda functions, Amazon Kinesis streams, Amazon ECS tasks, AWS Step Functions state machines, Run Command, and built-in targets. Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target
type TestEventPatternInput ¶
type TestEventPatternInput struct { // The event, in JSON format, to test against the event pattern. // // Event is a required field Event *string `type:"string" required:"true"` // The event pattern. For more information, see Events and Event Patterns (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html) // in the Amazon CloudWatch Events User Guide. // // EventPattern is a required field EventPattern *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternRequest
func (TestEventPatternInput) GoString ¶
func (s TestEventPatternInput) GoString() string
GoString returns the string representation
func (TestEventPatternInput) String ¶
func (s TestEventPatternInput) String() string
String returns the string representation
func (*TestEventPatternInput) Validate ¶
func (s *TestEventPatternInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TestEventPatternOutput ¶
type TestEventPatternOutput struct { // Indicates whether the event matches the event pattern. Result *bool `type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternResponse
func (TestEventPatternOutput) GoString ¶
func (s TestEventPatternOutput) GoString() string
GoString returns the string representation
func (TestEventPatternOutput) SDKResponseMetadata ¶
func (s TestEventPatternOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (TestEventPatternOutput) String ¶
func (s TestEventPatternOutput) String() string
String returns the string representation
type TestEventPatternRequest ¶
type TestEventPatternRequest struct { *aws.Request Input *TestEventPatternInput Copy func(*TestEventPatternInput) TestEventPatternRequest }
TestEventPatternRequest is a API request type for the TestEventPattern API operation.
func (TestEventPatternRequest) Send ¶
func (r TestEventPatternRequest) Send() (*TestEventPatternOutput, error)
Send marshals and sends the TestEventPattern API request.
Directories ¶
Path | Synopsis |
---|---|
Package cloudwatcheventsiface provides an interface to enable mocking the Amazon CloudWatch Events service client for testing your code.
|
Package cloudwatcheventsiface provides an interface to enable mocking the Amazon CloudWatch Events service client for testing your code. |