« blib/lib/Paws/FIS/ActionTargetMap.pm
↑ Summary
blib/lib/Paws/FIS/CreateExperimentTemplateActionInput.pm »
| 1 | |||
| 2 | package Paws::FIS::CreateExperimentTemplate; | ||
| 3 | use Moose; | ||
| 4 | has Actions => (is => 'ro', isa => 'Paws::FIS::CreateExperimentTemplateActionInputMap', traits => ['NameInRequest'], request_name => 'actions', required => 1); | ||
| 5 | has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken', required => 1); | ||
| 6 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description', required => 1); | ||
| 7 | has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn', required => 1); | ||
| 8 | has StopConditions => (is => 'ro', isa => 'ArrayRef[Paws::FIS::CreateExperimentTemplateStopConditionInput]', traits => ['NameInRequest'], request_name => 'stopConditions', required => 1); | ||
| 9 | has Tags => (is => 'ro', isa => 'Paws::FIS::TagMap', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 10 | has Targets => (is => 'ro', isa => 'Paws::FIS::CreateExperimentTemplateTargetInputMap', traits => ['NameInRequest'], request_name => 'targets'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateExperimentTemplate'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/experimentTemplates'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::FIS::CreateExperimentTemplateResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::FIS::CreateExperimentTemplate - Arguments for method CreateExperimentTemplate on L<Paws::FIS> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method CreateExperimentTemplate on the | ||
| 29 | L<AWS Fault Injection Simulator|Paws::FIS> service. Use the attributes of this class | ||
| 30 | as arguments to method CreateExperimentTemplate. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateExperimentTemplate. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $fis = Paws->service('FIS'); | ||
| 37 | my $CreateExperimentTemplateResponse = $fis->CreateExperimentTemplate( | ||
| 38 | Actions => { | ||
| 39 | 'MyExperimentTemplateActionName' => { | ||
| 40 | ActionId => 'MyActionId', # max: 128 | ||
| 41 | Description => | ||
| 42 | 'MyExperimentTemplateActionDescription', # max: 512; OPTIONAL | ||
| 43 | Parameters => { | ||
| 44 | 'MyExperimentTemplateActionParameterName' => | ||
| 45 | 'MyExperimentTemplateActionParameter' | ||
| 46 | , # key: max: 64, value: max: 1024 | ||
| 47 | }, # OPTIONAL | ||
| 48 | StartAfter => [ | ||
| 49 | 'MyExperimentTemplateActionStartAfter', ... # max: 64 | ||
| 50 | ], # OPTIONAL | ||
| 51 | Targets => { | ||
| 52 | 'MyExperimentTemplateActionTargetName' => | ||
| 53 | 'MyExperimentTemplateTargetName', # key: max: 64, value: max: 64 | ||
| 54 | }, # OPTIONAL | ||
| 55 | }, # key: max: 64 | ||
| 56 | }, | ||
| 57 | ClientToken => 'MyClientToken', | ||
| 58 | Description => 'MyExperimentTemplateDescription', | ||
| 59 | RoleArn => 'MyRoleArn', | ||
| 60 | StopConditions => [ | ||
| 61 | { | ||
| 62 | Source => 'MyStopConditionSource', # max: 64 | ||
| 63 | Value => 'MyStopConditionValue', # min: 20, max: 2048; OPTIONAL | ||
| 64 | }, | ||
| 65 | ... | ||
| 66 | ], | ||
| 67 | Tags => { | ||
| 68 | 'MyTagKey' => 'MyTagValue', # key: max: 128, value: max: 256 | ||
| 69 | }, # OPTIONAL | ||
| 70 | Targets => { | ||
| 71 | 'MyExperimentTemplateTargetName' => { | ||
| 72 | ResourceType => 'MyResourceType', # max: 64 | ||
| 73 | SelectionMode => 'MyExperimentTemplateTargetSelectionMode', # max: 64 | ||
| 74 | Filters => [ | ||
| 75 | { | ||
| 76 | Path => 'MyExperimentTemplateTargetFilterPath', # max: 256 | ||
| 77 | Values => [ | ||
| 78 | 'MyExperimentTemplateTargetFilterValue', ... # max: 128 | ||
| 79 | ], | ||
| 80 | |||
| 81 | }, | ||
| 82 | ... | ||
| 83 | ], # OPTIONAL | ||
| 84 | ResourceArns => [ | ||
| 85 | 'MyResourceArn', ... # min: 20, max: 2048 | ||
| 86 | ], # max: 5; OPTIONAL | ||
| 87 | ResourceTags => { | ||
| 88 | 'MyTagKey' => 'MyTagValue', # key: max: 128, value: max: 256 | ||
| 89 | }, # max: 50 | ||
| 90 | }, # key: max: 64 | ||
| 91 | }, # OPTIONAL | ||
| 92 | ); | ||
| 93 | |||
| 94 | # Results: | ||
| 95 | my $ExperimentTemplate = | ||
| 96 | $CreateExperimentTemplateResponse->ExperimentTemplate; | ||
| 97 | |||
| 98 | # Returns a L<Paws::FIS::CreateExperimentTemplateResponse> object. | ||
| 99 | |||
| 100 | 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. | ||
| 101 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/fis/CreateExperimentTemplate> | ||
| 102 | |||
| 103 | =head1 ATTRIBUTES | ||
| 104 | |||
| 105 | |||
| 106 | =head2 B<REQUIRED> Actions => L<Paws::FIS::CreateExperimentTemplateActionInputMap> | ||
| 107 | |||
| 108 | The actions for the experiment. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head2 B<REQUIRED> ClientToken => Str | ||
| 113 | |||
| 114 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 115 | idempotency of the request. | ||
| 116 | |||
| 117 | |||
| 118 | |||
| 119 | =head2 B<REQUIRED> Description => Str | ||
| 120 | |||
| 121 | A description for the experiment template. Can contain up to 64 letters | ||
| 122 | (A-Z and a-z). | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | =head2 B<REQUIRED> RoleArn => Str | ||
| 127 | |||
| 128 | The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS | ||
| 129 | service permission to perform service actions on your behalf. | ||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | =head2 B<REQUIRED> StopConditions => ArrayRef[L<Paws::FIS::CreateExperimentTemplateStopConditionInput>] | ||
| 134 | |||
| 135 | The stop conditions. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | =head2 Tags => L<Paws::FIS::TagMap> | ||
| 140 | |||
| 141 | The tags to apply to the experiment template. | ||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | =head2 Targets => L<Paws::FIS::CreateExperimentTemplateTargetInputMap> | ||
| 146 | |||
| 147 | The targets for the experiment. | ||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | =head1 SEE ALSO | ||
| 153 | |||
| 154 | This class forms part of L<Paws>, documenting arguments for method CreateExperimentTemplate in L<Paws::FIS> | ||
| 155 | |||
| 156 | =head1 BUGS and CONTRIBUTIONS | ||
| 157 | |||
| 158 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 159 | |||
| 160 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 161 | |||
| 162 | =cut | ||
| 163 |