blib/lib/Paws/NetworkFirewall/AssociateFirewallPolicy.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::NetworkFirewall::AssociateFirewallPolicy;
3 use Moose;
4 has FirewallArn => (is => 'ro', isa => 'Str');
5 has FirewallName => (is => 'ro', isa => 'Str');
6 has FirewallPolicyArn => (is => 'ro', isa => 'Str', required => 1);
7 has UpdateToken => (is => 'ro', isa => 'Str');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssociateFirewallPolicy');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::NetworkFirewall::AssociateFirewallPolicyResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::NetworkFirewall::AssociateFirewallPolicy - Arguments for method AssociateFirewallPolicy on L<Paws::NetworkFirewall>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method AssociateFirewallPolicy on the
25 L<AWS Network Firewall|Paws::NetworkFirewall> service. Use the attributes of this class
26 as arguments to method AssociateFirewallPolicy.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssociateFirewallPolicy.
29  
30 =head1 SYNOPSIS
31  
32 my $network-firewall = Paws->service('NetworkFirewall');
33 my $AssociateFirewallPolicyResponse =
34 $network -firewall->AssociateFirewallPolicy(
35 FirewallPolicyArn => 'MyResourceArn',
36 FirewallArn => 'MyResourceArn', # OPTIONAL
37 FirewallName => 'MyResourceName', # OPTIONAL
38 UpdateToken => 'MyUpdateToken', # OPTIONAL
39 );
40  
41 # Results:
42 my $FirewallArn = $AssociateFirewallPolicyResponse->FirewallArn;
43 my $FirewallName = $AssociateFirewallPolicyResponse->FirewallName;
44 my $FirewallPolicyArn = $AssociateFirewallPolicyResponse->FirewallPolicyArn;
45 my $UpdateToken = $AssociateFirewallPolicyResponse->UpdateToken;
46  
47 # Returns a L<Paws::NetworkFirewall::AssociateFirewallPolicyResponse> 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/network-firewall/AssociateFirewallPolicy>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 FirewallArn => Str
56  
57 The Amazon Resource Name (ARN) of the firewall.
58  
59 You must specify the ARN or the name, and you can specify both.
60  
61  
62  
63 =head2 FirewallName => Str
64  
65 The descriptive name of the firewall. You can't change the name of a
66 firewall after you create it.
67  
68 You must specify the ARN or the name, and you can specify both.
69  
70  
71  
72 =head2 B<REQUIRED> FirewallPolicyArn => Str
73  
74 The Amazon Resource Name (ARN) of the firewall policy.
75  
76  
77  
78 =head2 UpdateToken => Str
79  
80 An optional token that you can use for optimistic locking. Network
81 Firewall returns a token to your requests that access the firewall. The
82 token marks the state of the firewall resource at the time of the
83 request.
84  
85 To make an unconditional change to the firewall, omit the token in your
86 update request. Without the token, Network Firewall performs your
87 updates regardless of whether the firewall has changed since you last
88 retrieved it.
89  
90 To make a conditional change to the firewall, provide the token in your
91 update request. Network Firewall uses the token to ensure that the
92 firewall hasn't changed since you last retrieved it. If it has changed,
93 the operation fails with an C<InvalidTokenException>. If this happens,
94 retrieve the firewall again to get a current copy of it with a new
95 token. Reapply your changes as needed, then try the operation again
96 using the new token.
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method AssociateFirewallPolicy in L<Paws::NetworkFirewall>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112