< Back

Add-CfnEC2_NetworkAclEntryResource

Sat Jan 11, 2020 6:16 am

NAME Add-CfnEC2_NetworkAclEntryResource



SYNOPSIS

Creates an entry (i.e., rule) in a network ACL with a rule number you specify. Each network ACL has a set of

numbered ingress rules and a separate set of numbered egress rules.





SYNTAX

Add-CfnEC2_NetworkAclEntryResource [-ResourceName] <String> [-CidrBlock <String>] [-Egress <Boolean>] [-Icmp

<IDictionary>] [-NetworkAclId <String>] [-PortRange <IDictionary>] [-Protocol <Int32>] [-RuleAction <String>]

[-RuleNumber <Int32>] [-DeletionPolicy <String>] [-Metadata <Hashtable>] [-DependsOn <Array>] [[-PropertiesBlock]

<ScriptBlock>] [-Condition <Object>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-ResourceName <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CidrBlock <String>

The CIDR range to allow or deny, in CIDR notation (e.g., 172.16.0.0/24).



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Egress <Boolean>

Whether this rule applies to egress traffic from the subnet ("true") or ingress traffic to the subnet

("false").



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Icmp <IDictionary>

The Internet Control Message Protocol (ICMP) code and type. Required: Conditional, required if specifying 1

(ICMP) for the protocol parameter.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NetworkAclId <String>

ID of the ACL where the entry will be created.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PortRange <IDictionary>

The range of port numbers for the UDP/TCP protocol. Required: Conditional, required if specifying 6 (TCP) or

17 (UDP) for the protocol parameter.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Protocol <Int32>

IP protocol the rule applies to. You can use -1 to mean all protocols. This must be -1 or a protocol number.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-RuleAction <String>

ID of the ACL where the entry will be created.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-RuleNumber <Int32>

Rule number to assign to the entry (e.g., 100). This must be a postive integer from 1 to 32766.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-DeletionPolicy <String>

With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is

deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has

no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default.



To keep a resource when its stack is deleted, specify Retain for that resource. You can use retain for any

resource. For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to

use or modify those resources after you delete their stacks.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Metadata <Hashtable>

The Metadata attribute enables you to associate structured data with a resource. By adding a Metadata

attribute to a resource, you can add data in JSON format to the resource declaration. In addition, you can use

intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute

to add those interpreted values.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DependsOn <Array>

With the DependsOn attribute you can specify that the creation of a specific resource follows another. When

you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource

specified in the DependsOn attribute. You can use the DependsOn attribute with any resource.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PropertiesBlock <ScriptBlock>

Allows you to declare a block of one or more Property statements.



A Properties block allows you to side-step the rigid, type-enforced literal properties of a typed resource,

and specify Property assignments that may include CloudFormation function calls or references, or computed

values.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Condition <Object>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS

http://docs.aws.amazon.com/AWSCloudForm ... olicy.html

http://docs.aws.amazon.com/AWSCloudForm ... adata.html

http://docs.aws.amazon.com/AWSCloudForm ... ndson.html

http://docs.aws.amazon.com/AWSCloudForm ... e-ref.html

http://docs.aws.amazon.com/search/doc-s ... rkAclEntry