blib/lib/Paws/EC2/ModifyInstancePlacement.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifyInstancePlacement;
3 use Moose;
4 has Affinity => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'affinity' );
5 has GroupName => (is => 'ro', isa => 'Str');
6 has HostId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'hostId' );
7 has HostResourceGroupArn => (is => 'ro', isa => 'Str');
8 has InstanceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceId' , required => 1);
9 has PartitionNumber => (is => 'ro', isa => 'Int');
10 has Tenancy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'tenancy' );
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyInstancePlacement');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifyInstancePlacementResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::EC2::ModifyInstancePlacement - Arguments for method ModifyInstancePlacement on L<Paws::EC2>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method ModifyInstancePlacement on the
28 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
29 as arguments to method ModifyInstancePlacement.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyInstancePlacement.
32  
33 =head1 SYNOPSIS
34  
35 my $ec2 = Paws->service('EC2');
36 my $ModifyInstancePlacementResult = $ec2->ModifyInstancePlacement(
37 InstanceId => 'MyInstanceId',
38 Affinity => 'default', # OPTIONAL
39 GroupName => 'MyPlacementGroupName', # OPTIONAL
40 HostId => 'MyDedicatedHostId', # OPTIONAL
41 HostResourceGroupArn => 'MyString', # OPTIONAL
42 PartitionNumber => 1, # OPTIONAL
43 Tenancy => 'dedicated', # OPTIONAL
44 );
45  
46 # Results:
47 my $Return = $ModifyInstancePlacementResult->Return;
48  
49 # Returns a L<Paws::EC2::ModifyInstancePlacementResult> 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/ec2/ModifyInstancePlacement>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 Affinity => Str
58  
59 The affinity setting for the instance.
60  
61 Valid values are: C<"default">, C<"host">
62  
63 =head2 GroupName => Str
64  
65 The name of the placement group in which to place the instance. For
66 spread placement groups, the instance must have a tenancy of
67 C<default>. For cluster and partition placement groups, the instance
68 must have a tenancy of C<default> or C<dedicated>.
69  
70 To remove an instance from a placement group, specify an empty string
71 ("").
72  
73  
74  
75 =head2 HostId => Str
76  
77 The ID of the Dedicated Host with which to associate the instance.
78  
79  
80  
81 =head2 HostResourceGroupArn => Str
82  
83 The ARN of the host resource group in which to place the instance.
84  
85  
86  
87 =head2 B<REQUIRED> InstanceId => Str
88  
89 The ID of the instance that you are modifying.
90  
91  
92  
93 =head2 PartitionNumber => Int
94  
95 Reserved for future use.
96  
97  
98  
99 =head2 Tenancy => Str
100  
101 The tenancy for the instance.
102  
103 Valid values are: C<"dedicated">, C<"host">
104  
105  
106 =head1 SEE ALSO
107  
108 This class forms part of L<Paws>, documenting arguments for method ModifyInstancePlacement in L<Paws::EC2>
109  
110 =head1 BUGS and CONTRIBUTIONS
111  
112 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
113  
114 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
115  
116 =cut
117