blib/lib/Paws/DS/CreateTrust.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::DS::CreateTrust;
3 use Moose;
4 has ConditionalForwarderIpAddrs => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has DirectoryId => (is => 'ro', isa => 'Str', required => 1);
6 has RemoteDomainName => (is => 'ro', isa => 'Str', required => 1);
7 has SelectiveAuth => (is => 'ro', isa => 'Str');
8 has TrustDirection => (is => 'ro', isa => 'Str', required => 1);
9 has TrustPassword => (is => 'ro', isa => 'Str', required => 1);
10 has TrustType => (is => 'ro', isa => 'Str');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTrust');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DS::CreateTrustResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::DS::CreateTrust - Arguments for method CreateTrust on L<Paws::DS>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateTrust on the
28 L<AWS Directory Service|Paws::DS> service. Use the attributes of this class
29 as arguments to method CreateTrust.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTrust.
32  
33 =head1 SYNOPSIS
34  
35 my $ds = Paws->service('DS');
36 my $CreateTrustResult = $ds->CreateTrust(
37 DirectoryId => 'MyDirectoryId',
38 RemoteDomainName => 'MyRemoteDomainName',
39 TrustDirection => 'One-Way: Outgoing',
40 TrustPassword => 'MyTrustPassword',
41 ConditionalForwarderIpAddrs => [ 'MyIpAddr', ... ], # OPTIONAL
42 SelectiveAuth => 'Enabled', # OPTIONAL
43 TrustType => 'Forest', # OPTIONAL
44 );
45  
46 # Results:
47 my $TrustId = $CreateTrustResult->TrustId;
48  
49 # Returns a L<Paws::DS::CreateTrustResult> object.
50  
51 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.
52 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ds/CreateTrust>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 ConditionalForwarderIpAddrs => ArrayRef[Str|Undef]
58  
59 The IP addresses of the remote DNS server associated with
60 RemoteDomainName.
61  
62  
63  
64 =head2 B<REQUIRED> DirectoryId => Str
65  
66 The Directory ID of the AWS Managed Microsoft AD directory for which to
67 establish the trust relationship.
68  
69  
70  
71 =head2 B<REQUIRED> RemoteDomainName => Str
72  
73 The Fully Qualified Domain Name (FQDN) of the external domain for which
74 to create the trust relationship.
75  
76  
77  
78 =head2 SelectiveAuth => Str
79  
80 Optional parameter to enable selective authentication for the trust.
81  
82 Valid values are: C<"Enabled">, C<"Disabled">
83  
84 =head2 B<REQUIRED> TrustDirection => Str
85  
86 The direction of the trust relationship.
87  
88 Valid values are: C<"One-Way: Outgoing">, C<"One-Way: Incoming">, C<"Two-Way">
89  
90 =head2 B<REQUIRED> TrustPassword => Str
91  
92 The trust password. The must be the same password that was used when
93 creating the trust relationship on the external domain.
94  
95  
96  
97 =head2 TrustType => Str
98  
99 The trust relationship type. C<Forest> is the default.
100  
101 Valid values are: C<"Forest">, C<"External">
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method CreateTrust in L<Paws::DS>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115