blib/lib/Paws/EC2/CreatePlacementGroup.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/EC2/CreateNetworkInterfaceResult.pm ↑ Summary blib/lib/Paws/EC2/CreatePlacementGroupResult.pm »
1  
2 package Paws::EC2::CreatePlacementGroup;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
5 1 has GroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'groupName' );
6 1 has PartitionCount => (is => 'ro', isa => 'Int');
7 1 has Strategy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'strategy' );
8 1 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
9  
10 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePlacementGroup');
13 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreatePlacementGroupResult');
14 1 class_has _result_key => (isa => 'Str', is => 'ro');
15 1 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::EC2::CreatePlacementGroup - Arguments for method CreatePlacementGroup on L<Paws::EC2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreatePlacementGroup on the
26 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
27 as arguments to method CreatePlacementGroup.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePlacementGroup.
30  
31 =head1 SYNOPSIS
32  
33 my $ec2 = Paws->service('EC2');
34 # To create a placement group
35 # This example creates a placement group with the specified name.
36 my $CreatePlacementGroupResult = $ec2->CreatePlacementGroup(
37 'GroupName' => 'my-cluster',
38 'Strategy' => 'cluster'
39 );
40  
41  
42 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.
43 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreatePlacementGroup>
44  
45 =head1 ATTRIBUTES
46  
47  
48 =head2 DryRun => Bool
49  
50 Checks whether you have the required permissions for the action,
51 without actually making the request, and provides an error response. If
52 you have the required permissions, the error response is
53 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
54  
55  
56  
57 =head2 GroupName => Str
58  
59 A name for the placement group. Must be unique within the scope of your
60 account for the Region.
61  
62 Constraints: Up to 255 ASCII characters
63  
64  
65  
66 =head2 PartitionCount => Int
67  
68 The number of partitions. Valid only when B<Strategy> is set to
69 C<partition>.
70  
71  
72  
73 =head2 Strategy => Str
74  
75 The placement strategy.
76  
77 Valid values are: C<"cluster">, C<"spread">, C<"partition">
78  
79 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
80  
81 The tags to apply to the new placement group.
82  
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, documenting arguments for method CreatePlacementGroup in L<Paws::EC2>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97  
« blib/lib/Paws/EC2/CreateNetworkInterfaceResult.pm ↑ Summary blib/lib/Paws/EC2/CreatePlacementGroupResult.pm »