« blib/lib/Paws/CloudWatchEvents/PutRuleResponse.pm
↑ Summary
blib/lib/Paws/CloudWatchEvents/PutTargetsResponse.pm »
| 1 | |||
| 2 | package Paws::CloudWatchEvents::PutTargets; | ||
| 3 | use Moose; | ||
| 4 | has EventBusName => (is => 'ro', isa => 'Str'); | ||
| 5 | has Rule => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Targets => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatchEvents::Target]', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutTargets'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchEvents::PutTargetsResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::CloudWatchEvents::PutTargets - Arguments for method PutTargets on L<Paws::CloudWatchEvents> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method PutTargets on the | ||
| 24 | L<Amazon EventBridge|Paws::CloudWatchEvents> service. Use the attributes of this class | ||
| 25 | as arguments to method PutTargets. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutTargets. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $events = Paws->service('CloudWatchEvents'); | ||
| 32 | my $PutTargetsResponse = $events->PutTargets( | ||
| 33 | Rule => 'MyRuleName', | ||
| 34 | Targets => [ | ||
| 35 | { | ||
| 36 | Arn => 'MyTargetArn', # min: 1, max: 1600 | ||
| 37 | Id => 'MyTargetId', # min: 1, max: 64 | ||
| 38 | BatchParameters => { | ||
| 39 | JobDefinition => 'MyString', | ||
| 40 | JobName => 'MyString', | ||
| 41 | ArrayProperties => { | ||
| 42 | Size => 1, # OPTIONAL | ||
| 43 | }, # OPTIONAL | ||
| 44 | RetryStrategy => { | ||
| 45 | Attempts => 1, # OPTIONAL | ||
| 46 | }, # OPTIONAL | ||
| 47 | }, # OPTIONAL | ||
| 48 | DeadLetterConfig => { | ||
| 49 | Arn => 'MyResourceArn', # min: 1, max: 1600; OPTIONAL | ||
| 50 | }, # OPTIONAL | ||
| 51 | EcsParameters => { | ||
| 52 | TaskDefinitionArn => 'MyArn', # min: 1, max: 1600 | ||
| 53 | CapacityProviderStrategy => [ | ||
| 54 | { | ||
| 55 | CapacityProvider => 'MyCapacityProvider', # min: 1, max: 255 | ||
| 56 | Base => 1, # max: 100000; OPTIONAL | ||
| 57 | Weight => 1, # max: 1000; OPTIONAL | ||
| 58 | }, | ||
| 59 | ... | ||
| 60 | ], # max: 6; OPTIONAL | ||
| 61 | EnableECSManagedTags => 1, # OPTIONAL | ||
| 62 | EnableExecuteCommand => 1, # OPTIONAL | ||
| 63 | Group => 'MyString', | ||
| 64 | LaunchType => 'EC2', # values: EC2, FARGATE; OPTIONAL | ||
| 65 | NetworkConfiguration => { | ||
| 66 | AwsvpcConfiguration => { | ||
| 67 | Subnets => [ 'MyString', ... ], | ||
| 68 | AssignPublicIp => | ||
| 69 | 'ENABLED', # values: ENABLED, DISABLED; OPTIONAL | ||
| 70 | SecurityGroups => [ 'MyString', ... ], | ||
| 71 | }, # OPTIONAL | ||
| 72 | }, # OPTIONAL | ||
| 73 | PlacementConstraints => [ | ||
| 74 | { | ||
| 75 | Expression => | ||
| 76 | 'MyPlacementConstraintExpression', # max: 2000; OPTIONAL | ||
| 77 | Type => 'distinctInstance' | ||
| 78 | , # values: distinctInstance, memberOf; OPTIONAL | ||
| 79 | }, | ||
| 80 | ... | ||
| 81 | ], # max: 10; OPTIONAL | ||
| 82 | PlacementStrategy => [ | ||
| 83 | { | ||
| 84 | Field => 'MyPlacementStrategyField', # max: 255; OPTIONAL | ||
| 85 | Type => 'random', # values: random, spread, binpack; OPTIONAL | ||
| 86 | }, | ||
| 87 | ... | ||
| 88 | ], # max: 5; OPTIONAL | ||
| 89 | PlatformVersion => 'MyString', | ||
| 90 | PropagateTags => | ||
| 91 | 'TASK_DEFINITION', # values: TASK_DEFINITION; OPTIONAL | ||
| 92 | ReferenceId => 'MyReferenceId', # max: 1024; OPTIONAL | ||
| 93 | Tags => [ | ||
| 94 | { | ||
| 95 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 96 | Value => 'MyTagValue', # max: 256 | ||
| 97 | |||
| 98 | }, | ||
| 99 | ... | ||
| 100 | ], # OPTIONAL | ||
| 101 | TaskCount => 1, # min: 1; OPTIONAL | ||
| 102 | }, # OPTIONAL | ||
| 103 | HttpParameters => { | ||
| 104 | HeaderParameters => { | ||
| 105 | 'MyHeaderKey' => 'MyHeaderValue', # key: max: 512, value: max: 512 | ||
| 106 | }, # OPTIONAL | ||
| 107 | PathParameterValues => [ 'MyPathParameter', ... ], # OPTIONAL | ||
| 108 | QueryStringParameters => { | ||
| 109 | 'MyQueryStringKey' => | ||
| 110 | 'MyQueryStringValue', # key: max: 512, value: max: 512 | ||
| 111 | }, # OPTIONAL | ||
| 112 | }, # OPTIONAL | ||
| 113 | Input => 'MyTargetInput', # max: 8192; OPTIONAL | ||
| 114 | InputPath => 'MyTargetInputPath', # max: 256; OPTIONAL | ||
| 115 | InputTransformer => { | ||
| 116 | InputTemplate => 'MyTransformerInput', # min: 1, max: 8192 | ||
| 117 | InputPathsMap => { | ||
| 118 | 'MyInputTransformerPathKey' => 'MyTargetInputPath' | ||
| 119 | , # key: min: 1, max: 256, value: max: 256; OPTIONAL | ||
| 120 | }, # max: 100; OPTIONAL | ||
| 121 | }, # OPTIONAL | ||
| 122 | KinesisParameters => { | ||
| 123 | PartitionKeyPath => 'MyTargetPartitionKeyPath', # max: 256 | ||
| 124 | |||
| 125 | }, # OPTIONAL | ||
| 126 | RedshiftDataParameters => { | ||
| 127 | Database => 'MyDatabase', # min: 1, max: 64 | ||
| 128 | Sql => 'MySql', # min: 1, max: 100000 | ||
| 129 | DbUser => 'MyDbUser', # min: 1, max: 128; OPTIONAL | ||
| 130 | SecretManagerArn => | ||
| 131 | 'MyRedshiftSecretManagerArn', # min: 1, max: 1600; OPTIONAL | ||
| 132 | StatementName => 'MyStatementName', # min: 1, max: 500; OPTIONAL | ||
| 133 | WithEvent => 1, # OPTIONAL | ||
| 134 | }, # OPTIONAL | ||
| 135 | RetryPolicy => { | ||
| 136 | MaximumEventAgeInSeconds => 1, # min: 60, max: 86400; OPTIONAL | ||
| 137 | MaximumRetryAttempts => 1, # max: 185; OPTIONAL | ||
| 138 | }, # OPTIONAL | ||
| 139 | RoleArn => 'MyRoleArn', # min: 1, max: 1600; OPTIONAL | ||
| 140 | RunCommandParameters => { | ||
| 141 | RunCommandTargets => [ | ||
| 142 | { | ||
| 143 | Key => 'MyRunCommandTargetKey', # min: 1, max: 128 | ||
| 144 | Values => [ | ||
| 145 | 'MyRunCommandTargetValue', ... # min: 1, max: 256 | ||
| 146 | ], # min: 1, max: 50 | ||
| 147 | |||
| 148 | }, | ||
| 149 | ... | ||
| 150 | ], # min: 1, max: 5 | ||
| 151 | |||
| 152 | }, # OPTIONAL | ||
| 153 | SageMakerPipelineParameters => { | ||
| 154 | PipelineParameterList => [ | ||
| 155 | { | ||
| 156 | Name => 'MySageMakerPipelineParameterName', # min: 1, max: 256 | ||
| 157 | Value => 'MySageMakerPipelineParameterValue', # max: 1024 | ||
| 158 | |||
| 159 | }, | ||
| 160 | ... | ||
| 161 | ], # max: 200; OPTIONAL | ||
| 162 | }, # OPTIONAL | ||
| 163 | SqsParameters => { | ||
| 164 | MessageGroupId => 'MyMessageGroupId', # OPTIONAL | ||
| 165 | }, # OPTIONAL | ||
| 166 | }, | ||
| 167 | ... | ||
| 168 | ], | ||
| 169 | EventBusName => 'MyEventBusNameOrArn', # OPTIONAL | ||
| 170 | ); | ||
| 171 | |||
| 172 | # Results: | ||
| 173 | my $FailedEntries = $PutTargetsResponse->FailedEntries; | ||
| 174 | my $FailedEntryCount = $PutTargetsResponse->FailedEntryCount; | ||
| 175 | |||
| 176 | # Returns a L<Paws::CloudWatchEvents::PutTargetsResponse> object. | ||
| 177 | |||
| 178 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 179 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/events/PutTargets> | ||
| 180 | |||
| 181 | =head1 ATTRIBUTES | ||
| 182 | |||
| 183 | |||
| 184 | =head2 EventBusName => Str | ||
| 185 | |||
| 186 | The name or ARN of the event bus associated with the rule. If you omit | ||
| 187 | this, the default event bus is used. | ||
| 188 | |||
| 189 | |||
| 190 | |||
| 191 | =head2 B<REQUIRED> Rule => Str | ||
| 192 | |||
| 193 | The name of the rule. | ||
| 194 | |||
| 195 | |||
| 196 | |||
| 197 | =head2 B<REQUIRED> Targets => ArrayRef[L<Paws::CloudWatchEvents::Target>] | ||
| 198 | |||
| 199 | The targets to update or add to the rule. | ||
| 200 | |||
| 201 | |||
| 202 | |||
| 203 | |||
| 204 | =head1 SEE ALSO | ||
| 205 | |||
| 206 | This class forms part of L<Paws>, documenting arguments for method PutTargets in L<Paws::CloudWatchEvents> | ||
| 207 | |||
| 208 | =head1 BUGS and CONTRIBUTIONS | ||
| 209 | |||
| 210 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 211 | |||
| 212 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 213 | |||
| 214 | =cut | ||
| 215 |