blib/lib/Paws/CloudDirectory/CreateObject.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudDirectory::CreateObject;
3 use Moose;
4 has DirectoryArn => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-data-partition', required => 1);
5 has LinkName => (is => 'ro', isa => 'Str');
6 has ObjectAttributeList => (is => 'ro', isa => 'ArrayRef[Paws::CloudDirectory::AttributeKeyAndValue]');
7 has ParentReference => (is => 'ro', isa => 'Paws::CloudDirectory::ObjectReference');
8 has SchemaFacets => (is => 'ro', isa => 'ArrayRef[Paws::CloudDirectory::SchemaFacet]', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateObject');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/amazonclouddirectory/2017-01-11/object');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudDirectory::CreateObjectResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CloudDirectory::CreateObject - Arguments for method CreateObject on L<Paws::CloudDirectory>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateObject on the
27 L<Amazon CloudDirectory|Paws::CloudDirectory> service. Use the attributes of this class
28 as arguments to method CreateObject.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateObject.
31  
32 =head1 SYNOPSIS
33  
34 my $clouddirectory = Paws->service('CloudDirectory');
35 my $CreateObjectResponse = $clouddirectory->CreateObject(
36 DirectoryArn => 'MyArn',
37 SchemaFacets => [
38 {
39 FacetName => 'MyFacetName', # min: 1, max: 64; OPTIONAL
40 SchemaArn => 'MyArn',
41 },
42 ...
43 ],
44 LinkName => 'MyLinkName', # OPTIONAL
45 ObjectAttributeList => [
46 {
47 Key => {
48 FacetName => 'MyFacetName', # min: 1, max: 64; OPTIONAL
49 Name => 'MyAttributeName', # min: 1, max: 230
50 SchemaArn => 'MyArn',
51  
52 },
53 Value => {
54 BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL
55 BooleanValue => 1, # OPTIONAL
56 DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL
57 NumberValue => 'MyNumberAttributeValue', # OPTIONAL
58 StringValue => 'MyStringAttributeValue', # OPTIONAL
59 },
60  
61 },
62 ...
63 ], # OPTIONAL
64 ParentReference => {
65 Selector => 'MySelectorObjectReference', # OPTIONAL
66 }, # OPTIONAL
67 );
68  
69 # Results:
70 my $ObjectIdentifier = $CreateObjectResponse->ObjectIdentifier;
71  
72 # Returns a L<Paws::CloudDirectory::CreateObjectResponse> object.
73  
74 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.
75 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/clouddirectory/CreateObject>
76  
77 =head1 ATTRIBUTES
78  
79  
80 =head2 B<REQUIRED> DirectoryArn => Str
81  
82 The Amazon Resource Name (ARN) that is associated with the Directory in
83 which the object will be created. For more information, see arns.
84  
85  
86  
87 =head2 LinkName => Str
88  
89 The name of link that is used to attach this object to a parent.
90  
91  
92  
93 =head2 ObjectAttributeList => ArrayRef[L<Paws::CloudDirectory::AttributeKeyAndValue>]
94  
95 The attribute map whose attribute ARN contains the key and attribute
96 value as the map value.
97  
98  
99  
100 =head2 ParentReference => L<Paws::CloudDirectory::ObjectReference>
101  
102 If specified, the parent reference to which this object will be
103 attached.
104  
105  
106  
107 =head2 B<REQUIRED> SchemaFacets => ArrayRef[L<Paws::CloudDirectory::SchemaFacet>]
108  
109 A list of schema facets to be associated with the object. Do not
110 provide minor version components. See SchemaFacet for details.
111  
112  
113  
114  
115 =head1 SEE ALSO
116  
117 This class forms part of L<Paws>, documenting arguments for method CreateObject in L<Paws::CloudDirectory>
118  
119 =head1 BUGS and CONTRIBUTIONS
120  
121 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
122  
123 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
124  
125 =cut
126