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