blib/lib/Paws/CloudDirectory/AttachTypedLink.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::AttachTypedLink;
3 use Moose;
4 has Attributes => (is => 'ro', isa => 'ArrayRef[Paws::CloudDirectory::AttributeNameAndValue]', required => 1);
5 has DirectoryArn => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-data-partition', required => 1);
6 has SourceObjectReference => (is => 'ro', isa => 'Paws::CloudDirectory::ObjectReference', required => 1);
7 has TargetObjectReference => (is => 'ro', isa => 'Paws::CloudDirectory::ObjectReference', required => 1);
8 has TypedLinkFacet => (is => 'ro', isa => 'Paws::CloudDirectory::TypedLinkSchemaAndFacetName', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AttachTypedLink');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/amazonclouddirectory/2017-01-11/typedlink/attach');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudDirectory::AttachTypedLinkResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CloudDirectory::AttachTypedLink - Arguments for method AttachTypedLink on L<Paws::CloudDirectory>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method AttachTypedLink on the
27 L<Amazon CloudDirectory|Paws::CloudDirectory> service. Use the attributes of this class
28 as arguments to method AttachTypedLink.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AttachTypedLink.
31  
32 =head1 SYNOPSIS
33  
34 my $clouddirectory = Paws->service('CloudDirectory');
35 my $AttachTypedLinkResponse = $clouddirectory->AttachTypedLink(
36 Attributes => [
37 {
38 AttributeName => 'MyAttributeName', # min: 1, max: 230
39 Value => {
40 BinaryValue => 'BlobBinaryAttributeValue', # OPTIONAL
41 BooleanValue => 1, # OPTIONAL
42 DatetimeValue => '1970-01-01T01:00:00', # OPTIONAL
43 NumberValue => 'MyNumberAttributeValue', # OPTIONAL
44 StringValue => 'MyStringAttributeValue', # OPTIONAL
45 },
46  
47 },
48 ...
49 ],
50 DirectoryArn => 'MyArn',
51 SourceObjectReference => {
52 Selector => 'MySelectorObjectReference', # OPTIONAL
53 },
54 TargetObjectReference => {
55 Selector => 'MySelectorObjectReference', # OPTIONAL
56 },
57 TypedLinkFacet => {
58 SchemaArn => 'MyArn',
59 TypedLinkName => 'MyTypedLinkName',
60  
61 },
62  
63 );
64  
65 # Results:
66 my $TypedLinkSpecifier = $AttachTypedLinkResponse->TypedLinkSpecifier;
67  
68 # Returns a L<Paws::CloudDirectory::AttachTypedLinkResponse> object.
69  
70 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.
71 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/clouddirectory/AttachTypedLink>
72  
73 =head1 ATTRIBUTES
74  
75  
76 =head2 B<REQUIRED> Attributes => ArrayRef[L<Paws::CloudDirectory::AttributeNameAndValue>]
77  
78 A set of attributes that are associated with the typed link.
79  
80  
81  
82 =head2 B<REQUIRED> DirectoryArn => Str
83  
84 The Amazon Resource Name (ARN) of the directory where you want to
85 attach the typed link.
86  
87  
88  
89 =head2 B<REQUIRED> SourceObjectReference => L<Paws::CloudDirectory::ObjectReference>
90  
91 Identifies the source object that the typed link will attach to.
92  
93  
94  
95 =head2 B<REQUIRED> TargetObjectReference => L<Paws::CloudDirectory::ObjectReference>
96  
97 Identifies the target object that the typed link will attach to.
98  
99  
100  
101 =head2 B<REQUIRED> TypedLinkFacet => L<Paws::CloudDirectory::TypedLinkSchemaAndFacetName>
102  
103 Identifies the typed link facet that is associated with the typed link.
104  
105  
106  
107  
108 =head1 SEE ALSO
109  
110 This class forms part of L<Paws>, documenting arguments for method AttachTypedLink in L<Paws::CloudDirectory>
111  
112 =head1 BUGS and CONTRIBUTIONS
113  
114 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
115  
116 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
117  
118 =cut
119