mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+244
-94
@@ -17,7 +17,7 @@ const opDeleteRule = "DeleteRule"
|
||||
|
||||
// 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 complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -38,7 +38,7 @@ const opDeleteRule = "DeleteRule"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
|
||||
func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRule,
|
||||
@@ -81,7 +81,7 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
|
||||
func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) {
|
||||
req, out := c.DeleteRuleRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -107,7 +107,7 @@ const opDescribeEventBus = "DescribeEventBus"
|
||||
|
||||
// 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 complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -128,7 +128,7 @@ const opDescribeEventBus = "DescribeEventBus"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
|
||||
func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput) (req *request.Request, output *DescribeEventBusOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeEventBus,
|
||||
@@ -165,7 +165,7 @@ func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput)
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
|
||||
func (c *CloudWatchEvents) DescribeEventBus(input *DescribeEventBusInput) (*DescribeEventBusOutput, error) {
|
||||
req, out := c.DescribeEventBusRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -191,7 +191,7 @@ const opDescribeRule = "DescribeRule"
|
||||
|
||||
// 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 complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -212,7 +212,7 @@ const opDescribeRule = "DescribeRule"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
|
||||
func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeRule,
|
||||
@@ -247,7 +247,7 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
|
||||
func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) {
|
||||
req, out := c.DescribeRuleRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -273,7 +273,7 @@ const opDisableRule = "DisableRule"
|
||||
|
||||
// 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 complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -294,7 +294,7 @@ const opDisableRule = "DisableRule"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
|
||||
func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDisableRule,
|
||||
@@ -338,7 +338,7 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
|
||||
func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) {
|
||||
req, out := c.DisableRuleRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -364,7 +364,7 @@ const opEnableRule = "EnableRule"
|
||||
|
||||
// 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 complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -385,7 +385,7 @@ const opEnableRule = "EnableRule"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
|
||||
func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opEnableRule,
|
||||
@@ -429,7 +429,7 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
|
||||
func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) {
|
||||
req, out := c.EnableRuleRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -455,7 +455,7 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget"
|
||||
|
||||
// ListRuleNamesByTargetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRuleNamesByTarget operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -476,7 +476,7 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
|
||||
func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) (req *request.Request, output *ListRuleNamesByTargetOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListRuleNamesByTarget,
|
||||
@@ -509,7 +509,7 @@ func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTa
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
|
||||
func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) {
|
||||
req, out := c.ListRuleNamesByTargetRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -535,7 +535,7 @@ const opListRules = "ListRules"
|
||||
|
||||
// ListRulesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRules operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -556,7 +556,7 @@ const opListRules = "ListRules"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
|
||||
func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListRules,
|
||||
@@ -589,7 +589,7 @@ func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
|
||||
func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, error) {
|
||||
req, out := c.ListRulesRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -615,7 +615,7 @@ const opListTargetsByRule = "ListTargetsByRule"
|
||||
|
||||
// ListTargetsByRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTargetsByRule operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -636,7 +636,7 @@ const opListTargetsByRule = "ListTargetsByRule"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
|
||||
func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (req *request.Request, output *ListTargetsByRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTargetsByRule,
|
||||
@@ -671,7 +671,7 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
|
||||
func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) {
|
||||
req, out := c.ListTargetsByRuleRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -697,7 +697,7 @@ const opPutEvents = "PutEvents"
|
||||
|
||||
// PutEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutEvents operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -718,7 +718,7 @@ const opPutEvents = "PutEvents"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
|
||||
func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutEvents,
|
||||
@@ -751,7 +751,7 @@ func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
|
||||
func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) {
|
||||
req, out := c.PutEventsRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -777,7 +777,7 @@ const opPutPermission = "PutPermission"
|
||||
|
||||
// PutPermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutPermission operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -798,7 +798,7 @@ const opPutPermission = "PutPermission"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
|
||||
func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req *request.Request, output *PutPermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutPermission,
|
||||
@@ -852,7 +852,7 @@ func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req
|
||||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||||
// There is concurrent modification on a rule or target.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
|
||||
func (c *CloudWatchEvents) PutPermission(input *PutPermissionInput) (*PutPermissionOutput, error) {
|
||||
req, out := c.PutPermissionRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -878,7 +878,7 @@ const opPutRule = "PutRule"
|
||||
|
||||
// PutRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRule operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -899,7 +899,7 @@ const opPutRule = "PutRule"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
|
||||
func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Request, output *PutRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRule,
|
||||
@@ -921,6 +921,11 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req
|
||||
// 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.
|
||||
@@ -956,7 +961,7 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
|
||||
func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error) {
|
||||
req, out := c.PutRuleRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -982,7 +987,7 @@ const opPutTargets = "PutTargets"
|
||||
|
||||
// PutTargetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutTargets operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -1003,7 +1008,7 @@ const opPutTargets = "PutTargets"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
|
||||
func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *request.Request, output *PutTargetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutTargets,
|
||||
@@ -1041,13 +1046,15 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
|
||||
//
|
||||
// * AWS Step Functions state machines
|
||||
//
|
||||
// * AWS Batch jobs
|
||||
//
|
||||
// * Pipelines in Amazon Code Pipeline
|
||||
//
|
||||
// * Amazon Inspector assessment templates
|
||||
//
|
||||
// * Amazon SNS topics
|
||||
//
|
||||
// * Amazon SQS queues
|
||||
// * Amazon SQS queues, including FIFO queues
|
||||
//
|
||||
// * The default event bus of another AWS account
|
||||
//
|
||||
@@ -1099,8 +1106,8 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
|
||||
// are extracted from the event and used as values in a template that you
|
||||
// specify as the input to the target.
|
||||
//
|
||||
// When you specify Input, InputPath, or InputTransformer, you must use JSON
|
||||
// dot notation, not bracket notation.
|
||||
// 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
|
||||
@@ -1131,7 +1138,7 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
|
||||
func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) {
|
||||
req, out := c.PutTargetsRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -1157,7 +1164,7 @@ const opRemovePermission = "RemovePermission"
|
||||
|
||||
// RemovePermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemovePermission operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -1178,7 +1185,7 @@ const opRemovePermission = "RemovePermission"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
|
||||
func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemovePermission,
|
||||
@@ -1221,7 +1228,7 @@ func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput)
|
||||
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
|
||||
// There is concurrent modification on a rule or target.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
|
||||
func (c *CloudWatchEvents) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) {
|
||||
req, out := c.RemovePermissionRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -1247,7 +1254,7 @@ const opRemoveTargets = "RemoveTargets"
|
||||
|
||||
// RemoveTargetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTargets operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -1268,7 +1275,7 @@ const opRemoveTargets = "RemoveTargets"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
|
||||
func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req *request.Request, output *RemoveTargetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTargets,
|
||||
@@ -1316,7 +1323,7 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
|
||||
func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) {
|
||||
req, out := c.RemoveTargetsRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -1342,7 +1349,7 @@ const opTestEventPattern = "TestEventPattern"
|
||||
|
||||
// TestEventPatternRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TestEventPattern operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -1363,7 +1370,7 @@ const opTestEventPattern = "TestEventPattern"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
|
||||
func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) (req *request.Request, output *TestEventPatternOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opTestEventPattern,
|
||||
@@ -1403,7 +1410,7 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput)
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// This exception occurs due to unexpected causes.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
|
||||
func (c *CloudWatchEvents) TestEventPattern(input *TestEventPatternInput) (*TestEventPatternOutput, error) {
|
||||
req, out := c.TestEventPatternRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -1425,7 +1432,140 @@ func (c *CloudWatchEvents) TestEventPatternWithContext(ctx aws.Context, input *T
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleRequest
|
||||
// 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.
|
||||
type BatchArrayProperties struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchArrayProperties) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchArrayProperties) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetSize sets the Size field's value.
|
||||
func (s *BatchArrayProperties) SetSize(v int64) *BatchArrayProperties {
|
||||
s.Size = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// The custom parameters to be used when the target is an AWS Batch job.
|
||||
type BatchParameters struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchParameters) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchParameters) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *BatchParameters) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "BatchParameters"}
|
||||
if s.JobDefinition == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("JobDefinition"))
|
||||
}
|
||||
if s.JobName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("JobName"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetArrayProperties sets the ArrayProperties field's value.
|
||||
func (s *BatchParameters) SetArrayProperties(v *BatchArrayProperties) *BatchParameters {
|
||||
s.ArrayProperties = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobDefinition sets the JobDefinition field's value.
|
||||
func (s *BatchParameters) SetJobDefinition(v string) *BatchParameters {
|
||||
s.JobDefinition = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobName sets the JobName field's value.
|
||||
func (s *BatchParameters) SetJobName(v string) *BatchParameters {
|
||||
s.JobName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetryStrategy sets the RetryStrategy field's value.
|
||||
func (s *BatchParameters) SetRetryStrategy(v *BatchRetryStrategy) *BatchParameters {
|
||||
s.RetryStrategy = v
|
||||
return s
|
||||
}
|
||||
|
||||
// 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.
|
||||
type BatchRetryStrategy struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The number of times to attempt to retry, if the job fails. Valid values are
|
||||
// 1 to 10.
|
||||
Attempts *int64 `type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchRetryStrategy) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchRetryStrategy) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetAttempts sets the Attempts field's value.
|
||||
func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy {
|
||||
s.Attempts = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type DeleteRuleInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1467,7 +1607,6 @@ func (s *DeleteRuleInput) SetName(v string) *DeleteRuleInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleOutput
|
||||
type DeleteRuleOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -1482,7 +1621,6 @@ func (s DeleteRuleOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusRequest
|
||||
type DescribeEventBusInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -1497,7 +1635,6 @@ func (s DescribeEventBusInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusResponse
|
||||
type DescribeEventBusOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1540,7 +1677,6 @@ func (s *DescribeEventBusOutput) SetPolicy(v string) *DescribeEventBusOutput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleRequest
|
||||
type DescribeRuleInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1582,7 +1718,6 @@ func (s *DescribeRuleInput) SetName(v string) *DescribeRuleInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse
|
||||
type DescribeRuleOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1661,7 +1796,6 @@ func (s *DescribeRuleOutput) SetState(v string) *DescribeRuleOutput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleRequest
|
||||
type DisableRuleInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1703,7 +1837,6 @@ func (s *DisableRuleInput) SetName(v string) *DisableRuleInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleOutput
|
||||
type DisableRuleOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -1719,7 +1852,6 @@ func (s DisableRuleOutput) GoString() string {
|
||||
}
|
||||
|
||||
// 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
|
||||
type EcsParameters struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1775,7 +1907,6 @@ func (s *EcsParameters) SetTaskDefinitionArn(v string) *EcsParameters {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleRequest
|
||||
type EnableRuleInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1817,7 +1948,6 @@ func (s *EnableRuleInput) SetName(v string) *EnableRuleInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleOutput
|
||||
type EnableRuleOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -1834,7 +1964,6 @@ func (s EnableRuleOutput) GoString() string {
|
||||
|
||||
// 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
|
||||
type InputTransformer struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1892,7 +2021,6 @@ func (s *InputTransformer) SetInputTemplate(v string) *InputTransformer {
|
||||
// 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
|
||||
type KinesisParameters struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1933,7 +2061,6 @@ func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetRequest
|
||||
type ListRuleNamesByTargetInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -1999,7 +2126,6 @@ func (s *ListRuleNamesByTargetInput) SetTargetArn(v string) *ListRuleNamesByTarg
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetResponse
|
||||
type ListRuleNamesByTargetOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2033,7 +2159,6 @@ func (s *ListRuleNamesByTargetOutput) SetRuleNames(v []*string) *ListRuleNamesBy
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesRequest
|
||||
type ListRulesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2094,7 +2219,6 @@ func (s *ListRulesInput) SetNextToken(v string) *ListRulesInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesResponse
|
||||
type ListRulesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2128,7 +2252,6 @@ func (s *ListRulesOutput) SetRules(v []*Rule) *ListRulesOutput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleRequest
|
||||
type ListTargetsByRuleInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2194,7 +2317,6 @@ func (s *ListTargetsByRuleInput) SetRule(v string) *ListTargetsByRuleInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleResponse
|
||||
type ListTargetsByRuleOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2228,7 +2350,6 @@ func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutp
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequest
|
||||
type PutEventsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2272,7 +2393,6 @@ func (s *PutEventsInput) SetEntries(v []*PutEventsRequestEntry) *PutEventsInput
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResponse
|
||||
type PutEventsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2308,12 +2428,11 @@ func (s *PutEventsOutput) SetFailedEntryCount(v int64) *PutEventsOutput {
|
||||
}
|
||||
|
||||
// Represents an event to be submitted.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry
|
||||
type PutEventsRequestEntry struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// In the JSON sense, an object containing fields, which may also contain nested
|
||||
// subobjects. No constraints are imposed on its contents.
|
||||
// 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.
|
||||
@@ -2372,7 +2491,6 @@ func (s *PutEventsRequestEntry) SetTime(v time.Time) *PutEventsRequestEntry {
|
||||
}
|
||||
|
||||
// Represents an event that failed to be submitted.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResultEntry
|
||||
type PutEventsResultEntry struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2414,7 +2532,6 @@ func (s *PutEventsResultEntry) SetEventId(v string) *PutEventsResultEntry {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest
|
||||
type PutPermissionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2501,7 +2618,6 @@ func (s *PutPermissionInput) SetStatementId(v string) *PutPermissionInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionOutput
|
||||
type PutPermissionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -2516,7 +2632,6 @@ func (s PutPermissionOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest
|
||||
type PutRuleInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2607,7 +2722,6 @@ func (s *PutRuleInput) SetState(v string) *PutRuleInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleResponse
|
||||
type PutRuleOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2631,7 +2745,6 @@ func (s *PutRuleOutput) SetRuleArn(v string) *PutRuleOutput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsRequest
|
||||
type PutTargetsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2700,7 +2813,6 @@ func (s *PutTargetsInput) SetTargets(v []*Target) *PutTargetsInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResponse
|
||||
type PutTargetsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2734,7 +2846,6 @@ func (s *PutTargetsOutput) SetFailedEntryCount(v int64) *PutTargetsOutput {
|
||||
}
|
||||
|
||||
// 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
|
||||
type PutTargetsResultEntry struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2778,7 +2889,6 @@ func (s *PutTargetsResultEntry) SetTargetId(v string) *PutTargetsResultEntry {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermissionRequest
|
||||
type RemovePermissionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2821,7 +2931,6 @@ func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermissionOutput
|
||||
type RemovePermissionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -2836,7 +2945,6 @@ func (s RemovePermissionOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsRequest
|
||||
type RemoveTargetsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2895,7 +3003,6 @@ func (s *RemoveTargetsInput) SetRule(v string) *RemoveTargetsInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResponse
|
||||
type RemoveTargetsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2929,7 +3036,6 @@ func (s *RemoveTargetsOutput) SetFailedEntryCount(v int64) *RemoveTargetsOutput
|
||||
}
|
||||
|
||||
// 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
|
||||
type RemoveTargetsResultEntry struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2974,7 +3080,6 @@ func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEnt
|
||||
}
|
||||
|
||||
// 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 Rule struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -3056,7 +3161,6 @@ func (s *Rule) SetState(v string) *Rule {
|
||||
|
||||
// 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
|
||||
type RunCommandParameters struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -3112,7 +3216,6 @@ func (s *RunCommandParameters) SetRunCommandTargets(v []*RunCommandTarget) *RunC
|
||||
// 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
|
||||
type RunCommandTarget struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -3172,11 +3275,35 @@ func (s *RunCommandTarget) SetValues(v []*string) *RunCommandTarget {
|
||||
return s
|
||||
}
|
||||
|
||||
// This structure includes the custom parameter to be used when the target is
|
||||
// an SQS FIFO queue.
|
||||
type SqsParameters struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The FIFO message group ID to use as the target.
|
||||
MessageGroupId *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s SqsParameters) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s SqsParameters) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMessageGroupId sets the MessageGroupId field's value.
|
||||
func (s *SqsParameters) SetMessageGroupId(v string) *SqsParameters {
|
||||
s.MessageGroupId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// 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 Target struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -3185,6 +3312,12 @@ type Target struct {
|
||||
// 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)
|
||||
@@ -3197,9 +3330,8 @@ type Target struct {
|
||||
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. You must use JSON dot notation, not bracket
|
||||
// notation. For more information, see The JavaScript Object Notation (JSON)
|
||||
// Data Interchange Format (http://www.rfc-editor.org/rfc/rfc7159.txt).
|
||||
// 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
|
||||
@@ -3224,6 +3356,9 @@ type Target struct {
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -3254,6 +3389,11 @@ func (s *Target) Validate() error {
|
||||
if s.RoleArn != nil && len(*s.RoleArn) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
|
||||
}
|
||||
if s.BatchParameters != nil {
|
||||
if err := s.BatchParameters.Validate(); err != nil {
|
||||
invalidParams.AddNested("BatchParameters", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.EcsParameters != nil {
|
||||
if err := s.EcsParameters.Validate(); err != nil {
|
||||
invalidParams.AddNested("EcsParameters", err.(request.ErrInvalidParams))
|
||||
@@ -3287,6 +3427,12 @@ func (s *Target) SetArn(v string) *Target {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetBatchParameters sets the BatchParameters field's value.
|
||||
func (s *Target) SetBatchParameters(v *BatchParameters) *Target {
|
||||
s.BatchParameters = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetEcsParameters sets the EcsParameters field's value.
|
||||
func (s *Target) SetEcsParameters(v *EcsParameters) *Target {
|
||||
s.EcsParameters = v
|
||||
@@ -3335,7 +3481,12 @@ func (s *Target) SetRunCommandParameters(v *RunCommandParameters) *Target {
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternRequest
|
||||
// SetSqsParameters sets the SqsParameters field's value.
|
||||
func (s *Target) SetSqsParameters(v *SqsParameters) *Target {
|
||||
s.SqsParameters = v
|
||||
return s
|
||||
}
|
||||
|
||||
type TestEventPatternInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -3389,7 +3540,6 @@ func (s *TestEventPatternInput) SetEventPattern(v string) *TestEventPatternInput
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternResponse
|
||||
type TestEventPatternOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudWatch Events with the SDK use the New function to create
|
||||
// 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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user