blib/lib/Paws/IoT/CreateDomainConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoT::CreateDomainConfiguration;
3 use Moose;
4 has AuthorizerConfig => (is => 'ro', isa => 'Paws::IoT::AuthorizerConfig', traits => ['NameInRequest'], request_name => 'authorizerConfig');
5 has DomainConfigurationName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'domainConfigurationName', required => 1);
6 has DomainName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'domainName');
7 has ServerCertificateArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'serverCertificateArns');
8 has ServiceType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceType');
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags');
10 has ValidationCertificateArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'validationCertificateArn');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDomainConfiguration');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/domainConfigurations/{domainConfigurationName}');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateDomainConfigurationResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::IoT::CreateDomainConfiguration - Arguments for method CreateDomainConfiguration on L<Paws::IoT>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateDomainConfiguration on the
29 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
30 as arguments to method CreateDomainConfiguration.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDomainConfiguration.
33  
34 =head1 SYNOPSIS
35  
36 my $iot = Paws->service('IoT');
37 my $CreateDomainConfigurationResponse = $iot->CreateDomainConfiguration(
38 DomainConfigurationName => 'MyDomainConfigurationName',
39 AuthorizerConfig => {
40 AllowAuthorizerOverride => 1, # OPTIONAL
41 DefaultAuthorizerName =>
42 'MyAuthorizerName', # min: 1, max: 128; OPTIONAL
43 }, # OPTIONAL
44 DomainName => 'MyDomainName', # OPTIONAL
45 ServerCertificateArns => [
46 'MyAcmCertificateArn', ... # min: 1, max: 2048
47 ], # OPTIONAL
48 ServiceType => 'DATA', # OPTIONAL
49 Tags => [
50 {
51 Key => 'MyTagKey', # min: 1, max: 128
52 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
53 },
54 ...
55 ], # OPTIONAL
56 ValidationCertificateArn => 'MyAcmCertificateArn', # OPTIONAL
57 );
58  
59 # Results:
60 my $DomainConfigurationArn =
61 $CreateDomainConfigurationResponse->DomainConfigurationArn;
62 my $DomainConfigurationName =
63 $CreateDomainConfigurationResponse->DomainConfigurationName;
64  
65 # Returns a L<Paws::IoT::CreateDomainConfigurationResponse> 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/iot/CreateDomainConfiguration>
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 AuthorizerConfig => L<Paws::IoT::AuthorizerConfig>
74  
75 An object that specifies the authorization service for a domain.
76  
77  
78  
79 =head2 B<REQUIRED> DomainConfigurationName => Str
80  
81 The name of the domain configuration. This value must be unique to a
82 region.
83  
84  
85  
86 =head2 DomainName => Str
87  
88 The name of the domain.
89  
90  
91  
92 =head2 ServerCertificateArns => ArrayRef[Str|Undef]
93  
94 The ARNs of the certificates that AWS IoT passes to the device during
95 the TLS handshake. Currently you can specify only one certificate ARN.
96 This value is not required for AWS-managed domains.
97  
98  
99  
100 =head2 ServiceType => Str
101  
102 The type of service delivered by the endpoint.
103  
104 AWS IoT Core currently supports only the C<DATA> service type.
105  
106 Valid values are: C<"DATA">, C<"CREDENTIAL_PROVIDER">, C<"JOBS">
107  
108 =head2 Tags => ArrayRef[L<Paws::IoT::Tag>]
109  
110 Metadata which can be used to manage the domain configuration.
111  
112 For URI Request parameters use format: ...key1=value1&key2=value2...
113  
114 For the CLI command-line parameter use format: &&tags
115 "key1=value1&key2=value2..."
116  
117 For the cli-input-json file use format: "tags":
118 "key1=value1&key2=value2..."
119  
120  
121  
122 =head2 ValidationCertificateArn => Str
123  
124 The certificate used to validate the server certificate and prove
125 domain name ownership. This certificate must be signed by a public
126 certificate authority. This value is not required for AWS-managed
127 domains.
128  
129  
130  
131  
132 =head1 SEE ALSO
133  
134 This class forms part of L<Paws>, documenting arguments for method CreateDomainConfiguration in L<Paws::IoT>
135  
136 =head1 BUGS and CONTRIBUTIONS
137  
138 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
139  
140 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
141  
142 =cut
143