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

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