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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ImageBuilder::CreateDistributionConfiguration;
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 Distributions => (is => 'ro', isa => 'ArrayRef[Paws::ImageBuilder::Distribution]', traits => ['NameInRequest'], request_name => 'distributions', required => 1);
7 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::ImageBuilder::TagMap', traits => ['NameInRequest'], request_name => 'tags');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDistributionConfiguration');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/CreateDistributionConfiguration');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ImageBuilder::CreateDistributionConfigurationResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::ImageBuilder::CreateDistributionConfiguration - Arguments for method CreateDistributionConfiguration on L<Paws::ImageBuilder>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateDistributionConfiguration on the
27 L<EC2 Image Builder|Paws::ImageBuilder> service. Use the attributes of this class
28 as arguments to method CreateDistributionConfiguration.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDistributionConfiguration.
31  
32 =head1 SYNOPSIS
33  
34 my $imagebuilder = Paws->service('ImageBuilder');
35 my $CreateDistributionConfigurationResponse =
36 $imagebuilder->CreateDistributionConfiguration(
37 ClientToken => 'MyClientToken',
38 Distributions => [
39 {
40 Region => 'MyNonEmptyString', # min: 1, max: 1024
41 AmiDistributionConfiguration => {
42 AmiTags => {
43 'MyTagKey' =>
44 'MyTagValue', # key: min: 1, max: 128, value: max: 256
45 }, # min: 1, max: 50; OPTIONAL
46 Description => 'MyNonEmptyString', # min: 1, max: 1024
47 KmsKeyId => 'MyNonEmptyString', # min: 1, max: 1024
48 LaunchPermission => {
49 UserGroups => [
50 'MyNonEmptyString', ... # min: 1, max: 1024
51 ], # OPTIONAL
52 UserIds => [ 'MyAccountId', ... ], # min: 1, max: 1536; OPTIONAL
53 }, # OPTIONAL
54 Name => 'MyAmiNameString', # min: 1, max: 127; OPTIONAL
55 TargetAccountIds => [ 'MyAccountId', ... ]
56 , # min: 1, max: 1536; OPTIONAL
57 }, # OPTIONAL
58 ContainerDistributionConfiguration => {
59 TargetRepository => {
60 RepositoryName => 'MyNonEmptyString', # min: 1, max: 1024
61 Service => 'ECR', # values: ECR
62  
63 },
64 ContainerTags => [
65 'MyNonEmptyString', ... # min: 1, max: 1024
66 ], # OPTIONAL
67 Description => 'MyNonEmptyString', # min: 1, max: 1024
68 }, # OPTIONAL
69 LaunchTemplateConfigurations => [
70 {
71 LaunchTemplateId => 'MyLaunchTemplateId',
72 AccountId => 'MyAccountId',
73 SetDefaultVersion => 1, # OPTIONAL
74 },
75 ...
76 ], # min: 1, max: 100; OPTIONAL
77 LicenseConfigurationArns => [ 'MyLicenseConfigurationArn', ... ]
78 , # min: 1, max: 50; OPTIONAL
79 },
80 ...
81 ],
82 Name => 'MyResourceName',
83 Description => 'MyNonEmptyString', # OPTIONAL
84 Tags => {
85 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
86 }, # OPTIONAL
87 );
88  
89 # Results:
90 my $ClientToken = $CreateDistributionConfigurationResponse->ClientToken;
91 my $DistributionConfigurationArn =
92 $CreateDistributionConfigurationResponse->DistributionConfigurationArn;
93 my $RequestId = $CreateDistributionConfigurationResponse->RequestId;
94  
95 # Returns a L<Paws::ImageBuilder::CreateDistributionConfigurationResponse> object.
96  
97 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.
98 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/imagebuilder/CreateDistributionConfiguration>
99  
100 =head1 ATTRIBUTES
101  
102  
103 =head2 B<REQUIRED> ClientToken => Str
104  
105 The idempotency token of the distribution configuration.
106  
107  
108  
109 =head2 Description => Str
110  
111 The description of the distribution configuration.
112  
113  
114  
115 =head2 B<REQUIRED> Distributions => ArrayRef[L<Paws::ImageBuilder::Distribution>]
116  
117 The distributions of the distribution configuration.
118  
119  
120  
121 =head2 B<REQUIRED> Name => Str
122  
123 The name of the distribution configuration.
124  
125  
126  
127 =head2 Tags => L<Paws::ImageBuilder::TagMap>
128  
129 The tags of the distribution configuration.
130  
131  
132  
133  
134 =head1 SEE ALSO
135  
136 This class forms part of L<Paws>, documenting arguments for method CreateDistributionConfiguration in L<Paws::ImageBuilder>
137  
138 =head1 BUGS and CONTRIBUTIONS
139  
140 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
141  
142 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
143  
144 =cut
145