blib/lib/Paws/KinesisAnalyticsV2/AddApplicationCloudWatchLoggingOption.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::KinesisAnalyticsV2::AddApplicationCloudWatchLoggingOption;
3 use Moose;
4 has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
5 has CloudWatchLoggingOption => (is => 'ro', isa => 'Paws::KinesisAnalyticsV2::CloudWatchLoggingOption', required => 1);
6 has ConditionalToken => (is => 'ro', isa => 'Str');
7 has CurrentApplicationVersionId => (is => 'ro', isa => 'Int');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddApplicationCloudWatchLoggingOption');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KinesisAnalyticsV2::AddApplicationCloudWatchLoggingOptionResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::KinesisAnalyticsV2::AddApplicationCloudWatchLoggingOption - Arguments for method AddApplicationCloudWatchLoggingOption on L<Paws::KinesisAnalyticsV2>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method AddApplicationCloudWatchLoggingOption on the
25 L<Amazon Kinesis Analytics|Paws::KinesisAnalyticsV2> service. Use the attributes of this class
26 as arguments to method AddApplicationCloudWatchLoggingOption.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddApplicationCloudWatchLoggingOption.
29  
30 =head1 SYNOPSIS
31  
32 my $kinesisanalytics = Paws->service('KinesisAnalyticsV2');
33 my $AddApplicationCloudWatchLoggingOptionResponse =
34 $kinesisanalytics->AddApplicationCloudWatchLoggingOption(
35 ApplicationName => 'MyApplicationName',
36 CloudWatchLoggingOption => {
37 LogStreamARN => 'MyLogStreamARN', # min: 1, max: 2048
38  
39 },
40 ConditionalToken => 'MyConditionalToken', # OPTIONAL
41 CurrentApplicationVersionId => 1, # OPTIONAL
42 );
43  
44 # Results:
45 my $ApplicationARN =
46 $AddApplicationCloudWatchLoggingOptionResponse->ApplicationARN;
47 my $ApplicationVersionId =
48 $AddApplicationCloudWatchLoggingOptionResponse->ApplicationVersionId;
49 my $CloudWatchLoggingOptionDescriptions =
50 $AddApplicationCloudWatchLoggingOptionResponse
51 ->CloudWatchLoggingOptionDescriptions;
52  
53 # Returns a L<Paws::KinesisAnalyticsV2::AddApplicationCloudWatchLoggingOptionResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics/AddApplicationCloudWatchLoggingOption>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> ApplicationName => Str
62  
63 The Kinesis Data Analytics application name.
64  
65  
66  
67 =head2 B<REQUIRED> CloudWatchLoggingOption => L<Paws::KinesisAnalyticsV2::CloudWatchLoggingOption>
68  
69 Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN).
70  
71  
72  
73 =head2 ConditionalToken => Str
74  
75 A value you use to implement strong concurrency for application
76 updates. You must provide the C<CurrentApplicationVersionId> or the
77 C<ConditionalToken>. You get the application's current
78 C<ConditionalToken> using DescribeApplication. For better concurrency
79 support, use the C<ConditionalToken> parameter instead of
80 C<CurrentApplicationVersionId>.
81  
82  
83  
84 =head2 CurrentApplicationVersionId => Int
85  
86 The version ID of the Kinesis Data Analytics application. You must
87 provide the C<CurrentApplicationVersionId> or the
88 C<ConditionalToken>.You can retrieve the application version ID using
89 DescribeApplication. For better concurrency support, use the
90 C<ConditionalToken> parameter instead of
91 C<CurrentApplicationVersionId>.
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, documenting arguments for method AddApplicationCloudWatchLoggingOption in L<Paws::KinesisAnalyticsV2>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107