blib/lib/Paws/Route53Domains/RegisterDomain.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Route53Domains::RegisterDomain;
3 use Moose;
4 has AdminContact => (is => 'ro', isa => 'Paws::Route53Domains::ContactDetail', required => 1);
5 has AutoRenew => (is => 'ro', isa => 'Bool');
6 has DomainName => (is => 'ro', isa => 'Str', required => 1);
7 has DurationInYears => (is => 'ro', isa => 'Int', required => 1);
8 has IdnLangCode => (is => 'ro', isa => 'Str');
9 has PrivacyProtectAdminContact => (is => 'ro', isa => 'Bool');
10 has PrivacyProtectRegistrantContact => (is => 'ro', isa => 'Bool');
11 has PrivacyProtectTechContact => (is => 'ro', isa => 'Bool');
12 has RegistrantContact => (is => 'ro', isa => 'Paws::Route53Domains::ContactDetail', required => 1);
13 has TechContact => (is => 'ro', isa => 'Paws::Route53Domains::ContactDetail', required => 1);
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'RegisterDomain');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53Domains::RegisterDomainResponse');
19 class_has _result_key => (isa => 'Str', is => 'ro');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::Route53Domains::RegisterDomain - Arguments for method RegisterDomain on L<Paws::Route53Domains>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method RegisterDomain on the
31 L<Amazon Route 53 Domains|Paws::Route53Domains> service. Use the attributes of this class
32 as arguments to method RegisterDomain.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RegisterDomain.
35  
36 =head1 SYNOPSIS
37  
38 my $route53domains = Paws->service('Route53Domains');
39 my $RegisterDomainResponse = $route53domains->RegisterDomain(
40 AdminContact => {
41 AddressLine1 => 'MyAddressLine', # max: 255; OPTIONAL
42 AddressLine2 => 'MyAddressLine', # max: 255; OPTIONAL
43 City => 'MyCity', # max: 255; OPTIONAL
44 ContactType => 'PERSON'
45 , # values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER; OPTIONAL
46 CountryCode => 'AD'
47 , # values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW; OPTIONAL
48 Email => 'MyEmail', # max: 254; OPTIONAL
49 ExtraParams => [
50 {
51 Name => 'DUNS_NUMBER'
52 , # values: DUNS_NUMBER, BRAND_NUMBER, BIRTH_DEPARTMENT, BIRTH_DATE_IN_YYYY_MM_DD, BIRTH_COUNTRY, BIRTH_CITY, DOCUMENT_NUMBER, AU_ID_NUMBER, AU_ID_TYPE, CA_LEGAL_TYPE, CA_BUSINESS_ENTITY_TYPE, CA_LEGAL_REPRESENTATIVE, CA_LEGAL_REPRESENTATIVE_CAPACITY, ES_IDENTIFICATION, ES_IDENTIFICATION_TYPE, ES_LEGAL_FORM, FI_BUSINESS_NUMBER, FI_ID_NUMBER, FI_NATIONALITY, FI_ORGANIZATION_TYPE, IT_NATIONALITY, IT_PIN, IT_REGISTRANT_ENTITY_TYPE, RU_PASSPORT_DATA, SE_ID_NUMBER, SG_ID_NUMBER, VAT_NUMBER, UK_CONTACT_TYPE, UK_COMPANY_NUMBER
53 Value => 'MyExtraParamValue', # max: 2048
54  
55 },
56 ...
57 ], # OPTIONAL
58 Fax => 'MyContactNumber', # max: 30; OPTIONAL
59 FirstName => 'MyContactName', # max: 255; OPTIONAL
60 LastName => 'MyContactName', # max: 255; OPTIONAL
61 OrganizationName => 'MyContactName', # max: 255; OPTIONAL
62 PhoneNumber => 'MyContactNumber', # max: 30; OPTIONAL
63 State => 'MyState', # max: 255; OPTIONAL
64 ZipCode => 'MyZipCode', # max: 255; OPTIONAL
65 },
66 DomainName => 'MyDomainName',
67 DurationInYears => 1,
68 RegistrantContact => {
69 AddressLine1 => 'MyAddressLine', # max: 255; OPTIONAL
70 AddressLine2 => 'MyAddressLine', # max: 255; OPTIONAL
71 City => 'MyCity', # max: 255; OPTIONAL
72 ContactType => 'PERSON'
73 , # values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER; OPTIONAL
74 CountryCode => 'AD'
75 , # values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW; OPTIONAL
76 Email => 'MyEmail', # max: 254; OPTIONAL
77 ExtraParams => [
78 {
79 Name => 'DUNS_NUMBER'
80 , # values: DUNS_NUMBER, BRAND_NUMBER, BIRTH_DEPARTMENT, BIRTH_DATE_IN_YYYY_MM_DD, BIRTH_COUNTRY, BIRTH_CITY, DOCUMENT_NUMBER, AU_ID_NUMBER, AU_ID_TYPE, CA_LEGAL_TYPE, CA_BUSINESS_ENTITY_TYPE, CA_LEGAL_REPRESENTATIVE, CA_LEGAL_REPRESENTATIVE_CAPACITY, ES_IDENTIFICATION, ES_IDENTIFICATION_TYPE, ES_LEGAL_FORM, FI_BUSINESS_NUMBER, FI_ID_NUMBER, FI_NATIONALITY, FI_ORGANIZATION_TYPE, IT_NATIONALITY, IT_PIN, IT_REGISTRANT_ENTITY_TYPE, RU_PASSPORT_DATA, SE_ID_NUMBER, SG_ID_NUMBER, VAT_NUMBER, UK_CONTACT_TYPE, UK_COMPANY_NUMBER
81 Value => 'MyExtraParamValue', # max: 2048
82  
83 },
84 ...
85 ], # OPTIONAL
86 Fax => 'MyContactNumber', # max: 30; OPTIONAL
87 FirstName => 'MyContactName', # max: 255; OPTIONAL
88 LastName => 'MyContactName', # max: 255; OPTIONAL
89 OrganizationName => 'MyContactName', # max: 255; OPTIONAL
90 PhoneNumber => 'MyContactNumber', # max: 30; OPTIONAL
91 State => 'MyState', # max: 255; OPTIONAL
92 ZipCode => 'MyZipCode', # max: 255; OPTIONAL
93 },
94 TechContact => {
95 AddressLine1 => 'MyAddressLine', # max: 255; OPTIONAL
96 AddressLine2 => 'MyAddressLine', # max: 255; OPTIONAL
97 City => 'MyCity', # max: 255; OPTIONAL
98 ContactType => 'PERSON'
99 , # values: PERSON, COMPANY, ASSOCIATION, PUBLIC_BODY, RESELLER; OPTIONAL
100 CountryCode => 'AD'
101 , # values: AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GH, GI, GL, GM, GN, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PT, PW, PY, QA, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW; OPTIONAL
102 Email => 'MyEmail', # max: 254; OPTIONAL
103 ExtraParams => [
104 {
105 Name => 'DUNS_NUMBER'
106 , # values: DUNS_NUMBER, BRAND_NUMBER, BIRTH_DEPARTMENT, BIRTH_DATE_IN_YYYY_MM_DD, BIRTH_COUNTRY, BIRTH_CITY, DOCUMENT_NUMBER, AU_ID_NUMBER, AU_ID_TYPE, CA_LEGAL_TYPE, CA_BUSINESS_ENTITY_TYPE, CA_LEGAL_REPRESENTATIVE, CA_LEGAL_REPRESENTATIVE_CAPACITY, ES_IDENTIFICATION, ES_IDENTIFICATION_TYPE, ES_LEGAL_FORM, FI_BUSINESS_NUMBER, FI_ID_NUMBER, FI_NATIONALITY, FI_ORGANIZATION_TYPE, IT_NATIONALITY, IT_PIN, IT_REGISTRANT_ENTITY_TYPE, RU_PASSPORT_DATA, SE_ID_NUMBER, SG_ID_NUMBER, VAT_NUMBER, UK_CONTACT_TYPE, UK_COMPANY_NUMBER
107 Value => 'MyExtraParamValue', # max: 2048
108  
109 },
110 ...
111 ], # OPTIONAL
112 Fax => 'MyContactNumber', # max: 30; OPTIONAL
113 FirstName => 'MyContactName', # max: 255; OPTIONAL
114 LastName => 'MyContactName', # max: 255; OPTIONAL
115 OrganizationName => 'MyContactName', # max: 255; OPTIONAL
116 PhoneNumber => 'MyContactNumber', # max: 30; OPTIONAL
117 State => 'MyState', # max: 255; OPTIONAL
118 ZipCode => 'MyZipCode', # max: 255; OPTIONAL
119 },
120 AutoRenew => 1, # OPTIONAL
121 IdnLangCode => 'MyLangCode', # OPTIONAL
122 PrivacyProtectAdminContact => 1, # OPTIONAL
123 PrivacyProtectRegistrantContact => 1, # OPTIONAL
124 PrivacyProtectTechContact => 1, # OPTIONAL
125 );
126  
127 # Results:
128 my $OperationId = $RegisterDomainResponse->OperationId;
129  
130 # Returns a L<Paws::Route53Domains::RegisterDomainResponse> object.
131  
132 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.
133 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53domains/RegisterDomain>
134  
135 =head1 ATTRIBUTES
136  
137  
138 =head2 B<REQUIRED> AdminContact => L<Paws::Route53Domains::ContactDetail>
139  
140 Provides detailed contact information. For information about the values
141 that you specify for each element, see ContactDetail
142 (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html).
143  
144  
145  
146 =head2 AutoRenew => Bool
147  
148 Indicates whether the domain will be automatically renewed (C<true>) or
149 not (C<false>). Autorenewal only takes effect after the account is
150 charged.
151  
152 Default: C<true>
153  
154  
155  
156 =head2 B<REQUIRED> DomainName => Str
157  
158 The domain name that you want to register. The top-level domain (TLD),
159 such as .com, must be a TLD that Route 53 supports. For a list of
160 supported TLDs, see Domains that You Can Register with Amazon Route 53
161 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
162 in the I<Amazon Route 53 Developer Guide>.
163  
164 The domain name can contain only the following characters:
165  
166 =over
167  
168 =item *
169  
170 Letters a through z. Domain names are not case sensitive.
171  
172 =item *
173  
174 Numbers 0 through 9.
175  
176 =item *
177  
178 Hyphen (-). You can't specify a hyphen at the beginning or end of a
179 label.
180  
181 =item *
182  
183 Period (.) to separate the labels in the name, such as the C<.> in
184 C<example.com>.
185  
186 =back
187  
188 Internationalized domain names are not supported for some top-level
189 domains. To determine whether the TLD that you want to use supports
190 internationalized domain names, see Domains that You Can Register with
191 Amazon Route 53
192 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html).
193 For more information, see Formatting Internationalized Domain Names
194 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns).
195  
196  
197  
198 =head2 B<REQUIRED> DurationInYears => Int
199  
200 The number of years that you want to register the domain for. Domains
201 are registered for a minimum of one year. The maximum period depends on
202 the top-level domain. For the range of valid values for your domain,
203 see Domains that You Can Register with Amazon Route 53
204 (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html)
205 in the I<Amazon Route 53 Developer Guide>.
206  
207 Default: 1
208  
209  
210  
211 =head2 IdnLangCode => Str
212  
213 Reserved for future use.
214  
215  
216  
217 =head2 PrivacyProtectAdminContact => Bool
218  
219 Whether you want to conceal contact information from WHOIS queries. If
220 you specify C<true>, WHOIS ("who is") queries return contact
221 information either for Amazon Registrar (for .com, .net, and .org
222 domains) or for our registrar associate, Gandi (for all other TLDs). If
223 you specify C<false>, WHOIS queries return the information that you
224 entered for the admin contact.
225  
226 Default: C<true>
227  
228  
229  
230 =head2 PrivacyProtectRegistrantContact => Bool
231  
232 Whether you want to conceal contact information from WHOIS queries. If
233 you specify C<true>, WHOIS ("who is") queries return contact
234 information either for Amazon Registrar (for .com, .net, and .org
235 domains) or for our registrar associate, Gandi (for all other TLDs). If
236 you specify C<false>, WHOIS queries return the information that you
237 entered for the registrant contact (the domain owner).
238  
239 Default: C<true>
240  
241  
242  
243 =head2 PrivacyProtectTechContact => Bool
244  
245 Whether you want to conceal contact information from WHOIS queries. If
246 you specify C<true>, WHOIS ("who is") queries return contact
247 information either for Amazon Registrar (for .com, .net, and .org
248 domains) or for our registrar associate, Gandi (for all other TLDs). If
249 you specify C<false>, WHOIS queries return the information that you
250 entered for the technical contact.
251  
252 Default: C<true>
253  
254  
255  
256 =head2 B<REQUIRED> RegistrantContact => L<Paws::Route53Domains::ContactDetail>
257  
258 Provides detailed contact information. For information about the values
259 that you specify for each element, see ContactDetail
260 (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html).
261  
262  
263  
264 =head2 B<REQUIRED> TechContact => L<Paws::Route53Domains::ContactDetail>
265  
266 Provides detailed contact information. For information about the values
267 that you specify for each element, see ContactDetail
268 (https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html).
269  
270  
271  
272  
273 =head1 SEE ALSO
274  
275 This class forms part of L<Paws>, documenting arguments for method RegisterDomain in L<Paws::Route53Domains>
276  
277 =head1 BUGS and CONTRIBUTIONS
278  
279 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
280  
281 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
282  
283 =cut
284