blib/lib/Paws/EKS/CreateCluster.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EKS::CreateCluster;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken');
5 has EncryptionConfig => (is => 'ro', isa => 'ArrayRef[Paws::EKS::EncryptionConfig]', traits => ['NameInRequest'], request_name => 'encryptionConfig');
6 has KubernetesNetworkConfig => (is => 'ro', isa => 'Paws::EKS::KubernetesNetworkConfigRequest', traits => ['NameInRequest'], request_name => 'kubernetesNetworkConfig');
7 has Logging => (is => 'ro', isa => 'Paws::EKS::Logging', traits => ['NameInRequest'], request_name => 'logging');
8 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
9 has ResourcesVpcConfig => (is => 'ro', isa => 'Paws::EKS::VpcConfigRequest', traits => ['NameInRequest'], request_name => 'resourcesVpcConfig', required => 1);
10 has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn', required => 1);
11 has Tags => (is => 'ro', isa => 'Paws::EKS::TagMap', traits => ['NameInRequest'], request_name => 'tags');
12 has Version => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'version');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCluster');
17 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/clusters');
18 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
19 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EKS::CreateClusterResponse');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::EKS::CreateCluster - Arguments for method CreateCluster on L<Paws::EKS>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method CreateCluster on the
31 L<Amazon Elastic Kubernetes Service|Paws::EKS> service. Use the attributes of this class
32 as arguments to method CreateCluster.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCluster.
35  
36 =head1 SYNOPSIS
37  
38 my $eks = Paws->service('EKS');
39 # To create a new cluster
40 # The following example creates an Amazon EKS cluster called prod.
41 my $CreateClusterResponse = $eks->CreateCluster(
42 'ClientRequestToken' => '1d2129a1-3d38-460a-9756-e5b91fddb951',
43 'Name' => 'prod',
44 'ResourcesVpcConfig' => {
45 'SecurityGroupIds' => ['sg-6979fe18'],
46 'SubnetIds' => [ 'subnet-6782e71e', 'subnet-e7e761ac' ]
47 },
48 'RoleArn' =>
49 'arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI',
50 'Version' => 1.10
51 );
52  
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/eks/CreateCluster>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 ClientRequestToken => Str
61  
62 Unique, case-sensitive identifier that you provide to ensure the
63 idempotency of the request.
64  
65  
66  
67 =head2 EncryptionConfig => ArrayRef[L<Paws::EKS::EncryptionConfig>]
68  
69 The encryption configuration for the cluster.
70  
71  
72  
73 =head2 KubernetesNetworkConfig => L<Paws::EKS::KubernetesNetworkConfigRequest>
74  
75 The Kubernetes network configuration for the cluster.
76  
77  
78  
79 =head2 Logging => L<Paws::EKS::Logging>
80  
81 Enable or disable exporting the Kubernetes control plane logs for your
82 cluster to CloudWatch Logs. By default, cluster control plane logs
83 aren't exported to CloudWatch Logs. For more information, see Amazon
84 EKS Cluster Control Plane Logs
85 (https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html)
86 in the I< I<Amazon EKS User Guide> >.
87  
88 CloudWatch Logs ingestion, archive storage, and data scanning rates
89 apply to exported control plane logs. For more information, see Amazon
90 CloudWatch Pricing (http://aws.amazon.com/cloudwatch/pricing/).
91  
92  
93  
94 =head2 B<REQUIRED> Name => Str
95  
96 The unique name to give to your cluster.
97  
98  
99  
100 =head2 B<REQUIRED> ResourcesVpcConfig => L<Paws::EKS::VpcConfigRequest>
101  
102 The VPC configuration used by the cluster control plane. Amazon EKS VPC
103 resources have specific requirements to work properly with Kubernetes.
104 For more information, see Cluster VPC Considerations
105 (https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html)
106 and Cluster Security Group Considerations
107 (https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html)
108 in the I<Amazon EKS User Guide>. You must specify at least two subnets.
109 You can specify up to five security groups, but we recommend that you
110 use a dedicated security group for your cluster control plane.
111  
112  
113  
114 =head2 B<REQUIRED> RoleArn => Str
115  
116 The Amazon Resource Name (ARN) of the IAM role that provides
117 permissions for the Kubernetes control plane to make calls to AWS API
118 operations on your behalf. For more information, see Amazon EKS Service
119 IAM Role
120 (https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html)
121 in the I< I<Amazon EKS User Guide> >.
122  
123  
124  
125 =head2 Tags => L<Paws::EKS::TagMap>
126  
127 The metadata to apply to the cluster to assist with categorization and
128 organization. Each tag consists of a key and an optional value, both of
129 which you define.
130  
131  
132  
133 =head2 Version => Str
134  
135 The desired Kubernetes version for your cluster. If you don't specify a
136 value here, the latest version available in Amazon EKS is used.
137  
138  
139  
140  
141 =head1 SEE ALSO
142  
143 This class forms part of L<Paws>, documenting arguments for method CreateCluster in L<Paws::EKS>
144  
145 =head1 BUGS and CONTRIBUTIONS
146  
147 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
148  
149 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
150  
151 =cut
152