blib/lib/Paws/ApplicationMigration/UpdateReplicationConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 42 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ApplicationMigration::UpdateReplicationConfiguration;
3 use Moose;
4 has AssociateDefaultSecurityGroup => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'associateDefaultSecurityGroup');
5 has BandwidthThrottling => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'bandwidthThrottling');
6 has CreatePublicIP => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'createPublicIP');
7 has DataPlaneRouting => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'dataPlaneRouting');
8 has DefaultLargeStagingDiskType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'defaultLargeStagingDiskType');
9 has EbsEncryption => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ebsEncryption');
10 has EbsEncryptionKeyArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ebsEncryptionKeyArn');
11 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name');
12 has ReplicatedDisks => (is => 'ro', isa => 'ArrayRef[Paws::ApplicationMigration::ReplicationConfigurationReplicatedDisk]', traits => ['NameInRequest'], request_name => 'replicatedDisks');
13 has ReplicationServerInstanceType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'replicationServerInstanceType');
14 has ReplicationServersSecurityGroupsIDs => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'replicationServersSecurityGroupsIDs');
15 has SourceServerID => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceServerID', required => 1);
16 has StagingAreaSubnetId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'stagingAreaSubnetId');
17 has StagingAreaTags => (is => 'ro', isa => 'Paws::ApplicationMigration::TagsMap', traits => ['NameInRequest'], request_name => 'stagingAreaTags');
18 has UseDedicatedReplicationServer => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'useDedicatedReplicationServer');
19  
20 use MooseX::ClassAttribute;
21  
22 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateReplicationConfiguration');
23 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/UpdateReplicationConfiguration');
24 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
25 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApplicationMigration::ReplicationConfiguration');
26 1;
27  
28 ### main pod documentation begin ###
29  
30 =head1 NAME
31  
32 Paws::ApplicationMigration::UpdateReplicationConfiguration - Arguments for method UpdateReplicationConfiguration on L<Paws::ApplicationMigration>
33  
34 =head1 DESCRIPTION
35  
36 This class represents the parameters used for calling the method UpdateReplicationConfiguration on the
37 L<Application Migration Service|Paws::ApplicationMigration> service. Use the attributes of this class
38 as arguments to method UpdateReplicationConfiguration.
39  
40 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateReplicationConfiguration.
41  
42 =head1 SYNOPSIS
43  
44 my $mgn = Paws->service('ApplicationMigration');
45 my $ReplicationConfiguration = $mgn->UpdateReplicationConfiguration(
46 SourceServerID => 'MySourceServerID',
47 AssociateDefaultSecurityGroup => 1, # OPTIONAL
48 BandwidthThrottling => 1, # OPTIONAL
49 CreatePublicIP => 1, # OPTIONAL
50 DataPlaneRouting => 'PRIVATE_IP', # OPTIONAL
51 DefaultLargeStagingDiskType => 'GP2', # OPTIONAL
52 EbsEncryption => 'DEFAULT', # OPTIONAL
53 EbsEncryptionKeyArn => 'MyARN', # OPTIONAL
54 Name => 'MySmallBoundedString', # OPTIONAL
55 ReplicatedDisks => [
56 {
57 DeviceName => 'MyBoundedString', # max: 256; OPTIONAL
58 Iops => 1,
59 IsBootDisk => 1,
60 StagingDiskType =>
61 'AUTO', # values: AUTO, GP2, IO1, SC1, ST1, STANDARD; OPTIONAL
62 },
63 ...
64 ], # OPTIONAL
65 ReplicationServerInstanceType => 'MyEC2InstanceType', # OPTIONAL
66 ReplicationServersSecurityGroupsIDs => [
67 'MySecurityGroupID', ... # max: 255
68 ], # OPTIONAL
69 StagingAreaSubnetId => 'MySubnetID', # OPTIONAL
70 StagingAreaTags => {
71 'MyTagKey' => 'MyTagValue', # key: max: 256, value: max: 256
72 }, # OPTIONAL
73 UseDedicatedReplicationServer => 1, # OPTIONAL
74 );
75  
76 # Results:
77 my $AssociateDefaultSecurityGroup =
78 $ReplicationConfiguration->AssociateDefaultSecurityGroup;
79 my $BandwidthThrottling = $ReplicationConfiguration->BandwidthThrottling;
80 my $CreatePublicIP = $ReplicationConfiguration->CreatePublicIP;
81 my $DataPlaneRouting = $ReplicationConfiguration->DataPlaneRouting;
82 my $DefaultLargeStagingDiskType =
83 $ReplicationConfiguration->DefaultLargeStagingDiskType;
84 my $EbsEncryption = $ReplicationConfiguration->EbsEncryption;
85 my $EbsEncryptionKeyArn = $ReplicationConfiguration->EbsEncryptionKeyArn;
86 my $Name = $ReplicationConfiguration->Name;
87 my $ReplicatedDisks = $ReplicationConfiguration->ReplicatedDisks;
88 my $ReplicationServerInstanceType =
89 $ReplicationConfiguration->ReplicationServerInstanceType;
90 my $ReplicationServersSecurityGroupsIDs =
91 $ReplicationConfiguration->ReplicationServersSecurityGroupsIDs;
92 my $SourceServerID = $ReplicationConfiguration->SourceServerID;
93 my $StagingAreaSubnetId = $ReplicationConfiguration->StagingAreaSubnetId;
94 my $StagingAreaTags = $ReplicationConfiguration->StagingAreaTags;
95 my $UseDedicatedReplicationServer =
96 $ReplicationConfiguration->UseDedicatedReplicationServer;
97  
98 # Returns a L<Paws::ApplicationMigration::ReplicationConfiguration> object.
99  
100 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.
101 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mgn/UpdateReplicationConfiguration>
102  
103 =head1 ATTRIBUTES
104  
105  
106 =head2 AssociateDefaultSecurityGroup => Bool
107  
108 Update replication configuration associate default Application
109 Migration Service Security group request.
110  
111  
112  
113 =head2 BandwidthThrottling => Int
114  
115 Update replication configuration bandwidth throttling request.
116  
117  
118  
119 =head2 CreatePublicIP => Bool
120  
121 Update replication configuration create Public IP request.
122  
123  
124  
125 =head2 DataPlaneRouting => Str
126  
127 Update replication configuration data plane routing request.
128  
129 Valid values are: C<"PRIVATE_IP">, C<"PUBLIC_IP">
130  
131 =head2 DefaultLargeStagingDiskType => Str
132  
133 Update replication configuration use default large Staging Disk type
134 request.
135  
136 Valid values are: C<"GP2">, C<"ST1">
137  
138 =head2 EbsEncryption => Str
139  
140 Update replication configuration EBS encryption request.
141  
142 Valid values are: C<"DEFAULT">, C<"CUSTOM">
143  
144 =head2 EbsEncryptionKeyArn => Str
145  
146 Update replication configuration EBS encryption key ARN request.
147  
148  
149  
150 =head2 Name => Str
151  
152 Update replication configuration name request.
153  
154  
155  
156 =head2 ReplicatedDisks => ArrayRef[L<Paws::ApplicationMigration::ReplicationConfigurationReplicatedDisk>]
157  
158 Update replication configuration replicated disks request.
159  
160  
161  
162 =head2 ReplicationServerInstanceType => Str
163  
164 Update replication configuration Replication Server instance type
165 request.
166  
167  
168  
169 =head2 ReplicationServersSecurityGroupsIDs => ArrayRef[Str|Undef]
170  
171 Update replication configuration Replication Server Security Groups IDs
172 request.
173  
174  
175  
176 =head2 B<REQUIRED> SourceServerID => Str
177  
178 Update replication configuration Source Server ID request.
179  
180  
181  
182 =head2 StagingAreaSubnetId => Str
183  
184 Update replication configuration Staging Area subnet request.
185  
186  
187  
188 =head2 StagingAreaTags => L<Paws::ApplicationMigration::TagsMap>
189  
190 Update replication configuration Staging Area Tags request.
191  
192  
193  
194 =head2 UseDedicatedReplicationServer => Bool
195  
196 Update replication configuration use dedicated Replication Server
197 request.
198  
199  
200  
201  
202 =head1 SEE ALSO
203  
204 This class forms part of L<Paws>, documenting arguments for method UpdateReplicationConfiguration in L<Paws::ApplicationMigration>
205  
206 =head1 BUGS and CONTRIBUTIONS
207  
208 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
209  
210 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
211  
212 =cut
213