« blib/lib/Paws/NetworkFirewall/Attachment.pm
↑ Summary
blib/lib/Paws/NetworkFirewall/CreateFirewallPolicy.pm »
| 1 | |||
| 2 | package Paws::NetworkFirewall::CreateFirewall; | ||
| 3 | use Moose; | ||
| 4 | has DeleteProtection => (is => 'ro', isa => 'Bool'); | ||
| 5 | has Description => (is => 'ro', isa => 'Str'); | ||
| 6 | has FirewallName => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has FirewallPolicyArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has FirewallPolicyChangeProtection => (is => 'ro', isa => 'Bool'); | ||
| 9 | has SubnetChangeProtection => (is => 'ro', isa => 'Bool'); | ||
| 10 | has SubnetMappings => (is => 'ro', isa => 'ArrayRef[Paws::NetworkFirewall::SubnetMapping]', required => 1); | ||
| 11 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::NetworkFirewall::Tag]'); | ||
| 12 | has VpcId => (is => 'ro', isa => 'Str', required => 1); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateFirewall'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::NetworkFirewall::CreateFirewallResponse'); | ||
| 18 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::NetworkFirewall::CreateFirewall - Arguments for method CreateFirewall on L<Paws::NetworkFirewall> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method CreateFirewall on the | ||
| 30 | L<AWS Network Firewall|Paws::NetworkFirewall> service. Use the attributes of this class | ||
| 31 | as arguments to method CreateFirewall. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateFirewall. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $network-firewall = Paws->service('NetworkFirewall'); | ||
| 38 | my $CreateFirewallResponse = $network -firewall->CreateFirewall( | ||
| 39 | FirewallName => 'MyResourceName', | ||
| 40 | FirewallPolicyArn => 'MyResourceArn', | ||
| 41 | SubnetMappings => [ | ||
| 42 | { | ||
| 43 | SubnetId => 'MyCollectionMember_String', | ||
| 44 | |||
| 45 | }, | ||
| 46 | ... | ||
| 47 | ], | ||
| 48 | VpcId => 'MyVpcId', | ||
| 49 | DeleteProtection => 1, # OPTIONAL | ||
| 50 | Description => 'MyDescription', # OPTIONAL | ||
| 51 | FirewallPolicyChangeProtection => 1, # OPTIONAL | ||
| 52 | SubnetChangeProtection => 1, # OPTIONAL | ||
| 53 | Tags => [ | ||
| 54 | { | ||
| 55 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 56 | Value => 'MyTagValue', # max: 256 | ||
| 57 | |||
| 58 | }, | ||
| 59 | ... | ||
| 60 | ], # OPTIONAL | ||
| 61 | ); | ||
| 62 | |||
| 63 | # Results: | ||
| 64 | my $Firewall = $CreateFirewallResponse->Firewall; | ||
| 65 | my $FirewallStatus = $CreateFirewallResponse->FirewallStatus; | ||
| 66 | |||
| 67 | # Returns a L<Paws::NetworkFirewall::CreateFirewallResponse> object. | ||
| 68 | |||
| 69 | 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. | ||
| 70 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/network-firewall/CreateFirewall> | ||
| 71 | |||
| 72 | =head1 ATTRIBUTES | ||
| 73 | |||
| 74 | |||
| 75 | =head2 DeleteProtection => Bool | ||
| 76 | |||
| 77 | A flag indicating whether it is possible to delete the firewall. A | ||
| 78 | setting of C<TRUE> indicates that the firewall is protected against | ||
| 79 | deletion. Use this setting to protect against accidentally deleting a | ||
| 80 | firewall that is in use. When you create a firewall, the operation | ||
| 81 | initializes this flag to C<TRUE>. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 Description => Str | ||
| 86 | |||
| 87 | A description of the firewall. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 B<REQUIRED> FirewallName => Str | ||
| 92 | |||
| 93 | The descriptive name of the firewall. You can't change the name of a | ||
| 94 | firewall after you create it. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 B<REQUIRED> FirewallPolicyArn => Str | ||
| 99 | |||
| 100 | The Amazon Resource Name (ARN) of the FirewallPolicy that you want to | ||
| 101 | use for the firewall. | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 FirewallPolicyChangeProtection => Bool | ||
| 106 | |||
| 107 | A setting indicating whether the firewall is protected against a change | ||
| 108 | to the firewall policy association. Use this setting to protect against | ||
| 109 | accidentally modifying the firewall policy for a firewall that is in | ||
| 110 | use. When you create a firewall, the operation initializes this setting | ||
| 111 | to C<TRUE>. | ||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | =head2 SubnetChangeProtection => Bool | ||
| 116 | |||
| 117 | A setting indicating whether the firewall is protected against changes | ||
| 118 | to the subnet associations. Use this setting to protect against | ||
| 119 | accidentally modifying the subnet associations for a firewall that is | ||
| 120 | in use. When you create a firewall, the operation initializes this | ||
| 121 | setting to C<TRUE>. | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head2 B<REQUIRED> SubnetMappings => ArrayRef[L<Paws::NetworkFirewall::SubnetMapping>] | ||
| 126 | |||
| 127 | The public subnets to use for your Network Firewall firewalls. Each | ||
| 128 | subnet must belong to a different Availability Zone in the VPC. Network | ||
| 129 | Firewall creates a firewall endpoint in each subnet. | ||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | =head2 Tags => ArrayRef[L<Paws::NetworkFirewall::Tag>] | ||
| 134 | |||
| 135 | The key:value pairs to associate with the resource. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | =head2 B<REQUIRED> VpcId => Str | ||
| 140 | |||
| 141 | The unique identifier of the VPC where Network Firewall should create | ||
| 142 | the firewall. | ||
| 143 | |||
| 144 | You can't change this setting after you create the firewall. | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | |||
| 149 | =head1 SEE ALSO | ||
| 150 | |||
| 151 | This class forms part of L<Paws>, documenting arguments for method CreateFirewall in L<Paws::NetworkFirewall> | ||
| 152 | |||
| 153 | =head1 BUGS and CONTRIBUTIONS | ||
| 154 | |||
| 155 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 156 | |||
| 157 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 158 | |||
| 159 | =cut | ||
| 160 |