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

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Kafka::CreateCluster;
3 use Moose;
4 has BrokerNodeGroupInfo => (is => 'ro', isa => 'Paws::Kafka::BrokerNodeGroupInfo', traits => ['NameInRequest'], request_name => 'brokerNodeGroupInfo', required => 1);
5 has ClientAuthentication => (is => 'ro', isa => 'Paws::Kafka::ClientAuthentication', traits => ['NameInRequest'], request_name => 'clientAuthentication');
6 has ClusterName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clusterName', required => 1);
7 has ConfigurationInfo => (is => 'ro', isa => 'Paws::Kafka::ConfigurationInfo', traits => ['NameInRequest'], request_name => 'configurationInfo');
8 has EncryptionInfo => (is => 'ro', isa => 'Paws::Kafka::EncryptionInfo', traits => ['NameInRequest'], request_name => 'encryptionInfo');
9 has EnhancedMonitoring => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'enhancedMonitoring');
10 has KafkaVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'kafkaVersion', required => 1);
11 has LoggingInfo => (is => 'ro', isa => 'Paws::Kafka::LoggingInfo', traits => ['NameInRequest'], request_name => 'loggingInfo');
12 has NumberOfBrokerNodes => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'numberOfBrokerNodes', required => 1);
13 has OpenMonitoring => (is => 'ro', isa => 'Paws::Kafka::OpenMonitoringInfo', traits => ['NameInRequest'], request_name => 'openMonitoring');
14 has Tags => (is => 'ro', isa => 'Paws::Kafka::__mapOf__string', traits => ['NameInRequest'], request_name => 'tags');
15  
16 use MooseX::ClassAttribute;
17  
18 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCluster');
19 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/clusters');
20 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
21 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Kafka::CreateClusterResponse');
22 1;
23  
24 ### main pod documentation begin ###
25  
26 =head1 NAME
27  
28 Paws::Kafka::CreateCluster - Arguments for method CreateCluster on L<Paws::Kafka>
29  
30 =head1 DESCRIPTION
31  
32 This class represents the parameters used for calling the method CreateCluster on the
33 L<Managed Streaming for Kafka|Paws::Kafka> service. Use the attributes of this class
34 as arguments to method CreateCluster.
35  
36 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCluster.
37  
38 =head1 SYNOPSIS
39  
40 my $kafka = Paws->service('Kafka');
41 my $CreateClusterResponse = $kafka->CreateCluster(
42 BrokerNodeGroupInfo => {
43 ClientSubnets => [ 'My__string', ... ],
44 InstanceType => 'My__stringMin5Max32', # min: 5, max: 32
45 BrokerAZDistribution => 'DEFAULT', # values: DEFAULT; OPTIONAL
46 SecurityGroups => [ 'My__string', ... ],
47 StorageInfo => {
48 EbsStorageInfo => {
49 VolumeSize => 1, # min: 1, max: 16384; OPTIONAL
50 }, # OPTIONAL
51 }, # OPTIONAL
52 },
53 ClusterName => 'My__stringMin1Max64',
54 KafkaVersion => 'My__stringMin1Max128',
55 NumberOfBrokerNodes => 1,
56 ClientAuthentication => {
57 Sasl => {
58 Iam => {
59 Enabled => 1, # OPTIONAL
60 }, # OPTIONAL
61 Scram => {
62 Enabled => 1, # OPTIONAL
63 }, # OPTIONAL
64 }, # OPTIONAL
65 Tls => { CertificateAuthorityArnList => [ 'My__string', ... ], }
66 , # OPTIONAL
67 }, # OPTIONAL
68 ConfigurationInfo => {
69 Arn => 'My__string',
70 Revision => 1,
71  
72 }, # OPTIONAL
73 EncryptionInfo => {
74 EncryptionAtRest => {
75 DataVolumeKMSKeyId => 'My__string',
76  
77 }, # OPTIONAL
78 EncryptionInTransit => {
79 ClientBroker =>
80 'TLS', # values: TLS, TLS_PLAINTEXT, PLAINTEXT; OPTIONAL
81 InCluster => 1, # OPTIONAL
82 }, # OPTIONAL
83 }, # OPTIONAL
84 EnhancedMonitoring => 'DEFAULT', # OPTIONAL
85 LoggingInfo => {
86 BrokerLogs => {
87 CloudWatchLogs => {
88 Enabled => 1, # OPTIONAL
89 LogGroup => 'My__string',
90 }, # OPTIONAL
91 Firehose => {
92 Enabled => 1, # OPTIONAL
93 DeliveryStream => 'My__string',
94 }, # OPTIONAL
95 S3 => {
96 Enabled => 1, # OPTIONAL
97 Bucket => 'My__string',
98 Prefix => 'My__string',
99 }, # OPTIONAL
100 },
101  
102 }, # OPTIONAL
103 OpenMonitoring => {
104 Prometheus => {
105 JmxExporter => {
106 EnabledInBroker => 1, # OPTIONAL
107  
108 }, # OPTIONAL
109 NodeExporter => {
110 EnabledInBroker => 1, # OPTIONAL
111  
112 }, # OPTIONAL
113 },
114  
115 }, # OPTIONAL
116 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
117 );
118  
119 # Results:
120 my $ClusterArn = $CreateClusterResponse->ClusterArn;
121 my $ClusterName = $CreateClusterResponse->ClusterName;
122 my $State = $CreateClusterResponse->State;
123  
124 # Returns a L<Paws::Kafka::CreateClusterResponse> object.
125  
126 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.
127 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kafka/CreateCluster>
128  
129 =head1 ATTRIBUTES
130  
131  
132 =head2 B<REQUIRED> BrokerNodeGroupInfo => L<Paws::Kafka::BrokerNodeGroupInfo>
133  
134 Information about the broker nodes in the cluster.
135  
136  
137  
138 =head2 ClientAuthentication => L<Paws::Kafka::ClientAuthentication>
139  
140 Includes all client authentication related information.
141  
142  
143  
144 =head2 B<REQUIRED> ClusterName => Str
145  
146 The name of the cluster.
147  
148  
149  
150 =head2 ConfigurationInfo => L<Paws::Kafka::ConfigurationInfo>
151  
152 Represents the configuration that you want MSK to use for the brokers
153 in a cluster.
154  
155  
156  
157 =head2 EncryptionInfo => L<Paws::Kafka::EncryptionInfo>
158  
159 Includes all encryption-related information.
160  
161  
162  
163 =head2 EnhancedMonitoring => Str
164  
165 Specifies the level of monitoring for the MSK cluster. The possible
166 values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and
167 PER_TOPIC_PER_PARTITION.
168  
169 Valid values are: C<"DEFAULT">, C<"PER_BROKER">, C<"PER_TOPIC_PER_BROKER">, C<"PER_TOPIC_PER_PARTITION">
170  
171 =head2 B<REQUIRED> KafkaVersion => Str
172  
173 The version of Apache Kafka.
174  
175  
176  
177 =head2 LoggingInfo => L<Paws::Kafka::LoggingInfo>
178  
179  
180  
181  
182  
183 =head2 B<REQUIRED> NumberOfBrokerNodes => Int
184  
185 The number of broker nodes in the cluster.
186  
187  
188  
189 =head2 OpenMonitoring => L<Paws::Kafka::OpenMonitoringInfo>
190  
191 The settings for open monitoring.
192  
193  
194  
195 =head2 Tags => L<Paws::Kafka::__mapOf__string>
196  
197 Create tags when creating the cluster.
198  
199  
200  
201  
202 =head1 SEE ALSO
203  
204 This class forms part of L<Paws>, documenting arguments for method CreateCluster in L<Paws::Kafka>
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