blib/lib/Paws/CloudWatchLogs/CreateLogGroup.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/CloudWatch/MetricAlarm.pm ↑ Summary blib/lib/Paws/CloudWatchLogs/CreateLogStream.pm »
1  
2 package Paws::CloudWatchLogs::CreateLogGroup;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has KmsKeyId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'kmsKeyId' );
5 2 has LogGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logGroupName' , required => 1);
6 2 has Tags => (is => 'ro', isa => 'Paws::CloudWatchLogs::Tags', traits => ['NameInRequest'], request_name => 'tags' );
7  
8 2 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLogGroup');
11 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
12 2 class_has _result_key => (isa => 'Str', is => 'ro');
13 2 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::CloudWatchLogs::CreateLogGroup - Arguments for method CreateLogGroup on L<Paws::CloudWatchLogs>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method CreateLogGroup on the
24 L<Amazon CloudWatch Logs|Paws::CloudWatchLogs> service. Use the attributes of this class
25 as arguments to method CreateLogGroup.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLogGroup.
28  
29 =head1 SYNOPSIS
30  
31 my $logs = Paws->service('CloudWatchLogs');
32 $logs->CreateLogGroup(
33 LogGroupName => 'MyLogGroupName',
34 KmsKeyId => 'MyKmsKeyId', # OPTIONAL
35 Tags => {
36 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
37 }, # OPTIONAL
38 );
39  
40 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.
41 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/logs/CreateLogGroup>
42  
43 =head1 ATTRIBUTES
44  
45  
46 =head2 KmsKeyId => Str
47  
48 The Amazon Resource Name (ARN) of the CMK to use when encrypting log
49 data. For more information, see Amazon Resource Names - AWS Key
50 Management Service (AWS KMS)
51 (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms).
52  
53  
54  
55 =head2 B<REQUIRED> LogGroupName => Str
56  
57 The name of the log group.
58  
59  
60  
61 =head2 Tags => L<Paws::CloudWatchLogs::Tags>
62  
63 The key-value pairs to use for the tags.
64  
65  
66  
67  
68 =head1 SEE ALSO
69  
70 This class forms part of L<Paws>, documenting arguments for method CreateLogGroup in L<Paws::CloudWatchLogs>
71  
72 =head1 BUGS and CONTRIBUTIONS
73  
74 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
75  
76 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
77  
78 =cut
79  
« blib/lib/Paws/CloudWatch/MetricAlarm.pm ↑ Summary blib/lib/Paws/CloudWatchLogs/CreateLogStream.pm »