blib/lib/Paws/AppConfig/CreateConfigurationProfile.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::AppConfig::CreateConfigurationProfile;
3 use Moose;
4 has ApplicationId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'ApplicationId', required => 1);
5 has Description => (is => 'ro', isa => 'Str');
6 has LocationUri => (is => 'ro', isa => 'Str', required => 1);
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has RetrievalRoleArn => (is => 'ro', isa => 'Str');
9 has Tags => (is => 'ro', isa => 'Paws::AppConfig::TagMap');
10 has Validators => (is => 'ro', isa => 'ArrayRef[Paws::AppConfig::Validator]');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateConfigurationProfile');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/applications/{ApplicationId}/configurationprofiles');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppConfig::ConfigurationProfile');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::AppConfig::CreateConfigurationProfile - Arguments for method CreateConfigurationProfile on L<Paws::AppConfig>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateConfigurationProfile on the
29 L<Amazon AppConfig|Paws::AppConfig> service. Use the attributes of this class
30 as arguments to method CreateConfigurationProfile.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateConfigurationProfile.
33  
34 =head1 SYNOPSIS
35  
36 my $appconfig = Paws->service('AppConfig');
37 my $ConfigurationProfile = $appconfig->CreateConfigurationProfile(
38 ApplicationId => 'MyId',
39 LocationUri => 'MyUri',
40 Name => 'MyName',
41 Description => 'MyDescription', # OPTIONAL
42 RetrievalRoleArn => 'MyRoleArn', # OPTIONAL
43 Tags => {
44 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
45 }, # OPTIONAL
46 Validators => [
47 {
48 Content => 'MyStringWithLengthBetween0And32768', # max: 32768
49 Type => 'JSON_SCHEMA', # values: JSON_SCHEMA, LAMBDA
50  
51 },
52 ...
53 ], # OPTIONAL
54 );
55  
56 # Results:
57 my $ApplicationId = $ConfigurationProfile->ApplicationId;
58 my $Description = $ConfigurationProfile->Description;
59 my $Id = $ConfigurationProfile->Id;
60 my $LocationUri = $ConfigurationProfile->LocationUri;
61 my $Name = $ConfigurationProfile->Name;
62 my $RetrievalRoleArn = $ConfigurationProfile->RetrievalRoleArn;
63 my $Validators = $ConfigurationProfile->Validators;
64  
65 # Returns a L<Paws::AppConfig::ConfigurationProfile> object.
66  
67 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.
68 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appconfig/CreateConfigurationProfile>
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 B<REQUIRED> ApplicationId => Str
74  
75 The application ID.
76  
77  
78  
79 =head2 Description => Str
80  
81 A description of the configuration profile.
82  
83  
84  
85 =head2 B<REQUIRED> LocationUri => Str
86  
87 A URI to locate the configuration. You can specify a Systems Manager
88 (SSM) document, an SSM Parameter Store parameter, or an Amazon S3
89 object. For an SSM document, specify either the document name in the
90 format C<ssm-document://E<lt>Document_nameE<gt>> or the Amazon Resource
91 Name (ARN). For a parameter, specify either the parameter name in the
92 format C<ssm-parameter://E<lt>Parameter_nameE<gt>> or the ARN. For an
93 Amazon S3 object, specify the URI in the following format:
94 C<s3://E<lt>bucketE<gt>/E<lt>objectKeyE<gt> >. Here is an example:
95 s3://my-bucket/my-app/us-east-1/my-config.json
96  
97  
98  
99 =head2 B<REQUIRED> Name => Str
100  
101 A name for the configuration profile.
102  
103  
104  
105 =head2 RetrievalRoleArn => Str
106  
107 The ARN of an IAM role with permission to access the configuration at
108 the specified LocationUri.
109  
110  
111  
112 =head2 Tags => L<Paws::AppConfig::TagMap>
113  
114 Metadata to assign to the configuration profile. Tags help organize and
115 categorize your AppConfig resources. Each tag consists of a key and an
116 optional value, both of which you define.
117  
118  
119  
120 =head2 Validators => ArrayRef[L<Paws::AppConfig::Validator>]
121  
122 A list of methods for validating the configuration.
123  
124  
125  
126  
127 =head1 SEE ALSO
128  
129 This class forms part of L<Paws>, documenting arguments for method CreateConfigurationProfile in L<Paws::AppConfig>
130  
131 =head1 BUGS and CONTRIBUTIONS
132  
133 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
134  
135 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
136  
137 =cut
138