blib/lib/Paws/Route53/CreateQueryLoggingConfig.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/Route53/CreateHostedZone.pm ↑ Summary blib/lib/Paws/Route53/DelegationSet.pm »
1  
2 package Paws::Route53::CreateQueryLoggingConfig;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has CloudWatchLogsLogGroupArn => (is => 'ro', isa => 'Str', required => 1);
5 2 has HostedZoneId => (is => 'ro', isa => 'Str', required => 1);
6  
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 => 'CreateQueryLoggingConfig');
11 2 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/queryloggingconfig');
12 2 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
13 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateQueryLoggingConfigResponse');
14 2 class_has _result_key => (isa => 'Str', is => 'ro');
15 2 class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'CreateQueryLoggingConfigRequest');
16 2 class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/');
17 2 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Route53::CreateQueryLoggingConfig - Arguments for method CreateQueryLoggingConfig on L<Paws::Route53>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateQueryLoggingConfig on the
28 L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class
29 as arguments to method CreateQueryLoggingConfig.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateQueryLoggingConfig.
32  
33 =head1 SYNOPSIS
34  
35 my $route53 = Paws->service('Route53');
36 my $CreateQueryLoggingConfigResponse = $route53->CreateQueryLoggingConfig(
37 CloudWatchLogsLogGroupArn => 'MyCloudWatchLogsLogGroupArn',
38 HostedZoneId => 'MyResourceId',
39  
40 );
41  
42 # Results:
43 my $Location = $CreateQueryLoggingConfigResponse->Location;
44 my $QueryLoggingConfig =
45 $CreateQueryLoggingConfigResponse->QueryLoggingConfig;
46  
47 # Returns a L<Paws::Route53::CreateQueryLoggingConfigResponse> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/CreateQueryLoggingConfig>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 B<REQUIRED> CloudWatchLogsLogGroupArn => Str
56  
57 The Amazon Resource Name (ARN) for the log group that you want to
58 Amazon Route 53 to send query logs to. This is the format of the ARN:
59  
60 arn:aws:logs:I<region>:I<account-id>:log-group:I<log_group_name>
61  
62 To get the ARN for a log group, you can use the CloudWatch console, the
63 DescribeLogGroups
64 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html)
65 API action, the describe-log-groups
66 (https://docs.aws.amazon.com/cli/latest/reference/logs/describe-log-groups.html)
67 command, or the applicable command in one of the AWS SDKs.
68  
69  
70  
71 =head2 B<REQUIRED> HostedZoneId => Str
72  
73 The ID of the hosted zone that you want to log queries for. You can log
74 queries only for public hosted zones.
75  
76  
77  
78  
79 =head1 SEE ALSO
80  
81 This class forms part of L<Paws>, documenting arguments for method CreateQueryLoggingConfig in L<Paws::Route53>
82  
83 =head1 BUGS and CONTRIBUTIONS
84  
85 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
86  
87 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
88  
89 =cut
90  
« blib/lib/Paws/Route53/CreateHostedZone.pm ↑ Summary blib/lib/Paws/Route53/DelegationSet.pm »