CIDR block
New-IAMCIDRBlock
Synopsis
Create a CIDR block.
Syntax
New-IAMCIDRBlock [-CIDRBlock] <String> [[-Comments] <String>] [-Enabled] [[-EdgeRCFile] <String>]
[[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Adds CIDR blocks to your account's allowlist. You can add only one CIDR block at a time.
Parameters
-AccountSwitchKey
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Run Get-AccountSwitchKey
to list the account switch keys available to you.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position4
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-CIDRBlock
The value of an IP address or IP address range.
Type String
Parameter Sets (All)
Aliases None
RequiredTrue
Position0
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Comments
Descriptive text you provide for the CIDR block.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position1
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position2
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Enabled
Enables the IP allowlist on the account.
Type SwitchParameter
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default valueFalse
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position3
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
CommonParameters
This cmdlet supports the common parameters: -Debug
, -ErrorAction
, -ErrorVariable
, -InformationAction
, -InformationVariable
, -OutVariable
, -OutBuffer
, -PipelineVariable
, -Verbose
, -WarningAction
, and -WarningVariable
. For more information, see about_CommonParameters.
Inputs
None
Outputs
System.Object
Related links
Updated 6 months ago