blib/lib/Paws/Amplify/CreateDomainAssociation.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Amplify::CreateDomainAssociation;
3 use Moose;
4 has AppId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'appId', required => 1);
5 has AutoSubDomainCreationPatterns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'autoSubDomainCreationPatterns');
6 has AutoSubDomainIAMRole => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'autoSubDomainIAMRole');
7 has DomainName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'domainName', required => 1);
8 has EnableAutoSubDomain => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enableAutoSubDomain');
9 has SubDomainSettings => (is => 'ro', isa => 'ArrayRef[Paws::Amplify::SubDomainSetting]', traits => ['NameInRequest'], request_name => 'subDomainSettings', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDomainAssociation');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/apps/{appId}/domains');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Amplify::CreateDomainAssociationResult');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Amplify::CreateDomainAssociation - Arguments for method CreateDomainAssociation on L<Paws::Amplify>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateDomainAssociation on the
28 L<AWS Amplify|Paws::Amplify> service. Use the attributes of this class
29 as arguments to method CreateDomainAssociation.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDomainAssociation.
32  
33 =head1 SYNOPSIS
34  
35 my $amplify = Paws->service('Amplify');
36 my $CreateDomainAssociationResult = $amplify->CreateDomainAssociation(
37 AppId => 'MyAppId',
38 DomainName => 'MyDomainName',
39 SubDomainSettings => [
40 {
41 BranchName => 'MyBranchName', # min: 1, max: 255
42 Prefix => 'MyDomainPrefix', # max: 255
43  
44 },
45 ...
46 ],
47 AutoSubDomainCreationPatterns => [
48 'MyAutoSubDomainCreationPattern',
49 ... # min: 1, max: 2048
50 ], # OPTIONAL
51 AutoSubDomainIAMRole => 'MyAutoSubDomainIAMRole', # OPTIONAL
52 EnableAutoSubDomain => 1, # OPTIONAL
53 );
54  
55 # Results:
56 my $DomainAssociation = $CreateDomainAssociationResult->DomainAssociation;
57  
58 # Returns a L<Paws::Amplify::CreateDomainAssociationResult> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/amplify/CreateDomainAssociation>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 B<REQUIRED> AppId => Str
67  
68 The unique ID for an Amplify app.
69  
70  
71  
72 =head2 AutoSubDomainCreationPatterns => ArrayRef[Str|Undef]
73  
74 Sets the branch patterns for automatic subdomain creation.
75  
76  
77  
78 =head2 AutoSubDomainIAMRole => Str
79  
80 The required AWS Identity and Access Management (IAM) service role for
81 the Amazon Resource Name (ARN) for automatically creating subdomains.
82  
83  
84  
85 =head2 B<REQUIRED> DomainName => Str
86  
87 The domain name for the domain association.
88  
89  
90  
91 =head2 EnableAutoSubDomain => Bool
92  
93 Enables the automated creation of subdomains for branches.
94  
95  
96  
97 =head2 B<REQUIRED> SubDomainSettings => ArrayRef[L<Paws::Amplify::SubDomainSetting>]
98  
99 The setting for the subdomain.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method CreateDomainAssociation in L<Paws::Amplify>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115