blib/lib/Paws/ImageBuilder/CreateInfrastructureConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ImageBuilder::CreateInfrastructureConfiguration;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken', required => 1);
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
6 has InstanceProfileName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceProfileName', required => 1);
7 has InstanceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'instanceTypes');
8 has KeyPair => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'keyPair');
9 has Logging => (is => 'ro', isa => 'Paws::ImageBuilder::Logging', traits => ['NameInRequest'], request_name => 'logging');
10 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
11 has ResourceTags => (is => 'ro', isa => 'Paws::ImageBuilder::ResourceTagMap', traits => ['NameInRequest'], request_name => 'resourceTags');
12 has SecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'securityGroupIds');
13 has SnsTopicArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'snsTopicArn');
14 has SubnetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'subnetId');
15 has Tags => (is => 'ro', isa => 'Paws::ImageBuilder::TagMap', traits => ['NameInRequest'], request_name => 'tags');
16 has TerminateInstanceOnFailure => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'terminateInstanceOnFailure');
17  
18 use MooseX::ClassAttribute;
19  
20 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateInfrastructureConfiguration');
21 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/CreateInfrastructureConfiguration');
22 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
23 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ImageBuilder::CreateInfrastructureConfigurationResponse');
24 1;
25  
26 ### main pod documentation begin ###
27  
28 =head1 NAME
29  
30 Paws::ImageBuilder::CreateInfrastructureConfiguration - Arguments for method CreateInfrastructureConfiguration on L<Paws::ImageBuilder>
31  
32 =head1 DESCRIPTION
33  
34 This class represents the parameters used for calling the method CreateInfrastructureConfiguration on the
35 L<EC2 Image Builder|Paws::ImageBuilder> service. Use the attributes of this class
36 as arguments to method CreateInfrastructureConfiguration.
37  
38 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateInfrastructureConfiguration.
39  
40 =head1 SYNOPSIS
41  
42 my $imagebuilder = Paws->service('ImageBuilder');
43 my $CreateInfrastructureConfigurationResponse =
44 $imagebuilder->CreateInfrastructureConfiguration(
45 ClientToken => 'MyClientToken',
46 InstanceProfileName => 'MyInstanceProfileNameType',
47 Name => 'MyResourceName',
48 Description => 'MyNonEmptyString', # OPTIONAL
49 InstanceTypes => [ 'MyInstanceType', ... ], # OPTIONAL
50 KeyPair => 'MyNonEmptyString', # OPTIONAL
51 Logging => {
52 S3Logs => {
53 S3BucketName => 'MyNonEmptyString', # min: 1, max: 1024
54 S3KeyPrefix => 'MyNonEmptyString', # min: 1, max: 1024
55 }, # OPTIONAL
56 }, # OPTIONAL
57 ResourceTags => {
58 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
59 }, # OPTIONAL
60 SecurityGroupIds => [
61 'MyNonEmptyString', ... # min: 1, max: 1024
62 ], # OPTIONAL
63 SnsTopicArn => 'MySnsTopicArn', # OPTIONAL
64 SubnetId => 'MyNonEmptyString', # OPTIONAL
65 Tags => {
66 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
67 }, # OPTIONAL
68 TerminateInstanceOnFailure => 1, # OPTIONAL
69 );
70  
71 # Results:
72 my $ClientToken = $CreateInfrastructureConfigurationResponse->ClientToken;
73 my $InfrastructureConfigurationArn =
74 $CreateInfrastructureConfigurationResponse
75 ->InfrastructureConfigurationArn;
76 my $RequestId = $CreateInfrastructureConfigurationResponse->RequestId;
77  
78 # Returns a L<Paws::ImageBuilder::CreateInfrastructureConfigurationResponse> object.
79  
80 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.
81 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/imagebuilder/CreateInfrastructureConfiguration>
82  
83 =head1 ATTRIBUTES
84  
85  
86 =head2 B<REQUIRED> ClientToken => Str
87  
88 The idempotency token used to make this request idempotent.
89  
90  
91  
92 =head2 Description => Str
93  
94 The description of the infrastructure configuration.
95  
96  
97  
98 =head2 B<REQUIRED> InstanceProfileName => Str
99  
100 The instance profile to associate with the instance used to customize
101 your Amazon EC2 AMI.
102  
103  
104  
105 =head2 InstanceTypes => ArrayRef[Str|Undef]
106  
107 The instance types of the infrastructure configuration. You can specify
108 one or more instance types to use for this build. The service will pick
109 one of these instance types based on availability.
110  
111  
112  
113 =head2 KeyPair => Str
114  
115 The key pair of the infrastructure configuration. This can be used to
116 log on to and debug the instance used to create your image.
117  
118  
119  
120 =head2 Logging => L<Paws::ImageBuilder::Logging>
121  
122 The logging configuration of the infrastructure configuration.
123  
124  
125  
126 =head2 B<REQUIRED> Name => Str
127  
128 The name of the infrastructure configuration.
129  
130  
131  
132 =head2 ResourceTags => L<Paws::ImageBuilder::ResourceTagMap>
133  
134 The tags attached to the resource created by Image Builder.
135  
136  
137  
138 =head2 SecurityGroupIds => ArrayRef[Str|Undef]
139  
140 The security group IDs to associate with the instance used to customize
141 your Amazon EC2 AMI.
142  
143  
144  
145 =head2 SnsTopicArn => Str
146  
147 The SNS topic on which to send image build events.
148  
149  
150  
151 =head2 SubnetId => Str
152  
153 The subnet ID in which to place the instance used to customize your
154 Amazon EC2 AMI.
155  
156  
157  
158 =head2 Tags => L<Paws::ImageBuilder::TagMap>
159  
160 The tags of the infrastructure configuration.
161  
162  
163  
164 =head2 TerminateInstanceOnFailure => Bool
165  
166 The terminate instance on failure setting of the infrastructure
167 configuration. Set to false if you want Image Builder to retain the
168 instance used to configure your AMI if the build or test phase of your
169 workflow fails.
170  
171  
172  
173  
174 =head1 SEE ALSO
175  
176 This class forms part of L<Paws>, documenting arguments for method CreateInfrastructureConfiguration in L<Paws::ImageBuilder>
177  
178 =head1 BUGS and CONTRIBUTIONS
179  
180 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
181  
182 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
183  
184 =cut
185