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

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ImageBuilder::UpdateDistributionConfiguration;
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 DistributionConfigurationArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'distributionConfigurationArn', required => 1);
7 has Distributions => (is => 'ro', isa => 'ArrayRef[Paws::ImageBuilder::Distribution]', traits => ['NameInRequest'], request_name => 'distributions', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateDistributionConfiguration');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/UpdateDistributionConfiguration');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ImageBuilder::UpdateDistributionConfigurationResponse');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ImageBuilder::UpdateDistributionConfiguration - Arguments for method UpdateDistributionConfiguration on L<Paws::ImageBuilder>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method UpdateDistributionConfiguration on the
26 L<EC2 Image Builder|Paws::ImageBuilder> service. Use the attributes of this class
27 as arguments to method UpdateDistributionConfiguration.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateDistributionConfiguration.
30  
31 =head1 SYNOPSIS
32  
33 my $imagebuilder = Paws->service('ImageBuilder');
34 my $UpdateDistributionConfigurationResponse =
35 $imagebuilder->UpdateDistributionConfiguration(
36 ClientToken => 'MyClientToken',
37 DistributionConfigurationArn => 'MyDistributionConfigurationArn',
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 Description => 'MyNonEmptyString', # OPTIONAL
83 );
84  
85 # Results:
86 my $ClientToken = $UpdateDistributionConfigurationResponse->ClientToken;
87 my $DistributionConfigurationArn =
88 $UpdateDistributionConfigurationResponse->DistributionConfigurationArn;
89 my $RequestId = $UpdateDistributionConfigurationResponse->RequestId;
90  
91 # Returns a L<Paws::ImageBuilder::UpdateDistributionConfigurationResponse> object.
92  
93 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.
94 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/imagebuilder/UpdateDistributionConfiguration>
95  
96 =head1 ATTRIBUTES
97  
98  
99 =head2 B<REQUIRED> ClientToken => Str
100  
101 The idempotency token of the distribution configuration.
102  
103  
104  
105 =head2 Description => Str
106  
107 The description of the distribution configuration.
108  
109  
110  
111 =head2 B<REQUIRED> DistributionConfigurationArn => Str
112  
113 The Amazon Resource Name (ARN) of the distribution configuration that
114 you want to update.
115  
116  
117  
118 =head2 B<REQUIRED> Distributions => ArrayRef[L<Paws::ImageBuilder::Distribution>]
119  
120 The distributions of the distribution configuration.
121  
122  
123  
124  
125 =head1 SEE ALSO
126  
127 This class forms part of L<Paws>, documenting arguments for method UpdateDistributionConfiguration in L<Paws::ImageBuilder>
128  
129 =head1 BUGS and CONTRIBUTIONS
130  
131 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
132  
133 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
134  
135 =cut
136