blib/lib/Paws/CustomerProfiles/CreateDomain.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CustomerProfiles::CreateDomain;
3 use Moose;
4 has DeadLetterQueueUrl => (is => 'ro', isa => 'Str');
5 has DefaultEncryptionKey => (is => 'ro', isa => 'Str');
6 has DefaultExpirationDays => (is => 'ro', isa => 'Int', required => 1);
7 has DomainName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'DomainName', required => 1);
8 has Matching => (is => 'ro', isa => 'Paws::CustomerProfiles::MatchingRequest');
9 has Tags => (is => 'ro', isa => 'Paws::CustomerProfiles::TagMap');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDomain');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/domains/{DomainName}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CustomerProfiles::CreateDomainResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::CustomerProfiles::CreateDomain - Arguments for method CreateDomain on L<Paws::CustomerProfiles>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateDomain on the
28 L<Amazon Connect Customer Profiles|Paws::CustomerProfiles> service. Use the attributes of this class
29 as arguments to method CreateDomain.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDomain.
32  
33 =head1 SYNOPSIS
34  
35 my $profile = Paws->service('CustomerProfiles');
36 my $CreateDomainResponse = $profile->CreateDomain(
37 DefaultExpirationDays => 1,
38 DomainName => 'Myname',
39 DeadLetterQueueUrl => 'MysqsQueueUrl', # OPTIONAL
40 DefaultEncryptionKey => 'MyencryptionKey', # OPTIONAL
41 Matching => {
42 Enabled => 1,
43  
44 }, # OPTIONAL
45 Tags => {
46 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
47 }, # OPTIONAL
48 );
49  
50 # Results:
51 my $CreatedAt = $CreateDomainResponse->CreatedAt;
52 my $DeadLetterQueueUrl = $CreateDomainResponse->DeadLetterQueueUrl;
53 my $DefaultEncryptionKey = $CreateDomainResponse->DefaultEncryptionKey;
54 my $DefaultExpirationDays = $CreateDomainResponse->DefaultExpirationDays;
55 my $DomainName = $CreateDomainResponse->DomainName;
56 my $LastUpdatedAt = $CreateDomainResponse->LastUpdatedAt;
57 my $Matching = $CreateDomainResponse->Matching;
58 my $Tags = $CreateDomainResponse->Tags;
59  
60 # Returns a L<Paws::CustomerProfiles::CreateDomainResponse> object.
61  
62 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.
63 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/profile/CreateDomain>
64  
65 =head1 ATTRIBUTES
66  
67  
68 =head2 DeadLetterQueueUrl => Str
69  
70 The URL of the SQS dead letter queue, which is used for reporting
71 errors associated with ingesting data from third party applications.
72 You must set up a policy on the DeadLetterQueue for the SendMessage
73 operation to enable Amazon Connect Customer Profiles to send messages
74 to the DeadLetterQueue.
75  
76  
77  
78 =head2 DefaultEncryptionKey => Str
79  
80 The default encryption key, which is an AWS managed key, is used when
81 no specific type of encryption key is specified. It is used to encrypt
82 all data before it is placed in permanent or semi-permanent storage.
83  
84  
85  
86 =head2 B<REQUIRED> DefaultExpirationDays => Int
87  
88 The default number of days until the data within the domain expires.
89  
90  
91  
92 =head2 B<REQUIRED> DomainName => Str
93  
94 The unique name of the domain.
95  
96  
97  
98 =head2 Matching => L<Paws::CustomerProfiles::MatchingRequest>
99  
100 The process of matching duplicate profiles. This process runs every
101 Saturday at 12AM.
102  
103  
104  
105 =head2 Tags => L<Paws::CustomerProfiles::TagMap>
106  
107 The tags used to organize, track, or control access for this resource.
108  
109  
110  
111  
112 =head1 SEE ALSO
113  
114 This class forms part of L<Paws>, documenting arguments for method CreateDomain in L<Paws::CustomerProfiles>
115  
116 =head1 BUGS and CONTRIBUTIONS
117  
118 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
119  
120 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
121  
122 =cut
123